/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #1a1a1a;
    background: #fafaf7;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============ ANNOUNCEMENT BAR ============ */
.announcement {
    background: #0a0a0a;
    color: #fafaf7;
    text-align: center;
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 400;
}

/* ============ NAVIGATION ============ */
.navbar {
    background: #fafaf7;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-left, .nav-right {
    display: flex;
    gap: 32px;
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 400;
}

.nav-right {
    justify-content: flex-end;
}

.nav-left a, .nav-right a {
    transition: opacity 0.3s;
}

.nav-left a:hover, .nav-right a:hover {
    opacity: 0.5;
}

.nav-logo a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.22em;
}

/* ============ HERO ============ */
.hero {
    min-height: 85vh;
    background: linear-gradient(135deg, #f5f2ec 0%, #e8e4db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.4), transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 11px;
    letter-spacing: 0.4em;
    margin-bottom: 32px;
    color: #4a4a4a;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 7vw, 88px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: #4a4a4a;
    margin-bottom: 48px;
    letter-spacing: 0.02em;
}

.btn-primary {
    display: inline-block;
    background: #0a0a0a;
    color: #fafaf7;
    padding: 18px 48px;
    font-size: 11px;
    letter-spacing: 0.25em;
    font-weight: 400;
    transition: all 0.4s ease;
    border: 1px solid #0a0a0a;
}

.btn-primary:hover {
    background: transparent;
    color: #0a0a0a;
}

/* ============ SECTION TITLE ============ */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    text-align: center;
    margin-bottom: 64px;
    letter-spacing: 0.02em;
}

/* ============ COLLECTIONS ============ */
.collections {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.collection-card {
    cursor: pointer;
    transition: transform 0.4s ease;
}

.collection-card:hover {
    transform: translateY(-8px);
}

.collection-image {
    aspect-ratio: 3/4;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.collection-placeholder {
    font-size: 80px;
    color: rgba(255,255,255,0.9);
    font-weight: 100;
}

.collection-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.collection-card p {
    font-size: 13px;
    color: #666;
    letter-spacing: 0.05em;
}

/* ============ SHOP / PRODUCTS ============ */
.shop {
    padding: 120px 40px;
    background: #ffffff;
}

.products-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px 24px;
}

.product-card {
    cursor: pointer;
    transition: all 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-image {
    aspect-ratio: 1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.product-placeholder {
    font-size: 72px;
    color: rgba(255,255,255,0.85);
    font-weight: 200;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #0a0a0a;
    color: #fafaf7;
    padding: 6px 12px;
    font-size: 9px;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.product-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.product-category {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-price {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
}

.view-all {
    text-align: center;
    margin-top: 64px;
}

.btn-outline {
    display: inline-block;
    padding: 16px 44px;
    border: 1px solid #0a0a0a;
    font-size: 11px;
    letter-spacing: 0.25em;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #0a0a0a;
    color: #fafaf7;
}

/* ============ ABOUT ============ */
.about {
    background: #f5f2ec;
    padding: 120px 40px;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-label {
    font-size: 11px;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    color: #4a4a4a;
}

.about-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    margin-bottom: 28px;
    line-height: 1.15;
}

.about-text p {
    margin-bottom: 20px;
    color: #2a2a2a;
    font-size: 15px;
    line-height: 1.8;
}

.link-underline {
    display: inline-block;
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.25em;
    border-bottom: 1px solid #0a0a0a;
    padding-bottom: 4px;
    transition: opacity 0.3s;
}

.link-underline:hover {
    opacity: 0.6;
}

.about-image {
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-placeholder {
    font-family: 'Cormorant Garamond', serif;
    font-size: 72px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.25em;
    font-weight: 300;
}

/* ============ TESTIMONIALS ============ */
.testimonials {
    padding: 100px 40px;
    text-align: center;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.4;
}

.testimonial-author {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #666;
}

/* ============ NEWSLETTER ============ */
.newsletter {
    background: #0a0a0a;
    color: #fafaf7;
    padding: 100px 40px;
    text-align: center;
}

.newsletter h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 400;
    margin-bottom: 16px;
}

.newsletter p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 40px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid #444;
    color: #fafaf7;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #fafaf7;
}

.newsletter-form button {
    padding: 16px 32px;
    background: #fafaf7;
    color: #0a0a0a;
    border: none;
    font-size: 11px;
    letter-spacing: 0.25em;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: 'Inter', sans-serif;
}

.newsletter-form button:hover {
    opacity: 0.85;
}

.newsletter-confirm {
    display: none;
    max-width: 500px;
    margin: 20px auto 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #bbb;
}

/* ============ FOOTER ============ */
footer {
    background: #fafaf7;
    padding: 40px 40px;
    border-top: 1px solid #e8e8e8;
}

.footer-links {
    max-width: 1400px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    text-transform: uppercase;
}

.footer-links a {
    color: #666;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0a0a0a;
}

.footer-links .sep {
    color: #cfcfcf;
}

.footer-links .footer-manage-cookies {
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: #666;
    cursor: pointer;
}

.footer-links .footer-manage-cookies:hover {
    color: #0a0a0a;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.1em;
}

/* ============ LEGAL / CONTENT PAGES ============ */
.content-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.content-main h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 14px;
    color: #1a1a1a;
    line-height: 1.15;
}

.content-main .content-subtitle {
    text-align: center;
    color: #6a6a6a;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 56px;
}

.content-main h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: 0.02em;
    margin: 56px 0 18px;
    color: #1a1a1a;
    line-height: 1.25;
}

.content-main h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 32px 0 12px;
    color: #0a0a0a;
}

.content-main p,
.content-main li {
    font-size: 15px;
    line-height: 1.8;
    color: #2a2a2a;
    margin-bottom: 14px;
    font-weight: 300;
}

.content-main ul,
.content-main ol {
    padding-left: 22px;
    margin-bottom: 20px;
}

.content-main li {
    margin-bottom: 8px;
}

.content-main a {
    color: #0a0a0a;
    border-bottom: 1px solid #0a0a0a;
    transition: opacity 0.3s;
}

.content-main a:hover {
    opacity: 0.6;
}

.content-main .content-section {
    margin-bottom: 44px;
}

.content-main .content-card {
    background: #fff;
    border: 1px solid #e8e5dd;
    padding: 28px 32px;
    margin: 32px 0;
}

.content-main .content-card dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 20px;
    font-size: 14px;
}

.content-main .content-card dt {
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 11px;
    padding-top: 2px;
}

.content-main .content-card dd {
    color: #1a1a1a;
    line-height: 1.6;
}

.content-main .content-updated {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #e0dfd9;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    text-align: center;
}

.content-main .content-lang-divider {
    margin: 80px 0 60px;
    height: 1px;
    background: #d8d4ca;
    position: relative;
}

.content-main .content-lang-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fafaf7;
    padding: 0 20px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #888;
}

.content-main blockquote {
    border-left: 2px solid #0a0a0a;
    padding-left: 20px;
    margin: 20px 0;
    color: #444;
    font-style: italic;
}

@media (max-width: 640px) {
    .content-main {
        padding: 60px 20px 80px;
    }

    .content-main .content-card {
        padding: 22px 20px;
    }

    .content-main .content-card dl {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    .content-main .content-card dt {
        padding-top: 10px;
    }
}

/* ============ CONTACT PAGE ============ */
.contact-tagline {
    text-align: center;
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 300;
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
}

.contact-channel {
    background: #fff;
    border: 1px solid #e8e5dd;
    padding: 24px;
    text-align: center;
}

.contact-channel h3 {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-channel a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #0a0a0a;
    border: none;
    letter-spacing: 0.02em;
}

.contact-channel a:hover {
    opacity: 0.6;
}

.contact-form {
    display: grid;
    gap: 16px;
    max-width: 560px;
    margin: 0 auto 40px;
}

.contact-form label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8d4ca;
    background: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    font-weight: 300;
    letter-spacing: 0.02em;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #0a0a0a;
}

.contact-form button {
    padding: 16px 32px;
    background: #0a0a0a;
    color: #fafaf7;
    border: 1px solid #0a0a0a;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    justify-self: start;
}

.contact-form button:hover {
    background: transparent;
    color: #0a0a0a;
}

.contact-form-success {
    display: none;
    margin-top: 24px;
}

.contact-form-success.show {
    display: block;
}

/* ============ AUTO-REPLY CARD ============ */
.auto-reply {
    background: #fff;
    border: 1px solid #d8d4ca;
    padding: 32px 28px 24px;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    line-height: 1.7;
    font-weight: 300;
    animation: autoReplyFadeIn 0.4s ease;
}

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

.auto-reply-header {
    border-bottom: 1px solid #eae6dc;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.auto-reply-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: #0a0a0a;
    background: #f4f1ea;
    padding: 4px 10px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 14px;
}

.auto-reply-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(22px, 2.8vw, 28px);
    color: #0a0a0a;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.01em;
}

.auto-reply-body {
    font-size: 14px;
    line-height: 1.75;
}

.auto-reply-body p {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 300;
    color: #2a2a2a;
}

.auto-reply-body ul,
.auto-reply-body ol {
    margin: 0 0 14px;
    padding-left: 20px;
}

.auto-reply-body li {
    font-size: 14px;
    margin-bottom: 6px;
    color: #2a2a2a;
}

.auto-reply-body strong {
    color: #0a0a0a;
    font-weight: 500;
}

.auto-reply-body code {
    background: #f4f1ea;
    padding: 1px 6px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    border-radius: 2px;
}

.auto-reply-body a {
    color: #0a0a0a;
    border-bottom: 1px solid #0a0a0a;
    padding-bottom: 1px;
}

.auto-reply-meta {
    margin-top: 22px;
    padding: 14px 16px;
    background: #f4f1ea;
    border-left: 2px solid #0a0a0a;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px 20px;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.auto-reply-meta strong {
    color: #666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 500;
    margin-right: 6px;
}

.auto-reply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.auto-reply-btn-primary,
.auto-reply-btn-ghost {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    font-weight: 500;
    padding: 14px 24px;
    cursor: pointer;
    border: 1px solid #0a0a0a;
    transition: background 0.3s, color 0.3s;
}

.auto-reply-btn-primary {
    background: #0a0a0a;
    color: #fafaf7;
}

.auto-reply-btn-primary:hover {
    background: transparent;
    color: #0a0a0a;
}

.auto-reply-btn-ghost {
    background: transparent;
    color: #0a0a0a;
}

.auto-reply-btn-ghost:hover {
    background: #0a0a0a;
    color: #fafaf7;
}

.auto-reply-note {
    margin-top: 18px;
    font-size: 12px;
    color: #6a6a6a;
    line-height: 1.65;
    font-style: italic;
}

.contact-meta {
    text-align: center;
    font-size: 13px;
    color: #666;
    line-height: 1.9;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e0dfd9;
}

.contact-meta strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #0a0a0a;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-socials {
    margin-top: 20px;
    display: flex;
    gap: 18px;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #888;
}

.contact-socials a {
    color: #888;
    border-bottom: 1px solid #d0d0d0;
}

.contact-socials a:hover {
    color: #0a0a0a;
    border-color: #0a0a0a;
}

/* ============ PRODUCT ADD BUTTON ============ */
.product-image {
    position: relative;
}

.product-add {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
    background: #0a0a0a;
    color: #fafaf7;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.25em;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-add {
    opacity: 1;
    transform: translateY(0);
}

.product-add:hover {
    background: #2a2a2a;
}

.product-add.added {
    background: #1e5630;
    pointer-events: none;
}

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(250, 250, 247, 0.98);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 40px 80px;
    position: relative;
}

.overlay-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 32px;
    color: #0a0a0a;
    cursor: pointer;
    line-height: 1;
    font-weight: 200;
}

.overlay-close:hover {
    opacity: 0.6;
}

.search-box {
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

.search-box input {
    width: 100%;
    padding: 12px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    border: none;
    background: transparent;
    color: #0a0a0a;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
    font-style: italic;
}

.search-hint {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #999;
    margin-top: 16px;
    text-transform: uppercase;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.search-result {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: opacity 0.3s;
}

.search-result:hover {
    opacity: 0.7;
}

.search-result-image {
    aspect-ratio: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-image .product-placeholder {
    font-size: 40px;
    color: rgba(255,255,255,0.85);
}

.search-result h5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
}

.search-result p {
    font-size: 12px;
    color: #666;
}

.search-empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 14px;
    color: #999;
    padding: 40px 0;
    letter-spacing: 0.05em;
}

/* ============ MODAL (ACCOUNT) ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fafaf7;
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #0a0a0a;
    font-weight: 200;
}

.modal-close:hover {
    opacity: 0.6;
}

.account-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 14px 0;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    font-weight: 500;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    position: relative;
}

.tab-btn.active {
    color: #0a0a0a;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #0a0a0a;
}

.account-form h2, .form-success h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
}

.form-sub {
    font-size: 13px;
    color: #666;
    margin-bottom: 28px;
}

.account-form label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #666;
    margin-bottom: 16px;
    font-weight: 500;
}

.account-form input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0a0a0a;
    letter-spacing: 0;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
}

.account-form input:focus {
    border-color: #0a0a0a;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: #0a0a0a;
    color: #fafaf7;
    border: 1px solid #0a0a0a;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s, color 0.3s;
}

.form-submit:hover {
    background: transparent;
    color: #0a0a0a;
}

.form-footer {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #0a0a0a;
    border-bottom: 1px solid #0a0a0a;
    padding-bottom: 1px;
}

.form-success {
    text-align: center;
    padding: 20px 0;
}

.form-success p {
    color: #666;
    margin-bottom: 28px;
}

.hidden { display: none !important; }

/* ============ CART DRAWER ============ */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
}

.cart-drawer.open {
    visibility: visible;
    pointer-events: auto;
}

.cart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-drawer.open .cart-backdrop {
    opacity: 1;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 440px;
    background: #fafaf7;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.4, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open .cart-panel {
    transform: translateX(0);
}

.cart-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
}

.cart-header .overlay-close {
    position: static;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
}

.cart-empty {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 60px 0;
    letter-spacing: 0.05em;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item-image {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255,255,255,0.85);
}

.cart-item-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
}

.cart-item-info p {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 13px;
    color: #0a0a0a;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cart-qty-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #d0d0d0;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    color: #0a0a0a;
}

.cart-qty-btn:hover {
    background: #0a0a0a;
    color: #fafaf7;
    border-color: #0a0a0a;
}

.cart-item-qty span {
    font-size: 13px;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: transparent;
    border: none;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
    text-transform: uppercase;
    align-self: flex-start;
    padding: 4px 0;
}

.cart-item-remove:hover {
    color: #0a0a0a;
}

.cart-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid #e8e8e8;
    background: #fafaf7;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.cart-shipping {
    font-size: 11px;
    color: #888;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    background: #0a0a0a;
    color: #fafaf7;
    border: 1px solid #0a0a0a;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.btn-checkout:hover {
    background: transparent;
    color: #0a0a0a;
}

/* ============ BODY LOCK ============ */
body.no-scroll {
    overflow: hidden;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .nav-container {
        padding: 18px 20px;
        grid-template-columns: auto 1fr auto;
    }

    .nav-left, .nav-right {
        gap: 16px;
        font-size: 10px;
    }

    /* Hide text links on mobile; hamburger handles SHOP/COLLECTIONS/ABOUT */
    .nav-left a {
        display: none;
    }
    .nav-right a:not(:last-child) {
        display: none;
    }
    .nav-hamburger {
        display: flex !important;
    }

    .nav-logo a {
        font-size: 24px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .collections, .shop, .about {
        padding: 80px 20px;
    }
}

/* ============================================================
   ADDITIONS — SEO / A11y / Mobile menu / Polish / Back-to-top
   ============================================================ */

/* Visually hidden helper */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Skip-to-content link — invisible until focused */
.skip-link {
    position: absolute;
    top: -44px;
    left: 12px;
    background: #0a0a0a;
    color: #fafaf7;
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 500;
    z-index: 1000;
    border: 1px solid #0a0a0a;
    transition: top 0.18s ease;
}
.skip-link:focus {
    top: 12px;
    outline: 2px solid #fafaf7;
    outline-offset: 2px;
}

/* Focus-visible for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: 3px;
    border-radius: 1px;
}
.btn-primary:focus-visible,
.btn-checkout:focus-visible,
.form-submit:focus-visible {
    outline: 2px solid #fafaf7;
    outline-offset: -5px;
}

/* Contrast fix: the #888 gray on cream fails WCAG AA — darken to #666 */
.product-category { color: #666; }
.cart-item-info p { color: #666; }
.cart-shipping   { color: #666; }
.cart-tracking-link {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #555;
    text-align: center;
    margin-top: 14px;
}
.cart-tracking-link a {
    color: #555;
    border-bottom: 1px solid #bbb;
}

/* Page progress bar — slim luxury indicator */
.page-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: #0a0a0a;
    z-index: 300;
    transition: width 0.15s ease, opacity 0.3s ease;
    pointer-events: none;
}

/* Announcement bar refinement */
.announcement {
    padding: 9px 20px;
    font-size: 10px;
    letter-spacing: 0.24em;
    font-weight: 400;
}

/* Sticky nav — subtle shadow when scrolled */
.navbar {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.navbar.is-scrolled {
    box-shadow: 0 2px 18px rgba(10,10,10,0.05);
    border-bottom-color: #ddd;
}

/* Logo hover refinement */
.nav-logo a {
    transition: letter-spacing 0.4s ease, opacity 0.3s ease;
    display: inline-block;
}
.nav-logo a:hover {
    letter-spacing: 0.26em;
    opacity: 0.75;
}
.nav-logo a img {
    transition: opacity 0.3s ease;
}
.nav-logo a:hover img {
    opacity: 0.75;
}

/* Hamburger button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-right: 4px;
}
.nav-hamburger span {
    display: block;
    width: 18px;
    height: 1px;
    background: #0a0a0a;
    transition: transform 0.3s ease, opacity 0.25s ease;
    transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobile slide-down menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fafaf7;
    border-bottom: 1px solid #e8e8e8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}
.mobile-menu.is-open {
    max-height: 400px;
    padding: 16px 24px 28px;
}
.mobile-menu-link {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #0a0a0a;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    transition: opacity 0.2s ease;
}
.mobile-menu-link:hover {
    opacity: 0.6;
}
.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Storage-disabled banner */
.storage-banner {
    background: #f5f2ec;
    color: #3a3a3a;
    text-align: center;
    padding: 10px 44px 10px 20px;
    font-size: 12px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2ddd3;
    position: relative;
}
.storage-banner-close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #3a3a3a;
    padding: 4px 8px;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger hero children */
.hero-content.reveal > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero-content.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.hero-content.is-visible > *:nth-child(2) { transition-delay: 0.18s; opacity: 1; transform: translateY(0); }
.hero-content.is-visible > *:nth-child(3) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.hero-content.is-visible > *:nth-child(4) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Collection monogram SVGs */
.collection-mono {
    width: 88px;
    height: 88px;
    opacity: 0.92;
    transition: transform 0.6s ease, opacity 0.4s ease;
}
.collection-card:hover .collection-mono,
.collection-card:focus-visible .collection-mono {
    transform: scale(1.08) rotate(3deg);
    opacity: 1;
}

/* Premium product hover overlay + title underline */
.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0);
    transition: background 0.4s ease;
    pointer-events: none;
}
.product-card:hover .product-image::after {
    background: rgba(10,10,10,0.05);
}
.product-card h4 {
    position: relative;
    display: inline-block;
}
.product-card h4::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -2px;
    height: 1px;
    background: #0a0a0a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.product-card:hover h4::after {
    transform: scaleX(1);
}

/* Cart empty state */
.cart-empty-state {
    text-align: center;
    padding: 60px 0 40px;
}
.cart-empty-state .cart-empty {
    padding: 0 0 22px;
    color: #777;
}
.cart-continue {
    cursor: pointer;
    background: transparent;
    color: #0a0a0a;
    font-family: 'Inter', sans-serif;
}

/* Centered search empty state */
.search-results:has(.search-empty) {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-empty {
    text-align: center;
    color: #777;
}

/* Newsletter — premium confirmation */
.newsletter-confirm {
    display: none;
    max-width: 540px;
    margin: 28px auto 0;
    padding: 22px 26px;
    border: 1px solid rgba(250,250,247,0.18);
    background: rgba(250,250,247,0.04);
    color: #e8e6e1;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    text-align: center;
}
.newsletter-confirm.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.newsletter-confirm .confirm-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: #fafaf7;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}
.newsletter-confirm .confirm-body {
    font-size: 13px;
    color: #c8c6c1;
    line-height: 1.65;
    margin: 0 0 16px;
}
.newsletter-confirm .confirm-code {
    display: inline-block;
    padding: 10px 18px;
    background: #fafaf7;
    color: #0a0a0a;
    font-size: 12px;
    letter-spacing: 0.28em;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    user-select: all;
    cursor: copy;
    border: 1px solid #fafaf7;
    transition: background 0.25s ease, color 0.25s ease;
}
.newsletter-confirm .confirm-code:hover {
    background: transparent;
    color: #fafaf7;
}

/* Back-to-top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #0a0a0a;
    background: #0a0a0a;
    color: #fafaf7;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease, color 0.25s ease;
    box-shadow: 0 4px 18px rgba(10,10,10,0.15);
    display: none;
}
.back-to-top.is-mounted { display: flex; }
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: transparent;
    color: #0a0a0a;
}
.back-to-top svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Flying item animation */
.fly-to-bag {
    position: fixed;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f5f5f5 0%, #d0d0d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255,255,255,0.85);
    pointer-events: none;
    z-index: 500;
    transition: transform 0.75s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.75s ease;
    will-change: transform, opacity;
}

/* Reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal, .hero-content.reveal > * { opacity: 1; transform: none; }
}

/* Small mobile adjustments */
@media (max-width: 560px) {
    .announcement { font-size: 9px; padding: 8px 16px; }
    .hero { min-height: 78vh; }
    .back-to-top { width: 40px; height: 40px; bottom: 18px; left: 18px; }
}


/* ============================================================
   THEME TOGGLE BUTTON (inside .nav-right)
   ============================================================ */
.theme-toggle {
    background: transparent;
    border: 1px solid transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 6px 10px;
    margin-left: 4px;
    border-radius: 0;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    font-family: inherit;
}
.theme-toggle:hover { border-color: currentColor; }
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ============================================================
   DARK THEME
   Activated by <html data-theme="dark">. Palette:
     bg:     #0e0e0e  (primary background)
     surface:#17171a  (cards, panels)
     raised: #1f1e22  (nav, footer)
     text:   #e7e5df
     muted:  #9c9a93
     dim:    #75736b
     border: #2a2824
     accent: #e7e5df  (flipped from light)
   ============================================================ */
html[data-theme="dark"] body,
html[data-theme="dark"] {
    background: #0e0e0e !important;
    color: #e7e5df;
}
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .announcement {
    background: #0e0e0e;
    color: #e7e5df;
    border-color: #2a2824;
}
html[data-theme="dark"] .navbar a,
html[data-theme="dark"] .nav-left a,
html[data-theme="dark"] .nav-right a {
    color: #e7e5df;
}
html[data-theme="dark"] .navbar a:hover,
html[data-theme="dark"] .nav-left a:hover,
html[data-theme="dark"] .nav-right a:hover {
    color: #fff;
}
html[data-theme="dark"] .hero,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .about,
html[data-theme="dark"] .newsletter,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .content-main {
    background: #0e0e0e;
    color: #e7e5df;
}
html[data-theme="dark"] .shop,
html[data-theme="dark"] .collections {
    background: #141414;
    color: #e7e5df;
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #fafaf7;
}
html[data-theme="dark"] p,
html[data-theme="dark"] .about-text,
html[data-theme="dark"] .content-main p,
html[data-theme="dark"] .content-subtitle {
    color: #cbc9c2;
}
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer * {
    background: #0a0a0a;
    color: #9c9a93;
    border-color: #2a2824;
}
html[data-theme="dark"] .footer h4,
html[data-theme="dark"] .footer a {
    color: #e7e5df;
}
html[data-theme="dark"] .footer a:hover { color: #fff; }

/* Product cards */
html[data-theme="dark"] .product-card {
    background: #17171a;
    color: #e7e5df;
    border-color: #2a2824;
}
html[data-theme="dark"] .product-card h4 { color: #fafaf7; }
html[data-theme="dark"] .product-card .product-category { color: #9c9a93; }
html[data-theme="dark"] .product-card .product-price { color: #e7e5df; }
html[data-theme="dark"] .product-placeholder { color: #3a3732; }
html[data-theme="dark"] .product-badge {
    background: #e7e5df;
    color: #0a0a0a;
}
html[data-theme="dark"] .product-add {
    background: #e7e5df;
    color: #0a0a0a;
}
html[data-theme="dark"] .product-add:hover {
    background: #fff;
    color: #0a0a0a;
}
html[data-theme="dark"] .product-add.added {
    background: #6aa87a;
    color: #0a0a0a;
}

/* Buttons, CTAs */
html[data-theme="dark"] .cta,
html[data-theme="dark"] .hero-cta,
html[data-theme="dark"] .newsletter-form button,
html[data-theme="dark"] button.btn-primary,
html[data-theme="dark"] .form-submit {
    background: #e7e5df;
    color: #0a0a0a;
    border-color: #e7e5df;
}
html[data-theme="dark"] .cta:hover,
html[data-theme="dark"] .hero-cta:hover,
html[data-theme="dark"] .newsletter-form button:hover,
html[data-theme="dark"] button.btn-primary:hover,
html[data-theme="dark"] .form-submit:hover {
    background: #fff;
}

/* Forms */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: #17171a;
    color: #e7e5df;
    border-color: #2a2824;
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
    border-color: #e7e5df;
    outline: none;
}
html[data-theme="dark"] label { color: #9c9a93; }
html[data-theme="dark"] ::placeholder { color: #6b6962; }

/* Account modal */
html[data-theme="dark"] .modal-overlay { background: rgba(0, 0, 0, 0.72); }
html[data-theme="dark"] .modal {
    background: #17171a;
    color: #e7e5df;
    border: 1px solid #2a2824;
}
html[data-theme="dark"] .modal-close { color: #e7e5df; }
html[data-theme="dark"] .tab-btn {
    color: #9c9a93;
    border-bottom-color: transparent;
}
html[data-theme="dark"] .tab-btn.active {
    color: #e7e5df;
    border-bottom-color: #e7e5df;
}
html[data-theme="dark"] .form-sub,
html[data-theme="dark"] .form-footer { color: #9c9a93; }

/* Cart drawer */
html[data-theme="dark"] .cart-drawer .cart-panel,
html[data-theme="dark"] .cart-item {
    background: #17171a;
    color: #e7e5df;
    border-color: #2a2824;
}

/* Search overlay */
html[data-theme="dark"] .search-overlay {
    background: rgba(14, 14, 14, 0.96);
    color: #e7e5df;
}
html[data-theme="dark"] .search-input {
    background: transparent;
    color: #e7e5df;
    border-color: #3a3732;
}

/* Newsletter */
html[data-theme="dark"] .newsletter { background: #141414; }
html[data-theme="dark"] .newsletter input {
    background: #17171a;
    color: #e7e5df;
    border-color: #2a2824;
}

/* Contact form */
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .contact-channel {
    background: #17171a;
    border-color: #2a2824;
    color: #e7e5df;
}
html[data-theme="dark"] .contact-form button[type="submit"] {
    background: #e7e5df;
    color: #0a0a0a;
}

/* Collection & category cards */
html[data-theme="dark"] .collection-card,
html[data-theme="dark"] .category-card {
    background: #17171a;
    border-color: #2a2824;
    color: #e7e5df;
}
html[data-theme="dark"] .collection-card h3,
html[data-theme="dark"] .category-card h3 { color: #fafaf7; }

/* Cookie banner */
html[data-theme="dark"] .cookie-banner,
html[data-theme="dark"] .cookie-prefs-card {
    background: #17171a;
    color: #e7e5df;
    border-color: #2a2824;
}

/* Horizontal rules, separators */
html[data-theme="dark"] hr,
html[data-theme="dark"] .divider { border-color: #2a2824; background: #2a2824; }

/* Page progress bar */
html[data-theme="dark"] .page-progress { background: #e7e5df; }

/* Back-to-top button */
html[data-theme="dark"] .back-to-top {
    background: #17171a;
    color: #e7e5df;
    border-color: #2a2824;
}
html[data-theme="dark"] .back-to-top:hover { background: #2a2824; }

/* Images — nudge down a touch in dark mode so they're less glaring */
html[data-theme="dark"] img:not(.product-image):not([src*="logo"]) {
    filter: brightness(0.92);
}

/* Inline logo — it's black text; swap to white in dark mode via CSS filter */
html[data-theme="dark"] .nav-logo img,
html[data-theme="dark"] .footer img[src*="logo"] {
    filter: invert(1) brightness(1.05);
}

/* ============================================================
   PRODUCT CARD HEART (wishlist toggle overlay)
   ============================================================ */
.product-image { position: relative; }
.product-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #555;
    border: 1px solid transparent;
    font-size: 1.05rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s, background 0.16s, color 0.16s;
    z-index: 2;
    padding: 0;
}
.product-heart:hover { transform: scale(1.08); }
.product-heart.is-active { color: #b4261a; }
html[data-theme="dark"] .product-heart { background: rgba(23,23,26,0.88); color: #cbc9c2; }
html[data-theme="dark"] .product-heart.is-active { color: #ff6b5f; }

/* ============================================================
   RECENTLY VIEWED strip on homepage
   ============================================================ */
.recently-viewed {
    padding: 60px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.recently-viewed .rv-header { text-align: center; margin-bottom: 30px; }
.recently-viewed .rv-header .label {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}
.recently-viewed .rv-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.9rem;
    letter-spacing: 0.04em;
    margin: 0;
}
.rv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.rv-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #ece9e0;
    transition: transform 0.2s, box-shadow 0.2s;
}
html[data-theme="dark"] .rv-card { background: #17171a; border-color: #2a2824; }
.rv-card:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.rv-thumb {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(0,0,0,0.18);
}
html[data-theme="dark"] .rv-thumb { color: rgba(255,255,255,0.12); }
.rv-meta { padding: 12px 14px 16px; }
.rv-cat {
    font-size: 0.64rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
}
.rv-meta h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1rem;
    margin: 0 0 3px;
}
.rv-price {
    font-family: 'Cormorant Garamond', serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
}

/* ============================================================
   SHOP FILTER BAR + ACTIVE COLLECTION HIGHLIGHT
   ============================================================ */
.shop-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 14px 20px;
    background: #fbf7f0;
    border: 1px solid #e6dcc7;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #444;
}
html[data-theme="dark"] .shop-filter-bar {
    background: #1f1e22;
    border-color: #2a2824;
    color: #cbc9c2;
}
.shop-filter-bar strong {
    color: #0a0a0a;
    letter-spacing: 0.04em;
}
html[data-theme="dark"] .shop-filter-bar strong { color: #fafaf7; }
.shop-filter-bar button {
    background: transparent;
    border: 1px solid #d7d3ca;
    color: inherit;
    padding: 7px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}
.shop-filter-bar button:hover {
    background: #0a0a0a;
    color: #fafaf7;
    border-color: #0a0a0a;
}
html[data-theme="dark"] .shop-filter-bar button { border-color: #3a3732; }
html[data-theme="dark"] .shop-filter-bar button:hover {
    background: #e7e5df;
    color: #0a0a0a;
    border-color: #e7e5df;
}

/* Clickable collection cards */
.collection-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.collection-card:hover { transform: translateY(-3px); }
.collection-card:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.collection-card.is-active-collection .collection-image {
    box-shadow: 0 0 0 2px #0a0a0a inset;
}
html[data-theme="dark"] .collection-card.is-active-collection .collection-image {
    box-shadow: 0 0 0 2px #e7e5df inset;
}
