/* ==========================================================================
   Aracelis Entebi — Site v2 design system
   Calm, premium, nature-inspired. One stylesheet for home + shop.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --forest-950: #0B2318;
    --forest-900: #013220;
    --moss-800: #163325;
    --moss-700: #1F3D2B;
    --gold-500: #BFA870;
    --gold-400: #D4B97A;
    --gold-300: #E3CF9E;
    --cream-50: #F5F0E1;
    --cream-200: #D9D2BE;
    --clay-500: #B5764F;

    --text: var(--cream-50);
    --text-muted: #B8B29F;
    --line: rgba(191, 168, 112, 0.22);
    --line-strong: rgba(191, 168, 112, 0.45);

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: var(--font-serif);

    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section-y: clamp(4rem, 9vw, 7.5rem);
    --radius: 2px;
    --radius-lg: 8px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --contour: url('/assets/images/v2/contour.svg');
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--forest-950);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Page-wide grain: one fixed layer, very light */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--grain);
    opacity: .045;
    pointer-events: none;
    z-index: 100;
    mix-blend-mode: overlay;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute; left: 1rem; top: -3rem;
    background: var(--gold-400); color: var(--forest-950);
    padding: .5rem 1rem; z-index: 200;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.lead { font-size: 1.15rem; color: var(--cream-200); font-weight: 300; max-width: 46ch; }

.section-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 { margin-top: .5rem; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 48px; padding: .85rem 1.75rem;
    font-size: .9rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
    border-radius: var(--radius);
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--gold-400); color: var(--forest-950); }
.btn-primary:hover { background: var(--gold-300); }
.btn-secondary {
    background: rgba(191, 168, 112, 0.12);
    color: var(--gold-300);
    border: 1px solid var(--gold-400);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.btn-secondary:hover {
    background: var(--gold-400);
    color: var(--forest-950);
    border-color: var(--gold-300);
    box-shadow: 0 4px 18px rgba(212, 185, 122, 0.3);
}
.btn-outline { border: 1px solid var(--line-strong); color: var(--cream-50); }
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn-whatsapp { background: var(--gold-400); color: var(--forest-950); width: 100%; }
.btn-whatsapp:hover { background: var(--gold-300); }

.link-arrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .95rem; font-weight: 500; color: var(--gold-400);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--gold-300); border-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Layered nature background ----------
   Each section sets --texture (0–1). Layers:
   1 gradient · 2 blurred organic shapes · 3 brush texture · 4 contour · 5 grain (body)
   ------------------------------------------------- */
.layered { position: relative; isolation: isolate; }
.layered > .bg {
    position: absolute; inset: 0; z-index: -1;
    overflow: hidden; pointer-events: none;
}
.layered > .bg::before,          /* layer 1 + 2: gradients and soft shapes */
.layered > .bg::after {          /* layer 4: contour / leaf-vein lines */
    content: ''; position: absolute; inset: 0;
}
.layered > .bg::before {
    background:
        radial-gradient(42% 55% at 82% 28%, rgba(46, 94, 62, calc(.55 * var(--texture, 1))) 0%, transparent 70%),
        radial-gradient(35% 45% at 12% 85%, rgba(191, 168, 112, calc(.10 * var(--texture, 1))) 0%, transparent 70%),
        radial-gradient(60% 70% at 50% 0%, rgba(1, 50, 32, calc(.9 * var(--texture, 1))) 0%, transparent 75%);
    filter: blur(10px);
}
.layered > .bg::after {
    background-image: var(--contour);
    background-size: 900px auto;
    background-repeat: repeat;
    opacity: calc(.07 * var(--texture, 1));
}
.layered .bg-brush {                 /* layer 3: painterly texture, hero only */
    position: absolute; inset: 0;
    background: url('/assets/images/v2/hero-texture.webp') center right / cover no-repeat;
    opacity: .85;
}
.layered .bg-shape {                 /* blurred organic leaf shapes */
    position: absolute;
    border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%;
    filter: blur(70px);
    opacity: calc(.5 * var(--texture, 1));
}
.bg-shape.s1 { width: 38vw; height: 30vw; right: -6vw; top: 8%; background: #2B5A3C; }
.bg-shape.s2 { width: 26vw; height: 22vw; left: -8vw; bottom: -6%; background: #5C5434; transform: rotate(-18deg); }

/* Fade a section's texture into the next one */
.fade-bottom > .bg { mask-image: linear-gradient(to bottom, #000 55%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); }

@media (prefers-reduced-transparency: reduce) {
    .layered .bg-shape, .layered .bg-brush { display: none; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 35, 24, .82);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; min-height: 72px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--cream-50);
    text-decoration: none;
}
.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: transform .25s var(--ease);
}
.brand:hover .brand-logo {
    transform: scale(1.06);
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cream-50);
    letter-spacing: 0.01em;
}
.brand-sub {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-400);
}
.brand span { color: var(--gold-500); }

.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); list-style: none; }
.nav-list a {
    font-size: .875rem; font-weight: 500; letter-spacing: .04em;
    color: var(--cream-200);
    padding-block: .5rem;
    border-bottom: 1px solid transparent;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--cream-50); border-color: var(--gold-500); }
.nav-list a.nav-shop { color: var(--gold-400); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); }
.lang-btn {
    min-width: 40px; min-height: 36px;
    font-size: .75rem; font-weight: 600; letter-spacing: .08em;
    color: var(--text-muted);
}
.lang-btn.active { color: var(--forest-950); background: var(--gold-500); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--cream-50);
    transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: 72px 0 auto 0;
        background: var(--forest-950);
        border-bottom: 1px solid var(--line);
        padding: 1rem var(--gutter) 2rem;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    }
    .site-nav.open { transform: none; opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list a { display: block; padding: 1rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
    --texture: 1;
    position: relative;
}

@media (min-width: 861px) {
    .hero {
        min-height: calc(100vh - 72px);
        min-height: calc(100dvh - 72px);
        display: flex;
        align-items: center;
        padding-block: clamp(1.5rem, 3.5vh, 3rem);
        box-sizing: border-box;
    }
    .hero > .container {
        width: 100%;
    }
    .hero-grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: clamp(2.5rem, 5vw, 4.5rem);
        align-items: center;
    }
    .hero-copy h1 {
        margin: 0.75rem 0 1.1rem;
        font-size: clamp(2.2rem, 3.3vw, 3.3rem);
        line-height: 1.12;
    }
    .hero-copy .lead {
        font-size: clamp(1.05rem, 1.25vw, 1.2rem);
        margin-bottom: 0.6rem;
    }
    .hero-ai-summary {
        margin: 0.75rem 0 1.25rem !important;
        font-size: 0.92rem;
        line-height: 1.55;
    }
    .hero-actions {
        margin-top: 1.5rem;
        gap: 1.25rem 2rem;
    }
    .hero-art {
        justify-self: end;
        width: min(100%, 420px);
        max-width: 38vw;
    }
    .hero-frame {
        position: relative;
        padding: clamp(0.65rem, 1.2vw, 0.95rem);
        background: linear-gradient(160deg, rgba(245, 240, 225, .07), rgba(245, 240, 225, .02));
        border: 1px solid var(--line-strong);
        box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
    }
    .hero-frame img {
        width: 100%;
        max-height: min(52vh, 480px);
        aspect-ratio: 4 / 5;
        object-fit: cover;
        display: block;
    }
}

@media (max-width: 860px) {
    .hero {
        padding-block: clamp(2.5rem, 7vw, 4rem);
        min-height: auto;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-art {
        order: -1;
        justify-self: center;
        width: min(100%, 360px);
        margin: 0 auto;
    }
    .hero-frame {
        position: relative;
        padding: clamp(.75rem, 1.6vw, 1.1rem);
        background: linear-gradient(160deg, rgba(245, 240, 225, .07), rgba(245, 240, 225, .02));
        border: 1px solid var(--line-strong);
        box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
    }
    .hero-frame img {
        width: 100%;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        display: block;
    }
    .hero-actions .btn {
        flex: 1 1 100%;
        text-align: center;
    }
    .hero-actions .link-arrow {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }
}

.hero-copy h1 em { font-style: italic; color: var(--gold-400); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.hero-art a { display: block; }
.hero-caption {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    margin-top: 0.85rem; font-size: .9rem; color: var(--text-muted);
}
.hero-caption strong { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--cream-50); }
.hero-caption .price { color: var(--gold-400); font-weight: 500; white-space: nowrap; text-transform: none; }

/* ---------- Category strip ---------- */
.categories { --texture: .6; padding-bottom: var(--section-y); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.category-tile {
    position: relative; display: block; overflow: hidden;
    border: 1px solid var(--line);
    background: var(--moss-800);
}
.category-tile img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    transition: transform .5s var(--ease);
}
.category-tile:hover img { transform: scale(1.03); }
.category-tile .tile-body {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-top: 1px solid var(--line);
}
.category-tile h3 { font-size: 1.3rem; }
.category-tile .tile-sub { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); }
.category-tile .soon {
    position: absolute; top: 1rem; left: 1rem;
    font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    padding: .35rem .7rem; background: rgba(11, 35, 24, .85); color: var(--gold-300);
    border: 1px solid var(--line-strong);
}
@media (max-width: 760px) {
    .category-grid { grid-template-columns: 1fr; }
    .category-tile { display: grid; grid-template-columns: 40% 1fr; }
    .category-tile img { aspect-ratio: 1; height: 100%; }
    .category-tile .tile-body { border-top: 0; border-left: 1px solid var(--line); flex-direction: column; align-items: flex-start; justify-content: center; }
}

/* ---------- Product grid & card ---------- */
.surface { background: var(--forest-950); }
.featured { --texture: .15; padding-block: var(--section-y); border-top: 1px solid var(--line); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
}
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .product-grid.cols-4, .product-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem .9rem; } }

.product-card { display: block; width: 100%; text-align: left; }
.product-media {
    position: relative; overflow: hidden;
    padding: 10px;
    background: rgba(245, 240, 225, .04);
    border: 1px solid var(--line);
    transition: border-color .2s var(--ease);
}
.product-media img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    background: var(--moss-800);
    transition: transform .2s var(--ease);
}
.product-card:hover .product-media { border-color: var(--line-strong); }
.product-card:hover .product-media img { transform: scale(1.03); }

/* Sold Artwork Card Distinctions */
.product-card.is-sold .product-media {
    background: rgba(4, 14, 9, .55);
    border-color: rgba(191, 168, 112, .18);
}
.product-card.is-sold .product-media img {
    opacity: .68;
    filter: grayscale(35%) contrast(92%);
}
.product-card.is-sold:hover .product-media {
    border-color: rgba(191, 168, 112, .45);
}
.product-card.is-sold:hover .product-media img {
    opacity: .92;
    filter: grayscale(5%) contrast(100%);
    transform: scale(1.02);
}

/* Badges */
.badge {
    position: absolute; top: 18px; right: 18px; z-index: 2;
    font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: none;
    padding: .35rem .7rem; border-radius: var(--radius);
    line-height: 1;
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.badge.available {
    background: rgba(181, 118, 79, .92);
    color: var(--cream-50);
    border: 1px solid rgba(245, 240, 225, .32);
}
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 6px #4ADE80;
    display: inline-block;
}
.badge.sold {
    background: rgba(7, 20, 14, .95);
    color: var(--gold-300);
    border: 1px solid var(--gold-500);
    letter-spacing: .05em;
    font-weight: 600;
}
.badge.new {
    background: rgba(212, 185, 122, .95);
    color: var(--forest-950);
    border: 1px solid var(--cream-50);
    font-weight: 700;
}

.product-info { padding-top: 1rem; }
.product-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.product-meta { margin-top: .2rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); }
.product-price { margin-top: .45rem; font-size: 1rem; font-weight: 500; color: var(--cream-50); display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.available-tag, .availability-status {
    font-size: .82rem;
    color: #8BE296;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: none;
}
.sold-pill {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: var(--radius);
    background: rgba(191, 168, 112, .12);
    color: var(--gold-300);
    border: 1px solid rgba(191, 168, 112, .3);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: none;
}
.product-card.is-sold .product-price { color: var(--text-muted); font-weight: 400; }
@media (max-width: 520px) {
    .product-title { font-size: 1rem; }
    .product-meta { font-size: .65rem; }
    .badge { top: 14px; right: 14px; font-size: .6rem; padding: .25rem .5rem; }
}

.grid-empty, .grid-loading {
    grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; color: var(--text-muted);
}

/* ---------- About ---------- */
.about { --texture: .6; padding-block: var(--section-y); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about-photo { padding: 12px; border: 1px solid var(--line-strong); max-width: 420px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy h2 { margin: .6rem 0 1.4rem; }
.about-copy p { color: var(--cream-200); max-width: 54ch; }
.about-copy .link-arrow { margin-top: 1.75rem; }
@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { max-width: 320px; }
}

/* ---------- Commissions ---------- */
.commissions { --texture: .4; padding-block: clamp(3rem, 6vw, 4.5rem); background: var(--moss-800); border-block: 1px solid var(--line); }
.commission-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.commission-inner h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.commission-inner p { color: var(--cream-200); margin-top: .5rem; max-width: 52ch; }

.commission-form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    width: 100%; margin-top: 2rem; padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.commission-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); }
.field input, .field select, .field textarea {
    font: inherit; color: var(--cream-50);
    background: rgba(11, 35, 24, .6);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: .8rem .9rem; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-400); }
.field textarea { resize: vertical; min-height: 120px; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: .85rem; color: var(--text-muted); }
@media (max-width: 640px) { .commission-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; border-top: 1px solid var(--line); background: var(--forest-950); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h3, .footer-grid h4 { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .6rem; }
.footer-grid a, .footer-grid button { color: var(--cream-200); font-size: .95rem; transition: color .2s; text-align: left; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--gold-300); }
.footer-newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-newsletter-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color .2s;
}
.footer-newsletter-input:focus { border-color: var(--gold-400); }
.footer-newsletter-btn {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: none;
    background: var(--gold-400);
    color: #121212;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}
.footer-newsletter-btn:hover { opacity: 0.92; }
.footer-newsletter-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.footer-newsletter-status { font-size: 0.82rem; margin-top: 0.4rem; display: none; line-height: 1.4; }
.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}
.footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.footer-brand h3, .footer-brand h4 {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--cream-50);
}
.footer-brand p { color: var(--text-muted); margin-top: .5rem; max-width: 32ch; font-size: .95rem; }
.about-hallmark {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.45));
}
.socials { display: flex; gap: .75rem; margin-top: 1.25rem; }
.socials a {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: 50%;
}
.socials a:hover { border-color: var(--gold-400); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
    font-size: .8rem; color: var(--text-muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--gold-300); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Shop page ---------- */
.shop-hero { --texture: .5; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.shop-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-top: .6rem; }
.shop-hero p { color: var(--cream-200); margin-top: .75rem; }

.shop-body { padding-bottom: var(--section-y); }
.shop-toolbar {
    position: sticky; top: 72px; z-index: 20;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    padding-block: 1rem; margin-bottom: 2rem;
    background: rgba(11, 35, 24, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.filter-groups { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter-divider { width: 1px; height: 24px; background: var(--line-strong); margin-inline: .5rem; }
.chip {
    min-height: 38px; padding: .45rem 1rem;
    font-size: .82rem; font-weight: 500; letter-spacing: .03em;
    color: var(--cream-200);
    border: 1px solid var(--line); border-radius: 999px;
    transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--cream-50); }
.chip[aria-pressed="true"] { background: var(--gold-400); border-color: var(--gold-400); color: var(--forest-950); }
.toolbar-right { display: flex; align-items: center; gap: 1rem; font-size: .85rem; color: var(--text-muted); }
.sort-select {
    font: inherit; font-size: .85rem; color: var(--cream-50);
    background: var(--forest-950); border: 1px solid var(--line); border-radius: var(--radius);
    padding: .5rem .75rem; min-height: 38px;
}
@media (max-width: 760px) {
    .shop-toolbar { top: 72px; }
    .filter-groups { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: .25rem; scrollbar-width: none; }
    .filter-groups::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; }
    .toolbar-right { width: 100%; justify-content: space-between; }
}

.product-grid.is-updating { opacity: .35; transition: opacity .15s var(--ease); }
.product-grid { transition: opacity .15s var(--ease); }

/* ---------- Product drawer ---------- */
.drawer {
    position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto;
    width: min(560px, 100vw); height: 100%; max-height: 100%; max-width: 100vw;
    padding: 0; border: 0; border-left: 1px solid var(--line-strong);
    background: var(--forest-950); color: var(--text);
    overflow-y: auto;
}
.drawer::backdrop { background: rgba(4, 14, 9, .7); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in .25s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-close {
    position: sticky; top: 0; margin-left: auto; display: grid; place-items: center;
    width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; color: var(--cream-50);
    background: rgba(11, 35, 24, .85); z-index: 2;
}
.drawer-body { padding: 0 clamp(1.25rem, 4vw, 2.25rem) 2.5rem; margin-top: -48px; }
.drawer-media { padding: 12px; border: 1px solid var(--line); background: rgba(245, 240, 225, .04); }
.drawer-media img { width: 100%; max-height: 62vh; object-fit: contain; background: var(--moss-800); }
.drawer-thumbs { display: flex; gap: .5rem; margin-top: .75rem; }
.drawer-thumbs button { width: 64px; border: 1px solid var(--line); padding: 3px; }
.drawer-thumbs button[aria-current="true"] { border-color: var(--gold-400); }
.drawer-thumbs img { aspect-ratio: 1; object-fit: cover; }
.drawer h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 1.75rem; }
.drawer .product-meta { margin-top: .5rem; }
.drawer-price { display: flex; align-items: baseline; gap: .75rem; margin-top: 1.25rem; }
.drawer-price strong { font-size: 1.5rem; font-weight: 500; }
.drawer-price small { color: var(--text-muted); font-size: .85rem; }
.drawer-desc { color: var(--cream-200); margin-top: 1.25rem; }
.drawer-specs { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.drawer-specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.drawer-specs dt { color: var(--text-muted); }
.drawer-specs dd { text-align: right; }
.size-picker { margin-top: 1.5rem; }
.size-picker legend { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); margin-bottom: .6rem; }
.size-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-options label { position: relative; }
.size-options input { position: absolute; opacity: 0; inset: 0; }
.size-options span { display: grid; place-items: center; min-width: 48px; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); font-size: .9rem; cursor: pointer; }
.size-options input:checked + span { background: var(--gold-400); color: var(--forest-950); border-color: var(--gold-400); }
.size-options input:focus-visible + span { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.drawer-cta { margin-top: 2rem; display: grid; gap: .75rem; }
.drawer-cta .form-note { text-align: center; }

/* Drawer Status Pill & Sold Details */
.drawer-status { margin-top: 1.25rem; margin-bottom: .25rem; }
.drawer-status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: .35rem .75rem; border-radius: var(--radius);
    font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.drawer-status-pill.available {
    background: rgba(22, 65, 42, .75);
    color: #A5F3AC;
    border: 1px solid rgba(74, 222, 128, .4);
}
.drawer-status-pill.sold {
    background: rgba(11, 35, 24, .95);
    color: var(--gold-300);
    border: 1px solid var(--gold-500);
}
.status-indicator {
    width: 7px; height: 7px; border-radius: 50%; display: inline-block;
}
.status-indicator.available {
    background: #4ADE80; box-shadow: 0 0 8px #4ADE80;
}
.status-indicator.sold {
    background: var(--gold-400); opacity: .85;
}
.drawer-sold-text {
    color: var(--gold-300); font-style: italic; font-size: 1.35rem; font-weight: 600;
}
.spec-status.sold { color: var(--gold-300); font-weight: 600; }
.spec-status.available { color: #8BE296; font-weight: 600; }
.btn-sold-commission {
    background: var(--moss-800);
    color: var(--gold-300);
    border: 1px solid var(--gold-400);
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; min-height: 48px; padding: 0 1.5rem;
    font-weight: 600; font-size: .95rem; border-radius: var(--radius);
    transition: all .2s var(--ease);
}
.btn-sold-commission:hover {
    background: var(--moss-700);
    color: var(--cream-50);
    border-color: var(--gold-300);
    transform: translateY(-1px);
}

/* ---------- Journal & Blog Section ---------- */
.journal-search-bar {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    max-width: 600px;
}
.journal-search-bar input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: rgba(4, 14, 9, 0.6);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--cream-50);
    font-size: 0.95rem;
    outline: none;
    transition: border-color .2s var(--ease);
}
.journal-search-bar input:focus {
    border-color: var(--gold-400);
}
.journal-search-bar button {
    padding: 0.75rem 1.5rem;
    background: var(--gold-400);
    color: var(--forest-950);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all .2s var(--ease);
}
.journal-search-bar button:hover {
    background: var(--gold-300);
}
.journal-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.journal-posts {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin: 2rem 0;
}
.journal-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
    background: rgba(11, 35, 24, 0.5);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all .25s var(--ease);
}
.journal-card:hover {
    border-color: var(--line-strong);
    background: rgba(15, 45, 31, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.journal-card-media {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--moss-800);
    border: 1px solid var(--line);
}
.journal-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.journal-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: var(--cream-50);
}
.journal-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gold-400);
    margin-bottom: 0.75rem;
}
.journal-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--cream-200);
    opacity: 0.9;
    margin-bottom: 1rem;
}
.journal-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-300);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.journal-newsletter {
    background: linear-gradient(135deg, rgba(11, 35, 24, 0.8), rgba(4, 14, 9, 0.9));
    border: 1px solid var(--gold-500);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-align: center;
    margin: 2.5rem 0;
}
.journal-newsletter h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--cream-50);
}
.journal-newsletter p {
    color: var(--cream-200);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
}
.journal-newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
}
.journal-newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(4, 14, 9, 0.7);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--cream-50);
    font-size: 0.95rem;
}
.journal-newsletter-form input:focus {
    border-color: var(--gold-400);
    outline: none;
}
.journal-newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--gold-400);
    color: var(--forest-950);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all .2s var(--ease);
}
.journal-newsletter-form button:hover {
    background: var(--gold-300);
}
.journal-newsletter-form button:disabled {
    opacity: 0.7;
    cursor: wait;
}
.journal-status {
    margin-top: 0.85rem;
    min-height: 1.4rem;
    font-size: 0.95rem;
    color: rgba(245,245,220,0.86);
}
.journal-status.success { color: #b8f2c8; }
.journal-status.error { color: #ffb3b3; }
.journal-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 2.5rem 0;
}
.journal-pagination button {
    padding: 0.5rem 1rem;
    background: rgba(11, 35, 24, 0.6);
    border: 1px solid var(--line);
    color: var(--cream-200);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all .2s;
}
.journal-pagination button:hover,
.journal-pagination button.active {
    background: var(--gold-400);
    color: var(--forest-950);
    border-color: var(--gold-400);
}

/* Article view specific */
.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}
.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-300);
    font-size: 0.92rem;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: transform .2s ease;
}
.article-back-link:hover {
    transform: translateX(-3px);
    color: var(--cream-50);
}
.article-header {
    margin-bottom: 2rem;
    text-align: center;
}
.article-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin: 1rem 0;
    color: var(--cream-50);
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--gold-400);
}
.article-featured-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    margin-bottom: 2.5rem;
}
.article-body {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--cream-200);
}
.article-body p {
    margin-bottom: 1.5rem;
}
.article-body h2, .article-body h3 {
    font-family: var(--font-heading);
    color: var(--cream-50);
    margin: 2rem 0 1rem;
}
.article-body blockquote {
    border-left: 3px solid var(--gold-400);
    padding: 0.75rem 1.5rem;
    background: rgba(212, 175, 55, 0.06);
    font-style: italic;
    margin: 1.5rem 0;
    color: var(--cream-50);
}
.article-body img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}
.article-share-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.article-share-btns {
    display: flex;
    gap: 0.5rem;
}
.article-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(11, 35, 24, 0.6);
    border: 1px solid var(--line);
    color: var(--cream-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
}
.article-share-btn:hover {
    background: var(--gold-400);
    color: var(--forest-950);
    border-color: var(--gold-400);
}
.article-author-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    background: rgba(11, 35, 24, 0.6);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-top: 3.5rem;
}
.article-author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-400);
    flex-shrink: 0;
}
.article-author-info h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--cream-50);
    margin-bottom: 0.35rem;
}
.article-author-info p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--cream-200);
}
.related-posts-section {
    margin-top: 4rem;
}
.related-posts-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--cream-50);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .journal-card { grid-template-columns: 1fr; }
    .journal-card-media { height: 220px; }
    .article-author-card { flex-direction: column; text-align: center; }
}

/* ---------- Policy & Legal Document Pages ---------- */
.policy-page {
    padding-top: 1.5rem;
    padding-bottom: 5rem;
}
.policy-card {
    background: rgba(11, 35, 24, 0.65);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg, 8px);
    backdrop-filter: blur(8px);
    padding: clamp(2rem, 5vw, 3.5rem);
    margin-top: 2rem;
    color: var(--cream-100, #ECE5D5);
}
.policy-card h2 {
    font-family: var(--font-serif);
    color: var(--gold-300);
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.4rem;
}
.policy-card h2:first-of-type {
    margin-top: 0;
}
.policy-card h3 {
    font-family: var(--font-serif);
    color: var(--gold-400);
    margin-top: 1.6rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.policy-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--cream-200);
}
.policy-card ul, .policy-card ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--cream-200);
}
.policy-card li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}
.policy-card strong {
    color: var(--cream-50);
}
.policy-highlight {
    background: rgba(191, 168, 112, 0.08);
    border-left: 3px solid var(--gold-400);
    padding: 1.25rem 1.5rem;
    border-radius: 0 4px 4px 0;
    margin: 1.5rem 0;
}
.policy-highlight h3 {
    margin-top: 0;
}
.policy-highlight p {
    margin-bottom: 0;
}
.policy-commitment {
    background: rgba(46, 125, 50, 0.15);
    border-left: 3px solid #4ade80;
    padding: 1.25rem 1.5rem;
    border-radius: 0 4px 4px 0;
    margin: 1.5rem 0;
}
.policy-commitment h3 {
    color: #4ade80;
    margin-top: 0;
}
.policy-commitment p {
    color: var(--cream-100);
    margin-bottom: 0;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
