@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Great+Vibes&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. GLOBAL SMOOTHNESS & LUXURY PHYSICS ENGINE (UPD-01)
   ========================================================================== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Custom scrollbar with silky hover transition */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F2EFE9;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb {
    background: #7A613B;
    border-radius: 9999px;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
::-webkit-scrollbar-thumb:hover {
    background: #2C2518;
}

/* Base Typography & Canvas */
body {
    background-color: #FFFFFF;
    color: #112b21;
    font-family: 'Jost', 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
}

.font-cursive {
    font-family: 'Great Vibes', cursive;
}

/* Universal Smooth Interactive Physics */
a, button, input, select, textarea {
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Product Card Physics (Hardware Accelerated) */
.product-card-smooth {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.product-card-smooth:hover {
    transform: translateY(-5px) scale(1.01);
}

/* Mobile & Touch Momentum Physics */
.overflow-y-auto, .overflow-x-auto, #cart-items-container, #checkout-items-preview, .modal-scroll-smooth {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
}

/* Image Shimmer & Progressive Reveal */
@keyframes shimmerPulse {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-loading {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: shimmerPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Marquee Smooth Linear Animation */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 42s linear infinite;
    will-change: transform;
}

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

/* Nav Dropdown Hover Effects */
.group:hover .group-hover\:block {
    display: block;
}

/* Luxury Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden-overlay {
    opacity: 0;
    visibility: hidden;
}

/* Modal Smooth Zoom-In Animation */
@keyframes luxuryModalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-luxury-in {
    animation: luxuryModalIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cart badge Pop */
@keyframes badgePop {
    0% { transform: scale(0.7); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-bounce {
    animation: badgePop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}


