:root {
    --gold: #C5A059;
    --light-gold: #E2C284;
    --black: #050505;
    --dark-gray: #111111;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- HEADER --- */
/* --- UPDATED PREMIUM NAVIGATION STYLES --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    /* More breathing room */
    background: transparent;
    /* Starts transparent for the Hero overlap */
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass effect when scrolling */
header.scrolled {
    padding: 18px 8%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.logo_first {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    color: var(--gold);
    letter-spacing: 5px;
    font-weight: 700;
    transition: var(--transition);
}

.logo_second {
    font-family: sans-serif;
    margin-top: -10px;
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 16px;
    font-weight: 100;
    transition: var(--transition);
}

header.scrolled .logo {
    color: var(--gold);
    font-size: 1.2rem;
}

/* --- ENHANCED LUXURY NAVIGATION --- */

nav ul {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Increased for a more spacious, high-end feel */
    list-style: none;
}

nav ul li {
    position: relative;
    padding: 5px 0;
}

nav ul li a {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    /* Smaller font is often perceived as more elegant */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* Extreme tracking for that luxury aesthetic */
    color: var(--white);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.7;
    /* Soften the white until hovered */
}

/* The Animated Floating Bar */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    /* Pushed down for a cleaner look */
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-50%);
    /* Ensures it grows from the center outward */
}

/* Hover States */
nav ul li a:hover {
    color: var(--gold);
    opacity: 1;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
    /* Subtle glow */
}

nav ul li a:hover::after {
    width: 100%;
    /* Line grows to full width of the text */
}

/* Active State (for the current page) */
nav ul li a.active {
    color: var(--gold);
    opacity: 1;
}

nav ul li a.active::after {
    width: 20px;
    /* Short, elegant permanent line for active link */
}

/* Special Styling for Contact/CTA Link (Optional) */
nav ul li:last-child a {
    border: 1px solid rgba(197, 160, 89, 0.4);
    padding: 10px 20px;
    border-radius: 0px;
    /* Keep it sharp/square for luxury */
    transition: all 0.3s ease;
}

nav ul li:last-child a:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

nav ul li:last-child a::after {
    display: none;
    /* Remove underline for the boxed button */
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    /* Change height from auto to 100% or 100vh */
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: var(--back);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    /* Adjusted shadow for better look */
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    /* ADD THESE TWO LINES */
    overflow-y: auto;
    /* Allows scrolling if list is long */
    overflow-x: hidden;
}

.sidebar li {
    width: 100%;
}

.sidebar li a {
    padding: 15px 25px;
    /* Increase padding for touch targets on mobile */
    width: 100%;
    display: block;
    /* Makes the whole area clickable */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Optional: adds separation */
}

@media screen and (min-width: 1300px) {
    .displayonmobile {
        display: none;
    }
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    nav ul {
        gap: 30px;
    }

    .hideonmobile {
        display: none;
    }

    nav ul li:last-child a {
        border: none;
    }

    nav ul li a {
        letter-spacing: 2px;
        font-size: 0.65rem;
    }
}

@media (max-width: 992px) {
    nav ul {
        gap: 25px;
    }

    .logo {
        letter-spacing: 2px;
    }
}


/* --- FOOTER --- */
/* --- MODERNIZED LUXURY FOOTER --- */
.luxury-footer {
    background: #020202;
    padding: 100px 8% 40px;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-main {
    flex: 1 1 350px;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 6px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #888;
    max-width: 320px;
    line-height: 1.8;
    margin-bottom: 35px;
    font-weight: 300;
}

/* Modern Newsletter Input */
.newsletter-box {
    display: flex;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    transition: var(--transition);
    max-width: 300px;
}

.newsletter-box:focus-within {
    border-color: var(--gold);
}

.newsletter-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 2px;
    outline: none;
    width: 100%;
}

.newsletter-box button {
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.newsletter-box button:hover {
    transform: translateX(5px);
}

/* Links Layout */
.footer-nav-group {
    display: flex;
    flex: 2 1 500px;
    justify-content: space-between;
    gap: 30px;
}

.footer-col h5 {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 8px;
    /* Subtle movement effect */
}

/* Bottom Bar */
.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #111;
    color: #444;
    font-size: 0.65rem;
    letter-spacing: 2px;
}

.legal-links a {
    margin-right: 25px;
    text-decoration: none;
    color: #444;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #888;
}

/* Logo Strip Container */
.logo-strip {
    background: #0a0a0a;
    /* Matches your --dark-bg */
    padding: 30px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

/* The Moving Track */
.logo-track {
    display: inline-flex;
    align-items: center;
    animation: marquee 20s linear infinite;
    /* Adjust '20s' to change speed */
}

.logo-item {
    padding: 0 40px;
    /* Space between logos */
}

.logo-item img {
    height: 75px;
    /* Small strip height */
    width: auto;

    transition: 0.3s;
}

.logo-item img:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
    cursor: pointer;
}

/* The Animation */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

    /* Moves halfway because of the duplicate list */
}

/* Floating Container */
.floating-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 9999;
}

/* Common Styles for Floating Buttons */
#scrollTopBtn,
.whatsapp-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Scroll to Top Button Style */
#scrollTopBtn {
    background-color: var(--gold);
    color: var(--black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#scrollTopBtn.show {

    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* WhatsApp Button Style */
.whatsapp-btn {
    background-color: #25D366;
    /* Official WhatsApp Green */
    color: white;
}

.whatsapp-btn:hover,
#scrollTopBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

#scrollTopBtn i,
.whatsapp-btn i {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: white;
    /* Forces the icon to be white */
}

/* Specific color for the Up Arrow if the background is gold */
#scrollTopBtn i {
    color: #050505;
}

@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-main {
        flex: 1 1 100%;
        margin: 0 auto;
    }

    .newsletter-box {
        margin: 0 auto 40px;
    }

    .footer-nav-group {
        flex-direction: column;
        gap: 40px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 20px;
    }

    #products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 5%;
    }



    #products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* 1. Define the Blinking Shadow Animation */
@keyframes luxuryGlow {
    0% {
        box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
        border-color: rgba(197, 160, 89, 0.3);
    }

    50% {
        box-shadow: 0 0 60px rgba(197, 160, 89, 0.8);
        /* The bright blink */
        border-color: #C5A059;
    }

    100% {
        box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
        border-color: rgba(197, 160, 89, 0.3);
    }
}

/* 2. The class that will be added by JavaScript */
.cart-active-blink {
    animation: luxuryGlow 1.5s infinite ease-in-out !important;
    border: 1px solid #C5A059 !important;
    /* Ensure a thin gold border during blink */
    transition: all 0.4s ease;
}