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

html {
    scroll-behavior: smooth;
}

:root {
    /* Ultra Luxury Palette */
    --clr-pearl: #FAFAFA;
    --clr-midnight: #0B1315; /* Deep luxury charcoal/emerald */
    --clr-champagne: #F2E3C6;
    --clr-gold: #C5A059;
    --clr-gold-dim: rgba(197, 160, 89, 0.3);
    --clr-charcoal: #1A1A1A;
    --clr-grey-light: #EEEEEE;
    --clr-surface: #FFFFFF;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
    
    --transition-slow: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-pearl);
    color: var(--clr-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: bodyFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bodyFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4, h5, .luxury-text {
    font-family: var(--font-serif);
    color: var(--clr-midnight);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-glass {
    background: rgba(11, 19, 21, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeUpReveal {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.animate-fade-up {
    animation: fadeUpReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Premium Buttons */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    background-color: var(--clr-midnight);
    color: var(--clr-pearl);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--clr-midnight);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-luxury:hover {
    background-color: var(--clr-gold);
    border-color: var(--clr-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-luxury-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    background-color: transparent;
    color: var(--clr-pearl);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.4);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-luxury-light:hover {
    background-color: var(--clr-pearl);
    color: var(--clr-midnight);
    border-color: var(--clr-pearl);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    border: 1px solid var(--clr-gold);
    color: var(--clr-gold);
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.btn-outline-gold:hover {
    background-color: var(--clr-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

/* Product Cards */
.product-card {
    background: var(--clr-surface);
    position: relative;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.product-card .img-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.product-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card .img-container .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

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

.product-card:hover .img-container .img-hover {
    opacity: 1;
    visibility: visible;
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem 0;
    text-align: center;
}

.card-brand {
    font-size: 0.7rem;
    color: var(--clr-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.card-price {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1rem;
    color: var(--clr-charcoal);
}

/* Product Card Hover Actions */
.product-actions-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    z-index: 50;
}

.product-card .img-container:hover .product-actions-bar {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.product-actions-bar a, .product-actions-bar button {
    flex: 1;
    padding: 1.2rem 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.action-view { background: white; color: black; border-right: 1px solid #eee !important; }
.action-cart { background: var(--clr-gold); color: white; flex: 1.5 !important; }

.action-view:hover { background: #f9f9f9; }
.action-cart:hover { background: #b5924d; }

/* Wishlist Icon */
.wishlist-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 50;
    color: var(--clr-midnight);
}

.product-card:hover .wishlist-btn {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.wishlist-btn:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

/* Sections */
.section-padding {
    padding: 4rem 5% 3rem;
}

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

.tagline {
    color: var(--clr-gold);
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.2;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

/* Nav */
.nav-link {
    position: relative;
    padding-bottom: 5px;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--clr-midnight);
    transition: var(--transition-smooth);
}
/* Infinite Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: var(--clr-midnight);
    color: var(--clr-gold);
    padding: 1rem 0;
    font-size: 0.8rem;
    letter-spacing: 5px;
    font-weight: 500;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Staggered Matrix */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 2rem;
}

.matrix-item-tall { grid-column: span 4; height: 700px; }
.matrix-item-wide { grid-column: span 8; height: 500px; }
.matrix-item-standard { grid-column: span 6; height: 600px; }

/* Enhanced Hover Reveal */
.reveal-box {
    position: relative;
    overflow: hidden;
}

.reveal-box img {
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: var(--transition-smooth);
}

.reveal-box:hover::after {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .section-padding { padding: 3.5rem 5% 2.5rem; }
    .matrix-item-tall { grid-column: span 6; height: 600px; }
    .matrix-item-wide { grid-column: span 6; height: 400px; }
}

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .section-title { font-size: 2.5rem; }
    .btn-luxury, .btn-luxury-light, .btn-outline-gold { padding: 1rem 2rem; font-size: 0.8rem; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .matrix-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .matrix-item-tall, .matrix-item-wide, .matrix-item-standard { height: 400px; }
    .section-padding { padding: 2.5rem 5% 2rem; }
    .section-title { font-size: 2.2rem; }
    
    .sticky-nav { height: 70px; padding: 0 5%; }
    header .glass { padding: 0.8rem 5%; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
    .btn-luxury, .btn-luxury-light { width: 100%; min-width: auto !important; }
}

/* Site-wide mobile hardening for template inline layouts */
@media (max-width: 900px) {
    main {
        overflow-x: hidden;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    .product-main-grid,
    .reviews-grid,
    .trust-badges-grid,
    section > div[style*="grid-template-columns: repeat(4, 1fr)"],
    section > div[style*="grid-template-columns: repeat(3, 1fr)"],
    section > div[style*="grid-template-columns: 1fr 2fr"],
    section > div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .product-card .img-container {
        height: 360px;
    }

    .product-actions-bar,
    .product-card .img-container:hover .product-actions-bar {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .wishlist-btn,
    .product-card:hover .wishlist-btn {
        opacity: 1 !important;
        transform: none !important;
    }

    .stagger-slide-left,
    .stagger-slide-right {
        transform: translateY(30px);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .section-padding {
        padding: 3rem 5% 2.5rem;
    }

    .tagline {
        letter-spacing: 2px;
        font-size: 0.68rem;
    }

    .section-title {
        font-size: 2.1rem;
        margin-bottom: 2rem;
    }

    h1[style*="font-size: 4rem"],
    h1[style*="font-size: 4.5rem"],
    h2[style*="font-size: 4rem"],
    h2[style*="font-size: 4.5rem"],
    h3[style*="font-size: 4rem"],
    h3[style*="font-size: 4.5rem"] {
        font-size: 2.35rem !important;
        line-height: 1.15 !important;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card {
        width: 100% !important;
        max-width: 420px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .product-card .img-container {
        height: auto;
        aspect-ratio: 4 / 5;
        min-height: 0;
    }

    .product-actions-bar a,
    .product-actions-bar button {
        padding: 0.95rem 0.4rem;
        letter-spacing: 1px;
        font-size: 0.65rem;
    }

    .wishlist-btn {
        top: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
    }

    .marquee {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .mobile-menu-drawer {
        width: min(90vw, 360px) !important;
    }

    footer {
        padding: 4rem 6% 2rem !important;
    }

    #newsletter-popup {
        padding: 1rem !important;
    }

    #newsletter-card {
        grid-template-columns: 1fr !important;
        max-height: calc(100dvh - 2rem);
        overflow-y: auto !important;
    }

    #newsletter-image {
        min-height: 180px;
    }

    #newsletter-card > div:last-child {
        padding: 2.25rem 1.5rem !important;
    }

    #newsletter-card h2 {
        font-size: 2rem !important;
    }

    a[href*="wa.me"][style*="position: fixed"] {
        right: 1rem !important;
        bottom: 1rem !important;
        width: 52px !important;
        height: 52px !important;
    }
}

@media (max-width: 560px) {
    .btn-luxury,
    .btn-luxury-light,
    .btn-outline-gold {
        width: 100%;
        min-width: 0 !important;
        padding: 1rem 1.2rem;
        letter-spacing: 1.2px;
    }

    .product-actions-bar {
        flex-direction: row;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .action-cart {
        flex: 1 !important;
    }

    .product-actions-bar a,
    .product-actions-bar form,
    .product-actions-bar button {
        width: 100%;
        min-width: 0;
    }

    .cart-item {
        align-items: stretch;
    }

    .cart-thumb {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 5;
    }
}
