/*
Theme Name: Chirag E-Commerce
Theme URI: https://chiragthecreator.local
Author: Chirag The Creator
Author URI: https://chiragthecreator.local
Description: A modern, premium, high-converting e-commerce theme featuring soft shadows, modern typography, and a tech-store aesthetic.
Version: 1.0.0
Text Domain: chirag-ecommerce
*/

:root {
    /* Brand Colors */
    --color-primary: #601FF9;
    --color-primary-hover: #7B45FF;
    
    /* Text Colors */
    --color-text-heading: #111111;
    --color-text-body: #666666;
    
    /* Backgrounds */
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F7F8FC;
    
    /* Borders & UI */
    --color-border: #EAEAEA;
    --border-radius: 16px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(96, 31, 249, 0.15);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-body);
    background-color: var(--color-bg-white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-text-heading);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Global Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn,
button,
input[type="submit"],
.woocommerce a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #fff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px; /* Pill shape for modern look or fallback to var(--border-radius) */
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: none;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(96, 31, 249, 0.2);
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Header Global Settings */
body {
    padding-top: 89px; /* Height of the header to prevent overlap */
}

.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
    transition: all 0.3s ease;
}

/* Adjust for logged in admin bar */
.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Scrolled State */
.site-header.scrolled {
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Header Icons & Search */
.header-icons a {
    color: var(--color-text-heading);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    line-height: 1;
}
.header-icons a:hover,
.header-search-button:hover {
    color: var(--color-primary) !important;
}

.header-search-container {
    display: flex;
    align-items: center;
    height: 24px;
}
.header-search-form {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
    height: 100%;
}
.header-search-field {
    width: 0;
    opacity: 0;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    background: transparent;
    padding: 0;
    font-size: 15px;
    color: var(--color-text-heading);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    height: 24px;
}
.header-search-form:hover .header-search-field,
.header-search-field:focus {
    width: 200px;
    opacity: 1;
    padding: 0 12px;
    margin-right: 8px;
}
.header-search-button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: var(--color-text-heading) !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.header-search-button:hover {
    transform: none !important;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.main-navigation a {
    color: var(--color-text-heading);
    font-weight: 500;
    font-size: 15px;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    color: var(--color-text-heading);
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: bold;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Hero Section */
.hero-slider {
    margin-bottom: 60px;
}

.hero-slide-img {
    width: 100%;
    aspect-ratio: 1920 / 800;
    max-height: 800px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Section Headings */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

/* Categories */
.categories {
    margin-bottom: 80px;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}
.category-card {
    background: var(--color-bg-light);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 24px 20px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--color-text-heading);
    box-shadow: 0 4px 16px rgba(96, 31, 249, 0.08);
}
.category-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(96, 31, 249, 0.15);
    transform: translateY(-4px);
}
.category-img-wrapper {
    text-align: center;
    margin-bottom: 30px;
}
.placeholder-emoji {
    font-size: 64px;
    line-height: 1;
}
.category-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}
.category-info p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* WooCommerce Overrides */
.woocommerce ul.products li.product {
    background: var(--color-bg-white);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 0;
    transition: var(--transition-smooth);
    text-align: left;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto !important;
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    z-index: 9;
    min-height: auto;
    min-width: auto;
    line-height: 1.2;
    margin: 0;
    display: inline-block;
    width: max-content !important;
}

.custom-wishlist-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--color-primary);
    z-index: 9;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-wishlist-icon:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.custom-wishlist-icon.active svg {
    fill: var(--color-primary);
    color: var(--color-primary);
}

.woocommerce ul.products li.product img {
    margin: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    background-color: var(--color-bg-light);
    transition: var(--transition-smooth);
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.03);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-heading);
    padding: 16px 16px 0;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 60px; /* Fixed height for exactly 2 lines */
    line-height: 1.4;
}

.woocommerce ul.products li.product .price {
    color: var(--color-text-heading) !important;
    font-weight: 700;
    font-size: 18px;
    padding: 0 16px 16px;
    margin-top: auto; /* Push price down to align all cards uniformly */
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.woocommerce ul.products li.product .price del {
    color: #A0A0A0;
    font-size: 14px;
    font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
    background: none;
    text-decoration: none;
}

.woocommerce ul.products li.product .star-rating {
    display: none !important;
}

/* Add to Cart / View Cart Buttons */
.woocommerce ul.products li.product > .button,
.woocommerce ul.products li.product > .added_to_cart {
    width: calc(100% - 32px) !important;
    margin: 0 16px 16px !important;
    padding: 12px !important;
    font-size: 14px !important;
    border-radius: var(--border-radius) !important;
    text-align: center;
    justify-content: center;
    display: flex;
    background-color: var(--color-primary);
    color: #fff !important;
    font-weight: 600;
    text-transform: none;
    box-sizing: border-box;
    line-height: 1.5;
}

.woocommerce ul.products li.product > .button::before {
    display: none; /* Remove cart icon */
}

/* Hide the 'Add to cart' button when it turns into 'View cart' */
.woocommerce ul.products li.product > .add_to_cart_button.added {
    display: none !important;
}

/* Value Cards */
.value-card {
    background: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.value-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.value-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
    color: var(--color-text-body);
    margin: 0;
}

/* Trending Products Slider */
.trending-slider-wrapper {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    margin: 0 -20px; /* Bleed edge on mobile */
    padding: 0 20px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
    mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
}
.trending-slider-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.trending-slider-track ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 10px 0 30px !important; /* Space for box shadow */
    gap: 24px;
    width: max-content;
}
.trending-slider-track ul.products::before,
.trending-slider-track ul.products::after {
    display: none !important;
}
.trending-slider-track ul.products li.product {
    flex: 0 0 300px !important; /* Fixed width for sliding cards */
    margin: 0 !important;
    clear: none !important;
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-light);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
    margin-top: 80px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets ul li {
    margin-bottom: 12px;
}

.footer-widgets ul a {
    color: var(--color-text-body);
}

.footer-widgets ul a:hover {
    color: var(--color-primary);
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .slider-nav-btn {
        display: none !important;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1005; /* Keep icon above menu */
        position: relative;
        /* Strip all global button styles */
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        color: var(--color-text-heading) !important;
        width: 24px !important;
        height: 24px !important;
        min-width: unset !important;
        min-height: unset !important;
        border-radius: 0 !important;
    }
    .mobile-menu-toggle:hover {
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        color: var(--color-primary) !important;
    }
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding: 80px 30px 40px;
        display: block !important;
    }
    .main-navigation.active {
        right: 0;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    .main-navigation a {
        font-size: 18px;
        font-weight: 600;
        color: var(--color-text-heading);
    }

    /* Layout Spacing Fixes */
    .hero-slider {
        margin-bottom: 40px;
    }
    .hero-slide-img {
        max-height: 400px;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .categories {
        margin-bottom: 40px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 40px;
    }
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    /* Mobile Header Placement Fix */
    html { margin-top: 0 !important; }
    .site-header { top: 0 !important; }
    #wpadminbar { display: none !important; }

    /* Sliding Products - 2 Cards Visible */
    .trending-slider-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
    }
    .trending-slider-track ul.products {
        gap: 16px !important;
    }
    .trending-slider-track ul.products li.product {
        flex: 0 0 170px !important; /* Perfect size for 2 cards */
    }
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px;
        padding: 12px 12px 0;
        min-height: 48px;
        line-height: 1.4;
    }
    .woocommerce ul.products li.product .price {
        font-size: 15px;
        padding: 0 12px 12px;
    }
    .woocommerce ul.products li.product > .button, 
    .woocommerce ul.products li.product > .added_to_cart {
        width: calc(100% - 24px) !important;
        margin: 0 12px 12px !important;
        padding: 10px !important;
        font-size: 13px !important;
        min-height: unset !important;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    .hero-slide-img {
        max-height: 250px;
    }
    .contact-title {
        font-size: 32px;
    }
}

/* Contact Page */
.contact-hero {
    background: var(--color-bg-light);
    padding: 80px 0 60px;
    margin-bottom: 60px;
}
.contact-title {
    font-size: 48px;
    margin-bottom: 16px;
}
.contact-subtitle {
    font-size: 18px;
    color: var(--color-text-body);
    max-width: 600px;
    margin: 0 auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}
.contact-info-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.contact-info-card {
    background: var(--color-bg-white);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.contact-info-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.contact-info-card p {
    font-size: 14px;
    color: var(--color-text-body);
    margin-bottom: 16px;
}
.contact-link, .contact-text {
    font-weight: 600;
    color: var(--color-text-heading);
    font-size: 15px;
}
.contact-form-card {
    background: var(--color-bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.contact-form-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
}
.form-desc {
    color: var(--color-text-body);
    margin-bottom: 32px;
}
.custom-contact-form .form-group {
    margin-bottom: 24px;
}
.custom-contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-heading);
}
.custom-contact-form input,
.custom-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-bg-white);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-smooth);
    outline: none;
    box-sizing: border-box;
}
.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(96, 31, 249, 0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.contact-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 8px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .contact-info-col {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages */
.legal-content {
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
}
.legal-content h2 {
    font-size: 24px;
    color: var(--color-text-heading);
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.legal-content h3 {
    font-size: 18px;
    color: var(--color-text-heading);
    margin: 24px 0 12px;
}
.legal-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
}
.legal-content li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: disc;
}
.legal-content p {
    margin-bottom: 16px;
}
.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}
.legal-content a:hover {
    text-decoration: none;
}

/* About Us Page */
.about-hero {
    background: var(--color-bg-light);
    padding: 100px 0 80px;
    text-align: center;
    margin-bottom: 60px;
}
.about-title {
    font-size: 48px;
    margin-bottom: 16px;
}
.about-intro-text {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-body);
    max-width: 800px;
    margin: 0 auto;
}
.about-section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}
.about-card {
    background: var(--color-bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition-smooth);
}
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.about-card-icon {
    width: 60px;
    height: 60px;
    background: var(--color-bg-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.about-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}
.about-card p {
    color: var(--color-text-body);
    line-height: 1.6;
}
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    background: var(--color-bg-light);
    padding: 60px;
    border-radius: var(--border-radius-lg);
}
.about-split h2 {
    font-size: 32px;
    margin-bottom: 24px;
}
.about-split ul {
    list-style: none;
    padding: 0;
}
.about-split li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    color: var(--color-text-body);
    font-size: 16px;
}
.about-split li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 18px;
}
.about-vision {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 60px;
    border: 2px dashed var(--color-border);
    border-radius: var(--border-radius-lg);
}
.about-vision h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.about-vision p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-body);
    font-style: italic;
}
.about-footer {
    text-align: center;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-split { grid-template-columns: 1fr; padding: 40px 20px; }
    .about-vision { padding: 40px 20px; }
}

/* Custom Footer Layout */
.footer-custom-layout {
    background: var(--color-bg-light);
    padding-top: 80px;
    margin-top: 60px;
}
.footer-links-list {
    list-style: none;
    padding: 0;
}
.footer-links-list li {
    margin-bottom: 12px;
}
.footer-links-list a {
    color: var(--color-text-body);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-smooth);
}
.footer-links-list a:hover {
    color: var(--color-primary);
}
.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-smooth);
}
.footer-social-icon:hover {
    transform: translateY(-3px);
}
.footer-social-icon-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: var(--border-radius);
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}
.footer-social-icon-filled:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* WooCommerce My Account Customization */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none;
    width: 28%;
    margin-right: 4%;
}
.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 68%;
}
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
}
.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--color-border);
}
.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}
.woocommerce-MyAccount-navigation-link a {
    display: block !important;
    padding: 15px 25px !important;
    color: var(--color-text-body) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: var(--border-radius) !important;
    transition: background var(--transition-smooth), color var(--transition-smooth) !important;
}
.woocommerce-MyAccount-navigation-link a:hover {
    background: var(--color-bg-light) !important;
    color: var(--color-primary) !important;
}
.woocommerce-MyAccount-navigation-link.is-active a {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Distinct Logout Button Styling */
.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 20px !important;
    border-top: 1px solid var(--color-border) !important;
    padding-top: 10px !important;
}
.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #ff4d4f !important;
    font-weight: 600 !important;
}
.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: rgba(255, 77, 79, 0.1) !important;
    color: #ff4d4f !important;
}

.woocommerce-MyAccount-content {
    background: var(--color-bg-white);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Form Styles within My Account */
.woocommerce-MyAccount-content form {
    margin-top: 20px;
}
.woocommerce-MyAccount-content fieldset {
    border: none;
    padding: 0;
    margin-top: 30px;
}
.woocommerce-MyAccount-content legend {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text-heading);
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .woocommerce-MyAccount-content {
        padding: 30px 20px;
    }
}

/* WooCommerce Block Cart Customization */
.wc-block-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
.wc-block-components-sidebar,
.wc-block-cart__totals {
    background-color: var(--color-bg-light) !important;
    border-radius: var(--border-radius-lg) !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
}
.wc-block-components-totals-wrapper {
    background: transparent !important;
}
.wc-block-components-button:not(.is-link) {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: var(--border-radius) !important;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
}
.wc-block-components-button:not(.is-link):hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
}
.wc-block-cart-items td, 
.wc-block-cart-items th {
    border-color: var(--color-border) !important;
}
.wc-block-components-product-image {
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
}
.wc-block-cart-item__remove-link {
    color: var(--color-text-body) !important;
    font-weight: normal !important;
    opacity: 0.6 !important;
    text-decoration: underline !important;
    transition: opacity var(--transition-smooth), color var(--transition-smooth) !important;
}
.wc-block-cart-item__remove-link:hover {
    color: #ff4d4f !important;
    opacity: 1 !important;
}

/* Fix Quantity Stepper Buttons */
.wc-block-components-quantity-selector__button {
    background: var(--color-bg-light) !important;
    color: var(--color-text-heading) !important;
    border-radius: 4px !important;
    transform: none !important;
}
.wc-block-components-quantity-selector__button:hover {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

/* WooCommerce Checkout Customization */
.wc-block-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
.wc-block-components-checkout-step {
    background: var(--color-bg-white) !important;
    padding: 30px !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
    margin-bottom: 30px !important;
    border: none !important;
}
.wc-block-components-checkout-step__title {
    color: var(--color-text-heading) !important;
    font-weight: 600 !important;
    border-bottom: 1px solid var(--color-border) !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}
.wc-block-components-text-input input {
    border-radius: var(--border-radius) !important;
    border: 1px solid var(--color-border) !important;
}
.wc-block-components-text-input input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 1px var(--color-primary) !important;
}

/* Hide Return to Cart Link */
.wc-block-components-checkout-return-to-cart-button,
.wc-block-checkout__return-to-cart,
.wc-block-components-checkout-return-to-cart {
    display: none !important;
}

/* Make Place Order Button Massive and Premium */
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
    font-size: 20px !important;
    padding: 24px 40px !important;
    font-weight: 700 !important;
    width: 100% !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth) !important;
}
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Premium Form UI Polish for Login, Register, and Edit Profile */
.custom-auth-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.custom-register-box, .custom-login-box {
    width: 100% !important;
}
.auth-title {
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 24px;
    color: var(--color-text-heading);
    text-align: center;
}
.auth-toggle {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
    color: var(--color-text-body);
}
.auth-toggle a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

/* Global WooCommerce Forms Polish */
.woocommerce form.login, 
.woocommerce form.register, 
.woocommerce form.woocommerce-EditAccountForm {
    display: flex;
    flex-direction: column;
    gap: 12px !important;
}
.woocommerce form p:empty {
    display: none !important;
}
.woocommerce form .woocommerce-form-row,
.woocommerce form p.woocommerce-form-row,
.woocommerce form p.form-row,
.woocommerce form p {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}
.woocommerce form label {
    font-weight: 500 !important;
    color: var(--color-text-heading) !important;
    margin: 0 0 4px 0 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}
.woocommerce form .required {
    color: #ff4d4f !important;
    text-decoration: none !important;
}
.woocommerce form input[type="text"], 
.woocommerce form input[type="password"], 
.woocommerce form input[type="email"], 
.woocommerce form input[type="tel"] {
    padding: 12px 14px !important;
    border-radius: 6px !important;
    border: 1px solid var(--color-border) !important;
    background-color: #fafafa !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    color: var(--color-text-heading) !important;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth) !important;
}
.woocommerce form input[type="text"]:focus, 
.woocommerce form input[type="password"]:focus, 
.woocommerce form input[type="email"]:focus, 
.woocommerce form input[type="tel"]:focus {
    border-color: var(--color-primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    outline: none !important;
}

/* Profile Form Fieldsets */
.woocommerce form.woocommerce-EditAccountForm fieldset {
    margin-top: 10px !important;
    padding: 30px !important;
    background: var(--color-bg-light) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius-lg) !important;
}
.woocommerce form.woocommerce-EditAccountForm fieldset legend {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--color-text-heading) !important;
    margin-bottom: 15px !important;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

/* Custom WooCommerce Buttons */
.woocommerce form .woocommerce-Button, 
.woocommerce form .woocommerce-button {
    margin-top: 10px !important;
    padding: 18px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: var(--border-radius) !important;
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2) !important;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth) !important;
    width: 100% !important;
    text-align: center;
}
.woocommerce form .woocommerce-Button:hover, 
.woocommerce form .woocommerce-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3) !important;
}

/* WooCommerce My Account Navigation - Premium UI */
.woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 30px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 8px;
    border: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 20px;
    background: transparent;
    border-radius: var(--border-radius);
    color: var(--color-text-body);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
    border-color: var(--color-border);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 24px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding-bottom: 8px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        margin-bottom: 0;
        flex: 1 1 calc(50% - 10px); /* 2 per row */
        text-align: center;
    }
    /* Let the last item (Log out) span full width if it's the 5th item */
    .woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
        flex: 1 1 100%;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        background: var(--color-bg-white);
        border: 1px solid var(--color-border);
        border-radius: 100px; /* pill shape */
        padding: 12px 14px;
        color: var(--color-text-heading);
        font-weight: 600;
        font-size: 13px;
        white-space: nowrap;
        display: block;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
        background: var(--color-primary);
        color: #fff;
        border-color: var(--color-primary);
        box-shadow: 0 4px 12px rgba(96, 31, 249, 0.2);
    }
}

/* Values Section (Why Shop With Us) Grid Layout */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Desktop: Original 4-column layout */
    gap: 24px;
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2x2 grid */
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr; /* Mobile: Stack vertically */
        gap: 16px;
    }
}

/* Original Desktop Footer Layout Restored */
.desktop-footer-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}
.desktop-footer-layout .widget {
    max-width: 320px;
}
.footer-social-wrap {
    display: flex;
    gap: 12px;
}
.desktop-site-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-body);
    font-size: 14px;
    gap: 16px;
}
.payment-icons-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Custom Mobile Centered Layout (User Request) */
@media (max-width: 1024px) {
    /* Hide the brand description widget */
    .footer-brand-widget {
        display: none !important;
    }
    
    /* Make the widget container flex and center everything */
    .desktop-footer-layout {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 30px !important;
    }
    
    /* Company and Support side by side */
    .footer-company-widget, .footer-support-widget {
        flex: 1 1 140px !important;
        text-align: center !important;
        max-width: 50% !important;
    }
    
    /* Track order stacked below */
    .footer-track-widget {
        flex: 1 1 100% !important;
        text-align: center !important;
        margin-top: 20px !important;
        max-width: 100% !important;
    }
    
    /* Center the social icons */
    .footer-social-wrap {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
    }
    
    /* Hide payment icons and center copyright */
    .payment-icons-wrap {
        display: none !important;
    }
    
    .desktop-site-info {
        display: block !important;
        text-align: center !important;
    }
    .copyright-text {
        text-align: center !important;
        width: 100% !important;
    }
}

/* ==========================================
 * SINGLE PRODUCT PAGE CUSTOMIZATIONS
 * ========================================== */

/* Hide Product Tags in Meta */
.single-product .product_meta .tagged_as {
    display: none !important;
}

/* Hide WooCommerce Reviews Tab (If not fully removed by hook) */
.woocommerce-tabs, .woocommerce-Reviews {
    display: none !important;
}

/* Action Buttons Wrapper for Add to Cart & Buy Now */
.product-actions-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-actions-wrapper form.cart {
    display: flex !important;
    gap: 12px;
    width: 100%;
}

.product-actions-wrapper .quantity {
    margin-right: 0 !important;
}

/* Add to Cart & Buy Now Button Styling */
.single_add_to_cart_button {
    flex: 1;
    border-radius: 100px !important;
    font-weight: 600 !important;
}

.buy-now-btn {
    flex: 1;
    border-radius: 100px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}
.buy-now-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ==========================================
 * SINGLE PRODUCT PAGE REFINEMENTS
 * ========================================== */

/* Gallery Layout: Thumbnails Below */
.woocommerce-product-gallery {
    display: flex !important;
    flex-direction: column !important;
}

/* Thumbnail Carousel */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    margin: 24px 0 0 0 !important; /* Space between main image and thumbnails below */
    padding: 0 !important;
    gap: 12px !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
    scroll-behavior: smooth !important;
    scroll-snap-type: x mandatory !important;
}
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari */
}

/* 5 visible thumbnails max */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li {
    flex: 0 0 calc(20% - 9.6px) !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    scroll-snap-align: start !important;
}

/* Thumbnail Styling */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img {
    opacity: 1 !important; /* Fully clear */
    border: 2px solid transparent !important;
    border-radius: var(--border-radius, 8px) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
}

/* Active Thumbnail Highlight */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img.flex-active {
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 15px rgba(96, 31, 249, 0.25) !important;
}

/* Hover Shadow for Thumbnails */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Full Width Long Description */
.full-width-desc {
    width: 100% !important;
    clear: both !important;
    margin-top: 60px !important;
    margin-bottom: 60px !important;
    padding-top: 60px !important;
    border-top: 1px solid var(--color-border) !important;
}

/* Related Products Grid Adjustments */
.related.products ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1024px) {
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
