:root {
    --ink: #2d221c;
    --muted: #76675f;
    --cream: #fbf6ef;
    --paper: #fffaf4;
    --clay: #9a5d3d;
    --rose: #b97968;
    --gold: #c59a56;
    --sage: #75836a;
    --line: rgba(45, 34, 28, 0.14);
    --shadow: 0 24px 70px rgba(45, 34, 28, 0.14);
    --radius: 24px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 72px);
    background: rgba(251, 246, 239, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
}
.brand strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    letter-spacing: 0.02em;
}
.brand small { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.main-nav a:hover { color: var(--ink); }
.nav-toggle { display: none; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: clamp(28px, 6vw, 72px);
    padding: clamp(48px, 8vw, 110px) clamp(18px, 5vw, 72px);
    background:
        radial-gradient(circle at top left, rgba(197, 154, 86, 0.22), transparent 34%),
        linear-gradient(135deg, #fff8ef, #f4e5d4);
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--clay);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
    font-weight: 800;
}
h1, h2, h3, h4 {
    font-family: "Cormorant Garamond", serif;
    line-height: 1.05;
    margin: 0 0 14px;
}
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: 30px; }
.hero-copy p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 18px; }
.hero-actions, .product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 800;
    cursor: pointer;
}
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.ghost { background: rgba(255,255,255,0.55); color: var(--ink); }
.hero-card {
    position: relative;
    background: var(--paper);
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: rotate(1deg);
}
.hero-card img { border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-card-note {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 12px 16px;
    background: rgba(255, 250, 244, 0.92);
    border-radius: 18px;
    font-weight: 800;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.intro-grid, .section-wrap, .story-band, .contact-grid, .product-detail, .content-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px clamp(18px, 4vw, 36px);
}
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.intro-grid article, .contact-card, .panel-form, .product-card, .story-band {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(45, 34, 28, 0.08);
}
.intro-grid article { padding: 28px; }
.intro-grid span { color: var(--gold); font-weight: 900; }
.intro-grid p, .product-card p, .story-band p, .content-page p { color: var(--muted); }
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.section-heading a { color: var(--clay); font-weight: 800; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.product-card { overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 1 / 0.78; object-fit: cover; background: #eee; }
.product-card-body { padding: 22px; }
.product-card small { color: var(--clay); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.price-row strong { font-size: 20px; }
.price-row a { color: var(--clay); font-weight: 800; }
.story-band {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 28px;
    align-items: center;
}
.category-pills, .filter-row { display: flex; flex-wrap: wrap; gap: 12px; }
.category-pills a, .chip {
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-weight: 800;
}
.chip.active { background: var(--ink); color: var(--paper); }
.page-hero {
    padding: 64px clamp(18px, 5vw, 72px);
    text-align: center;
    background: linear-gradient(135deg, #fff8ef, #f2dfcc);
}
.page-hero.compact h1 { font-size: clamp(40px, 6vw, 68px); }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); }
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 46px;
    align-items: start;
}
.product-media { background: var(--paper); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-media img { border-radius: 18px; aspect-ratio: 1 / 0.82; object-fit: cover; width: 100%; }
.product-info .tagline { color: var(--muted); font-size: 19px; }
.product-price { font-size: 30px; font-weight: 900; margin: 16px 0; color: var(--clay); }
.product-description { color: var(--muted); }
.fine-print { color: var(--muted); font-size: 13px; }
.contact-grid { display: grid; grid-template-columns: 0.75fr 1fr; gap: 26px; }
.single-form { grid-template-columns: 1fr; max-width: 820px; }
.contact-card, .panel-form { padding: 28px; }
.form-row { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 800; }
.form-row span { color: var(--ink); }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.success-box, .error-box, .flash {
    padding: 14px 16px;
    border-radius: 16px;
    margin: 16px auto;
    max-width: 920px;
}
.success-box, .flash.success { background: #e8f4e2; border: 1px solid #b8d8a9; }
.error-box, .flash.error { background: #fff0eb; border: 1px solid #e4b2a4; }
.content-page { max-width: 860px; font-size: 18px; }
.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
    padding: 44px clamp(18px, 5vw, 72px);
    color: #f8eee3;
    background: var(--ink);
}
.site-footer p, .site-footer a { color: rgba(248, 238, 227, 0.74); display: block; margin: 6px 0; }
.site-footer h3, .site-footer h4 { color: #fff8ef; }

@media (max-width: 860px) {
    .site-header { align-items: flex-start; }
    .nav-toggle { display: inline-flex; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 10px 14px; font-weight: 800; }
    .main-nav { display: none; position: absolute; left: 18px; right: 18px; top: 82px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
    .main-nav.open { display: grid; }
    .hero, .intro-grid, .product-grid, .story-band, .contact-grid, .product-detail, .site-footer { grid-template-columns: 1fr; }
    .section-heading { display: block; }
    .brand small { display: none; }
}


.cart-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--paper);
}
.cart-link span {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--clay);
    color: #fff8ef;
    font-size: 12px;
    font-weight: 900;
}
.cart-link small { color: var(--muted); font-weight: 800; }
.stacked-actions { display: grid; gap: 14px; align-items: start; }
.add-cart-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--paper);
}
.qty-label { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.qty-label input, .qty-input { max-width: 96px; }
.cart-table-wrap, .panel-form, .cart-summary, .empty-state {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cart-table-wrap { padding: 18px; overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.cart-product { display: flex; gap: 14px; align-items: center; min-width: 280px; }
.cart-product img { width: 74px; height: 74px; object-fit: cover; border-radius: 14px; }
.cart-product small, .cart-table small { display: block; margin-top: 4px; color: var(--muted); }
.cart-actions { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-top: 18px; }
.cart-summary { padding: 22px; min-width: 280px; }
.cart-summary p, .summary-line, .summary-total { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.summary-line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-total { margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--line); font-size: 20px; }
.empty-state { padding: 34px; text-align: center; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.checkout-form h2 { margin-top: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-card, .account-choice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    margin: 10px 0;
    background: #fffaf4;
}
.radio-card input { width: auto; margin-top: 4px; }
.radio-card small { display: block; color: var(--muted); margin-top: 3px; }
.account-choice.selected { background: #f6eadb; }
.order-review { position: sticky; top: 18px; }
.order-table td { white-space: nowrap; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
@media (max-width: 860px) {
    .cart-actions, .checkout-grid, .two-col { display: grid; grid-template-columns: 1fr; }
    .cart-summary { min-width: 0; }
    .order-review { position: static; }
}


.account-overview {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.account-card {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(92,65,49,.14);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(69, 41, 22, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.account-card h2 {
    margin: .15rem 0 .25rem;
}
.account-card p,
.account-card small,
.muted-copy {
    color: var(--muted);
}
.account-card small {
    display: block;
    margin-top: .4rem;
    white-space: normal;
}
.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}
.account-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .85fr);
    gap: 1.5rem;
    align-items: start;
}
.inline-heading {
    margin-bottom: 1rem;
}
.three-field-row {
    align-items: end;
}
@media (max-width: 860px) {
    .account-card,
    .account-settings-grid {
        display: block;
    }
    .account-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    .account-settings-grid .panel-form + .panel-form {
        margin-top: 1.5rem;
    }
}

.home-content-section { padding-top: 28px; padding-bottom: 18px; }
.home-content-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(45, 34, 28, 0.08);
    padding: clamp(24px, 4vw, 42px);
    color: var(--muted);
    font-size: 18px;
}
.home-content-card h2,
.home-content-card h3 { color: var(--ink); }
.inline-check { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--muted); margin: -4px 0 18px; }
.inline-check input { width: auto; }
.tax-note { margin-top: 12px; display: block !important; }

.product-options {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(45, 34, 28, .14);
    border-radius: 18px;
    background: rgba(255, 250, 244, .72);
}
.product-options h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}
.product-options select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid rgba(45, 34, 28, .18);
    border-radius: 14px;
    background: #fffaf4;
    color: #2d221c;
}
.cart-product small,
.summary-line small,
.cart-table small {
    display: block;
    margin-top: 4px;
    color: rgba(45,34,28,.68);
    font-size: .86rem;
}
