:root {
    --white: #ffffff;
    --off-white: #fafafa;
    --text-dark: #111111;
    --text-muted: #666666;
    --accent-gold: #b08d57;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: var(--font-sans);
    overflow-x: hidden;
    padding-top: 80px; /* Offset for fixed header */
}

.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 5%;
}

.navbar-brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    letter-spacing: 5px;
    font-weight: 700;
}

/* BRAND ANIMATION & SHADOW */
.brand-animate {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15); /* Clean drop shadow right */
    animation: tracking-in-expand 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) 1s both;
}

@keyframes tracking-in-expand {
    0% {
        letter-spacing: -0.5em;
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* Base navigation link styling */
.nav-link {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark) !important;
    margin: 0 15px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 10px; /* Optional: gives the line a little breathing room from the text */
}

/* Color change on hover and active state */
.nav-link:hover, 
.nav-link.active-nav { 
    color: var(--accent-gold) !important; 
  	border-bottom: 2px solid transparent;
}

/* The animated gold underline */
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px; 
    bottom: 0; 
    left: 0;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

/* Trigger animation on hover OR if it's the active page */
.nav-link:hover::after,
.nav-link.active-nav::after {
    transform-origin: bottom left;
    transform: scaleX(1);
}

.hover-underline {
            color: var(--text-dark);
            position: relative;
            display: inline-block;
            text-decoration: none;
            background: none;
            border: none;
        }
        .hover-underline::after,
        .hover-underline::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 2px;
            background: linear-gradient(to right, #b08d57);
            bottom: -5px;
            left: 0;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.4s ease-out;
        }
        .hover-underline::before {
            top: -5px;
            transform-origin: left;
        }
        .hover-underline:hover::after,
        .hover-underline:hover::before {
            transform: scaleX(1);
        }

        /* Premium Cart Popup Styles (Top Right) */
        .cart-popup-container {
            position: fixed;
            top: 90px; /* Just below the navbar */
            right: 20px;
            left: auto;
            z-index: 9999;
            visibility: hidden;
            pointer-events: none; 
        }

        .cart-popup-content {
            background: #fff;
            width: 380px;
            padding: 20px;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
            pointer-events: auto; 
            border: 1px solid #eaeaea;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        }

        .cart-popup-container.active {
            visibility: visible;
        }

        .cart-popup-container.active .cart-popup-content {
            opacity: 1;
            transform: translateY(0);
        }

        /* Elegant Flying Animation */
        @keyframes luxuryFadeShrink {
            0% { transform: scale(1); opacity: 0.9; }
            100% { transform: scale(0.1); opacity: 0; }
        }

        .luxury-flyer {
            animation: luxuryFadeShrink 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
        }

        /* Subtle Cart Icon Bump upon arrival */
        @keyframes cartBump {
            0% { transform: scale(1); }
            50% { transform: scale(1.15); }
            100% { transform: scale(1); }
        }

        .cart-bump {
            animation: cartBump 0.3s ease-out;
        }
      
      /* Profile Icon Hover Dropdown */
        .profile-dropdown-wrapper {
            position: relative;
        }
        .profile-hover-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: #fff;
            border: 1px solid #eaeaea;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            min-width: 180px;
            z-index: 1000;
            padding: 0.5rem 0;
            /* Slight delay so it doesn't vanish instantly if the mouse slips */
            transition: opacity 0.3s ease; 
        }
        .profile-dropdown-wrapper:hover .profile-hover-menu {
            display: block;
            animation: luxuryFadeShrink 0.3s cubic-bezier(0.25, 1, 0.5, 1) reverse;
        }
        .profile-hover-menu a {
            display: block;
            padding: 10px 20px;
            color: #111;
            text-decoration: none;
            font-size: 0.75rem;
            letter-spacing: 1px;
            transition: background 0.2s ease;
        }
        .profile-hover-menu a:hover {
            background-color: #f8f9fa;
            color: #b08d57;
        }
      
      /* Cookies styling*/
      #cookie-banner {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: 1000px;
        background-color: #ffebcd; /* The pastel pink from your screenshot */
        color: #111;
        padding: 15px 25px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        z-index: 999999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        font-family: var(--font-sans, 'Montserrat', sans-serif);
        display: none; /* Hidden by default until JS checks storage */
    }

    @media (min-width: 768px) {
        #cookie-banner {
            flex-direction: row;
            padding: 15px 30px;
        }
    }

    .cookie-text {
        font-size: 0.8rem;
        line-height: 1.5;
        text-align: center;
    }

    @media (min-width: 768px) {
        .cookie-text {
            text-align: left;
            padding-right: 20px;
        }
    }

    .cookie-actions {
        display: flex;
        align-items: center;
        gap: 20px;
        white-space: nowrap;
    }

    .cookie-link {
        color: #111;
        text-decoration: underline;
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 1px;
        transition: color 0.2s;
    }

    .cookie-link:hover {
        color: var(--accent-gold, #b08d57);
    }

    .cookie-accept-btn {
        background: transparent;
        border: none;
        color: #111;
        text-transform: uppercase;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 1px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 0;
        transition: color 0.2s;
    }

    .cookie-accept-btn:hover {
        color: var(--accent-gold, #b08d57);
    }

.btn-shop {
    background: transparent;
    border: 1px solid var(--text-dark);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 25px;
    border-radius: 0;
}

.hero {
    height: 90vh;
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 { font-family: var(--font-serif); font-size: clamp(2.5rem, 8vw, 4rem); }
.hero p { letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); }

.gallery-item {
    height: 600px;
    background: var(--white);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 80%;
    height: 70%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

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

.brand-label h3 { font-family: var(--font-serif); font-size: 1.5rem; }
.brand-label span { font-size: 0.7rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; }

.cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    border: 1px solid var(--text-dark);
    text-decoration: none !important;
    color: var(--text-dark);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

.cta-button:hover { background: var(--text-dark); color: var(--white); }

@media (max-width: 768px) {
    .product-row-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 1.2rem;
        padding-bottom: 0.8rem;
        scroll-snap-type: x mandatory;
    }
    .product-row-scroll > .col-6 {
        flex: 0 0 46% !important;
        max-width: 46% !important;
        scroll-snap-align: start;
    }
    
    /* Fix Offcanvas on Mobile so it isn't massive */
    .cart-offcanvas {
        width: 85vw !important;
    }
    
    /* Make the mobile popup slightly narrower */
    .cart-popup-content {
        width: 90vw !important;
    }
}

@media (min-width: 769px) {
    .product-row-scroll {
        display: flex;
        flex-wrap: nowrap;
    }
    .product-row-scroll > .col-md-3 {
        width: 25%;
        flex: 0 0 auto;
    }
}

/* Add to card styling */
.cart-offcanvas {
    background-color: #fff !important;
    color: #111;
    border-left: 1px solid #e0e0e0;
}
.cart-offcanvas .offcanvas-header {
    border-bottom: 1px solid #eee;
    padding: 1rem 1.5rem;
}
.cart-offcanvas .offcanvas-title {
    font-family: var(--font-serif);
    letter-spacing: 1px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}
.cart-offcanvas .btn-close {
    filter: none;
}
.empty-cart-msg {
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 1px;
    color: #888;
}
.cart-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 0;
}
.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cart-item-price {
    color: #b08d57;
    font-size: 0.9rem;
    margin-top: 2px;
}
.cart-item-stock {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Quantity selector */
.cart-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    height: 32px;
    margin-top: 4px;
}
.cart-qty-btn {
    background: #f9f9f9;
    border: none;
    width: 28px;
    font-size: 1rem;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    color: #333;
    padding: 0;
}
.cart-qty-btn:hover {
    background: #eee;
}
.cart-qty-num {
    width: 36px;
    text-align: center;
    font-size: 0.85rem;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    line-height: 30px;
    user-select: none;
}
.cart-remove {
    color: #999;
    font-size: 0.75rem;
    text-decoration: none;
}
.cart-remove:hover {
    color: #000;
}
.cart-total {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    font-size: 0.9rem;
}
.checkout-btn {
    background: #111;
    border: none;
    color: #fff;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.8rem;
}
.checkout-btn:hover {
    background: #333;
    color: #fff;
}

/* Product thumb in cart */
.cart-item-img {
    width: 60px;
    height: 70px;
    object-fit: cover;
    margin-right: 12px;
}