html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    /* Navbar height offset */
}

:root {
    --bs-primary: #FF6B6B;
    --bs-danger: #FF6B6B;
    --secondary: #4ECDC4;
    --dark: #111111;
    --light: #F8F9FA;
    --gray-bg: #F3F4F6;
    --body-font: 'Plus Jakarta Sans', sans-serif;
    --brand-gold: #D4AF37;
    --radius: 24px;
    --radius-sm: 16px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tracking-wide {
    letter-spacing: 0.1em;
}

html {
    overflow-y: scroll;
    background-color: #fff !important;
}

body {
    font-family: var(--body-font);
    background-color: #fff !important;
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 98px;
    /* Reduced from 120px to close the gap */
    /* Default desktop compensation */
}

@media (max-width: 991.98px) {
    body {
        padding-top: 76px;
        /* Reduced from 90px */
        /* Balanced for mobile fixed header */
    }
}

/* Mobile Menu Collapse - Ensure proper visibility control */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
        /* Fully hide bootstrap menu on mobile to prevent conflicts */
    }
}

/* Bootstrap Overrides */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #ff5252;
    --bs-btn-hover-border-color: #ff5252;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.8rem 2rem;
    transition: var(--transition);
}

.btn-gold-outline {
    border: 1px solid #D4AF37;
    color: #D4AF37;
    background: transparent;
    border-radius: 50px;
    padding: 0.375rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold-outline:hover {
    background: #D4AF37;
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

#footerNewsletterEmail {
    padding-right: 110px !important;
    /* Make space for the button */
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--bs-primary);
}

/* Sidebar Filters */
.filter-card {
    border: none;
    background: #fff;
}

.filter-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #000;
}

.filter-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}


/* NAVBAR LINKS PREMIUM HOVER */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease !important;
}

.navbar-nav .nav-link:hover {
    color: #D4AF37 !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4AF37;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.filter-link:hover {
    color: var(--bs-primary);
    padding-left: 5px;
}

/* MEGA MENU STYLES */
.has-mega-menu {
    position: static !important;
    /* Allow full width */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block !important;
    /* Override bootstrap collapse if needed */
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    margin-bottom: 1rem;
    display: block;
    text-decoration: none;
}

.mega-menu-link {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.mega-menu-link:hover {
    color: #D4AF37;
    transform: translateX(5px);
}

/* Promo Image Hover */
.hover-scale-img img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-scale-img:hover img {
    transform: scale(1.05);
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.active {
    border-color: #000;
}

/* --- PREMIUM PRODUCT CARD SYSTEM --- */

:root {
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.08);
    --accent-gradient: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%);
}

.product-card,
.product-card-home {
    background: #fff;
    border-radius: 8px;
    /* Sharp and modern */
    padding: 0;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover,
.product-card-home:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 0, 0, 0.1);
}

.product-image-box,
.product-image-home {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.product-img-hover,
.product-image-box img,
.product-image-home img {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom rounded size if Bootstrap doesn't support rounded-5 */
.rounded-5 {
    border-radius: 32px !important;
}

/* Wrapper animations */
.hover-translate-up {
    transition: transform 0.3s ease;
}

.hover-translate-up:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.1);
}

.product-card:hover img,
.product-card-home:hover img {
    transform: scale(1.1);
}

/* Floating Actions - ELEGANT VERSION */
.btn-favorite-float {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-favorite-float i {
    color: #000 !important;
}

.btn-favorite-float:hover {
    background: #fff;
    transform: scale(1.1);
    color: #000;
}

.btn-favorite-float.active {
    background: #fff;
    color: #FF6B6B;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.2);
}

/* Hide floating heart on mobile - using inline version instead */
@media (max-width: 767px) {
    .btn-favorite-float {
        display: none !important;
    }
}

/* Inline heart button for mobile - next to name/price */
.btn-favorite-inline {
    background: transparent;
    border: none;
    color: #000;
    padding: 4px 8px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-favorite-inline i {
    color: #000 !important;
}

.btn-favorite-inline:hover,
.btn-favorite-inline:active {
    color: #FF6B6B;
}

.btn-favorite-inline:hover i,
.btn-favorite-inline:active i {
    color: #FF6B6B !important;
}



.btn-favorite-inline.active {
    color: #FF6B6B;
}

/* Quick Buy Overlay - Removed as requested */
.product-overlay {
    display: none !important;
}

/* Cart Button - Circle Style */
.btn-cart-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-cart-circle:hover {
    background: #D4AF37;
    /* Gold */
    color: #000;
    transform: rotate(15deg) scale(1.15);
}

/* Text Styling - ELEGANT VERSION */
.product-meta {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    color: #bbb;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
    transition: color 0.3s;
    display: block;
    text-decoration: none;
}

.product-title:hover {
    color: #FF6B6B;
}

/* ELEGANT PRICE - Dark instead of red */
.product-price {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #111 !important;
    background: none !important;
    -webkit-text-fill-color: #111 !important;
}

/* Filter Section Styling */
.filter-card {
    background: #fff;
    border-radius: 28px;
    padding: 35px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--card-shadow);
}

.filter-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #111;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-title::after {
    content: '';
    height: 2px;
    flex: 1;
    background: #f0f0f0;
}

.filter-link {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-link:hover {
    color: #000;
    padding-left: 8px;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* No border, just a subtle inner shadow for depth */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.color-dot:hover {
    transform: scale(1.1);
}

/* Active state - Simple scaling, rely on the visual Check icon inside */
.color-dot.active {
    transform: scale(1.1);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    /* No heavy outer ring */
}

/* Mini color dots for catalogue cards - ELEGANT */
.color-dot-mini {
    display: inline-block;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.color-dot-mini:hover {
    transform: scale(1.3);
}

/* Better card spacing on mobile */
@media (max-width: 767px) {
    .product-card {
        margin-bottom: 8px;
    }

    .row-cols-2>* {
        padding: 6px !important;
    }

    /* Smaller title on mobile */
    .product-title {
        font-size: 0.85rem !important;
    }

    /* Smaller price on mobile */
    .product-price {
        font-size: 0.9rem !important;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- MOBILE SIDE DRAWER (Woolrich Style) --- */

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 106px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 106px);
    /* Use dvh for mobile browsers */
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1015;
    backdrop-filter: blur(4px);
}

@media (max-width: 991.98px) {
    .mobile-overlay {
        top: 76px;
        /* Match mobile header height */
        height: calc(100dvh - 76px);
    }
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer */
.mobile-menu {
    position: fixed;
    /* Adjust top to match roughly the header height so it doesn't cover it. 
       Header has ~90px logo + padding. Let's say 106px safe area or calculate it. 
       We'll use a variable or fixed value. */
    top: 106px;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100dvh - 106px);
    /* Use dvh */
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease, visibility 0.3s step-end;
    z-index: 1020;
    /* Below Navbar (which is usually 1030 in Bootstrap fixed-top) */
    /* border-top removed to merge seamlessly with header */
    visibility: hidden;
    /* Hide cleanly when closed to prevent shadow leak */

    /* Ensure flex container for panels */
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .mobile-menu {
        top: 76px;
        /* Match mobile header height */
        height: calc(100dvh - 76px);
    }
}

/* Fix Scrolling in Mobile Panels */
.menu-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-panel>.overflow-y-auto {
    flex: 1 1 auto;
    overflow-y: auto !important;
    min-height: 0;
    /* Critical for flex scrolling */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* padding-bottom moved to inner content for Safari fix */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* Force hardware acceleration */
}

.mobile-menu-content {
    padding-bottom: 120px;
    /* Safe area attached to content */
}

.mobile-menu.active {
    transform: translateX(0);
    box-shadow: none;
    /* No shadow needed if seamless */
    visibility: visible;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease, visibility 0s step-start;
}

/* Ensure Navbar is above menu */
.navbar {
    z-index: 1030 !important;
    background-color: #fff;
    /* Ensure it's opaque */
}

/* Hide the Close button inside the menu since the burger becomes the X */
.mobile-menu .btn-close,
#closeMobileMenu {
    display: none !important;
}

/* Prevent Body Scroll */
body.no-scroll {
    overflow: hidden;
}

/* Mobile Link Styling */
.mobile-link {
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
}

.mobile-link:active,
.mobile-link:hover {
    background: rgba(212, 175, 55, 0.05);
    color: var(--brand-gold) !important;
    transform: translateX(5px);
}

/* Submenu Collapse Animation */
/* Panel Transitions */
.menu-panel {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease;
    will-change: transform;
}

/* ✅ Conteneur icône : nécessaire pour positionner le badge */
.icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    min-width: 32px;
    min-height: 32px;
}

@media (max-width: 991.98px) {
    .icon-wrapper {
        padding: 2px !important;
        /* Aggressive reduction for mobile */
        min-width: 28px;
    }
}

@media (max-width: 480px) {
    .icon-wrapper {
        padding: 5px !important;
        min-width: 1px !important;
        min-height: 34px !important;
        margin: 0 2px !important;
    }
}

/* Desktop : badge à droite, légèrement décalé */
.badge-notif {
    position: absolute;
    top: 0px;
    right: 0px;
    transform: translate(50%, -50%);
    background: var(--bs-danger);
    color: white;

    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    flex-shrink: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: system-ui, sans-serif;

    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

/* 📱 Mobile portrait : badge plus aéré */
@media (max-width: 480px) {
    .badge-notif {
        top: 0px;
        /* Remonté juste ce qu'il faut */
        right: 0px;
        /* Sorti juste ce qu'il faut */
        transform: translate(50%, -50%);
        /* Centré sur le coin */

        width: 20px !important;
        /* Plus grand que 18px pour lisibilité */
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;

        font-size: 0.6rem;
        border: 2px solid white;
        /* Bordure blanche bien visible */
    }

    .icon-wrapper {
        padding: 5px;
        /* Espace équilibré */
        min-width: 34px;
        min-height: 34px;
        margin: 0 6px;
        /* Ecarte les icones entre eux */
    }

    /* ✅ Assurer l'espacement du header mobile */
    .navbar .d-flex.align-items-center {
        gap: 10px;
        /* Force l'espacement global */
    }
}

/* --- Mobile Menu Accordion Styles (Level 2/3) --- */
.accordion-button {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.accordion-button::after {
    display: none !important;
    /* Hide default bootstrap arrow */
}

.transition-icon {
    transition: transform 0.3s ease;
}

.accordion-button[aria-expanded="true"] .transition-icon {
    transform: rotate(180deg);
}

/* FIXED: Mobile Menu Scrolling Logic */
#mobileMenu {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    /* Height is set inline via calc() */
}

.menu-panels-container {
    flex: 1 1 auto !important;
    position: relative !important;
    height: 100% !important;
    overflow: hidden !important;
    pointer-events: auto !important;
}

.menu-panel {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    pointer-events: auto !important;
    /* Ensure touches register */
}

/* Target the scrollable inner div specifically */
.menu-panel>div.flex-grow-1,
.menu-panel>.overflow-y-auto {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    display: block !important;
    height: auto !important;
    /* Let flex handle height */
    padding-bottom: 50px !important;
}

/* --- TABLET NAVBAR FIX (992px - 1199px) --- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Réduire l'espacement entre les liens de navigation */
    .navbar-nav.gap-4 {
        gap: 0.5rem !important;
    }

    /* Réduire la taille du texte des liens */
    .navbar-nav .nav-link {
        font-size: 0.7rem !important;
        white-space: nowrap;
    }

    /* Réduire la barre de recherche */
    .d-none.d-lg-flex form[action*="catalogue"] {
        width: 120px !important;
    }

    .d-none.d-lg-flex form[action*="catalogue"] input {
        font-size: 0.75rem;
    }

    /* Réduire le logo desktop */
    .navbar-brand img.d-none.d-lg-block {
        height: 80px !important;
        margin: -15px 0 !important;
    }

    /* Réduire les icônes */
    .d-none.d-lg-flex.align-items-center.gap-2.ms-auto {
        gap: 0 !important;
    }

    .d-none.d-lg-flex .icon-wrapper {
        padding: 3px !important;
        min-width: 28px;
    }
}

/* --- MEGA MENU DESKTOP STYLES --- */
@media (min-width: 992px) {
    .nav-item.has-mega-menu {
        position: static !important;
        /* Forces the item to NOT trap absolute children, allowing full width */
    }

    .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        /* Subtle separator */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
        /* Soft, luxurious shadow */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        padding: 3rem 0;
        pointer-events: none;
        /* Prevents clicking when hidden */
    }

    /* THE INVISIBLE BRIDGE: Prevents menu from closing when moving mouse down */
    .mega-menu::before {
        content: "";
        position: absolute;
        top: -30px;
        /* Extends upwards to connect with the nav link */
        left: 0;
        width: 100%;
        height: 30px;
        background: transparent;
    }

    .nav-item:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mega-menu-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 0.85rem;
        /* Small but punchy */
        font-weight: 800;
        /* Extra bold for headers */
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 1.25rem;
        display: block;
        color: #111;
        text-decoration: none;
    }

    .mega-menu-title:hover {
        color: #D4AF37;
        /* Luxury Gold on hover */
    }

    .mega-menu-link {
        display: block;
        color: #666;
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
        transition: all 0.2s ease;
        text-decoration: none;
        font-weight: 400;
        position: relative;
    }

    .mega-menu-link:hover {
        color: #111;
        transform: translateX(3px);
        /* Subtle nudge */
    }
}

/* --- DYNAMIC STYLES MOVED FROM PHP FILES --- */

/* FROM footer.php */
.footer {
    background-color: #111111 !important;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.footer-logo {
    height: 110px !important;
    width: auto !important;
    margin: -35px 0 -15px 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-logo:hover {
    transform: scale(1.1) rotate(-2deg);
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6) !important;
    max-width: 350px;
}

.footer-title {
    color: #ffffff !important;
    letter-spacing: 2px;
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--brand-gold);
    transition: width 0.3s ease;
}

@media (max-width: 991px) {
    .footer-title {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.footer-link {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.4s ease;
    padding: 2px 0;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-gold);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--brand-gold) !important;
    padding-left: 8px;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-policies .footer-link {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    position: relative;
    padding-bottom: 2px;
}

.footer-policies .footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--brand-gold);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-policies .footer-link:hover {
    color: var(--brand-gold) !important;
}

.footer-policies .footer-link:hover::after {
    width: 100%;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F3E5AB !important;
    text-decoration: none !important;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.social-icon:hover {
    background: linear-gradient(90deg, #b88746, #fdf5a6, #b88746);
    background-size: 200%;
    animation: bg-shine 2s infinite linear;
    color: #000 !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.5);
    border-color: #F3E5AB;
}

.social-icon i {
    font-size: 22px;
    z-index: 2;
}

.footer-newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Parent container focus state - 2px Solid Gold with perfect continuity */
.footer-newsletter-form .input-group:focus-within {
    border: 2px solid var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.footer-newsletter-form input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    padding-left: 20px;
    font-size: 0.9rem;
    outline: none !important;
    height: 100% !important;
    flex: 1 !important;
    /* Allow input to grow but share space with button */
    width: auto !important;
    /* Prevent 100% width from breaking flex layout */
}

.footer-newsletter-form input:focus,
.footer-newsletter-form input:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.footer-newsletter-form input:-webkit-autofill,
.footer-newsletter-form input:-webkit-autofill:hover,
.footer-newsletter-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--brand-gold) !important;
    -webkit-box-shadow: 0 0 0px 1000px #111 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-newsletter {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    background: var(--brand-gold);
    color: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 10 !important;
}

.btn-newsletter:hover {
    background: linear-gradient(90deg, #b88746, #fdf5a6, #b88746);
    background-size: 200%;
    animation: bg-shine 2s infinite linear;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.5);
    color: #000 !important;
}

@keyframes bg-shine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.footer-text-muted {
    color: rgba(255, 255, 255, 0.4) !important;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .footer-logo {
        height: 80px !important;
    }
}

/* FROM index.php */
.bg-overlay-dark {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.text-gold {
    color: #D4AF37;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.ls-4 {
    letter-spacing: 4px;
}

.ls-2 {
    letter-spacing: 2px;
}

.zoom-effect {
    animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1) !important;
}

.btn-favorite-filled {
    transition: all 0.3s ease;
}

.btn-favorite-filled.active i {
    color: #dc3545 !important;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FROM product.php */
.color-swatch-link {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    outline: none !important;
}

.color-swatch-link:visited {
    border-color: #e5e7eb;
}

.color-swatch-link:hover {
    transform: scale(1.1);
    border-color: #b0b0b0;
    z-index: 2;
}

.color-swatch-link.active {
    transform: scale(1.25);
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    z-index: 10;
}

.color-swatch-link[style*="background: #fff"],
.color-swatch-link[style*="background: #white"],
.color-swatch-link[style*="background: #F5F5DC"] {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.color-swatch-link:focus,
.color-swatch-link:active:focus {
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.color-swatch-link:not(.active) {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.product-price-detail {
    background: linear-gradient(135deg, #111 0%, #333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.thumbnail-container:hover {
    border-color: #000 !important;
}

.main-image-container img {
    transition: transform 0.5s ease;
}

.main-image-container:hover img {
    transform: scale(1.05);
}

.shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.btn-error {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.variant-error {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
    background-color: #fff5f5 !important;
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

#main-product-favorite.active i {
    color: #dc3545 !important;
}

#main-product-favorite i {
    transition: color 0.3s ease, transform 0.3s ease;
}

#main-product-favorite:hover i {
    transform: scale(1.2);
}

/* MODAL & POPUP STYLES */
.fw-extrabold {
    font-weight: 800;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.promo-code-box {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.promo-code-box:hover {
    border-color: #000;
    background: #fff !important;
    transform: translateY(-2px);
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#promoPopupImage {
    transition: transform 0.5s ease;
}

#promoPopupModal:hover #promoPopupImage {
    transform: scale(1.02);
}

#qv-image {
    transition: transform 0.5s ease;
}

.modal-content {
    border-radius: 12px !important;
}

/* Scoped Fix: Center icons ONLY in Category Cards (Portrait/Mobile) */
.category-card-premium .icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.category-card-premium .icon-wrapper i {
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    width: auto !important;
}

/* Ensure SVG icons are visible and sized correctly on mobile */
.category-card-premium .icon-wrapper>div,
.category-card-premium .icon-wrapper svg {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 40px !important;
    /* Safety cap matching PHP inline style */
}