:root {
    --c-bg: #FCFBF7;
    --c-surface: #FFFFFF;
    --c-text: #1A1A1A;
    --c-text-muted: #666666;
    --c-accent: #C4A484; /* Champagne Gold */
    --c-accent-dark: #A68966;
    --c-border: rgba(0,0,0,0.08);
    --c-error: #D62828;
    --c-success: #2D6A4F;
    
    --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --f-serif: 'Playfair Display', serif;
    
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

/* Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

body:not(.loading) .page-loader {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loader-text {
    font-family: var(--f-serif);
    font-size: 3rem;
    letter-spacing: 0.5rem;
    display: block;
    margin-bottom: 20px;
}

.loader-bar {
    width: 100px;
    height: 1px;
    background: var(--c-border);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .loader-text { font-size: 2.5rem; }
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--c-text);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to { left: 100%; }
}

/* Header & Nav */
.announcement-bar {
    background: var(--c-text);
    color: #FFF;
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 10px 0;
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    background: rgba(252, 251, 247, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--c-border);
}

.navbar {
    padding: 20px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 60px;
}

.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    white-space: nowrap;
}

.nav-menu a:hover { opacity: 1; }

.mobile-filter-toggle { display: none; } /* Hide by default on desktop */

.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-main {
    font-family: var(--f-serif);
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.logo-sub {
    font-size: 9px;
    letter-spacing: 0.4em;
    margin-top: 5px;
    font-weight: 600;
}

.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.nav-tool-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--c-text);
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--c-text);
    color: #FFF;
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

@media (max-width: 991px) {
    .nav-menu { gap: 15px; }
    .nav-menu a { font-size: 11px; }
}

.desktop-only { display: block; }
.mobile-only { display: none; }

.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFF;
}

.hero-content h1 {
    font-family: var(--f-serif);
    font-size: 5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.8s;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.2s;
    pointer-events: none;
}

.scroll-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 500;
    opacity: 0.7;
}

.scroll-arrow {
    opacity: 0.8;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.categories-section { padding: 60px 0; }
.section-title {
    font-family: var(--f-serif);
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 60px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    overflow: hidden;
    width: 120%;
}

.category-image {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-icon {
    font-family: var(--f-serif);
    font-size: 2.5rem;
    color: #FFF;
    z-index: 1;
}

.category-card p {
    margin-top: 20px;
    font-size: 14px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Products Grid */
.featured-products { padding: 100px 0; background: #FFF; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.section-header .section-title { text-align: left; margin-bottom: 0; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    
    .navbar { padding: 15px 0; }
    .nav-container { display: flex; justify-content: space-between; position: relative; height: auto; }
    
    .nav-left { flex: 0 0 auto; position: relative; }
    .nav-menu { gap: 12px; }
    .nav-menu a { font-size: 11.5px; font-weight: 600; } 
    
    .nav-center {
        position: static;
        transform: none;
        flex: 1;
        margin: 0 10px;
    }

    .category-card {
        width: 100%;
    }
    
    .logo-main { font-size: 1.7rem; letter-spacing: 0.1em; }
    .logo-sub { font-size: 7px; letter-spacing: 0.2em; }
    
    .nav-right { flex: 0 0 auto; gap: 12px; }
    .nav-tool-btn svg { width: 18px; height: 18px; }

    .nav-more-wrapper { position: relative; }
    .mobile-custom-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--c-surface);
        border: 1px solid var(--c-border);
        padding: 15px;
        min-width: 140px;
        box-shadow: var(--shadow-md);
        z-index: 100;
        display: none;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
    }
    
    .mobile-custom-dropdown.active {
        display: flex;
    }
    
    .mobile-custom-dropdown a {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--c-text-muted);
    }
    
    .hero {
        height: 85vh;
        background-attachment: scroll !important;
        background-size: cover;
        background-position: center 20%;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.6rem;
        letter-spacing: 0.15em;
        margin-bottom: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 9px;
    }

    .categories-section { padding: 40px 0; }
    .section-title { font-size: 1.6rem; margin-bottom: 25px; }
    
    .categories-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px;
        max-width: 100% !important;
    }
    
    .category-image {
        height: 350px;
    }

    .featured-products { padding: 40px 0; }
    .section-header { flex-direction: column; align-items: center; gap: 15px; margin-bottom: 25px; }
    .section-header .section-title { text-align: center; }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .mobile-filter-toggle {
        display: flex;
        position: fixed;
        left: 20px;
        bottom: 30px;
        z-index: 900;
        background: var(--c-text);
        color: white;
        padding: 12px 20px;
        border-radius: 30px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        align-items: center;
        gap: 10px;
    }

    .filters-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        height: 100%;
        background: var(--c-surface);
        z-index: 2000;
        padding: 40px 30px;
        transition: var(--transition);
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .filters-sidebar.active {
        left: 0;
    }

    .products-layout {
        display: block !important;
    }

    .product-details h1 {
        font-size: 1.8rem !important;
    }

    /* Gift Card Reveal Mobile Scaling */
    .reveal-card {
        padding: 40px 15px !important;
    }
    .reveal-giftcard {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 50px !important;
        transform: none !important;
    }
    .reveal-amount {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
    }
    .reveal-code-container {
        padding: 8px 16px !important;
        width: fit-content !important;
        min-width: 150px;
    }
    #codeRevealed {
        font-size: 0.85rem !important;
    }
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
}

@media (max-width: 1200px) {
    .cart-layout { grid-template-columns: 1fr 350px; gap: 40px; }
}

@media (max-width: 991px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static !important; width: 100%; }
}

@media (max-width: 768px) {
    .cart-page h1 { font-size: 2.2rem !important; margin-bottom: 30px !important; }
    .cart-item {
        grid-template-columns: 100px 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
    }
    .cart-item-total {
        grid-column: 1 / -1;
        text-align: left !important;
        border-top: 1px solid var(--c-border);
        padding-top: 15px;
        margin-top: 10px;
    }
    .cart-summary { padding: 30px !important; }
}

/* User Dropdown */
.nav-user-wrapper { position: relative; }
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: 20px;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-user-wrapper:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-info { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--c-border); }
.user-name { font-weight: 600; font-size: 14px; }
.user-balance { font-size: 12px; color: var(--c-text-muted); }
.dropdown-links li { margin: 10px 0; }
.dropdown-links a { font-size: 13px; }

/* Hero Section Desktop */

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 45px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--c-text);
    color: #FFF;
}

.btn-primary:hover {
    background: var(--c-accent);
}

.btn-dark {
    background: var(--c-text);
    color: #FFF;
}

.btn-dark:hover {
    opacity: 0.9;
}

.btn-light {
    background: #FFF;
    color: var(--c-text);
}

.btn-full { width: 100%; text-align: center; }


@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
    position: relative;
}

.product-image-container {
    position: relative;
    aspect-ratio: 4/5;
    background: #F5F5F5;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image {
    height: 100%;
    background-size: 85% auto;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.6s ease;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-image img[src] {
    opacity: 1;
}

.product-card:hover .product-image { transform: scale(1.05); }

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--c-accent);
    color: #FFF;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    letter-spacing: 0.1em;
}

.product-info { text-align: center; }
.product-name {
    font-family: var(--f-serif);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.star { color: #DDD; font-size: 12px; }
.star.filled { color: var(--c-accent); }
.review-count { font-size: 11px; color: var(--c-text-muted); }

.product-price {
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 120px;
    right: 40px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: 15px 25px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-content { font-size: 14px; font-weight: 500; }
.toast-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; }

/* Modals */
.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.modal-container {
    background: var(--c-surface);
    width: 90%;
    max-width: 500px;
    position: relative;
    padding: 60px 40px;
    transform: translateY(30px);
    transition: var(--transition);
}

.custom-modal.active .modal-container {
    transform: translateY(0);
}

.modal-title {
    font-family: var(--f-serif);
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.modal-text, .modal-subtitle {
    text-align: center;
    color: var(--c-text-muted);
    margin-bottom: 30px;
}

.modal-actions { display: flex; justify-content: center; }

.modern-form .form-input-group { margin-bottom: 25px; }
.modern-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--c-border);
    font-family: var(--f-sans);
    outline: none;
    transition: var(--transition);
}

.reviews-list {
    margin-top: 40px;
}

.modern-form input:focus { border-color: var(--c-text); }

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: var(--c-text);
    color: #FFF;
    padding: 100px 0 40px;
    margin-top: 100px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 60px;
    margin-bottom: 80px;
}

@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

.footer-logo {
    font-family: var(--f-serif);
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 14px;
    color: #AAA;
    margin-bottom: 30px;
}

.social-links { display: flex; gap: 20px; }
.social-links a { font-size: 12px; letter-spacing: 0.1em; color: #888; }
.social-links a:hover { color: #FFF; }

.footer-nav-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-heading {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 13px; color: #AAA; }
.footer-links a:hover { color: #FFF; padding-left: 5px; }

.footer-newsletter p { font-size: 13px; color: #AAA; margin-bottom: 20px; }
.footer-newsletter-form {
    display: flex;
    border-bottom: 1px solid #444;
}

.footer-newsletter-form input {
    flex: 1;
    background: none;
    border: none;
    color: #FFF;
    padding: 15px 0;
    outline: none;
}

.footer-newsletter-form button {
    background: none;
    border: none;
    color: #FFF;
    cursor: pointer;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: #666;
}

.footer-legal a { margin-right: 20px; }

/* Product Detail Specifics */
.product-detail-page { padding: 60px 0; }
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

@media (max-width: 1024px) {
    .product-detail-layout { grid-template-columns: 1fr; gap: 40px; }
}

.main-image {
    aspect-ratio: 4/5;
    background-color: #F5F5F5;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
}

.main-image img { width: 100%; height: 100%; object-fit: cover; }

.thumbnail-images {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 100px;
    background-color: #F5F5F5;
    cursor: pointer;
    border: 1px solid transparent;
}

.thumbnail.active { border-color: var(--c-text); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.product-details h1 { font-family: var(--f-serif); font-size: 3rem; margin-bottom: 15px; font-weight: 400; }
.product-rating-section { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; font-size: 13px; }

.product-price-section { margin-bottom: 35px; }
.product-price-section .price { font-size: 2rem; font-weight: 600; }

.product-description { font-size: 15px; line-height: 1.8; color: var(--c-text-muted); margin-bottom: 40px; }

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--c-border);
    width: fit-content;
    margin-bottom: 30px;
}

.qty-btn { width: 50px; height: 50px; background: none; border: none; cursor: pointer; font-size: 1.2rem; }
.quantity-controls input { width: 60px; text-align: center; border: none; background: none; outline: none; }

/* Tabs */
.product-tabs { margin-top: 100px; }
.tabs-header { display: flex; gap: 50px; border-bottom: 1px solid var(--c-border); margin-bottom: 40px; }
.tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--c-text);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Gift Cards */
.giftcard-container {
    background: #FFF;
    padding: 80px 0;
}

.giftcard-preview-large {
    aspect-ratio: 1.6/1;
    background: linear-gradient(135deg, #1A1A1A, #333);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFF;
    box-shadow: var(--shadow-md);
}

.giftcard-preview-large h2 { font-family: var(--f-serif); font-size: 3rem; letter-spacing: 0.2em; margin-bottom: 10px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: #DDD; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #CCC; }

/* Gift Card Boutique Styles */
.giftcard-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 80px;
}

@media (max-width: 1100px) {
    .giftcard-layout { grid-template-columns: 1fr 400px; gap: 40px; }
}

@media (max-width: 991px) {
    .giftcard-layout { grid-template-columns: 1fr; }
    .giftcard-order-section { margin-top: 40px; width: 100%; }
}

@media (max-width: 768px) {
    .giftcard-designs { 
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    #amount-options-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .giftcard-preview-large {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1.6/1 !important;
    }
}

/* Global Responsive Fixes */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 80px;
}

.responsive-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.responsive-grid-3-uneven { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }

@media (max-width: 991px) {
    .checkout-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .responsive-grid-2 { grid-template-columns: 1fr 1fr; gap: 15px; } /* Keep side-by-side on mobile */
    .responsive-grid-3-uneven { grid-template-columns: 1fr; }
}
