/* Global Reset & Stability */
*,
::before,
::after {
    box-sizing: border-box;
}

/* Core Layout Stability */
html,
body {
    /* height: 100% !important; */
    margin: 0;
    padding: 0;
}

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased;
}

#main-content-container {
    flex: 1 0 auto !important;
}

.footer {
    flex-shrink: 0 !important;
}

/* Keep the full ecommerce header stack visible while scrolling */
.header-stack {
    position: relative;
}

/* Force fixed header layers with CSS variable offsets */
.top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 15000;
    height: 32px;
    line-height: 32px;
    overflow: hidden;
    background: #00512C;
    color: #fff;
    /* Hardware acceleration & layout containment */
    transform: translateZ(0);
    will-change: transform;
    contain: layout size;
}

/* Marquee styling */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 45s linear infinite;
    will-change: transform;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.top-bar-text {
    padding: 0 80px;
    letter-spacing: 1.2px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
}

header.modern-header {
    position: fixed !important;
    top: 32px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 16000 !important;
    background: #fff;
    height: 90px;
    border-bottom: 1px solid #f0f0f0;
    /* Optimization: Force stable layer */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    contain: layout size;
}

#main-content-container {
    /* top bar (32px) + header (90px) */
    margin-top: 122px;
}

/* ---- Navigation underline handled by core rule above; no overrides needed ---- */

/* Header stack wrapper */
#header-stack {
    position: relative;
    display: block;
    width: 100%;
}

.vlog-card {
    border-radius: 4px !important;
    overflow: hidden;
}

:root {
    --primary-blue: #00512C;
    --light-blue: #E3F2FD;
    --dark-blue: #00512C;
    --text-dark: #333;
    --text-light: #666;
    --white: #FFFFFF;
    --black: #000000;
    --header-bg: #ffffff;
    --header-accent: #00512C;
    --header-text: #1a1a1a;
    --header-text-muted: #666666;
    --header-border: #f0f0f0;
    --header-height: 90px;
    --top-bar-height: 32px;
    --nav-height: 56px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --drawer-z: 30000;
    --overlay-z: 29999;
    --teal-primary: #00512C;
    --teal-dark: #004124;
}

/* Mobile/tablet: smaller header stack */
@media (max-width: 992px) {
    .top-bar {
        height: 0px !important;
        line-height: 0px !important;
        display: none !important;
    }

    header.modern-header {
        top: 0px !important;
        height: 80px !important;
        background: #fff !important;
    }

    .header-categories,
    .main-nav {
        display: none !important;
    }

    #main-content-container {
        margin-top: 80px !important;
    }

    .mobile-searchbar {
        top: 80px;
        z-index: 15900;
    }
}

/* Reserve vertical scrollbar space on all pages to prevent layout shift between routes */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    /* Prevent layout shifts during page load */
    height: auto;
}

/* Ensure consistent page structure */
body {
    min-height: 100vh;
    /* Prevent content jumping */
    position: relative;
    /* Prevent layout shifts during page load */
    overflow-x: hidden;
}

/* Header stability - prevent shake */
.top-bar,
header.modern-header,
nav.main-nav {
    /* Force hardware acceleration for smooth rendering */
    transform: none;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Prevent layout shifts */
    contain: layout style;
    /* Ensure consistent positioning */
    position: fixed !important;
    /* Prevent any movement or shaking */
    top: 0;
    left: 0;
    right: 0;
    /* Force consistent rendering */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), backdrop-filter 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Smart Header Logic CSS */
body.hide-upper-headers .top-bar {
    transform: translateY(-100%) !important;
    pointer-events: none;
}

body.hide-upper-headers header.modern-header {
    transform: translateY(-32px) !important;
    /* Ensures the main header stays fully clickable while sticky */
}

/* Prevent layout shifts on all major elements */
* {
    box-sizing: border-box;
}

/* Ensure consistent rendering */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent header shake from external factors */
.top-bar *,
header.modern-header *,
nav.main-nav * {
    /* Prevent any transforms that might cause shake */
    transform: none;
    /* Ensure consistent rendering */
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}

/* Exception: Allow marquee to work */
.top-bar marquee {
    transform: none !important;
}

/* Force header elements to maintain position */
.top-bar,
header.modern-header,
nav.main-nav {
    /* Prevent any external CSS from affecting position */
    position: fixed !important;
    /* Lock transforms to prevent shake */
    transform: none;
    /* Prevent any margin/padding changes */
    margin: 0 !important;
    /* Ensure consistent z-index - above all overlays */
    z-index: 15000 !important;
}

header.modern-header {
    z-index: 16000 !important;
}

nav.main-nav {
    z-index: 14800 !important;
}

/* Slightly widen the global container on large screens */
@media (min-width: 1400px) {

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1680px;
    }
}

/* Desktop: header + nav containers take 80% width site-wide */
@media (min-width: 1200px) {

    .top-bar .container,
    .modern-header .container,
    .main-nav .container,
    .home-hero .container,
    .popular-categories .container,
    .top-products>.container,
    .promo-section>.container {
        width: 80% !important;
        max-width: 80% !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Make homepage hero stretch wider with small gutters */
.home-hero>.container {
    max-width: 80%;
    padding-left: 0px;
    padding-right: 0px;
}

/* Prevent page shake/vibration during navigation */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    /* Prevent layout shifts */
    overflow-x: hidden;
    /* Stabilize content during navigation */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Remove problematic transforms that can cause shaking */
    transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}

/* Smooth navigation transitions */
.nav-link {
    transition: color 0.3s ease-in-out;
    /* Prevent click vibration */
    -webkit-tap-highlight-color: transparent;
    /* Prevent any transforms that could cause shake */
    transform: none;
}

/* Prevent layout shift during page load */
.container,
.row,
.col-lg-3,
.col-lg-6,
.col-lg-8,
.col-md-4,
.col-md-5,
.col-md-7,
.col-md-8,
.col-md-12 {
    /* Stabilize grid layout without transforms */
    position: relative;
}

/* Smooth header transitions - optimized for stability */
.modern-header,
.main-nav,
.top-bar {
    /* Ensure header stability */
    transform: none;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Prevent layout shifts */
    contain: layout style;
}

/* Explicitly order header layers to ensure dropdown overlays navbar border */
/* z-index controlled in fixed header block below */

/* Prevent image loading shifts */
.logo-img {
    height: 55px !important;
    width: 140px !important;
    object-fit: contain;
    /* Force decoding sync */
    content-visibility: auto;
}

.category-image img,
.product-image {
    /* Reserve space for images */
    min-height: 60px;
    /* Smooth image loading */
    transition: opacity 0.2s ease-in-out;
}

/* Smooth button interactions */
.action-btn,
.search-btn,
.btn {
    /* Prevent button shake on click */
    -webkit-tap-highlight-color: transparent;
    /* Smooth transitions - single property to prevent conflicts */
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    /* Prevent any transforms that could cause shake */
    transform: none;
}

/* Prevent content jumping during navigation */
.banner-slide,
.hero-section,
.featured-categories,
.top-products {
    /* Stabilize major sections without transforms */
    position: relative;
}


.product-description {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modern Header Styles */
.modern-header {
    background: var(--header-bg) !important;
    border-bottom: 1px solid var(--header-border) !important;
    height: var(--header-height) !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-sm) !important;
    position: fixed !important;
    top: var(--top-bar-height) !important;
    left: 0;
    right: 0;
    z-index: 16000 !important;
}

.search-container {
    position: relative !important;
    width: 100% !important;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 60px 0 25px;
    border: 1px solid transparent;
    border-radius: 8px; /* Modern subtle rounding instead of full pill */
    background: #f4f5f7; /* High-end subtle gray */
    font-size: 14px;
    font-weight: 400;
    color: var(--header-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.search-input:focus {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Soft, elegant shadow */
}

.search-btn {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    border: none !important;
    border-radius: 50% !important;
    background: transparent !important; /* Remove heavy green background */
    color: var(--header-text-muted) !important; /* Sophisticated gray icon */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 5 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search-btn:hover {
    background: #e9ecef !important;
    color: var(--header-text) !important;
    box-shadow: none !important;
}

/* Redesigned Account Section */
.account-toggle {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    background: transparent !important; /* Remove background */
    border: none !important; /* Minimalist approach - remove border */
    color: var(--header-text) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.account-toggle:hover {
    background: #f4f5f7 !important; /* Soft hover effect */
    color: var(--header-accent) !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: none; /* Removed heavy shadow */
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none; /* Minimalist approach - remove border */
    background: transparent; /* Remove background */
    color: var(--header-text);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.mobile-search-toggle {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-search-toggle {
        display: flex !important;
    }
}

.action-btn:hover {
    background: #f4f5f7; /* Soft hover effect */
    border-color: transparent;
    color: var(--header-accent);
    transform: translateY(-2px);
    box-shadow: none; /* Removed heavy shadow */
}

.action-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--header-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 500; /* Less heavy text */
    min-width: 16px;
    height: 16px;
    border-radius: 8px; /* Tighter badge */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
}

/* Header Categories Navigation */
.header-categories {
    flex-shrink: 0; /* Prevent links from squishing when search bar gets smaller */
}

.nav-links {
    gap: 30px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    font-size: 13px; /* Slightly refined text size */
    font-weight: 500; /* Elegantly balanced weight */
    letter-spacing: 0.8px; /* Add breathing room between letters */
    color: var(--header-text);
    padding: 16px 0;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    line-height: var(--nav-height, 56px);
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--header-accent);
}

.nav-item.active .nav-link {
    color: var(--header-accent);
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px; /* Thinner, more elegant underline */
    background: var(--header-accent);
    border-radius: 2px 2px 0 0;
}

/* Dropdown Panel Styling */
.nav-item-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    overflow: hidden;
}

/* Premium Accent Line at top */
.dropdown-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--header-accent), transparent);
    opacity: 0.8;
}

.dropdown-panel ul,
.dropdown-panel li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-item-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-panel ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dropdown-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dropdown-link {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    color: var(--header-text) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative !important;
    white-space: nowrap !important;
}

/* Premium Interactive Bullet */
.dropdown-link::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--header-accent);
    border-radius: 50%;
    margin-right: 14px;
    opacity: 0.3;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.dropdown-link:hover {
    background: rgba(0, 81, 44, 0.04) !important;
    color: var(--header-accent) !important;
    padding-left: 20px !important;
}

.dropdown-link:hover::before {
    opacity: 1;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(0, 81, 44, 0.2);
}

/* Mobile Drawer Core Styles */
.mobile-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: var(--overlay-z) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s ease !important;
}

.mobile-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    left: auto !important;
    width: 320px !important;
    height: 100% !important;
    background: #fff !important;
    z-index: var(--drawer-z) !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.1, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
}

.mobile-drawer.open {
    right: 0 !important;
}

.drawer-header {
    background: #fff;
    z-index: 10;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.drawer-content::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Chrome/Safari */

/* Drawer quick action buttons (Wishlist / Cart) */
.drawer-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
    border-radius: 16px;
    text-decoration: none !important;
    color: #222 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
}

.drawer-quick-btn i {
    color: var(--header-accent);
}

.drawer-quick-btn:hover {
    background: #e8f5ef;
    border-color: var(--header-accent);
    color: var(--header-accent) !important;
}

/* Category item arrow fix — keep arrow on the right */
.drawer-category-item .drawer-nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
}

.drawer-category-item .category-arrow {
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.drawer-category-item.has-children.open .category-arrow {
    transform: rotate(90deg);
}

.nav-section-label {
    letter-spacing: 1.5px !important;
    color: var(--header-accent) !important;
    font-size: 11px !important;
    margin-top: 25px !important;
    margin-bottom: 12px !important;
    padding-left: 10px !important;
    border-left: 3px solid var(--header-accent);
    line-height: 1;
}

.drawer-nav-link {
    color: var(--header-text) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    background: transparent;
}

.drawer-nav-link i {
    width: 20px;
    font-size: 18px;
    color: var(--header-accent) !important;
    opacity: 0.7;
}

.drawer-nav-link:hover,
.drawer-nav-link.active {
    background: rgba(0, 81, 44, 0.05) !important;
    color: var(--header-accent) !important;
}

.drawer-nav-link.active i {
    opacity: 1;
}

.drawer-sublinks {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.drawer-sublinks.show {
    max-height: 1200px;
    padding-bottom: 8px;
}

.drawer-sublinks .drawer-nav-link {
    padding-left: 45px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    position: relative;
    color: var(--header-text-muted) !important;
}

/* Dot for sublinks in drawer */
.drawer-sublinks .drawer-nav-link::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.2s ease;
}

.drawer-sublinks .drawer-nav-link:hover::before {
    background: var(--header-accent);
    transform: translateY(-50%) scale(1.5);
}

.nav-section-label {
    letter-spacing: 1px;
    color: var(--header-accent) !important;
    opacity: 0.8;
}

.drawer-category-item.has-children.open {
    background: #fafafa;
}

.drawer-category-item .category-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-category-item.open .category-arrow {
    transform: rotate(90deg);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--teal-primary);
    border-radius: 25px;
    color: var(--teal-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Ensure the login pill is not forced into a circle by .action-btn */
.action-btn.login-btn {
    width: auto;
    height: auto;
    border-radius: 25px;
}

.login-btn:hover {
    background: var(--teal-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tweak icon size/color inside login button */
.login-btn svg {
    color: currentColor;
}

/* Make modals always appear above everything */
.modal {
    z-index: 17000;
    /* Above offcanvas and header */
}

.modal-backdrop {
    z-index: 16990;
    /* Above offcanvas and header */
}

/* Ensure account dropdown shows above nav borders */
.dropdown-menu {
    z-index: 14750;
    /* above category submenu but below header */
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.login-text {
    font-size: 14px;
    font-weight: 500;
}

/* Main Navigation Base */
.main-nav {
    background: var(--white);
    padding: 0;
}

/* Centralized: Fixed Header Stack via wrapper */
#header-stack,
#header-spacer {
    display: none;
}

/* Children flow normally inside the fixed wrapper */
/* Content offset is set dynamically in JS */

/* Removed hard override duplication; use centralized block above */
@media (max-width: 576px) {
    .main-nav {
        padding: 0 !important;
    }
}

/* Mobile header toggle button spacing */
.mobile-menu-toggle {
    order: 2;
}

.mobile-search-toggle {
    order: 1;
}

/* Mobile Header: Show Search, Cart, Menu. Hide Profile, Wishlist. */
@media (max-width: 992px) {

    /* Hide Wishlist and Account on mobile header */
    .header-actions>a.action-btn[title="Wishlist"],
    .header-actions>.dropdown {
        display: none !important;
    }

    /* Show Cart, Search, and Menu buttons */
    .header-actions>a.action-btn[title="Cart"],
    .mobile-search-toggle,
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Refined Mobile Cart Badge: Smaller, perfectly centered flex badge */
    .header-actions>a.action-btn[title="Cart"] .badge {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #00512c;
        /* Brand dark green */
        color: white;
        min-width: 16px;
        height: 16px;
        padding: 0;
        border-radius: 50%;
        font-size: 10px;
        position: absolute;
        top: -4px;
        right: -4px;
        border: 1.5px solid white;
        font-weight: 700;
        z-index: 2;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

.mobile-searchbar {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 15900;
    /* below header but above other content */
}

.mobile-searchbar.open {
    opacity: 1;
}

.mobile-search-form {
    position: relative;
    padding: 10px 0 12px;
}

.mobile-search-input {
    width: 100%;
    padding: 10px 42px 10px 14px;
    border: 1px solid var(--gray-medium);
    border-radius: 10px;
    font-size: 14px;
}

.mobile-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-btn svg {
    width: 18px;
    height: 18px;
    margin: auto;
}

/* Move border to the inner container so it spans only 80% */
/* .main-nav > .container {
    border-bottom: 1px solid #E5E7EB;
    border-left: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
} */
@media (max-width: 992px) {
    .main-nav>.container {
        border: none !important;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    position: relative;
    /* Prevent header shake */
    transform: none;
    will-change: auto;
    justify-content: center;
}

/* Responsive gap adjustment for smaller screens */
@media (max-width: 1200px) {
    .nav-links {
        gap: 30px;
    }
}


.nav-item {
    position: relative;
}

.nav-category-label {
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 14px;
    /* align with nav link baseline and container border */
}

/* Ensure navbar links use brand color over Bootstrap defaults */
.main-nav .nav-link,
.nav-links .nav-link {
    color: var(--text-dark) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 0 14px;
    /* extra bottom space for active underline */
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block;
    position: relative;
}

.main-nav .nav-link:visited,
.nav-links .nav-link:visited {
    color: var(--text-dark) !important;
}

.nav-item.active .nav-link {
    color: var(--teal-primary) !important;
    font-weight: 600;
}

.nav-item.active .nav-link::after {
    /* Remove active underline to avoid flicker */
    content: none;
}

.main-nav .nav-link:hover,
.nav-links .nav-link:hover {
    color: var(--teal-primary) !important;
}

/* Improve keyboard focus visibility */
.main-nav .nav-link:focus,
.main-nav .nav-link:focus-visible,
.nav-links .nav-link:focus,
.nav-links .nav-link:focus-visible {
    outline: none;
    box-shadow: none;
    /* remove click/focus border */
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.language-selector:hover {
    background: rgba(139, 92, 246, 0.1);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--teal-primary);
    color: var(--white);
    border-color: var(--teal-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.35);
}

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--red-primary);
    color: var(--white);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    padding: 0 4px;
    box-sizing: border-box;
}

/* Top Wishlist Button for All Product Cards */
.product-wishlist-top {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-wishlist-top:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(254, 242, 242, 0.95);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.product-wishlist-top.active {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(254, 242, 242, 0.95);
}

.product-wishlist-top i {
    font-size: 16px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.product-wishlist-top:hover i {
    opacity: 0.8;
}
/* Product Card Premium Enhancements */
.product-discount-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
}

.save-badge {
    display: inline-block;
    background: #00512C;
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-cart-btn {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.floating-cart-btn {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    width: 38px !important;
    height: 38px !important;
    background: #fff !important;
    color: #00512C !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    z-index: 10 !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
}

.product-card:hover .floating-cart-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.floating-cart-btn:hover {
    background: #00512C !important;
    border-color: #00512C !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

.product-card {
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    transition: all 0.4s ease !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.product-card { 
    background: #fff !important; 
    border: 1px solid #e5e7eb !important; 
    box-shadow: none !important; 
    border-radius: 4px !important;
    overflow: hidden !important;
    transition: border-color 0.3s ease !important;
}
.product-card:hover { border-color: #00512C !important; }

.product-image-container { 
    position: relative !important; 
    height: 380px !important; 
    border-radius: 4px 4px 0 0 !important; 
    overflow: hidden !important; 
    background: #fff !important; 
}

@media (max-width: 991.98px) { 
    .product-image-container { 
        height: auto !important; 
        aspect-ratio: 3 / 4 !important; 
    }
    .product-card-info { padding: 10px 10px 12px !important; gap: 4px !important; }
    .product-card .product-title { font-size: 0.82rem !important; line-height: 1.35 !important; }
    .product-card .current { font-size: 0.95rem !important; font-weight: 800 !important; }
    .product-card .original { font-size: 0.78rem !important; }
    .product-card-image { height: auto !important; aspect-ratio: 3 / 4 !important; }
}

@media (max-width: 480px) {
    .product-card .product-title { font-size: 0.78rem !important; }
    .product-card .current { font-size: 0.9rem !important; }
    .product-card-info { padding: 8px !important; }
}

.product-image { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    display: block !important; 
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1) !important;
    will-change: transform !important;
}

.product-card:hover .product-image { transform: scale(1.08) !important; }

.product-card-image { position: relative !important; height: 380px !important; overflow: hidden !important; background: #fff !important; }
.product-card-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1) !important; }
.product-card:hover .product-card-image img { transform: scale(1.08) !important; }

/* === MOBILE CARD SIZES: App-like compact design === */
@media (max-width: 767px) {
    .product-image-container {
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
    }
    .product-card-image {
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
    }
    .product-card-image img { height: 100% !important; }
    .product-card-info { padding: 8px !important; gap: 3px !important; }
    .product-card .product-title { font-size: 0.78rem !important; line-height: 1.3 !important; }
    .product-card-price .current { font-size: 0.88rem !important; font-weight: 800 !important; }
    .product-card-price .original { font-size: 0.75rem !important; }
    .product-wishlist-top { width: 28px !important; height: 28px !important; }
    .product-wishlist-top i { font-size: 12px !important; }
}

.product-card-info {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex-grow: 1 !important;
}

.product-card .product-title {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
}

.product-card:hover .product-title {
    color: #00512C !important;
}

.product-card-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin-top: auto !important;
}

.product-card-price .current {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #000 !important;
}

.product-card-price .original {
    font-size: 0.85rem !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
}


/* Dynamic Banner Slider */
.banner-slider {
    position: relative;
    overflow: hidden;
}

.banner-slide {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.min-vh-50 {
    min-height: 50vh;
}

.banner-content {
    color: white;
    z-index: 2;
    position: relative;
}

.banner-badge {
    margin-bottom: 20px;
}

.badge-text {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 500px;
}

.banner-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-actions .btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
}

.banner-actions .btn-primary {
    background: var(--green-primary);
    border-color: var(--green-primary);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.banner-actions .btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.banner-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.banner-actions .btn-outline-light:hover {
    background: white;
    color: var(--green-dark);
    border-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-image {
    text-align: center;
    position: relative;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.banner-image img:hover {
    opacity: 0.9;
}

/* Carousel Controls - Hidden (except hero-carousel) */
.carousel:not(.hero-carousel) .carousel-control-prev,
.carousel:not(.hero-carousel) .carousel-control-next {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.carousel:not(.hero-carousel) .carousel-control-prev-icon,
.carousel:not(.hero-carousel) .carousel-control-next-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Carousel Indicators - Completely Hidden (except hero-carousel) */
.carousel:not(.hero-carousel) .carousel-indicators {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.carousel:not(.hero-carousel) .carousel-indicators button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Enhanced Mobile Responsive Design for Banner */
@media (max-width: 992px) {
    .banner-title {
        font-size: 2.5rem;
    }

    .banner-description {
        font-size: 1.1rem;
    }

    .banner-actions {
        justify-content: center;
    }

    .banner-actions .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Responsive adjustments for 1024px laptop screens */
@media (max-width: 1024px) and (min-width: 993px) {
    .nav-links {
        gap: 20px;
    }

    .nav-category-label {
        font-size: 14px;
        margin-right: 15px;
    }

    .main-nav .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .main-nav .row {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .banner-slide {
        min-height: 60vh;
        text-align: center;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .banner-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .banner-actions .btn {
        width: 200px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 1.8rem;
    }

    .banner-description {
        font-size: 0.9rem;
    }

    .banner-actions .btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 180px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }

    .carousel-indicators {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .carousel-indicators button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}


.product-display {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.monitor-container {
    position: relative;
    width: 300px;
    height: 200px;
}

.monitor-screen {
    width: 100%;
    height: 160px;
    background: var(--yellow-accent);
    border: 4px solid var(--blue-accent);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-interface {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.user-icon {
    color: var(--purple-primary);
}

.input-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-field {
    width: 120px;
    height: 8px;
    background: var(--gray-medium);
    border-radius: 4px;
}

.monitor-stand {
    width: 60px;
    height: 20px;
    background: #c0c0c0;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
}

.flash-sale-content {
    padding: 40px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-accent);
    margin: 0;
}

.brand-tagline {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.discount-badge {
    display: inline-block;
    background: var(--blue-accent);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

.flash-sale-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--blue-accent);
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.flash-sale-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--blue-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
    background: var(--green-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.website-url {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.banner-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-medium);
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.indicator.active {
    background: var(--green-primary);
    opacity: 1;
}

/* Popular Categories */
.popular-categories {
    background: var(--white);
    padding: 30px 0;
}

/* Remove vertical padding on desktop */
@media (min-width: 1200px) {
    .popular-categories {
        padding-left: 0;
        padding-right: 0;
    }

    .popular-categories>.container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .popular-categories .category-scroller {
        padding-left: 0;
        padding-right: 0;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Fancy centered title with horizontal rules and right-side link */
.section-header--fancy {
    position: relative;
    justify-content: center;
    gap: 12px;
    padding-bottom: 12px;
    padding-top: 10px;
    /* space for the border */
    border-bottom: 1px solid #e5e7eb;
    /* the light grey baseline */
}

.section-header--fancy .section-title {
    position: relative;
    text-align: center;
    letter-spacing: .04em;
}

/* Accent bar centered on the container bottom border */
.section-header--fancy::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1px;
    /* overlap the border */
    width: 300px;
    max-width: 55vw;
    height: 3px;
    background: #b08968;
    /* warm brown accent like screenshot */
}

/* small accent line below the title */
/* remove title-attached accent to avoid vertical drift */
.section-header--fancy .section-title::after {
    content: none;
}

.section-header--fancy .section-see-all {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #374151 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.section-see-all:hover {
    background: #00512C;
    border-color: #00512C;
    color: #fff !important;
    transform: translateY(-50%) scale(1.05);
}


@media (max-width: 767px) {
    .section-header--fancy {
        display: flex !important;
        width: 100% !important;
        position: relative !important;
        min-height: 24px !important;
        align-items: center !important;
    }
    .section-header--fancy .section-title {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 12px !important;
        letter-spacing: 0.06em !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0 !important;
        margin: 0 !important;
        width: max-content !important;
        max-width: calc(100% - 90px) !important;
    }
    .section-header--fancy .section-see-all {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 9px !important;
        padding: 4px 10px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 30px !important;
        background: #fff !important;
        white-space: nowrap !important;
        color: #374151 !important;
        font-weight: 600 !important;
    }
    .section-see-all:hover {
        background: #00512C !important;
        border-color: #00512C !important;
        color: #fff !important;
        transform: translateY(-50%) !important;
    }
}

.section-title {
    font-size: 20px !important;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.view-more-btn {
    background: var(--green-light);
    color: var(--green-dark);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease;
    border: 2px solid var(--green-light);
}

.view-more-btn:hover {
    background: var(--green-primary);
    color: var(--blue-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* New compact category scroller */
.category-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding: 6px 6px 2px;
    scroll-snap-type: x mandatory;
}

.category-scroller::-webkit-scrollbar {
    height: 8px;
}

.category-scroller::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 8px;
}

.category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 180px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow .2s ease, border-color .2s ease;
    scroll-snap-align: start;
}

.category-chip:hover {
    border-color: var(--teal-primary);
    box-shadow: 0 6px 18px rgba(32, 178, 170, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chip-thumb {
    width: 120px;
    height: 90px;
    border-radius: 12px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chip-thumb.placeholder {
    background: #F1F5F9;
}

.chip-title {
    font-weight: 600;
    color: #111827;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: color 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    height: 200px;
    cursor: pointer;
    display: block;
    color: inherit;
}

.category-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.category-card:hover .category-image img {
    opacity: 0.9;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: var(--white);
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, hsl(199 89% 48% / .1), hsl(199 89% 62% / .05));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 576px) {
    .hero-section {
        padding: 24px 0;
    }

    .home-hero {
        padding-top: 5px !important;
        padding-bottom: 0px !important;
    }
}

/* Further compact spacing around the home hero on mobile */
@media (max-width: 576px) {
    .home-hero>.container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-carousel {
        border-radius: 0 !important;
    }
}

/* Full width hero for all mobile devices */
@media (max-width: 768px) {
    .home-hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-hero .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Override Bootstrap's .py-4 utilities within header/hero on mobile */
@media (max-width: 576px) {

    .home-hero.py-4,
    .home-hero .py-4,
    .modern-header .py-4,
    .main-nav .py-4 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Fix mobile header padding - override py-3 class */
@media (max-width: 992px) {
    .modern-header .py-3 {
        padding-top: 8px !important;
        padding-bottom: 12px !important;
    }
}


.new-arrival-badge {
    background: #00512c1a;
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-second-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #00512C, #0b7a4a);
    border: none !important;
    padding: 7px 30px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    margin-right: 20px !important;
    color: #fff !important;
    transition: 0.3s !important;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #004124, #00512C);
    color: #fff !important;
}

.checkout-btn {
    text-decoration: none;
    color: #fff;
}

.checkout-btn:hover {
    color: #fff;
}

.btn-outline-custom {
    color: #000 !important;
    padding: 7px 30px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    background: #fff !important;
    border: 1px solid rgb(226, 226, 226) !important;
    height: max-content !important;
}

.btn-outline-custom:hover {
    background: rgba(0, 81, 44, 0.08) !important;
    color: var(--teal-dark) !important;
}

.btn-outline-custom-transparent {
    color: #fff !important;
    padding: 7px 30px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: 1px solid rgb(226, 226, 226) !important;
    height: max-content !important;
}

.btn-outline-custom-transparent:hover {
    background: #fff !important;
    color: var(--primary-blue) !important;
}

.stats-section {
    display: flex;
    gap: 60px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    /* Prevent layout shifts */
    contain: layout style;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.hero-image {
    max-width: 100%;
    height: auto;
}

/* Featured Categories */
.featured-categories {
    padding: 40px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

.category-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease;
}

.category-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.category-description {
    font-size: 14px;
    color: var(--text-light);
}

/* Top Selling Products */
.top-products {
    padding: 20px 0;
    background: white;
}

/* Home Vlogs Section */
.home-vlogs {
    padding: 10px 0;
    background: white;
}

/* Reduce section header spacing */
.section-header--fancy {
    margin-bottom: 20px;
}

.home-vlogs .mb-5 {
    margin-bottom: 10px !important;
}

.product-grid {
    row-gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    transition: box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    border-color: var(--teal-primary);
}

/* Standardized via global rules above */

.product-info {
    padding: 14px 16px 16px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 2px 0 6px;
    color: #111827 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    transition: color .2s ease-in-out;
}

.product-description {
    display: none;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.product-meta .stars {
    color: #F59E0B;
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.product-meta .sold {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.rating {
    margin-bottom: 15px;
}

.rating i {
    color: #ffc107;
    margin-right: 2px;
}

.rating-count {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 5px;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 12px;
}

.price *,
.product-info .price span {
    color: #0f766e !important;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 16px;
    margin-left: 10px;
}

.product-actions {
    margin-top: 6px;
}

.btn-add-cart {
    background: transparent;
    border: 1px solid var(--teal-primary);
    color: var(--teal-primary);
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    font-size: 14px;
    height: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-add-cart:hover {
    background: rgba(0, 81, 44, 0.06);
    color: var(--teal-dark);
    border-color: var(--teal-dark);
}

.btn-add-cart svg,
.btn-add-cart svg path {
    fill: currentColor;
    transition: fill .2s ease-in-out;
}

.btn-buy-now {
    white-space: nowrap;
    font-size: 14px !important;
    padding: 9px 16px !important;
    border-radius: 8px !important;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wishlist-btn i {
    color: var(--teal-primary);
}

.wishlist-btn:hover i {
    color: var(--teal-dark);
}

/* Responsive tweaks for product grid */
@media (min-width: 1200px) {
    .top-products>.container .row.product-grid>[class*='col-lg-3'] {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 992px) {
    .product-info {
        padding: 12px 12px 14px;
    }

    .product-title {
        min-height: auto;
    }

    .product-description {
        display: none;
    }
}

@media (max-width: 576px) {
    .top-products {
        padding: 40px 0;
    }

    .btn-add-cart,
    .btn-buy-now {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    .product-meta .sold {
        font-size: 11px;
    }
}

/* Laptop: make key sections full-width */
@media (min-width: 992px) and (max-width: 1400px) {

    .navbar .container,
    .home-hero>.container,
    .popular-categories>.container,
    .top-products>.container {
        max-width: 100%;
    }
}

/* ====== Extracted page utility classes (from inline styles) ====== */
/* Transparent header/section wrapper */
.featured-plain {
    background: transparent !important;
}

/* Container 80% on desktop, full width on smaller, responsive padding */
.container-80 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

@media (min-width: 1200px) {
    .container-80 {
        width: 80% !important;
        max-width: 80% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 1024px) and (min-width: 993px) {
    .container-80 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Left-aligned 80% container variant (Best Deal page) */
.container-80-left {
    width: 80% !important;
    max-width: 80% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

@media (max-width: 1199.98px) {
    .container-80-left {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Compact price text */
.price-compact {
    font-size: .95rem;
}

/* 5-column grid on large screens */
@media (min-width: 1200px) {

    .grid-5>[class^="col-"],
    .grid-5>[class*=" col-"] {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Promotional Sections */
.promo-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.promo-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.summer-sale {
    background: linear-gradient(135deg, hsl(199 89% 48%), hsl(199 89% 62%));
    color: white;
}

.promo-main-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.promo-main-description {
    margin-bottom: 25px;
    margin-right: 80px;
    font-size: 18px;
    opacity: 0.9;
}

.promo-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.promo-description {
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-promo {
    color: #000 !important;
    padding: 7px 30px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    background: #fff !important;
    border: 1px solid rgb(226, 226, 226) !important;
    height: max-content !important;
}

.btn-promo:hover {
    color: #000 !important;
    background: #fff !important;
    border: 1px solid rgb(226, 226, 226) !important;
    height: max-content !important;
}

.service-icon {
    font-size: 35px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    /* Prevent layout shifts from icon loading */
    contain: layout style;
    will-change: auto;
    border-radius: 50%;
    background-color: rgba(13, 162, 231, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    right: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #001a0f 0%, #002d1a 50%, #001a0f 100%);
    background-color: #001a0f;
    color: #e2e8f0;
    padding: 70px 0 30px;
    position: relative;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.footer-logo img {
    height: 60px;
    width: 180px;
    object-fit: contain;
    object-position: left;
}

.footer-description {
    margin-bottom: 24px;
    opacity: 0.85;
    line-height: 1.7;
    color: #cbd5e1;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #ffffff;
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-links a:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    margin-top: 50px;
    text-align: center;
    opacity: 0.75;
    font-size: 14px;
    color: #94a3b8;
}

.footer-bottom a {
    text-decoration: none;
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}


/* Turbo progress bar styling (when using Turbo Drive) */
turbo-progress-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--green-primary), #34D399);
}

.business-hours {
    margin-top: 20px;
}

.business-hours div {
    margin-bottom: 5px;
    opacity: 0.8;
}

.hero-image {
    position: relative;
    z-index: 99;
}

.hero-shadow {
    border-radius: 9999px;
    filter: blur(24px);
    width: 100px;
    height: 100px;
    background-color: var(--primary-blue);
    opacity: 0.5;
    right: -35px;
    top: -35px;
    z-index: 9;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .flash-sale-title {
        font-size: 40px;
    }

    .monitor-container {
        width: 250px;
        height: 160px;
    }

    .monitor-screen {
        height: 130px;
    }
}

@media (max-width: 992px) {

    /* Keep header in one line: logo left, icons right */
    .modern-header .row {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
    }

    .modern-header .col-lg-3.col-md-4 {
        flex: 0 0 auto;
        max-width: 42%;
    }

    .modern-header .col-lg-6.col-md-8 {
        display: none !important;
    }

    .modern-header .col-lg-3.col-md-12 {
        flex: 1 1 auto;
        display: flex;
        justify-content: flex-end;
    }

    .header-links {
        justify-content: center;
    }

    /* Icons cluster on the right */
    .header-actions {
        justify-content: flex-end;
        gap: 10px;
        width: 100%;
    }

    /* Reduce logo size and prevent it from hogging width */
    .navbar-brand {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
    }

    .logo-img {
        height: 38px;
        width: auto;
    }

    /* Hide left category sidebar on mobile */
    .home-hero .category-menu {
        display: none !important;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-actions {
        justify-content: center;
        margin-top: 20px;
    }

    .flash-sale-banner .row {
        flex-direction: column;
        text-align: center;
    }

    .flash-sale-title {
        font-size: 36px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }

    .category-card {
        height: 160px;
    }

    /* Use drawer for navigation on mobile */
    .main-nav .nav-links {
        display: none !important;
    }

    .main-nav .nav-category-label {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
        width: 150px;
    }

    .footer-logo img {
        height: 50px;
        width: 150px;
    }

    .search-input {
        font-size: 14px;
        padding: 10px 45px 10px 16px;
    }

    .search-btn {
        width: 32px;
        height: 32px;
    }

    .search-btn svg {
        width: 18px;
        height: 18px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .flash-sale-title {
        font-size: 28px;
    }

    .flash-sale-description {
        font-size: 14px;
    }

    .monitor-container {
        width: 200px;
        height: 130px;
    }

    .monitor-screen {
        height: 100px;
    }

    .login-interface {
        padding: 15px;
        gap: 10px;
    }

    .input-field {
        width: 80px;
        height: 6px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .category-card {
        height: 140px;
    }

    .category-name {
        font-size: 14px;
    }

    .section-title {
        font-size: 18px !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .section-header--fancy .section-title {
        font-size: 18px !important;
    }

    /* Center category headers on tablet */
    .popular-categories .section-header,
    .categories-section .section-header {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative;
    }

    .popular-categories .section-title,
    .categories-section .section-title {
        text-align: center;
    }

    .popular-categories .view-more-btn,
    .categories-section .view-more-btn {
        position: absolute;
        right: 0;
    }

    /* Hero section mobile improvements */
    .home-hero {
        padding: 15px 0 !important;
    }

    .home-hero .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Category menu mobile adjustments */
    .home-hero .category-menu {
        display: none !important;
    }

    /* Hero slider mobile improvements - removed duplicate, using consolidated styles below */

    .splide-hero {
        border-radius: 0 !important;
        margin: 0;
    }

    /* Make hero section completely full width */
    .home-hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-hero .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    /* Hide hero arrows on mobile */
    .splide-hero .splide__arrows {
        display: none !important;
    }

    /* Product cards mobile improvements */
    .product-title {
        font-size: 14px !important;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .product-info {
        padding: 12px 10px 14px !important;
    }

    .price {
        font-size: 14px !important;
        margin-bottom: 10px;
    }

    .btn-add-cart {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 6px;
    }

    /* Category chips mobile improvements */
    .category-chip {
        height: 160px !important;
        padding: 12px;
    }

    .chip-thumb {
        width: 100px !important;
        height: 80px !important;
    }

    .chip-title {
        font-size: 12px !important;
        font-weight: 600;
    }

    /* Vlog cards mobile improvements */
    .vlog-card {
        margin-bottom: 15px;
    }

    .vlog-card .ratio {
        border-radius: 8px;
    }

    /* Reduce section padding on tablet */
    .top-products {
        padding: 15px 0;
    }

    .home-vlogs {
        padding: 8px 0;
    }

    /* Reduce section header spacing on tablet */
    .section-header--fancy {
        margin-bottom: 18px;
    }

    .home-vlogs .mb-5 {
        margin-bottom: 8px !important;
    }

    /* Top selling carousel mobile improvements */
    #mostSoldSplide {
        padding: 15px 0px;
    }

    #mostSoldSplide .product-image-container {
        height: 160px;
    }

    #mostSoldSplide .product-title {
        font-size: 14px;
        line-height: 1.3;
        margin-top: 8px;
    }

    #mostSoldSplide .price {
        font-size: 14px;
    }

    #mostSoldSplide .price .old {
        font-size: 12px;
    }

    #mostSoldSplide .product-info {
        padding: 8px 10px 10px;
    }

    #mostSoldSplide .wishlist-btn {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }

    #mostSoldSplide .wishlist-btn i {
        font-size: 14px;
    }

    #mostSoldSplide .btn-add-cart {
        padding: 5px 8px;
        font-size: 11px;
    }

    #mostSoldSplide .rating-badge {
        font-size: 10px;
        padding: 3px 6px;
        left: 8px;
        bottom: 8px;
    }

    /* New arrivals carousel mobile improvements */
    #newArrivalsSplide {
        padding: 15px 0px;
    }

    #newArrivalsSplide .product-image-container {
        height: 160px;
    }

    #newArrivalsSplide .product-title {
        font-size: 14px;
        line-height: 1.3;
        margin-top: 8px;
    }

    #newArrivalsSplide .price {
        font-size: 14px;
    }

    #newArrivalsSplide .price .old {
        font-size: 12px;
    }

    #newArrivalsSplide .product-info {
        padding: 8px 10px 10px;
    }

    #newArrivalsSplide .wishlist-btn {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }

    #newArrivalsSplide .wishlist-btn i {
        font-size: 14px;
    }

    #newArrivalsSplide .btn-add-cart {
        padding: 5px 8px;
        font-size: 11px;
    }

    #newArrivalsSplide .rating-badge {
        font-size: 10px;
        padding: 3px 6px;
        left: 8px;
        bottom: 8px;
    }

    /* Best deals carousel mobile improvements */
    #bestDealsSplide {
        padding: 15px 0px;
    }

    #bestDealsSplide .product-image-container {
        height: 160px;
    }

    #bestDealsSplide .product-title {
        font-size: 14px;
        line-height: 1.3;
        margin-top: 8px;
    }

    #bestDealsSplide .price {
        font-size: 14px;
    }

    #bestDealsSplide .price .old {
        font-size: 12px;
    }

    #bestDealsSplide .product-info {
        padding: 8px 10px 10px;
    }

    #bestDealsSplide .wishlist-btn {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }

    #bestDealsSplide .wishlist-btn i {
        font-size: 14px;
    }

    #bestDealsSplide .btn-add-cart {
        padding: 5px 8px;
        font-size: 11px;
    }

    #bestDealsSplide .rating-badge {
        font-size: 10px;
        padding: 3px 6px;
        left: 8px;
        bottom: 8px;
    }

    /* Force 2 products per row on tablet for all carousels */
    #mostSoldSplide .splide__slide,
    #newArrivalsSplide .splide__slide,
    #bestDealsSplide .splide__slide {
        width: calc(50% - 8px) !important;
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }

    /* Override Splide default styles for mobile */
    #mostSoldSplide .splide__list,
    #newArrivalsSplide .splide__list,
    #bestDealsSplide .splide__list {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 34px;
        width: auto;
    }

    .footer-logo img {
        height: 45px;
        width: 120px;
    }

    .modern-header {
        padding: 0px;
    }

    .main-nav {
        padding: 12px 0;
    }

    /* Category header: centered title with View All on the right */
    .popular-categories .section-header,
    .categories-section .section-header {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 12px;
        position: relative;
    }

    .popular-categories .section-header>*,
    .categories-section .section-header>* {
        min-width: 0;
    }

    .popular-categories .section-title,
    .categories-section .section-title {
        text-align: center;
        margin: 0;
        font-size: 16px !important;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .popular-categories .view-more-btn,
    .categories-section .view-more-btn {
        position: absolute;
        right: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        color: #374151 !important;
        font-weight: 600;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        flex: 0 0 auto;
        max-width: 45%;
    }

    .popular-categories .view-more-btn::before,
    .categories-section .view-more-btn::before {
        content: '\2039';
        margin-right: 12px;
        color: #6b7280;
    }

    .popular-categories .view-more-btn::after,
    .categories-section .view-more-btn::after {
        content: '\203A';
        margin-left: 12px;
        color: #6b7280;
    }

    .nav-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .nav-actions {
        flex-direction: column;
        gap: 12px;
    }

    .action-buttons {
        gap: 8px;
    }

    /* Reduce action icons on very small */
    .action-btn {
        width: 38px;
        height: 38px;
    }

    .flash-sale-banner {
        padding: 40px 0;
    }

    .flash-sale-title {
        font-size: 24px;
    }

    .brand-name {
        font-size: 20px;
    }

    .social-links {
        gap: 8px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-card {
        height: 120px;
    }

    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* OVERRIDE: Keep fancy headers centered on mobile, button absolute right */
    .section-header--fancy {
        display: flex !important;
        width: 100% !important;
        position: relative !important;
        min-height: 24px !important;
        align-items: center !important;
    }
    .section-header--fancy .section-title {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: calc(100% - 90px) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0 !important;
        margin: 0 !important;
        width: max-content !important;
    }
    .section-header--fancy .section-see-all {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 9px !important;
        padding: 4px 10px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 30px !important;
        background: #fff !important;
        white-space: nowrap !important;
        color: #374151 !important;
        font-weight: 600 !important;
    }

    .view-more-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Extra small mobile improvements */
    .section-title {
        font-size: 16px !important;
        margin-bottom: 12px;
        padding-left: 8px;
    }

    .section-header--fancy .section-title {
        font-size: 12px !important;
        margin-bottom: 0px;
        text-align: left !important;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hero section extra small */
    .home-hero {
        padding: 10px 0 !important;
    }

    /* Hero slider extra small - removed duplicate, using consolidated styles below */

    .splide-hero {
        border-radius: 0 !important;
        margin: 0;
    }

    /* Make hero section completely full width on small mobile */
    .home-hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home-hero .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    /* Hide hero arrows on small mobile */
    .splide-hero .splide__arrows {
        display: none !important;
    }

    /* Product cards extra small */
    .product-title {
        font-size: 13px !important;
        line-height: 1.2;
    }

    .product-info {
        padding: 10px 8px 12px !important;
    }

    .price {
        font-size: 13px !important;
    }

    .btn-add-cart {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    /* Category chips extra small */
    .category-chip {
        height: 140px !important;
        padding: 10px;
    }

    .chip-thumb {
        width: 80px !important;
        height: 60px !important;
    }

    .chip-title {
        font-size: 11px !important;
    }

    /* Section headers mobile */
    .section-header--fancy {
        padding-bottom: 8px;
        padding-top: 8px;
        margin-bottom: 15px;
    }

    .home-vlogs .mb-5 {
        margin-bottom: 8px !important;
    }

    .section-header--fancy::after {
        width: 200px;
        max-width: 70vw;
    }

    /* Container padding adjustments */
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Popular categories mobile */
    .popular-categories {
        padding: 20px 0;
    }

    /* Top products mobile */
    .top-products {
        padding: 0px;
    }

    /* Home vlogs mobile */
    .home-vlogs {
        padding: 8px 0;
    }

    /* Top selling carousel extra small mobile improvements */
    #mostSoldSplide {
        padding: 10px 0px;
    }

    #mostSoldSplide .product-image-container {
        height: 140px;
    }

    #mostSoldSplide .product-title {
        font-size: 13px;
        line-height: 1.2;
        margin-top: 6px;
    }

    #mostSoldSplide .price {
        font-size: 13px;
    }

    #mostSoldSplide .price .old {
        font-size: 11px;
    }

    #mostSoldSplide .product-info {
        padding: 6px 8px 8px;
    }

    #mostSoldSplide .wishlist-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }

    #mostSoldSplide .wishlist-btn i {
        font-size: 12px;
    }

    #mostSoldSplide .btn-add-cart {
        padding: 4px 6px;
        font-size: 10px;
    }

    #mostSoldSplide .rating-badge {
        font-size: 9px;
        padding: 2px 4px;
        left: 6px;
        bottom: 6px;
    }

    /* New arrivals carousel extra small mobile improvements */
    #newArrivalsSplide {
        padding: 10px 0px;
    }

    #newArrivalsSplide .product-image-container {
        height: 140px;
    }

    #newArrivalsSplide .product-title {
        font-size: 13px;
        line-height: 1.2;
        margin-top: 6px;
    }

    #newArrivalsSplide .price {
        font-size: 13px;
    }

    #newArrivalsSplide .price .old {
        font-size: 11px;
    }

    #newArrivalsSplide .product-info {
        padding: 6px 8px 8px;
    }

    #newArrivalsSplide .wishlist-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }

    #newArrivalsSplide .wishlist-btn i {
        font-size: 12px;
    }

    #newArrivalsSplide .btn-add-cart {
        padding: 4px 6px;
        font-size: 10px;
    }

    #newArrivalsSplide .rating-badge {
        font-size: 9px;
        padding: 2px 4px;
        left: 6px;
        bottom: 6px;
    }

    /* Best deals carousel extra small mobile improvements */
    #bestDealsSplide {
        padding: 10px 0px;
    }

    #bestDealsSplide .product-image-container {
        height: 140px;
    }

    #bestDealsSplide .product-title {
        font-size: 13px;
        line-height: 1.2;
        margin-top: 6px;
    }

    #bestDealsSplide .price {
        font-size: 13px;
    }

    #bestDealsSplide .price .old {
        font-size: 11px;
    }

    #bestDealsSplide .product-info {
        padding: 6px 8px 8px;
    }

    #bestDealsSplide .wishlist-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }

    #bestDealsSplide .wishlist-btn i {
        font-size: 12px;
    }

    #bestDealsSplide .btn-add-cart {
        padding: 4px 6px;
        font-size: 10px;
    }

    #bestDealsSplide .rating-badge {
        font-size: 9px;
        padding: 2px 4px;
        left: 6px;
        bottom: 6px;
    }

    /* Force 2 products per row on mobile for all carousels */
    #mostSoldSplide .splide__slide,
    #newArrivalsSplide .splide__slide,
    #bestDealsSplide .splide__slide {
        width: calc(50% - 8px) !important;
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }

    /* Override Splide default styles for mobile */
    #mostSoldSplide .splide__list,
    #newArrivalsSplide .splide__list,
    #bestDealsSplide .splide__list {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
}

/* Ensure category headers stay centered on mobile (override generic column rule) */
@media (max-width: 576px) {

    .popular-categories .section-header,
    .categories-section .section-header {
        flex-direction: row !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
    }

    .popular-categories .section-title,
    .categories-section .section-title {
        text-align: center !important;
    }
}

/* Mobile Navigation Drawer */
/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .45);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 16000;
    /* Above header */
    backdrop-filter: blur(2px);
}

.mobile-overlay.open {
    opacity: 1;
}

/* Lock scroll when drawer open */
.mobile-lock,
.mobile-lock body {
    overflow: hidden;
}

/* Mobile side drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(360px, 90vw);
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 16100;
    /* Above header and overlay */
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-weight: 700;
    border-bottom: 1px solid #E5E7EB;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #F3F4F6;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
}

.drawer-content {
    padding: 14px 14px 20px;
    overflow-y: auto;
}

.drawer-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid var(--teal-primary);
    border-radius: 10px;
    text-decoration: none;
    color: #111827;
}

.drawer-login .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--teal-light);
    color: var(--teal-primary);
    border-radius: 8px;
}

.drawer-login .text {
    font-weight: 600;
}

.drawer-login .chev {
    color: #6b7280;
}

.drawer-quick {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.quick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #111827;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px 12px;
}

.qi-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.qi-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--red-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    padding: 0 6px;
    box-sizing: border-box;
}

.drawer-links {
    margin-top: 12px;
    display: block;
}

.drawer-link {
    display: block;
    padding: 12px 2px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #E5E7EB;
}

.drawer-link.active {
    color: var(--teal-primary);
    font-weight: 600;
}

/* Modern Hero Banner Styles */
.modern-hero-banner {
    background: var(--white);
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

/* Category Sidebar */
.category-sidebar {
    background: var(--white);
    border-right: 1px solid #E5E7EB;
    height: 100%;
    padding: 30px 20px;
}

.sidebar-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--teal-light);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.category-item:hover {
    background: var(--teal-light);
    border-color: var(--teal-primary);
    transform: translateX(8px);
    text-decoration: none;
    color: var(--text-dark);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: var(--teal-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-primary);
    flex-shrink: 0;
}

.category-text {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.arrow-icon {
    color: var(--text-light);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.category-item:hover .arrow-icon {
    color: var(--teal-primary);
    transform: translateX(4px);
}

/* Hero Banner Content */
.hero-banner {
    background: var(--red-gradient);
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px 40px;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="diagonal" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0,0 L20,0 L20,20 L0,20 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23diagonal)"/></svg>');
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 500px;
}

.banner-badge {
    margin-bottom: 20px;
}

.badge-text {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.banner-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: white;
    border-radius: 2px;
}

.price-circle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    border: 2px dashed white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.price-text {
    text-align: center;
    color: white;
}

.price-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.price-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
}

.banner-actions {
    margin: 40px 0;
}

.btn-shop-now {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.btn-shop-now:hover {
    background: white;
    color: var(--red-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.banner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.website-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.website-url {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: white;
    color: var(--red-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.savings-circle {
    width: 100px;
    height: 100px;
    border: 2px dashed white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.savings-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: white;
}

.banner-image {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 3;
}

.banner-image .product-image {
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.banner-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 4;
}

.nav-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.dot.active {
    background: white;
    opacity: 0.8;
}

.nav-arrows {
    display: flex;
    gap: 12px;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: white;
    color: var(--red-primary);
    opacity: 0.9;
}

/* Categories Page Styles */
/* Categories Hero Section */
.categories-hero {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
    padding: 100px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* New: Home hero with left category menu + right slider */
.home-hero {
    position: relative;
}

.home-hero .category-menu {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
    /* ensure submenu can stack above right banner */
}

/* Ensure left column stacks above right column */
.home-hero .col-lg-3 {
    position: relative;
    z-index: 2000;
}

.home-hero .col-lg-9 {
    position: relative;
    z-index: 1;
}

.home-hero .menu-header {
    padding: 14px 16px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid #E5E7EB;
}

.home-hero .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-hero .menu-item {
    position: relative;
}

.home-hero .menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.home-hero .menu-link:hover {
    background: var(--teal-light);
    color: var(--teal-dark);
}

.home-hero .menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-light);
    color: var(--teal-primary);
    overflow: hidden;
}

/* Thumbnail images for category menu */
.home-hero .menu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero .arrow {
    margin-left: auto;
    color: var(--text-light);
}

/* Submenu dropdown on hover */
.home-hero .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    /* margin-left: 8px; */
    min-width: 240px;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 5px 7px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 10000;
    /* sit above carousel and its controls */
}

.home-hero .menu-item:hover>.submenu {
    display: block;
}

.home-hero .submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
}

.home-hero .submenu-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--teal-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-hero .submenu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero .submenu-link:hover {
    background: var(--teal-light);
    color: var(--teal-dark);
}

/* Hero carousel */
.hero-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Hero Banner Image - Consolidated styles to avoid conflicts */
.hero-slide-img {
    width: 100%;
    /* height: 640px; */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Laptop screens (993px - 1024px) */
@media (max-width: 1024px) and (min-width: 993px) {
    .hero-slide-img {
        /* height: 300px; */
        object-fit: cover;
        object-position: center;
    }
}

/* Show controls for this specific carousel (we hid bootstrap ones globally) */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next,
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto;
    height: auto;
}

/* Modern arrow controls with better icons */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 1001;
    opacity: 0.7;
    transition: color 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-carousel .carousel-control-prev {
    left: 15px;
}

.hero-carousel .carousel-control-next {
    right: 15px;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    padding-left: 40px;
    filter: none;
    background-size: 24px 24px;
}

/* Modern chevron icons with better visibility */
.hero-carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300512C' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 19l-7-7 7-7'/%3E%3C/svg%3E");
}

.hero-carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300512C' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

/* Keep controls above indicators/captions */
.hero-carousel .carousel-indicators {
    z-index: 1000;
}

.hero-carousel .carousel-caption {
    z-index: 999;
}

/* Show indicators for hero carousel */
.hero-carousel .carousel-indicators {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 0 6px 0;
    /* add a little space from bottom */
    padding: 0;
    list-style: none;
}

.hero-carousel .carousel-indicators button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    margin: 0 8px;
    /* widen spacing between dots */
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background: #fff;
    border-color: #fff;
}

.hero-carousel .carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: #fff;
}

/* Carousel caption styling */
.hero-carousel .carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    text-align: left;
}

.hero-carousel .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-carousel .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-carousel .carousel-caption .btn {
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.hero-carousel .carousel-caption .btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Tablet screens (769px - 992px) */
@media (max-width: 992px) {
    .hero-slide-img {
        height: auto;
        object-fit: cover;
        object-position: center;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
    }

    .hero-carousel .carousel-control-prev {
        left: 10px;
    }

    .hero-carousel .carousel-control-next {
        right: 10px;
    }

    .hero-carousel .carousel-caption h5 {
        font-size: 1.2rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* Mobile screens (577px - 768px) */
@media (max-width: 768px) {
    .hero-slide-img {
        height: auto;
        object-fit: cover;
        object-position: center;
    }
}

/* Small mobile screens (max-width: 576px) */
@media (max-width: 576px) {
    .hero-slide-img {
        height: auto;
        object-fit: cover;
        object-position: center;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }

    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        width: 18px;
        height: 18px;
        background-size: 18px 18px;
    }

    .hero-carousel .carousel-control-prev {
        left: 8px;
    }

    .hero-carousel .carousel-control-next {
        right: 8px;
    }

    .hero-carousel .carousel-indicators {
        bottom: 10px;
        margin: 0 0 4px 0;
    }

    .hero-carousel .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .hero-carousel .carousel-caption {
        padding: 20px 10px 10px;
    }

    .hero-carousel .carousel-caption h5 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .hero-carousel .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 8px;
        display: none;
        /* Hide description on very small screens */
    }

    .hero-carousel .carousel-caption .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

.categories-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.categories-hero .container {
    position: relative;
    z-index: 2;
}

.categories-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.categories-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories Section */
.categories-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

/* Category Tile Styles */
.category-tile .tile-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow .2s;
}

.category-tile .tile-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(31, 41, 55, .08);
}

.category-tile .tile-img {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-tile .tile-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-tile .tile-title {
    margin-top: 12px;
    color: #111827;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categories-section .section-title {
    font-size: 28px;
    font-weight: 700;
}

@media (max-width: 576px) {
    .categories-section .section-title {
        font-size: 22px;
    }
}

/* Products Page Styles */
.noUi-connect {
    background-color: var(--primary-blue) !important;
}

.wishlist-btn i.fa-heart.active {
    color: #e53935 !important;
}

/* Enhanced Filter Styles */
.filter-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.filter-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
}

.filter-title i {
    color: var(--teal-primary);
}

.btn-clear-filters {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-clear-filters:hover {
    background: #dc3545;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-section {
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    background: #fafafa;
}

.filter-section-header:hover {
    background: #f0f0f0;
}

.filter-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0;
    display: flex;
    align-items: center;
}

.filter-section-title i {
    color: var(--teal-primary);
    font-size: 12px;
}

.filter-chevron {
    color: #6c757d;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.filter-section-header[aria-expanded="true"] .filter-chevron {
    transform: rotate(180deg);
}

.filter-options {
    padding: 16px 24px 20px;
}

.filter-option {
    margin-bottom: 12px;
}

.filter-option:last-child {
    margin-bottom: 0;
}

.filter-checkbox {
    display: none;
}

.filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s ease;
    border-radius: 8px;
    position: relative;
}

.filter-label:hover {
    background: #f8f9fa;
    padding-left: 8px;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.filter-checkbox:checked+.filter-label .checkmark {
    background: var(--teal-primary);
    border-color: var(--teal-primary);
}

.filter-checkbox:checked+.filter-label .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.label-text {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.filter-checkbox:checked+.filter-label .label-text {
    color: var(--teal-primary);
    font-weight: 600;
}

/* Rating Filter Specific Styles */
.rating-label {
    align-items: center;
}

.rating-stars {
    display: flex;
    gap: 2px;
    margin-right: 8px;
}

.rating-stars i {
    font-size: 12px;
}

/* Price Filter Styles */
.price-filter-container {
    padding: 16px 24px 20px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px rgba(0, 81, 44, 0.1);
}

.price-separator {
    color: #6c757d;
    font-weight: 600;
    margin: 0 4px;
}

.price-slider {
    margin: 16px 0;
    height: 6px;
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-primary);
    margin-top: 12px;
}

/* Filter Actions */
.filter-actions {
    padding: 20px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn-apply-filters {
    width: 100%;
    background: var(--teal-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-apply-filters:hover {
    background: var(--teal-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 81, 44, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .filter-card {
        margin-bottom: 20px;
    }

    .filter-header {
        padding: 16px 20px;
    }

    .filter-title {
        font-size: 16px;
    }

    .btn-clear-filters {
        padding: 4px 8px;
        font-size: 11px;
    }

    .filter-section-header {
        padding: 12px 20px;
    }

    .filter-options {
        padding: 12px 20px 16px;
    }

    .price-filter-container {
        padding: 12px 20px 16px;
    }

    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .price-input-group {
        width: 100%;
    }

    .filter-actions {
        padding: 16px 20px;
    }
}

@media (max-width: 576px) {
    .filter-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .btn-clear-filters {
        align-self: flex-end;
    }

    .price-inputs {
        gap: 12px;
    }

    .price-separator {
        display: none;
    }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--green-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.scroll-to-top-btn:hover {
    background: var(--green-dark);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn.show {
    display: flex;
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.2) 50%, transparent 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.categories-grid::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--purple-primary) 50%, transparent 100%);
    border-radius: 2px;
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(32, 178, 170, 0.1);
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    height: 280px;
}

.category-card:hover {
    box-shadow: 0 20px 60px rgba(32, 178, 170, 0.2);
    text-decoration: none;
    color: inherit;
    border-color: var(--teal-primary);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.05) 0%, rgba(32, 178, 170, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-card:hover::before {
    opacity: 1;
}

.category-image {
    position: relative;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-image img {
    opacity: 0.9;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    position: relative;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 50%;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 40px 25px 25px;
    color: white;
    z-index: 3;
}

.category-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.5px;
    position: relative;
}

.category-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--teal-primary);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-name::after {
    opacity: 1;
}

.no-categories {
    text-align: center;
    padding: 80px 40px;
    color: #6c757d;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin: 40px 20px;
}

.no-categories svg {
    margin-bottom: 30px;
    opacity: 0.6;
    color: var(--purple-primary);
}

.no-categories h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #495057;
    font-weight: 600;
}

.no-categories p {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #6c757d;
    line-height: 1.6;
}

/* Responsive Design for Modern Hero Banner */
@media (max-width: 992px) {
    .modern-hero-banner .row {
        flex-direction: column;
    }

    .category-sidebar {
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
        padding: 20px;
    }

    .hero-banner {
        padding: 40px 20px;
        min-height: 60vh;
    }

    .banner-title {
        font-size: 3rem;
    }

    .banner-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 30px;
        text-align: center;
    }

    .banner-image .product-image {
        max-width: 300px;
    }

    .price-circle {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px auto;
    }

    .banner-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 30px 15px;
        min-height: 50vh;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-content {
        max-width: 100%;
    }

    .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-item {
        padding: 12px 16px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .category-text {
        font-size: 14px;
    }

    .arrow-icon {
        display: none;
    }

    .banner-navigation {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 30px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 2rem;
    }

    .category-list {
        grid-template-columns: 1fr;
    }

    .banner-image .product-image {
        max-width: 250px;
    }

    .price-circle {
        width: 80px;
        height: 80px;
    }

    .price-value {
        font-size: 18px;
    }

    .savings-circle {
        width: 80px;
        height: 80px;
    }

    .savings-text {
        font-size: 10px;
    }
}

/* Responsive Design for Categories */
@media (max-width: 992px) {
    .category-scroller {
        grid-auto-columns: 240px;
    }
}

@media (max-width: 768px) {
    .categories-hero {
        padding: 80px 0 60px;
    }

    .categories-title {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
    }

    .categories-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .categories-section {
        padding: 80px 0;
    }

    .category-scroller {
        grid-auto-columns: 220px;
    }

    .category-card {
        height: 200px;
    }

    .category-name {
        font-size: 1.4rem;
    }
}

/* Mobile Categories: keep horizontal scroll on all small screens */
@media (max-width: 576px) {
    .category-scroller {
        grid-auto-flow: column;
        grid-auto-columns: 180px;
        grid-template-columns: none;
        overflow-x: auto;
        gap: 12px;
        padding: 6px;
    }

    .category-chip {
        height: auto;
        padding: 14px;
    }

    .chip-thumb {
        width: 100%;
        height: 100px;
    }

    .chip-title {
        font-size: 14px;
    }

    .section-header {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .categories-hero {
        padding: 60px 0 40px;
    }

    .categories-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .categories-subtitle {
        font-size: 1rem;
    }

    .categories-section {
        padding: 60px 0;
    }

    .category-scroller {
        grid-auto-columns: 200px;
    }

    .category-card {
        height: 180px;
    }

    .category-name {
        font-size: 1.3rem;
    }

    .no-categories {
        padding: 60px 20px;
        margin: 20px 10px;
    }
}

/* Reviews Section - 2 Column Layout */
#reviews.tab-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f9fa;
}

.reviews-header {
    text-align: center;
    margin-bottom: 2rem;
}

.reviews-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.reviews-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Left Column - Review Form */
.reviews-left-column {
    padding: 0;
}

/* Right Column - Review Summary */
.reviews-right-column {
    padding: 0;
}

/* Review Form Card */
.review-form-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.review-form-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.review-form-header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.review-form-title {
    color: #1f2937;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.review-form-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* Rating Input Styling */
.rating-input {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.star-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: 4px;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
}

.star-label:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.star-label i {
    font-size: 1rem;
    color: #ddd;
}

.rating-input input[type="radio"]:checked+.star-label {
    background: #e3f2fd;
    border-color: #007bff;
}

.rating-input input[type="radio"]:checked+.star-label i {
    color: #ffc107;
}

/* Selected stars (for proper rating system) */
.star-label.selected {
    background: #e3f2fd;
    border-color: #007bff;
}

.star-label.selected i {
    color: #ffc107;
}

/* Comment Textarea */
.review-textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
    width: 100%;
    transition: border-color 0.2s ease;
}

.review-textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Submit Button */
.btn-submit-review {
    background: #007bff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: background-color 0.2s ease;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-submit-review:hover {
    background: #0056b3;
}

/* Review Summary Card */
.reviews-summary-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.rating-breakdown {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.overall-rating-section {
    flex: 0 0 auto;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-width: 150px;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin: 0;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
}

.rating-stars i {
    color: #ffc107;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.rating-distribution {
    flex: 1;
}

.distribution-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.rating-bar span:first-child {
    min-width: 25px;
    color: #333;
    font-weight: 600;
}

.bar-fill {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill-inner {
    height: 100%;
    background: #ffc107;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.rating-bar span:last-child {
    min-width: 40px;
    text-align: right;
    color: #333;
    font-weight: 600;
}

/* Customer Reviews Section */
.customer-reviews-section {
    margin-top: 2rem;
}

.customer-reviews-header {
    margin-bottom: 1.5rem;
}

.customer-reviews-title {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Reviews List */
#reviews-list {
    margin-top: 2rem;
    padding: 0;
}

.review-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px !important;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 0;
}

.review-stars i {
    color: #fbbf24;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.review-date {
    color: #6b7280;
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 500;
    margin-top: 2px;
}

.review-text {
    color: #374151;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    background: #f9fafb;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    position: relative;
    font-style: italic;
}

.review-text::before {
    content: '"';
    position: absolute;
    top: -4px;
    left: 12px;
    font-size: 1.8rem;
    color: #3b82f6;
    opacity: 0.8;
    font-weight: 700;
    font-family: serif;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #reviews.tab-content {
        padding: 1.25rem 0.75rem;
    }

    .reviews-header {
        margin-bottom: 1.5rem;
        padding: 0;
    }

    .reviews-title {
        font-size: 1.375rem;
    }

    .reviews-subtitle {
        font-size: 0.9rem;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .reviews-left-column,
    .reviews-right-column {
        padding: 0;
    }

    .rating-breakdown {
        flex-direction: column;
        gap: 1.5rem;
    }

    .overall-rating-section {
        min-width: auto;
    }

    .review-form-card,
    .reviews-summary-card {
        padding: 1rem;
    }

    .rating-input {
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .star-label {
        width: 35px;
        height: 35px;
        padding: 0.3rem;
        border-radius: 6px;
    }

    .star-label i {
        font-size: 1rem;
    }

    #reviews-list {
        padding: 0;
    }

    .review-item {
        padding: 20px !important;
        margin-bottom: 1.5rem;
    }

    .review-item::before {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }

    .review-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .review-date {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    #reviews.tab-content {
        padding: 0.875rem 0.5rem;
    }

    .reviews-header {
        margin-bottom: 1.25rem;
        padding: 0;
    }

    .reviews-title {
        font-size: 1.25rem;
    }

    .reviews-subtitle {
        font-size: 0.85rem;
    }

    .reviews-container {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .review-form-card,
    .reviews-summary-card {
        padding: 0.875rem;
    }

    .rating-input {
        gap: 0.4rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .star-label {
        width: 32px;
        height: 32px;
        padding: 0.25rem;
        border-radius: 5px;
    }

    .star-label i {
        font-size: 0.9rem;
    }


    .rating-number {
        font-size: 3rem;
    }

    .rating-stars {
        font-size: 1.5rem;
    }

    .review-item {
        padding: 20px !important;
        margin-bottom: 18px;
    }

    .review-item::before {
        margin: -1.25rem -1.25rem 1.25rem -1.25rem;
    }

    .reviewer-name {
        font-size: 1rem;
    }

    .review-text {
        font-size: 0.9rem;
        padding: 0.875rem;
    }

    .btn-submit-review {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* ---- Global Layout & Utility System ---- */
.container-80 {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
}

@media (max-width: 1440px) {
    .container-80 {
        width: 95%;
    }
}

/* Optimized 5-Column Grid */
.grid-5 {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.grid-5>[class*="col-"] {
    padding: 0 10px;
}

@media (min-width: 1200px) {
    .grid-5>div {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Premium Toast Notification System */
#toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.custom-toast {
    min-width: 300px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-left: 5px solid var(--header-accent);
    overflow: hidden;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    opacity: 0;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast.error {
    border-left-color: #ff4757;
}

.custom-toast .toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
}

.custom-toast .toast-icon {
    font-size: 20px;
    color: var(--header-accent, #00512C);
}

.custom-toast.error .toast-icon {
    color: #ff4757;
}

.custom-toast .toast-message {
    font-size: 14px;
    font-weight: 600;
    color: #2f3542;
    line-height: 1.4;
}

.custom-toast .toast-close {
    background: none;
    border: none;
    color: #a4b0be;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
    transition: color 0.2s;
}

.custom-toast .toast-close:hover {
    color: #2f3542;
}

.custom-toast .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--header-accent, #00512C);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 3s linear;
}

.custom-toast.error .toast-progress {
    background: #ff4757;
}

/* ==========================================================================
   Product Details Page (Modern UI/UX)
   ========================================================================== */

:root {
    --pd-primary: #00512C;
    --pd-accent: #f59e0b;
    --pd-text-main: #111827;
    --pd-text-muted: #6b7280;
    --pd-bg-light: #f8fafc;
    --pd-border: #e2e8f0;
    --pd-radius: 16px;
    --pd-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --pd-font: 'Outfit', sans-serif;
}

.product-details-page {
    background: #ffffff;
    font-family: var(--pd-font) !important;
    padding-bottom: 60px;
}

/* Breadcrumb Modern Styling */
.pd-breadcrumb-wrapper {
    background: var(--pd-bg-light);
    padding: 16px 0;
    border-bottom: 1px solid var(--pd-border);
    margin-bottom: 30px;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-breadcrumb-item a {
    color: var(--pd-text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pd-breadcrumb-item a:hover {
    color: var(--pd-primary);
}

.pd-breadcrumb-item.active {
    color: var(--pd-text-main);
    font-weight: 700;
}

.pd-breadcrumb-item+.pd-breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #cbd5e1;
    font-size: 12px;
    margin-right: 10px;
}

/* Product Main Layout */
.pd-main-container {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .pd-main-container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pd-breadcrumb-wrapper {
        padding: 10px 0;
        margin-bottom: 14px;
    }

    .pd-main-container {
        gap: 14px;
        margin-bottom: 24px;
    }

    .pd-info-section {
        gap: 10px;
    }

    .pd-premium-badge {
        font-size: 11px;
        padding: 4px 12px;
    }

    .pd-title {
        font-size: 18px;
        font-weight: 700;
    }

    .pd-current-price {
        font-size: 20px;
    }

    .pd-original-price {
        font-size: 15px;
    }

    .pd-rating-text {
        font-size: 12px;
    }

    .pd-stars {
        font-size: 12px;
    }

    .pd-description-brief {
        padding: 10px 12px;
        font-size: 13px;
    }

    .pd-variation-label {
        font-size: 13px;
    }

    .pd-size-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .pd-color-btn {
        width: 34px;
        height: 34px;
    }

    .pd-selected-info {
        padding: 10px 12px;
    }

    .pd-info-label {
        font-size: 11px;
    }

    .pd-info-value {
        font-size: 13px;
    }

    .pd-purchase-actions {
        gap: 8px;
        margin-top: 10px;
    }

    .pd-quantity-selector {
        padding: 4px 8px;
        height: 40px;
        border-radius: 50px;
    }

    .pd-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .pd-qty-input {
        font-size: 14px;
        width: 36px;
    }

    .pd-btn-cart,
    .pd-btn-buy {
        height: 40px;
        font-size: 13px;
        border-radius: 10px;
    }

    .pd-messenger-row {
        gap: 8px;
        margin-top: 10px;
    }

    .pd-msg-btn {
        height: 38px;
        font-size: 13px;
        border-radius: 10px;
    }

    .pd-extra-actions {
        margin-top: 16px !important;
        padding-top: 14px !important;
    }

    .pd-thumb-swiper .swiper-slide {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }

    .pd-main-swiper {
        margin-bottom: 8px;
    }
}

/* Gallery System */
.pd-gallery-section {
    flex: 1;
    min-width: 0;
}

.pd-main-swiper {
    border-radius: var(--pd-radius);
    overflow: hidden;
    background: var(--pd-bg-light);
    border: 1px solid var(--pd-border);
    margin-bottom: 15px;
    aspect-ratio: 1/1;
}

.pd-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.5s ease;
}

.pd-main-swiper .swiper-slide img:hover {
    transform: scale(1.05);
}

.pd-thumb-swiper {
    padding: 5px 0;
}

.pd-thumb-swiper .swiper-slide {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.pd-thumb-swiper .swiper-slide-thumb-active {
    border-color: var(--pd-primary);
    opacity: 1;
    box-shadow: 0 4px 10px rgba(0, 81, 44, 0.2);
}

.pd-thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Section */
.pd-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pd-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00512C, #10B981);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0, 81, 44, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pd-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--pd-text-main);
    line-height: 1.2;
    margin: 0;
}

.pd-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-stars {
    color: var(--pd-accent);
    font-size: 14px;
}

.pd-rating-text {
    color: var(--pd-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.pd-price-container {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.pd-current-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--pd-primary);
}

.pd-original-price {
    font-size: 20px;
    color: var(--pd-text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.pd-description-brief {
    background: var(--pd-bg-light);
    padding: 15px;
    border-radius: var(--pd-radius);
    border-left: 4px solid var(--pd-primary);
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

/* Variations */
.pd-variation-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-variation-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--pd-text-main);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pd-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-size-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--pd-border);
    background: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pd-size-btn:hover {
    border-color: var(--pd-primary);
    color: var(--pd-primary);
}

.pd-size-btn.active {
    background: var(--pd-primary);
    color: white;
    border-color: var(--pd-primary);
    box-shadow: 0 4px 12px rgba(0, 81, 44, 0.3);
}

.pd-color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--pd-border);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pd-color-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-color-btn:hover {
    transform: scale(1.1);
}

.pd-color-btn.active {
    box-shadow: 0 0 0 2px var(--pd-primary);
}

/* Quantity & Purchase Row */
.pd-purchase-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.pd-quantity-selector {
    display: flex;
    align-items: center;
    background: var(--pd-bg-light);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid var(--pd-border);
}

.pd-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--pd-text-main);
}

.pd-qty-btn:hover {
    background: var(--pd-primary);
    color: white;
}

.pd-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 16px;
    color: var(--pd-text-main);
}

.pd-btn-cart {
    flex: 1;
    background: white;
    color: var(--pd-primary);
    border: 2px solid var(--pd-primary);
    height: 48px;
    border-radius: var(--pd-radius);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.pd-btn-cart:hover {
    background: var(--pd-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 81, 44, 0.2);
}

.pd-btn-cart.outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    box-shadow: none;
}

.pd-btn-cart.outline:hover {
    border-color: var(--pd-primary);
    background: white;
    color: var(--pd-primary);
}

.pd-btn-cart.sm {
    flex: none;
    width: auto;
    height: 42px;
    padding: 0 25px;
    font-size: 14px;
}

.pd-btn-buy {
    flex: 1;
    background: var(--pd-primary);
    color: white;
    border: none;
    height: 48px;
    border-radius: var(--pd-radius);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none !important;
}

.pd-btn-buy:hover {
    background: #004322;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 81, 44, 0.3);
}

/* Responsive Purchase ≤576px */
@media (max-width: 576px) {
    .pd-purchase-actions {
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 5px;
        align-items: center;
    }

    .pd-quantity-selector {
        flex-shrink: 0;
        width: auto;
        padding: 3px 8px;
        height: 40px;
    }

    .pd-qty-btn {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .pd-qty-input {
        width: 30px;
        font-size: 13px;
    }

    /* Override inline display:contents on the form */
    #buyNowForm {
        display: flex !important;
        flex: 1;
        min-width: 0;
    }

    .pd-btn-cart {
        flex: 1;
        font-size: 12px;
        padding: 0 6px;
        white-space: nowrap;
        min-width: 0;
        height: 40px;
        gap: 5px;
    }

    .pd-btn-cart i,
    .pd-btn-buy i {
        font-size: 12px;
    }

    .pd-btn-buy {
        flex: 1;
        font-size: 12px;
        padding: 0 6px;
        white-space: nowrap;
        height: 40px;
        gap: 5px;
    }

    .pd-messenger-row {
        gap: 8px;
        margin-top: 8px;
    }

    .pd-msg-btn {
        height: 40px;
        font-size: 13px;
        border-radius: 10px;
        padding: 0 14px;
    }

    .pd-premium-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* Messenger Buttons */
.pd-messenger-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.pd-msg-btn {
    flex: 1;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    color: white !important;
    transition: all 0.3s ease;
}

.pd-whatsapp {
    background: #25D366;
}

.pd-messenger {
    background: #0084FF;
}

.pd-msg-btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tabs UI */
.pd-tabs-section {
    margin-top: 50px;
}

.pd-tab-nav {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid var(--pd-border);
    margin-bottom: 30px;
    padding-bottom: 0;
    overflow-x: auto;
}

.pd-tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-weight: 700;
    font-size: 18px;
    color: var(--pd-text-muted);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.pd-tab-btn.active {
    color: var(--pd-primary);
}

.pd-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--pd-primary);
    border-radius: 3px;
}

.pd-tab-content {
    display: none;
    animation: pdFadeIn 0.5s ease;
}

.pd-tab-content.active {
    display: block;
}

@keyframes pdFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specifications Table */
.pd-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.pd-spec-table tr td {
    padding: 16px;
    border: 1px solid var(--pd-border);
}

.pd-spec-table tr td:first-child {
    background: var(--pd-bg-light);
    font-weight: 700;
    width: 30%;
    color: var(--pd-text-main);
}

.pd-spec-table tr td:last-child {
    color: #4b5563;
}

/* Review Cards */
.pd-review-card {
    background: white;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.pd-review-card:hover {
    box-shadow: var(--pd-shadow);
}

.pd-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.pd-reviewer-info h5 {
    font-weight: 700;
    margin: 0;
    font-size: 16px;
}

.pd-review-date {
    font-size: 13px;
    color: var(--pd-text-muted);
}

.pd-review-comment {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* Responsive refinements */
@media (max-width: 768px) {
    .pd-title {
        font-size: 24px;
    }

    .pd-current-price {
        font-size: 28px;
    }

    .pd-tab-btn {
        font-size: 16px;
    }
}

/* Related Products PREMIUM Grid */
.pd-related-section {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.pd-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic--bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f3f4f6;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pd-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pd-card-image {
    position: relative;
    padding-top: 125%;
    /* 4:5 Aspect Ratio */
    background: #f3f4f6;
    overflow: hidden;
}

.pd-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic--bezier(0.4, 0, 0.2, 1);
}

.pd-product-card:hover .pd-card-image img {
    transform: scale(1.1);
}

.pd-card-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    z-index: 10;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pd-card-wishlist:hover {
    background: white;
    transform: scale(1.1);
}

.pd-card-wishlist.active {
    color: #ef4444;
}

.pd-card-rating {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pd-card-rating i {
    color: #f59e0b;
}

.pd-card-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pd-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.pd-card-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pd-card-price .current {
    font-size: 18px;
    font-weight: 700;
    color: var(--pd-primary);
}

.pd-card-price .original {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Share & Wishlist in PD */
.pd-wishlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
}

.pd-wishlist-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.pd-wishlist-btn.active {
    background: #fef2f2;
    border-color: #fee2e2;
    color: #ef4444;
}

.pd-share-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pd-share-label {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pd-share-icons {
    display: flex;
    gap: 12px;
}

.pd-share-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pd-share-icon:hover {
    background: var(--pd-primary);
    color: white;
    transform: translateY(-3px);
}

/* Messenger Row Refinement */
.pd-messenger-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.pd-msg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pd-msg-btn.whatsapp {
    background: #25d366;
    color: white;
}

.pd-msg-btn.messenger {
    background: #0084ff;
    color: white;
}

.pd-msg-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
    color: white;
}

@media (max-width: 768px) {
    .pd-messenger-row {
        gap: 8px;
        margin-top: 15px;
        grid-template-columns: 1fr 1fr;
    }

    .pd-msg-btn {
        padding: 10px;
        font-size: 20px;
        /* Bigger icon for mobile touch points */
        border-radius: 12px;
    }
}

/* Splide Nav Customization */
.pd-related-splide .splide__arrow {
    background: white;
    opacity: 1;
    width: 48px;
    height: 48px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pd-related-splide .splide__arrow:hover {
    background: var(--pd-primary);
}

.pd-related-splide .splide__arrow:hover svg {
    fill: white;
}

.pd-related-splide .splide__arrow svg {
    fill: #111827;
    width: 20px;
    height: 20px;
}

/* --- PREMIUM UI POLISH --- */

:root {
    --pd-primary: #059669;
    /* Emerald 600 */
    --pd-primary-dark: #047857;
    --pd-primary-light: #ecfdf5;
    --pd-accent: #f59e0b;
    /* Amber 500 */
    --pd-bg-soft: #f9fafb;
    --pd-border-soft: #f1f5f9;
    --pd-shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --pd-radius-xl: 20px;
}

/* Premium Badge */
.pd-premium-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

/* Wishlist Button Polish */
.pd-wishlist-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 14px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s cubic--bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pd-wishlist-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pd-wishlist-btn.active {
    background: #fff1f2;
    border-color: #fecaca;
    color: #e11d48;
}

/* Reviews Summary Modernization */
.pd-rating-summary-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--pd-shadow-premium);
    height: 100%;
}

.pd-overall-score {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 25px;
}

.pd-score-num {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    display: block;
}

.pd-score-stars {
    color: #f59e0b;
    font-size: 18px;
    margin: 10px 0;
}

.pd-rating-counts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-rating-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pd-rating-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    width: 60px;
}

.pd-progress-wrapper {
    flex-grow: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.pd-progress-bar {
    height: 100%;
    background: #f59e0b;
    border-radius: 10px;
    transition: width 1s cubic--bezier(0.4, 0, 0.2, 1);
}

.pd-rating-count-val {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    width: 25px;
    text-align: right;
}

/* Star Rating Input Polish */
.pd-stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.pd-star-radio {
    display: none;
}

.pd-star-label {
    cursor: pointer;
    font-size: 28px;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.pd-star-label:hover,
.pd-star-label:hover~.pd-star-label,
.pd-star-radio:checked~.pd-star-label {
    color: #f59e0b;
}

.pd-star-label i {
    transition: transform 0.2s cubic--bezier(0.175, 0.885, 0.32, 1.275);
}

.pd-star-label:hover i {
    transform: scale(1.2);
}

/* Related Product Cards Enhanced */
.pd-product-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic--bezier(0.4, 0, 0.2, 1);
}

.pd-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}

.pd-card-image {
    border-radius: 16px 16px 0 0;
}

.pd-card-info {
    padding: 20px;
}

.pd-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.pd-product-card:hover .pd-card-title {
    color: var(--pd-primary);
}

.pd-card-price .current {
    font-size: 20px;
    font-weight: 800;
}

/* Carousel Arrow Polish */
.pd-related-splide .splide__arrow {
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: all 0.3s ease;
}

.pd-related-splide:hover .splide__arrow {
    opacity: 1;
}

.pd-related-splide .splide__arrow--prev {
    left: -25px;
}

.pd-related-splide .splide__arrow--next {
    right: -25px;
}

.pd-related-splide .splide__arrow:hover {
    background: var(--pd-primary);
    border-color: var(--pd-primary);
}

.pd-related-splide .splide__arrow:hover svg {
    fill: white;
}

/* --- TABS POLISH --- */
.pd-tabs-section {
    margin-top: 60px;
}

.pd-tabs-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0;
    margin-bottom: 40px;
    position: relative;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.pd-tabs-header::-webkit-scrollbar {
    display: none;
}

.pd-tab-btn {
    padding: 16px 28px;
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic--bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-tab-btn i {
    font-size: 14px;
    opacity: 0.7;
}

.pd-tab-btn:hover {
    color: var(--pd-primary);
    background: #f0fdf4;
    border-radius: 12px 12px 0 0;
}

.pd-tab-btn.active {
    color: var(--pd-primary);
}

.pd-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--pd-primary);
    border-radius: 10px 10px 0 0;
}

/* Breadcrumb Polish */
.pd-breadcrumb-wrapper {
    background: #f8fafc;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pd-breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

.pd-breadcrumb-item+.pd-breadcrumb-item::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin: 0 12px;
    color: #cbd5e1;
}

.pd-breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.pd-breadcrumb-item a:hover {
    color: var(--pd-primary);
}

.pd-breadcrumb-item.active {
    color: #1e293b;
    font-weight: 600;
}

/* Share Icons Polish */
.pd-share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pd-share-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pd-share-icon.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.pd-share-icon.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.pd-share-icon.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

/* Review Card Modernization */
.pd-review-item {
    background: white;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.pd-review-item:hover {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

/* General Premium Refinements */
.pd-variation-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 12px;
}

.pd-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 36px;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 8px;
}

.pd-price-container {
    padding: 20px 0;
    margin: 15px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.pd-current-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--pd-primary);
    font-size: 32px;
}

.pd-original-price {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 15px;
}

/* Share label */
.pd-share-label {
    font-weight: 700;
    font-size: 14px;
    color: #475569;
    margin-right: 15px;
}

/* Related section title */
.pd-section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #0f172a;
}

/* Unify Related Card Overlay - removing redundant ::after button */
.pd-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.pd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.3s ease;
}

.pd-product-card:hover .pd-card-image img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

/* Review List Polish */
.pd-review-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.pd-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.pd-user-meta h5 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.pd-user-meta span {
    font-size: 12px;
    color: #94a3b8;
}

.pd-review-content {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

/* Scroll Indicator */
.pd-scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, #059669, #10b981);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Related Products Premium Styling */
.pd-related-section {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.pd-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.pd-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pd-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6;
}

.pd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pd-product-card:hover .pd-card-image img {
    transform: scale(1.1);
}

.pd-card-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pd-card-wishlist:hover {
    background: #fff;
    color: #ef4444;
    transform: scale(1.1);
}

.pd-card-wishlist.active {
    color: #ef4444;
}

.pd-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.pd-card-badge.discount {
    background: #ef4444;
    color: #fff;
}

.pd-card-badge.stock-out {
    background: #374151;
    color: #fff;
}

.pd-card-rating {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pd-card-rating i {
    color: #fbbf24;
}

.pd-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pd-product-card:hover .pd-card-overlay {
    opacity: 1;
}

.pd-overlay-text {
    background: #059669;
    /* Primary Green */
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.pd-product-card:hover .pd-overlay-text {
    transform: translateY(0);
    background: #047857;
}

.pd-card-info {
    padding: 10px;
    text-align: center;
}

.pd-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-card-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pd-card-price .current {
    font-size: 14px;
    font-weight: 800;
    color: #059669;
}

.pd-card-price .original {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Variation Info Polish */
.pd-selected-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.pd-info-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
}

.pd-info-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pd-info-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.pd-stock-status {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pd-stock-status.out-of-stock {
    color: #ef4444;
}

.pd-stock-status.in-stock {
    color: #059669;
}

.pd-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pd-color-btn,
.pd-size-btn {
    border: 1px solid #e2e8f0;
    background: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
    text-align: center;
}

.pd-color-btn:hover,
.pd-size-btn:hover {
    border-color: var(--pd-primary);
    background: #f0fdf4;
    color: var(--pd-primary);
}

.pd-color-btn.active,
.pd-size-btn.active {
    background: var(--pd-primary);
    color: white;
    border-color: var(--pd-primary);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.pd-color-btn img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.pd-color-btn .color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

/* Floating Main Wishlist Button */
.pd-main-wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
}

.pd-main-wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pd-main-wishlist-btn.active {
    background: #fdf2f2 !important;
    color: #ef4444 !important;
}

.pd-main-wishlist-btn.active i {
    animation: pulse-heart 0.3s ease-out;
}

@keyframes pulse-heart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Related Card Badge Refresh */
.pd-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 2;
    text-transform: uppercase;
}

.pd-card-badge.stock-out {
    background: #1e293b;
    color: white;
}

.pd-card-badge.discount {
    background: #ef4444;
    color: white;
}

/* Review Section Refresh */
.pd-review-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pd-review-item {
    background: white;
    border: 1px solid #f1f5f9;
    padding: 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.pd-review-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #059669;
    /* Primary color fallback */
}

.no-reviews i {
    opacity: 0.5;
}

.pd-btn-post-experience {
    background: #059669;
    /* Primary color */
    color: white !important;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.pd-btn-post-experience:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

/* Premium Tabs Style */
.pd-tabs-section {
    margin-top: 60px;
    border-top: 1px solid #f1f5f9;
}

.pd-tabs-header {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0;
    margin-bottom: 40px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.pd-tab-btn {
    background: transparent;
    border: none;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-tab-btn i {
    font-size: 14px;
    opacity: 0.7;
}

.pd-tab-btn:hover {
    color: #059669;
    /* Use green primary */
}

.pd-tab-btn.active {
    color: #059669;
}

.pd-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #059669;
    border-radius: 3px 3px 0 0;
}

.pd-tab-content {
    display: none;
    animation: pdFadeIn 0.5s ease;
}

.pd-tab-content.active {
    display: block;
}

@keyframes pdFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Loading Shine */
.pd-skeleton {
    background: #f1f5f9;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: pd-skeleton-loading 1.5s infinite;
}

@keyframes pd-skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Full Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .pd-tabs-header {
        gap: 15px;
        justify-content: flex-start;
        padding: 0 15px;
    }

    .pd-tab-btn {
        font-size: 14px;
        padding: 12px 5px;
    }

    .pd-title {
        font-size: 22px !important;
    }

    .pd-price-container {
        margin-bottom: 15px;
    }

    .pd-main-container {
        display: block !important;
    }

    .pd-gallery-section {
        margin-bottom: 30px;
    }

    .pd-info-section {
        padding: 0 5px;
    }

}

/* Specification Table Polish */
.pd-spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}

.pd-spec-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 15px 20px;
    border-bottom: 2px solid #f1f5f9;
    text-align: left;
}

.pd-spec-table td {
    padding: 15px 20px;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.pd-spec-table tr:last-child td {
    border-bottom: none;
}

.pd-spec-table tr:nth-child(even) {
    background: #fdfdfd;
}

.pd-spec-table tr td:first-child {
    font-weight: 600;
    color: #64748b;
    width: 35%;
    border-right: 1px solid #f1f5f9;
}

@media (max-width: 576px) {
    .pd-spec-table tr td:first-child {
        width: 45%;
    }
}

/* --- New 2-Column Tabs & Sidebar Layout --- */

/* Tabs Header Left Aligned */
.pd-tabs-header {
    justify-content: flex-start !important;
    gap: 40px !important;
    border-bottom: 2px solid #e2e8f0;
}

.pd-tab-btn {
    padding: 15px 0;
    color: #64748b;
    font-weight: 700;
    text-transform: capitalize;
    font-size: 16px;
}

.pd-tab-btn::after {
    height: 3px;
    border-radius: 3px;
    bottom: -2px;
}

.pd-tab-btn.active {
    color: #0f172a;
}

.pd-tab-btn.active::after {
    background: #db2777;
    /* Pinkish-red from image */
}

/* Sidebar Styling */
.pd-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.pd-sidebar-card {
    background: #fdfbfb;
    /* Light off-white bg from image */
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.pd-sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 20px;
    color: #1e293b;
}

/* Story/Review Card in Sidebar */
.pd-story-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.pd-story-avatar {
    width: 32px;
    height: 32px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}

/* Rating Summary Sidebar */
.pd-overall-score .display-4 {
    font-size: 3.5rem;
    line-height: 1;
}

.pd-progress-container .progress {
    background-color: #f1f5f9;
    overflow: hidden;
}

.pd-progress-container .progress-bar {
    background: #db2777 !important;
    /* Pinkish-red */
}

/* Description Text Styling (Arrows) */
.description-text ul,
.description-text ol {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.description-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.description-text li::before {
    content: '➤';
    position: absolute;
    left: 0;
    top: 2px;
    color: #64748b;
    font-size: 12px;
}

/* Review Modal Overlay */
.pd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.pd-modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.pd-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s;
}

.pd-modal-close:hover {
    color: #ef4444;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Override existing ratings if needed */
.pd-stars-input label {
    font-size: 24px;
    margin: 0 5px;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.2s;
}

.pd-stars-input label:hover,
.pd-stars-input label:hover~label,
.pd-star-radio:checked~label {
    color: #eab308;
}


.pd-star-radio {
    display: none;
}

@media (max-width: 991px) {
    .pd-sidebar-sticky {
        position: static;
        margin-top: 40px;
    }
}

/* -------------------------------------------------------------------------- */
/* Gallery Modal Styles */
/* -------------------------------------------------------------------------- */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: auto;
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 1200px;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.gallery-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100000;
}

.gallery-close:hover,
.gallery-close:focus {
    color: var(--header-accent, #00512C);
    text-decoration: none;
    cursor: pointer;
}

.gallery-modal-main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.gallery-modal-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: grab;
}

.gallery-modal-image-container:active {
    cursor: grabbing;
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.1s;
}

.gallery-modal-thumbs {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
    height: 100px;
    overflow-x: auto;
    /* Hide scrollbar */
    scrollbar-width: none;
}

.gallery-modal-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-modal-thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-modal-thumb.active,
.gallery-modal-thumb:hover {
    opacity: 1;
    border-color: var(--header-accent, #00512C);
    transform: translateY(-2px);
}

/* Premium Footer Theme */
.footer {
    background: #111827 !important;
    color: #9ca3af !important;
    padding: 80px 0 0 !important;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-description {
    line-height: 1.8;
    margin-top: 20px;
    font-size: 15px;
    color: #9ca3af;
}

.footer-title {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: var(--primary-color, #7fad39);
    border-radius: 2px;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #9ca3af !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 15px;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.08);
}

.social-links a:hover {
    background: var(--primary-color, #7fad39) !important;
    border-color: var(--primary-color, #7fad39);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(127, 173, 57, 0.2);
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--primary-color, #7fad39);
    font-size: 18px;
    margin-top: 3px;
}

.footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #0b0f19;
}

.footer-bottom p {
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 991px) {
    .footer {
        padding: 60px 0 0 !important;
    }
    .footer-title {
        margin-top: 40px;
    }
    .footer .col-lg-3:first-child .footer-title {
        margin-top: 0;
    }
}