/*
Theme Name: Tekron-Premium
Theme URI: https://tekronbiz.com
Author: Xyphla Solutions
Author URI: https://xyphla.app
Description: Premium B2B catalog theme for TEKRON International (Pvt) Ltd.
Version: 1.0.0
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════ */
:root {
    --primary-purple: #111111; /* Deep Black */
    --primary-orange: #333333; /* Dark Charcoal */
    --text-dark: #111111;
    --text-muted: #666666;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --border-color: #eeeeee;
    --font-main: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f9fafb;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════════
   TEKRON LOGO
   ═══════════════════════════════════════════════════════════════ */
.tekron-logo {
    font-family: 'Arial Black', 'Impact', sans-serif;
    color: var(--primary-purple);
    text-transform: uppercase;
    font-weight: 950; /* Ultra-thick */
    line-height: 1;
    margin: 0;
    font-size: 48px;
    letter-spacing: -2px;
    display: flex;
    align-items: center;
}

.tekron-logo span {
    color: var(--primary-orange);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Top Bar Marquee --- */
.top-bar-marquee {
    background: var(--primary-purple);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 400;
    overflow: hidden;
}

.top-bar-marquee .container {
    overflow: hidden;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 50s linear infinite;
}

.top-bar-marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Main Header Row --- */
.main-header {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.logo { flex-shrink: 0; }
.logo img { max-height: 50px; }

/* --- Search Bar --- */
.search-bar {
    flex-grow: 1;
    max-width: 650px;
}

.search-bar form {
    display: flex;
    align-items: stretch;
    height: 44px;
    border: 2px solid var(--primary-purple);
    border-radius: 50px;
    overflow: hidden;
}

.search-bar input[type="search"] {
    flex: 1;
    padding: 0 20px;
    border: none;
    outline: none;
    font-size: 14px;
    min-width: 0;
    border-radius: 50px 0 0 50px;
}

.location-selector {
    padding: 0 15px;
    border-left: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    background: #f9f9f9;
    white-space: nowrap;
}

.search-bar button[type="submit"] {
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    border-radius: 0 50px 50px 0;
}

.search-bar button[type="submit"]:hover {
    background: #d4551c; /* Darker orange for hover */
}

/* --- Header Utilities --- */
.header-utilities {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.utility-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.utility-icon-btn {
    width: 40px;
    height: 40px;
    background: #fdf2ed; /* Light orange tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 18px;
    transition: all 0.3s;
}

.utility-icon-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.greeting-text {
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.3;
}

.greeting-text div:first-child { color: var(--text-muted); }
.greeting-text div:last-child { font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION BAR
   ═══════════════════════════════════════════════════════════════ */
.main-navigation {
    background: var(--white);
    border-bottom: 2px solid var(--border-color);
}

.nav-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 50px;
    padding: 0;
}

.mobile-category-drawer-toggle,
.mobile-category-drawer,
.drawer-overlay,
.mobile-only {
    display: none !important;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
}

.all-categories-btn {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

.mobile-only-section {
    display: none;
}

.mobile-menu-label {
    background: #f1f5f9;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-categories-list li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.3s;
}

.mobile-categories-list li a:hover {
    background: #f8fafc;
    color: var(--primary-orange);
    padding-left: 30px;
}

.nav-menu-wrapper {
    flex: 1;
}

/* Base Menu Styles (Desktop First) */
.nav-menu, #primary-menu, .nav-menu-wrapper ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-menu li, #primary-menu li, .nav-menu-wrapper ul li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu li a, #primary-menu li a, .nav-menu-wrapper ul li a {
    color: var(--primary-purple);
    padding: 0 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu li a:hover, #primary-menu li a:hover, .nav-menu-wrapper ul li a:hover {
    color: var(--primary-orange);
    background: rgba(0,0,0,0.02);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .desktop-only { display: none !important; }
    .mobile-only,
    .mobile-category-drawer-toggle,
    .mobile-category-drawer { 
        display: flex !important; 
    }
    
    .main-header { padding: 5px 0; }

    .main-header .container, .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px; /* Reduced vertical gap */
        padding: 5px 40px; /* Reduced vertical padding */
        justify-content: space-between;
        align-items: center;
    }
    
    .logo { 
        order: 1;
        flex: 0 0 auto;
    }
    .logo .tekron-logo { font-size: 28px; justify-content: flex-start; }

    .header-utilities {
        order: 2;
        flex: 0 0 auto;
    }

    .search-bar { 
        order: 3;
        width: 100%; 
        max-width: 100%; 
        margin-top: 2px; /* Minimal gap above search */
    }

    .greeting-text { display: none; }
    .utility-group { gap: 10px; }
    .utility-icon-btn { width: 36px; height: 36px; font-size: 16px; }
    
    .nav-container {
        height: 50px;
        display: flex;
        align-items: center;
        gap: 0;
        background: var(--white);
        border-top: 1px solid #eeeeee;
    }
    
    .nav-menu-wrapper {
        flex: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar */
    }
    .nav-menu-wrapper::-webkit-scrollbar { display: none; }
    
    .nav-menu, #primary-menu, .nav-menu-wrapper ul {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        height: 50px !important;
        width: max-content;
    }
    
    .nav-menu li, #primary-menu li, .nav-menu-wrapper ul li {
        width: auto !important;
        border: none !important;
    }
    
    .nav-menu li a, #primary-menu li a, .nav-menu-wrapper ul li a {
        padding: 0 15px !important;
        height: 50px !important;
        font-size: 12px !important;
    }

    .mobile-category-drawer-toggle {
        background: var(--primary-orange);
        color: var(--white);
        height: 50px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        cursor: pointer;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* Side Drawer */
    .mobile-category-drawer {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100%;
        background: var(--white);
        z-index: 10001;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 25px rgba(0,0,0,0.15);
        display: flex;
        flex-direction: column;
    }
    .mobile-category-drawer.open { left: 0; }
    
    .drawer-header {
        padding: 20px;
        background: var(--primary-purple);
        color: var(--white);
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .close-drawer { cursor: pointer; font-size: 18px; }
    
    .mobile-category-drawer ul.drawer-categories-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .drawer-section-label {
        background: #f8fafc;
        padding: 10px 20px;
        font-size: 11px;
        font-weight: 800;
        color: var(--primary-purple);
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid #e2e8f0;
    }

    .drawer-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .drawer-menu-list li a {
        display: block !important;
        padding: 15px 20px !important;
        color: var(--text-dark) !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    .drawer-menu-list li a:hover {
        background: #f1f5f9;
        color: var(--primary-orange) !important;
    }
    
    .drawer-categories-list li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        color: var(--text-dark);
        border-bottom: 1px solid #f1f5f9;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }
    .drawer-categories-list li a i { font-size: 10px; color: #cbd5e1; }
    
    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 10000;
        display: none;
        backdrop-filter: blur(2px);
    }
    .drawer-overlay.open { display: block; }

    /* Footer Info Cards Stack */
    .footer-info-cards {
        grid-template-columns: 1fr !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
    border-color: var(--primary-orange) !important;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.homepage-layout {
    display: flex;
    gap: 0;
    margin-top: 30px;
}

.homepage-layout .container {
    display: flex;
    gap: 0;
}

.category-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HERO CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.hero-carousel-wrapper {
    position: relative;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

.hero-slide {
    outline: none;
}

.slick-prev, .slick-next {
    width: 45px !important;
    height: 45px !important;
    background: rgba(0,0,0,0.35) !important;
    border-radius: 50% !important;
    z-index: 100 !important;
    transition: background 0.3s;
}

.slick-prev { left: 20px !important; }
.slick-next { right: 20px !important; }

.slick-prev:hover, .slick-next:hover {
    background: var(--primary-orange) !important;
}

.slick-prev:before, .slick-next:before {
    font-size: 20px !important;
    opacity: 1 !important;
    color: white !important;
}

.slick-dots {
    bottom: 15px !important;
}

.slick-dots li button:before {
    color: var(--white) !important;
    font-size: 12px !important;
    opacity: 0.5 !important;
}

.slick-dots li.slick-active button:before {
    color: var(--primary-orange) !important;
    opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE – PRODUCT GRID
   ═══════════════════════════════════════════════════════════════ */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: stretch; /* Force all items in a row to have same height */
}

.woocommerce ul.products::before, .woocommerce ul.products::after {
    display: none !important; /* Remove float clearing floats that break grid */
}

.woocommerce ul.products li.product {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 !important; /* Reset WC margins */
    width: 100% !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-purple);
}

.woocommerce ul.products li.product .product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 20px;
}

.woocommerce ul.products li.product .product-img-wrapper img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.woocommerce ul.products li.product:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    padding: 20px 20px 10px 20px;
    text-decoration: none;
    color: inherit;
}

.woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px; /* Ensures space for 2 lines */
}

.product-card-actions {
    margin-top: auto; /* THIS IS THE KEY: Push buttons to the bottom */
    padding: 15px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.view-product-btn, .add-to-quote-btn {
    margin: 0 !important;
    width: 100% !important;
    text-align: center;
    justify-content: center;
}

.view-product-btn {
    display: block;
    text-align: center;
    background: var(--primary-purple) !important;
    color: var(--white) !important;
    padding: 10px !important;
    margin: 0 15px 5px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: background 0.3s !important;
}

.view-product-btn:hover {
    background: #1e2070 !important;
}

.add-to-quote-btn {
    margin: 0 15px 15px !important;
    border-radius: 4px !important;
}

.add-to-quote-btn i {
    vertical-align: middle;
    margin-top: -2px;
}

.compare-btn {
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 15px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.compare-btn:hover {
    background: var(--primary-purple);
    color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════
   SHOP SIDEBAR & WIDGETS
   ═══════════════════════════════════════════════════════════════ */
.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.shop-sidebar .widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.shop-sidebar .widget-title {
    background: var(--primary-purple);
    color: var(--white);
    padding: 18px 20px !important;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
}

/* Category List Styling */
.product-categories {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.product-categories li {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
}

.product-categories li a {
    flex: 1 !important;
    display: block !important;
    padding: 14px 10px 14px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.product-categories li a:hover {
    background: #f8fafc !important;
    color: var(--primary-orange) !important;
    padding-left: 25px !important;
}

/* Handle the count span which is often outside the anchor */
.shop-sidebar .widget_product_categories ul.product-categories li.cat-item .count,
.shop-sidebar .widget_product_categories ul.product-categories li .count,
.product-categories .count {
    background: #f1f5f9 !important;
    color: var(--text-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 10px !important;
    border-radius: 20px !important;
    margin-right: 15px !important;
    margin-left: auto !important;
    min-width: 32px !important;
    text-align: center !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    line-height: 18px !important;
    height: 22px !important;
}

.product-categories li a:hover + .count,
.product-categories li a:hover ~ .count {
    background: var(--primary-orange) !important;
    color: var(--white) !important;
}

/* Recent Products Widget */
.widget_recent_products {
    padding: 0 !important; /* Managed by .widget */
}

.widget_recent_products .widget-title {
    background: var(--primary-purple) !important;
    color: var(--white) !important;
    margin-bottom: 15px !important;
}

.widget_recent_products_content {
    padding: 20px;
}

.recent-product-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.recent-product-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-product-item img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.recent-product-item .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-product-item a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.recent-product-item a:hover {
    color: var(--primary-orange);
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.woocommerce-ordering {
    margin: 0 !important;
}

.woocommerce-ordering select {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23111111%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
    padding-right: 40px;
    min-width: 220px;
}

.woocommerce-ordering select:hover {
    border-color: var(--primary-purple);
    background-color: var(--white);
}

.woocommerce-ordering select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.woocommerce-result-count { 
    margin: 0 !important; 
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE PRODUCT
   ═══════════════════════════════════════════════════════════════ */
.woocommerce-product-gallery {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.summary.entry-summary h1 {
    color: var(--text-dark);
    font-size: 24px;
    margin-bottom: 10px;
}

.summary.entry-summary .price {
    color: var(--primary-purple);
    font-size: 28px;
    font-weight: 700;
}

.woocommerce-tabs { margin-top: 50px; }

.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--border-color) !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-purple) !important;
}

.woocommerce-tabs ul.tabs li.active::after {
    background: var(--primary-purple) !important;
}

.woocommerce-breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px !important;
}

.woocommerce-breadcrumb a { color: var(--primary-purple); }

.single-product .product_title { font-weight: 700; margin-bottom: 15px; }
.single-product .price { display: block; margin-bottom: 25px; }
.single-product .cart .quantity { margin-right: 15px; }

.single-product .cart .quantity input {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.single-product .cart .single_add_to_cart_button {
    background: var(--primary-orange) !important;
    padding: 12px 40px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
}

.product-meta-item { font-size: 14px; margin-top: 10px; color: var(--text-muted); }
.product-meta-item strong { color: var(--text-dark); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.main-footer {
    background: var(--light-gray) !important;
    color: var(--text-dark) !important;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

/* Override old dark footer */
.site-footer {
    background: #fdfdfd !important;
    color: var(--text-muted) !important;
    padding: 80px 0 40px;
    margin-top: 80px;
    border-top: 1px solid #eeeeee;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.site-footer h4 {
    color: #111111 !important;
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
}

.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 25px;
    height: 3px;
    background: var(--primary-orange);
}

.footer-widget p {
    color: var(--text-muted) !important;
    font-size: 14px;
    line-height: 1.8;
}

.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: 12px; }

.footer-widget ul li a {
    color: var(--text-muted) !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: var(--primary-orange) !important;
    transform: translateX(5px);
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-socials a:hover {
    background: var(--primary-orange);
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-details-list span {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #f1f1f1;
    padding-top: 30px;
    margin-top: 60px;
    color: #999999 !important;
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.cat-img-circle img {
    transition: transform 0.5s ease;
}

.pop-cat-item:hover .cat-img-circle img {
    transform: scale(1.1);
}

/* Hide Unwanted Floating Elements */
.reels-button,
.ads-button,
.floating-ads-container,
[class*="reels"],
[class*="floating-ad"],
[class*="floating-btn"],
[class*="scroll-top"],
[class*="back-to-top"],
[id*="scroll-top"],
[id*="back-to-top"],
.fab-container,
.fab-button,
div[style*="position: fixed"][style*="right"],
div[style*="position: fixed"][style*="bottom"][style*="z-index"] {
    display: none !important;
    visibility: hidden !important;
}

/* --- Product Card Actions --- */
.product-card-actions {
    padding: 0 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.view-product-btn, .add-to-quote-btn {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    text-align: center !important;
    display: block !important;
}

.view-product-btn {
    background: #f1f5f9 !important;
    color: var(--primary-purple) !important;
    border: 1px solid #e2e8f0 !important;
}

.view-product-btn:hover {
    background: #e2e8f0 !important;
}

/* --- Category Page Header --- */
.wc-page-header {
    background: var(--primary-purple);
    padding: 60px 0;
    color: var(--white);
    margin-bottom: 40px;
    text-align: center;
}

.wc-page-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
}

.wc-breadcrumb {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.wc-breadcrumb a {
    color: var(--white);
}

/* --- Product Tabs & Reviews --- */
.woocommerce-tabs {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 40px;
}

.woocommerce-tabs ul.tabs {
    background: #f8fafc !important;
    padding: 0 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
    margin: 0 !important;
}

.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
    padding: 15px 25px !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    display: block !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-purple) !important;
    border-bottom: 2px solid var(--primary-purple) !important;
}

.woocommerce-Tabs-panel {
    padding: 30px !important;
}

#reviews #comments ol.commentlist li img.avatar {
    border-radius: 50%;
    width: 50px;
    border: 1px solid var(--border-color);
}

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 15px;
}

.comment-form .submit {
    background: var(--primary-purple) !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

/* --- Header Categories Dropdown --- */
.nav-container {
    position: relative;
}

.all-categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    border-radius: 0 0 8px 8px;
}

.all-categories-btn:hover .all-categories-dropdown {
    display: block;
}

.all-categories-dropdown ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.all-categories-dropdown ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s;
}

.all-categories-dropdown ul li a:hover {
    background: #f8fafc;
    padding-left: 25px;
    color: var(--primary-orange);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .homepage-layout {
        flex-direction: column;
    }

    .hero-carousel-wrapper {
        border-radius: 8px !important;
    }

    .hero-slide {
        height: 350px !important;
    }

    .hero-slide h2 {
        font-size: 32px !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-badges {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
        gap: 20px;
        padding: 30px !important;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 0;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .search-bar form {
        height: 45px;
    }

    .location-selector {
        display: none;
    }

    /* 2 Products per row as requested */
    .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }

    .cat-img-circle {
        width: 100px !important;
        height: 100px !important;
    }

    .cat-img-circle img {
        width: 60px !important;
        height: 60px !important;
    }

    .hero-slide {
        height: 300px !important; /* Maintaining a strong aspect ratio on mobile */
    }

    .hero-slide h2 {
        font-size: 26px !important;
    }

    .hero-slide p {
        font-size: 15px !important;
    }

    .hero-slide a {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }

    .about-intro {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 30px !important;
    }

    .impact-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .values-grid {
        grid-template-columns: 1fr !important;
    }

    .shop-sidebar {
        display: none; /* Hide sidebar on mobile for cleaner catalog */
    }

    .woocommerce-container {
        flex-direction: column;
    }

    .shop-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .woocommerce-ordering select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-slide {
        height: 250px !important;
    }

    .hero-slide h2 {
        font-size: 20px !important;
    }

    .impact-stats {
        grid-template-columns: 1fr !important;
    }
}
/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE – MY ACCOUNT
   ═══════════════════════════════════════════════════════════════ */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

/* Sidebar Navigation */
.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    text-decoration: none;
}

.woocommerce-MyAccount-navigation ul li a i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--primary-purple);
    color: var(--white);
}

.woocommerce-MyAccount-navigation ul li.is-active a i {
    color: var(--white);
}

.woocommerce-MyAccount-navigation ul li a:hover:not(.is-active) {
    background: #f8fafc;
    color: var(--primary-purple);
    padding-left: 30px;
}

/* Content Area */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
}

.woocommerce-MyAccount-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.woocommerce-MyAccount-content mark {
    background: transparent;
    color: var(--primary-purple);
    font-weight: 700;
    text-decoration: underline;
}

/* Dashboard Cards */
.account-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.account-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
    color: inherit !important;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--primary-purple);
}

.account-card i {
    font-size: 32px;
    color: var(--primary-purple);
    background: #f1f5f9;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 5px;
}

.account-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.account-card p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Tables Styling */
.woocommerce-orders-table,
.woocommerce-MyAccount-downloads,
.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.shop_table th {
    background: #f8fafc;
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.shop_table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.shop_table tr:last-child td {
    border-bottom: none;
}

.woocommerce-button.view {
    background: var(--primary-purple) !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* Forms in Account */
.woocommerce-EditAccountForm,
.woocommerce-address-fields,
.woocommerce-form-login,
.woocommerce-form-register {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

/* Adjust for side-by-side on large screens if both login and register are active */
.u-columns.col2-set {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.u-columns.col2-set .woocommerce-form-login,
.u-columns.col2-set .woocommerce-form-register {
    margin: 0;
    flex: 1;
}

.woocommerce-form-row {
    margin-bottom: 25px !important;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.woocommerce-Input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    background: #fdfdfd;
}

.woocommerce-Input:focus {
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.05);
}

.woocommerce-Button {
    background: var(--primary-purple) !important;
    color: white !important;
    padding: 14px 35px !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.woocommerce-Button:hover {
    background: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.woocommerce-form-login__rememberme {
    margin-top: -10px;
    margin-bottom: 20px;
    display: block;
}

.woocommerce-LostPassword {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.woocommerce-LostPassword a {
    color: var(--text-muted);
    text-decoration: underline;
}

.woocommerce-LostPassword a:hover {
    color: var(--primary-purple);
}

/* Tables Styling Enhancements */
.shop_table tr:hover td {
    background: #fcfcfc;
}

/* My Account Navigation Active State Dot */
.woocommerce-MyAccount-navigation ul li.is-active a {
    position: relative;
}

.woocommerce-MyAccount-navigation ul li.is-active a::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
}

/* Single Order View */
.woocommerce-order-details,
.woocommerce-customer-details {
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 30px;
}

.woocommerce-order-details__title,
.woocommerce-column__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Addresses Tab */
.woocommerce-Address {
    background: var(--white);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.woocommerce-Address-title h3 {
    margin: 0;
    font-size: 16px;
    color: var(--primary-purple);
}

.woocommerce-Address-title .edit {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-purple);
    text-decoration: underline;
}

address {
    font-style: normal;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 14px;
}

/* Information / Message Boxes */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-purple);
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
}

.woocommerce-info::before { content: "\f05a"; color: #3b82f6; }
.woocommerce-message::before { content: "\f058"; color: #10b981; }
.woocommerce-error::before { content: "\f06a"; color: #ef4444; }

.woocommerce-message {
    border-left-color: #10b981;
}

.woocommerce-error {
    border-left-color: #ef4444;
    list-style: none;
    margin-left: 0;
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    
    .woocommerce-MyAccount-navigation {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .u-columns.col2-set {
        flex-direction: column;
    }
}
