/* Google Fonts Import: Playfair Display (Serif, Headings) & Poppins (Sans-serif, Body) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* CSS Variables */
:root {
    --color-white: #FFFFFF;
    --color-maroon: #6D1F36;
    --color-maroon-dark: #4A1222;
    --color-maroon-light: #8E3A52;
    --color-gold: #C8A96B;
    --color-gold-hover: #B49458;
    --color-ivory: #F8F4EE;
    --color-charcoal: #222222;
    --color-gray-light: #F3F4F6;
    --color-gray-medium: #9CA3AF;
    --color-gray-dark: #4B5563;
    
    --font-headings: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-charcoal);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--font-headings);
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-ivory);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-maroon);
}

/* Hide scrollbar for horizontal scrolling panels (like category list on mobile) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Touch targets optimization - only apply to explicit interactive controls, not all elements */
button:not(.swiper-pagination-bullet):not(.nav-link-item),
input,
select {
    box-sizing: border-box;
}

/* Ensure tap targets are accessible without breaking layout */
.mobile-bottom-nav a,
.mobile-bottom-nav button {
    min-height: 44px;
}

/* Interactive Product Cards */
.product-card {
    transition: var(--transition-smooth);
}
.product-card:hover {
    transform: translateY(-8px);
}
.product-card img {
    transition: var(--transition-slow);
}
.product-card:hover img {
    transform: scale(1.06);
}

/* Swiper slider overrides */
.swiper-pagination-bullet {
    background: var(--color-gray-medium) !important;
    opacity: 0.5 !important;
    transition: var(--transition-smooth);
}
.swiper-pagination-bullet-active {
    background: var(--color-gold) !important;
    width: 24px !important;
    border-radius: 4px !important;
    opacity: 1 !important;
}

/* Cart Drawer overlay */
.drawer-transition {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header link interactions */
.nav-link {
    font-weight: 500 !important;
}
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: var(--transition-smooth);
}
.nav-link:hover::after {
    width: 100%;
}

/* Pulse keyframes for premium ambient effects */
@keyframes ambientGlow {
    0% { box-shadow: 0 0 5px rgba(200, 169, 107, 0.2); }
    50% { box-shadow: 0 0 15px rgba(200, 169, 107, 0.5); }
    100% { box-shadow: 0 0 5px rgba(200, 169, 107, 0.2); }
}

.ambient-gold {
    animation: ambientGlow 3s infinite ease-in-out;
}

/* Desktop styles */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    /* Native App Feel */
    body {
        padding-bottom: 80px; /* Leave space for sticky bottom nav (h-16 = 64px + extra) */
    }
    
    /* App Card UI spacing */
    .mobile-card-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 12px;
    }
    
    /* Sticky Bottom Nav positioning - See MOBILE LAYOUT FIXES section below */
    
    /* Horizontal scroll for category slider */
    .mobile-horizontal-scroll {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-horizontal-scroll > * {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    /* Optimize buttons for touch */
    .btn-mobile-full {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }
}

/* Premium Interaction Additions */

/* Transition for main header elements */
#main-header {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled height shrink */
#main-header.header-scrolled {
    height: 4rem !important; /* XAMPP h-16 */
}
#main-header.header-scrolled .header-inner {
    height: 4rem !important;
}

/* Mobile: add subtle shadow to homepage header (no border-b) */
@media (max-width: 768px) {
    #main-header.is-home-header {
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    }
}

/* ===================================================
   CATEGORY PAGE - FILTER BAR FIXES
   =================================================== */

@media (max-width: 768px) {
    /* Ensure filter bar select is compact and doesn't inflate */
    .filter-sort-select,
    .mobile-filter-bar select {
        min-height: unset !important;
        height: auto;
        padding: 5px 8px !important;
        font-size: 10px;
    }

    /* Category product grid: tighter gap on mobile */
    #product-grid {
        gap: 0.65rem;
    }
}

/* Logo default style on scrolled/subpages (Maroon color) */
.logo-text {
    color: var(--color-maroon) !important;
    transition: var(--transition-smooth);
}

/* Transparent Header (Homepage initial state - Desktop only) */
@media (min-width: 769px) {
    #main-header.is-transparent-initial {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%) !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
    #main-header.is-transparent-initial .nav-link {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 1px rgba(0, 0, 0, 0.25) !important;
    }
    #main-header.is-transparent-initial .nav-link:hover {
        color: var(--color-gold) !important;
    }
    #main-header.is-transparent-initial .logo-text {
        color: #FFFFFF !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2) !important;
    }
    #main-header.is-transparent-initial .logo-tagline {
        color: var(--color-gold) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    }
    #main-header.is-transparent-initial svg {
        color: #FFFFFF !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)) !important;
    }
    #main-header.is-transparent-initial svg:hover {
        color: var(--color-gold) !important;
    }
}

/* Body scroll lock overlay */
.scroll-locked {
    overflow: hidden !important;
}

/* Stacking Toast Alert Keyframes */
@keyframes toastSlideIn {
    from {
        transform: translateY(2rem) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
@keyframes toastSlideOut {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
        max-height: 100px;
        margin-bottom: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    to {
        transform: translateY(1.5rem) scale(0.95);
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

.toast-in {
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-out {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Premium Visual Shadows & Layering */
.shadow-luxury {
    box-shadow: 0 20px 40px -15px rgba(109, 31, 54, 0.08) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}
.shadow-luxury:hover {
    box-shadow: 0 30px 60px -20px rgba(109, 31, 54, 0.16) !important;
}
.shadow-gold {
    box-shadow: 0 10px 30px -10px rgba(200, 169, 107, 0.25) !important;
}

/* Luxury Diagonal Shimmer Reflections on Buttons */
.hover-shimmer {
    position: relative;
    overflow: hidden;
}
.hover-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: none;
    pointer-events: none;
}
.hover-shimmer:hover::after {
    left: 140%;
    transition: left 0.85s ease-in-out;
}

/* Skeleton Loading Shimmer animations */
@keyframes skeletonPulse {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.shimmer {
    background: linear-gradient(90deg, #f7f6f4 25%, #edebe7 50%, #f7f6f4 75%) !important;
    background-size: 200% 100% !important;
    animation: skeletonPulse 1.6s infinite ease-in-out !important;
}

/* Interactive Image Hover Zoom Layering */
.img-luxury-hover {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.group:hover .img-luxury-hover {
    transform: scale(1.04) !important;
}

/* Announcement Bar Marquee Scrolling Ticker */
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
}
.marquee-content {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    justify-content: space-around;
    align-items: center;
    animation: marquee-scroll 28s linear infinite;
}
@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* Pause scrolling on hover for accessibility/readability */
#announcement-bar:hover .marquee-content {
    animation-play-state: paused;
}

/* Whimsical float animation for ovals decorations */
@keyframes floatSlow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}
.animate-float-slow {
    animation: floatSlow 5s ease-in-out infinite;
}

/* ===================================================
   MOBILE LAYOUT FIXES
   =================================================== */

/* Fix: Swiper containers must clip slides correctly on mobile */
.swiper {
    overflow: hidden !important;
}
/* Exception: category swiper should overflow for peeking effect */
.category-swiper {
    overflow: visible !important;
}
.category-swiper .swiper-wrapper {
    overflow: visible !important;
}

/* Mobile Product Card: Reduce tall aspect ratio for comfortable 2-col grid */
@media (max-width: 768px) {
    .product-card .aspect-\[3\/5\] {
        aspect-ratio: 2/3;
    }

    /* Reduce section vertical padding on mobile */
    section.py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    section.py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Celebrity section: stack image above products on mobile, limit image height */
    .celebrity-mood-image {
        aspect-ratio: 16/9;
        max-height: 260px;
    }

    /* Trust bar: 2 columns on mobile look fine, ensure items don't overflow */
    .trust-bar .grid {
        gap: 1rem;
    }
    .trust-bar .trust-item {
        padding: 0.5rem;
    }

    /* Section headings: slightly smaller on mobile */
    .font-serif.text-3xl {
        font-size: 1.5rem;
    }

    /* Footer: reduce top/bottom padding on mobile */
    footer .pt-14 {
        padding-top: 2.5rem;
    }
    footer .pb-10 {
        padding-bottom: 1.5rem;
    }

    /* Reels section: proper height for 9:16 vertical videos */
    .reels-swiper .swiper-slide .aspect-\[9\/16\] {
        max-height: 420px;
    }

    /* Prevent horizontal overflow on all sections */
    section {
        overflow-x: hidden;
    }

    /* Mobile bottom nav: ensure all 5 items display correctly in a grid */
    .mobile-bottom-nav {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        align-items: stretch !important;
        height: 64px !important;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    }
    .mobile-bottom-nav > a,
    .mobile-bottom-nav > button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: unset !important;
        padding: 0.35rem 0.25rem;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Fix: product card mobile Add to Bag button - don't let global button rules inflate it */
    .product-card .add-to-cart-btn {
        min-height: unset;
        height: auto;
        padding: 0.625rem 1rem;
    }

    /* Fix wishlist toggle button on mobile */
    .product-card .wishlist-toggle {
        min-height: unset;
        width: 2.25rem;
        height: 2.25rem;
    }

    /* Ensure the hero slider doesn't overflow on mobile */
    .hero-swiper {
        overflow: hidden !important;
    }

    /* Announcement bar - smaller padding on mobile */
    #announcement-bar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Category swiper ovals - smaller on mobile */
    .category-swiper .aspect-\[3\/5\] {
        width: 7rem;
    }
}

/* Fix: footer grid on mobile - 2 columns for links sections */
@media (max-width: 768px) {
    footer .grid.grid-cols-1 {
        grid-template-columns: 1fr;
    }
    footer .md\:grid-cols-5 {
        gap: 1.5rem 1rem;
    }
}

/* Shadow luxury: Remove conflicting !important transition on mobile */
@media (max-width: 768px) {
    .shadow-luxury {
        box-shadow: 0 4px 16px -8px rgba(109, 31, 54, 0.10) !important;
    }
    .product-card:hover {
        transform: none; /* Disable lift on mobile (no hover state) */
    }
}

/* ===================================================
   PREMIUM CHECKOUT FLOATING LABELS & STYLES
   =================================================== */

.floating-input-container {
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background-color: #FFFFFF;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.floating-input-container:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 1px rgba(200, 169, 107, 0.15);
}
.floating-input {
    width: 100%;
    font-size: 11px;
    color: var(--color-charcoal);
    background: transparent;
    border: none;
    outline: none;
    padding: 1.25rem 0.85rem 0.45rem 0.85rem;
    font-family: var(--font-body);
    font-weight: 300;
}
.floating-label {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%) scale(1);
    transform-origin: left top;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease, font-size 0.25s ease;
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9CA3AF; /* gray-light-medium */
    pointer-events: none;
}
/* When input is focused or not empty (using placeholder hack) */
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    transform: translateY(-80%) scale(0.8);
    color: var(--color-gold);
}

/* Mobile Checkout Steps Indicators */
.checkout-step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Bottom Sheet Payment Selector for Mobile */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 150;
    transition: opacity 0.3s ease;
}
.bottom-sheet-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFFFFF;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 160;
    max-height: 80vh;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll lock body class */
body.scroll-locked {
    overflow: hidden !important;
}


