/* ============================================================
   AIToolMarket Custom Shop CSS - PREMIUM PURPLE EDITION
   Scoped to .custom-shop to prevent leaking
   *COMPLETE UI COLOR REFRESH - VIBRANT PURPLE ACCENT BY BREYMEN BETH*
   ============================================================ */

.custom-shop {
    /* Brand Colors - Premium Purple Palette */
    --primary: #0F172A;         /* Deep slate - kept for contrast */
    --primary-dark: #020617;    /* Even darker for depth */
    --accent-purple: #8B5CF6;   /* VIBRANT PURPLE - new primary accent */
    --accent-purple-light: #A78BFA; /* Lighter purple for hover states */
    --accent-purple-dark: #7C3AED; /* Deeper purple for active states */
    
    /* Secondary accents - kept for variety */
    --accent-blue: #3B82F6;     /* Kept as secondary accent */
    --accent-green: #10B981;    /* Emerald for badges */
    --accent-orange: #F59E0B;   /* Amber for ratings */

    /* Typography & Backgrounds */
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --bg-light: #F8FAFC;
    --white: #ffffff;
    --border: #E2E8F0;

    /* Premium UI Styling */
    --shadow-soft: 0 2px 10px rgba(139, 92, 246, 0.08); /* Purple tint */
    --shadow-hover: 0 10px 25px rgba(139, 92, 246, 0.15); /* Purple tint */
    --shadow-button: 0 4px 6px rgba(139, 92, 246, 0.2); /* Purple tint */
    --radius: 6px;
    --transition: all 0.3s ease;

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-accent: 'Poppins', sans-serif;

    font-family: var(--font-body);
    color: var(--text-primary);
}

/* ============================================================
   GLOBAL Z-INDEX FIXES FOR MEGA MENU
   ============================================================ */

.main-header,
.mobile-header,
.et-l--header,
header#main-header,
[class*="header"] {
    z-index: 10000 !important;
    position: relative;
}

.mega-menu,
.dropdown .mega-menu,
[class*="mega-menu"],
[class*="dropdown"]:hover [class*="mega-menu"] {
    z-index: 10002 !important;
}

.mobile-menu,
#mobile-menu,
[class*="mobile-menu"] {
    z-index: 20000 !important;
}

.dropdown,
.dropdown-toggle,
[class*="dropdown"] {
    z-index: 10001 !important;
}

/* ============================================================
   MOBILE HEADER CONTROL
   ============================================================ */
.custom-shop .nhs-mobile-header,
.custom-shop #nhs-mobile-header,
.custom-shop [class*="mobile-header"] {
    display: none !important;
}

@media (max-width: 980px) {
    .custom-shop .nhs-mobile-header,
    .custom-shop #nhs-mobile-header,
    .custom-shop [class*="mobile-header"] {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        margin-bottom: 15px;
        box-shadow: var(--shadow-soft);
    }
    
    .custom-shop .nhs-mobile-header h3 {
        font-size: 16px;
        margin: 0;
        color: var(--primary);
        font-family: var(--font-heading);
        font-weight: 600;
    }
    
    .custom-shop #nhs-close-btn {
        background: transparent;
        border: none;
        font-size: 24px;
        color: var(--accent-purple); /* Changed to purple */
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition);
    }
    
    .custom-shop #nhs-close-btn:hover {
        background: rgba(139, 92, 246, 0.1); /* Purple tint */
        transform: rotate(90deg);
    }
}

.custom-shop h1, .custom-shop h2, .custom-shop h3, .custom-shop h4, .custom-shop h5, .custom-shop h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 0;
}

.custom-shop h1 { font-size: 40px; font-weight: 700; line-height: 1.2; }
.custom-shop h2 { font-size: 32px; font-weight: 600; line-height: 1.3; }
.custom-shop h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.custom-shop h4 { font-size: 20px; font-weight: 600; line-height: 1.4; }

/* Wrapper & Layout */
.custom-shop .nhs-master-wrapper {
    background: var(--white);
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.custom-shop .nhs-main-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 50px;
    transition: grid-template-columns 0.3s ease;
}

.custom-shop .nhs-main-layout.sidebar-hidden {
    grid-template-columns: 100%;
    gap: 0;
}

.custom-shop .nhs-main-layout.sidebar-hidden .nhs-sidebar-col { display: none !important; }
.custom-shop .nhs-main-layout.sidebar-hidden .nhs-content-col { width: 100%; }
.custom-shop .nhs-main-layout.sidebar-hidden ~ .nhs-ctrl-bar #nhs-mobile-trigger { display: inline-flex; }

/* ============================================================
   ENHANCED CATEGORY PILLS - Purple accent
   ============================================================ */
.custom-shop .nhs-top-cat-bar {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--accent-purple); /* Changed to purple */
    margin-bottom: 25px;
    padding-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) var(--border); /* Purple scrollbar */
}

.custom-shop .nhs-top-cat-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    gap: 8px;
}

.custom-shop .nhs-top-cat-item:hover {
    background: var(--accent-purple); /* Purple on hover */
    color: var(--white);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.custom-shop .nhs-top-cat-item .category-badge {
    background: var(--accent-purple); /* Purple badges */
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.custom-shop .nhs-top-cat-item .badge-popular { background: var(--accent-purple); }
.custom-shop .nhs-top-cat-item .badge-new { background: var(--accent-green); }
.custom-shop .nhs-top-cat-item .badge-trending { background: var(--accent-purple-light); }
.custom-shop .nhs-top-cat-item .badge-pro { background: var(--primary); }
.custom-shop .nhs-top-cat-item .badge-bestseller { background: var(--accent-orange); }
.custom-shop .nhs-top-cat-item .badge-sale { background: #EF4444; }

.custom-shop .nhs-top-icon { 
    font-size: 16px;
    color: var(--accent-purple) !important; /* Purple icons */
    transition: var(--transition);
}

.custom-shop .nhs-top-cat-item:hover .nhs-top-icon { 
    color: var(--white) !important; 
}

/* Control Bar */
.custom-shop .nhs-ctrl-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.custom-shop .nhs-ctrl-left, .custom-shop .nhs-ctrl-right { display: flex; align-items: center; gap: 15px; }
.custom-shop .nhs-breadcrumbs { font-size: 14px; color: var(--text-secondary); }
.custom-shop .nhs-breadcrumbs a { color: var(--text-primary); text-decoration: none; font-weight: 500; }
.custom-shop .nhs-breadcrumbs a:hover { color: var(--accent-purple); } /* Purple hover */

.custom-shop #nhs-mobile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.custom-shop #nhs-mobile-trigger:hover { background: var(--primary-dark); }
.custom-shop #nhs-mobile-trigger i { color: var(--white) !important; }

@media (min-width: 981px) {
    .custom-shop #nhs-mobile-trigger { display: none; }
    body.nhs-full-width-active .custom-shop #nhs-mobile-trigger { display: inline-flex; }
}

.custom-shop .nhs-view-toggle { display: flex; gap: 5px; }
.custom-shop .nhs-grid-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}
.custom-shop .nhs-grid-btn.active, 
.custom-shop .nhs-grid-btn:hover { 
    background: var(--accent-purple); /* Purple active/hover */
    color: var(--white); 
    border-color: var(--accent-purple); 
}
.custom-shop .nhs-grid-btn i { color: inherit; }

/* ============================================================
   ENHANCED SIDEBAR TABS - Purple accent
   ============================================================ */
.custom-shop .nhs-widget {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 25px;
}

.custom-shop .nhs-widget-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-purple); /* Purple border */
    position: relative;
}

.custom-shop .nhs-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-purple-light); /* Lighter purple accent */
}

.custom-shop .nhs-vert-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-shop .nhs-vert-menu li {
    margin-bottom: 0;
}

.custom-shop .nhs-vert-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.custom-shop .nhs-vert-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-purple); /* Purple accent bar */
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.custom-shop .nhs-vert-menu li a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.custom-shop .nhs-vert-menu li a:hover::before {
    transform: scaleY(1);
}

.custom-shop .nhs-vert-menu li a .nhs-sidebar-icon { 
    margin-right: 12px; 
    color: var(--accent-purple) !important; /* Purple icons */
    font-size: 18px;
    transition: var(--transition);
}

.custom-shop .nhs-vert-menu li a:hover .nhs-sidebar-icon {
    color: var(--white) !important;
}

.custom-shop .nhs-vert-menu li a .count {
    margin-left: auto;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.custom-shop .nhs-vert-menu li a:hover .count {
    background: rgba(139, 92, 246, 0.2); /* Purple tint */
    color: var(--white);
    border-color: var(--accent-purple-light);
}

/* Active state for categories */
.custom-shop .nhs-vert-menu li a.active-cat {
    background: var(--accent-purple); /* Purple active */
    color: var(--white);
    border-color: var(--accent-purple);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.custom-shop .nhs-vert-menu li a.active-cat .nhs-sidebar-icon {
    color: var(--white) !important;
}

.custom-shop .nhs-vert-menu li a.active-cat .count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   PRODUCTS GRID & DIVI OVERRIDES
   ============================================================ */
.custom-shop .nhs-products-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 0;
    margin: 0;
    list-style: none;
}

.custom-shop .nhs-products-grid ul.products::before,
.custom-shop .nhs-products-grid ul.products::after {
    display: none !important;
    content: none !important;
}

/* 4-Column Expanded Mode */
.custom-shop .nhs-main-layout.sidebar-hidden .nhs-products-grid ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
}

.custom-shop .nhs-products-grid ul.products li.product,
.custom-shop .nhs-products-grid ul.products li.product.first,
.custom-shop .nhs-products-grid ul.products li.product.last,
.custom-shop .nhs-products-grid ul.products li.product:nth-child(n) {
    clear: none !important; 
    width: 100% !important; 
    margin: 0 !important;   
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.custom-shop .nhs-products-grid ul.products li.product:hover {
    box-shadow: 0 20px 30px rgba(139, 92, 246, 0.15); /* Purple shadow */
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent-purple-light);
}

.custom-shop .et_overlay {
    display: none !important;
}

.custom-shop .nhs-products-grid ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.custom-shop .nhs-products-grid ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
    transform: scale(1);
}

.custom-shop .nhs-products-grid ul.products li.product:hover img {
    transform: scale(1.08) !important;
}

.custom-shop .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 16px; 
    font-weight: 600;
    color: var(--text-primary);
    margin: 10px 0;
    line-height: 1.4;
    transition: var(--transition);
}

.custom-shop li.product:hover .woocommerce-loop-product__title {
    color: var(--accent-purple); /* Purple title on hover */
}

/* Price styling */
.custom-shop .price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.custom-shop .price del {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
    opacity: 0.7;
}

.custom-shop .price ins {
    text-decoration: none;
    color: var(--accent-purple) !important; /* Purple sale price */
    font-weight: 700;
}

/* Prevent Sale Badges in Global Header / Mega Menu */
#main-header .onsale,
.et_pb_menu .onsale {
    display: none !important;
}

/* ============================================================
   PREMIUM SALE BADGE - Clean, premium, no dark background
   ============================================================ */
.woocommerce span.onsale,
.woocommerce-page span.onsale,
.custom-shop .onsale,
.custom-shop .woocommerce span.onsale,
.custom-shop .woocommerce-page span.onsale,
.custom-shop .woocommerce ul.products li.product .onsale,
.custom-shop .woocommerce-page ul.products li.product .onsale,
.custom-shop .woocommerce div.product span.onsale,
.custom-shop .woocommerce-page div.product span.onsale {
    /* Override all existing styles */
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    margin: 0 !important;
    z-index: 5 !important;
    
    /* Clean premium look - no dark background */
    background: var(--white) !important;
    color: var(--accent-purple-dark) !important;
    
    /* Typography */
    font-family: var(--font-accent) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
    
    /* Shape & Effects - subtle and elegant */
    padding: 5px 12px !important;
    border-radius: 20px !important;
    min-height: auto !important;
    min-width: auto !important;
    border: 1.5px solid var(--accent-purple) !important;
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.1) !important;
    
    /* No dark background, no left border */
    border-left: 1.5px solid var(--accent-purple) !important;
}

/* Buttons */
.custom-shop .nhs-btn-wrapper { margin-top: auto; width: 100%; }
.custom-shop .nhs-view-btn, .custom-shop .nhs-cart-icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: var(--accent-purple); /* Purple buttons */
    color: var(--white);
    padding: 12px;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: var(--shadow-button);
    border: none;
}
.custom-shop .nhs-view-btn:hover, .custom-shop .nhs-cart-icon-btn:hover { 
    background: var(--accent-purple-dark); /* Darker purple on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(139, 92, 246, 0.3);
}
.custom-shop .nhs-view-btn i, .custom-shop .nhs-cart-icon-btn i { color: var(--white) !important; }

/* Mobile Sidebar Overlay */
.custom-shop .nhs-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(139, 92, 246, 0.2); /* Purple tint overlay */
    backdrop-filter: blur(2px);
    z-index: 9998;
}

/* ============================================================
   ENHANCED "VIEW ALL AI TOOLS" BUTTON - Purple version
   ============================================================ */
.custom-shop .nhs-view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
    color: var(--white);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.custom-shop .nhs-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, var(--accent-purple-dark), var(--accent-purple));
}

.custom-shop .nhs-view-all-btn i {
    transition: transform 0.3s ease;
    color: var(--white) !important;
    font-size: 13px;
}

.custom-shop .nhs-view-all-btn:hover i {
    transform: translateX(5px);
}

/* ============================================================
   DROPDOWN SORTING ENHANCEMENT - Purple accent
   ============================================================ */
.custom-shop .nhs-ctrl-right select,
.custom-shop .orderby {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 30px 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B5CF6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.custom-shop .nhs-ctrl-right select:hover,
.custom-shop .orderby:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.custom-shop .nhs-ctrl-right select:focus,
.custom-shop .orderby:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* ============================================================
   TRUST SIDEBAR - Purple accents
   ============================================================ */
.custom-shop .nhs-sidebar-trust {
    background: linear-gradient(135deg, var(--white), var(--bg-light));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: var(--shadow-soft);
}

.custom-shop .nhs-trust-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-purple); /* Purple border */
    color: var(--text-primary);
}

.custom-shop .nhs-trust-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.custom-shop .nhs-trust-row:last-child {
    margin-bottom: 0;
}

.custom-shop .nhs-trust-row:hover {
    transform: translateX(5px);
    border-color: var(--accent-purple); /* Purple border on hover */
    box-shadow: var(--shadow-soft);
}

.custom-shop .nhs-trust-row i,
.custom-shop .nhs-trust-row .fa-solid,
.custom-shop .nhs-trust-row .fa-regular,
.custom-shop .nhs-trust-row .fa-brands {
    font-size: 22px;
    color: var(--accent-purple) !important; /* Purple icons */
    flex-shrink: 0;
}

.custom-shop .nhs-t-text {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.custom-shop .nhs-t-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 2px;
}

/* ============================================================
   MINI PRODUCTS WIDGET (TOP PRODUCTS)
   ============================================================ */
.custom-shop .nhs-mini-products {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-shop .nhs-mini-products li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.custom-shop .nhs-mini-products li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.custom-shop .nhs-mini-img {
    flex: 0 0 60px;
}

.custom-shop .nhs-mini-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.custom-shop .nhs-mini-products li:hover .nhs-mini-img img {
    border-color: var(--accent-purple);
}

.custom-shop .nhs-mini-info {
    flex: 1;
}

.custom-shop .nhs-mini-info a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: var(--transition);
}

.custom-shop .nhs-mini-info a:hover {
    color: var(--accent-purple); /* Purple hover */
}

.custom-shop .nhs-mini-rating {
    margin-bottom: 5px;
}

.custom-shop .nhs-mini-rating .star-rating {
    margin: 0;
}

.custom-shop .nhs-mini-info .price {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--primary);
}

/* ============================================================
   SHOP FOOTER BADGES - Purple accents
   ============================================================ */
.custom-shop .nhs-shop-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: linear-gradient(135deg, var(--white), var(--bg-light));
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 40px;
    box-shadow: var(--shadow-soft);
}

.custom-shop .nhs-footer-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.custom-shop .nhs-footer-badge:hover {
    transform: translateY(-3px);
    border-color: var(--accent-purple); /* Purple border */
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.1);
}

.custom-shop .nhs-footer-badge i,
.custom-shop .nhs-footer-badge .fa-solid,
.custom-shop .nhs-footer-badge .fa-regular,
.custom-shop .nhs-footer-badge .fa-brands {
    font-size: 28px;
    color: var(--accent-purple) !important; /* Purple icons */
}

.custom-shop .nhs-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-shop .nhs-badge-text h5 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.custom-shop .nhs-badge-text span {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* ============================================================
   WOOCOMMERCE ENHANCEMENTS
   ============================================================ */

/* Sticky Sidebar Desktop */
@media (min-width: 981px) {
    .custom-shop .nhs-sidebar-col {
        position: -webkit-sticky;
        position: sticky;
        top: 40px;
        align-self: flex-start;
    }
}

/* WooCommerce Notices - Purple theme */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-radius: var(--radius) !important;
    border-top-color: var(--accent-purple) !important; /* Purple border */
    box-shadow: var(--shadow-soft);
}
.woocommerce-message::before { color: var(--accent-purple) !important; }

/* Quantity Field */
.woocommerce .quantity input.qty {
    width: auto !important;
    min-width: 60px !important;
    max-width: 100px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.woocommerce .quantity input:focus {
    border-color: var(--accent-purple);
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

/* Mobile Cart */
@media (max-width: 768px) {
    .woocommerce div.product form.cart {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px;
    }
    .woocommerce div.product form.cart .quantity { flex: 0 0 auto; }
    .woocommerce div.product form.cart button { flex: 1 1 auto; white-space: nowrap; }
}

/* Variation Swatches - Purple theme */
.woo-variation-swatches .variable-items-wrapper li {
    width: 40px;
    height: 40px;
    border-radius: 8px !important;
}
.woo-variation-swatches .variable-items-wrapper li.selected {
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--accent-purple) !important;
}
.woo-variation-swatches .variable-items-wrapper li::before {
    background-color: var(--accent-purple) !important;
}

/* Search */
.gtranslate_wrapper, 
#et-boc .aws-container .aws-search-field {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-soft) !important;
}
#et-boc .aws-container .aws-search-field:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

/* Product Attributes - Purple theme */
.woocommerce-product-attributes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}
.woocommerce-product-attributes th {
    background: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 12px 15px !important;
    width: 35%;
    border-left: 3px solid var(--accent-purple); /* Purple border */
}
.woocommerce-product-attributes td {
    background: var(--white);
    color: var(--text-secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 15px !important;
    border: 1px solid var(--border);
    border-left: none;
}

/* Price Suffix */
.price-btw-suffix, .woocommerce-price-suffix {
    font-size: 0.75em !important; 
    font-weight: normal !important; 
    color: var(--text-secondary) !important; 
    margin-left: 4px;
}

/* ============================================================
   STAR RATING - Centered
   ============================================================ */
.woocommerce ul.products li.product .star-rating {
    font-size: 0.857em;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.woocommerce .products .star-rating,
.woocommerce-page .products .star-rating {
    margin: 8px auto 0.3em auto !important;
    display: block !important;
    float: none !important;
}

.woocommerce .star-rating {
    float: none;
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: 'WooCommerce';
    margin: 0 auto;
}

/* Hide review count */
.shop-rating-count {
    display: none !important;
}

/* Star color - keep orange for contrast */
.star-rating span::before,
.star-rating::before {
    color: #F59E0B !important;
}

/* Product Bundles */
.bundle_form .bundled_products { gap: 10px !important; }
.bundled_product_images img { border-radius: 6px !important; }
.bundled_product_title a { color: var(--text-primary) !important; transition: var(--transition); }
.bundled_product_title a:hover { color: var(--accent-purple) !important; }

/* Print Styles */
@media print {
    html, body, #page-container, #main-content, .et_pb_section {
        display: block !important;
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }
    #main-header, #main-footer, .no-print { display: none !important; }
}

/* ============================================================
   RESPONSIVE LAYOUT
   ============================================================ */
@media (max-width: 980px) {
    .custom-shop .nhs-main-layout { 
        grid-template-columns: 1fr; 
    }
    
    /* Mobile Sidebar - Below header */
    .custom-shop .nhs-sidebar-col {
        position: fixed;
        top: 80px;
        left: -320px;
        width: 300px; 
        height: calc(100vh - 80px);
        background: var(--white);
        z-index: 9999;
        overflow-y: auto;
        padding: 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 20px rgba(139, 92, 246, 0.15);
    }
    
    .custom-shop .nhs-sidebar-col.active { 
        left: 0; 
    }
    
    .custom-shop .nhs-sidebar-col .nhs-widget:first-child {
        margin-top: 0;
    }
    
    .custom-shop .nhs-overlay.active { 
        display: block; 
    }
    
    .custom-shop .nhs-products-grid ul.products { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px !important;
    }
    
    .custom-shop .nhs-grid-btn.desktop-only { 
        display: none !important; 
    }

    /* Mobile Footer - Centered */
    .custom-shop .nhs-shop-footer {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center;
        padding: 20px;
        gap: 15px;
    }
    
    .custom-shop .nhs-footer-badge {
        width: calc(50% - 8px);
        margin-bottom: 0;
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .custom-shop .nhs-footer-badge i { 
        font-size: 24px; 
    }
    
    .custom-shop .nhs-badge-text {
        align-items: center;
        text-align: center;
    }
    
    .custom-shop .nhs-badge-text h5 { 
        font-size: 13px; 
        margin: 0;
    }
    
    .custom-shop .nhs-badge-text span { 
        font-size: 11px; 
    }
}

@media (max-width: 767px) {
    .custom-shop .nhs-products-grid ul.products { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important;
    }
    
    .custom-shop .nhs-products-grid ul.products li.product {
        padding: 15px !important; 
    }

    .custom-shop .woocommerce-loop-product__title {
        font-size: 14px; 
    }

    .custom-shop .nhs-ctrl-bar { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 15px; 
    }
    
    .custom-shop .nhs-ctrl-left, 
    .custom-shop .nhs-ctrl-right { 
        justify-content: space-between; 
    }

    /* Single column footer for small screens */
    .custom-shop .nhs-shop-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 20px;
    }
    
    .custom-shop .nhs-footer-badge {
        width: 100%;
        max-width: 280px;
        margin-bottom: 10px;
    }
    
    .custom-shop .nhs-footer-badge:last-child {
        margin-bottom: 0;
    }
}