:root {
    --ink: #2e2a27;
    --ink-soft: #645d57;
    --cream: #f7f2eb;
    --paper: #fffdf9;
    --sand: #e9ddd0;
    --terracotta: #ad6f55;
    --terracotta-dark: #87513c;
    --sage: #7d8a76;
    --line: #dfd7cf;
    --success: #54745d;
    --danger: #9a493f;
    --shadow: 0 18px 50px rgba(70, 54, 44, .10);
    --radius: 4px;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
body:has(.admin-shell) { background: #f4f1ed; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(2.7rem, 6vw, 5.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -.035em; }
h3 { font-size: 1.35rem; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 100px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 999; background: var(--ink); color: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--terracotta-dark); font-size: .71rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.light { color: #efe1d5; }
.muted { color: var(--ink-soft); }

.announcement { padding: 7px 20px; background: var(--ink); color: #f8eee6; font-size: .7rem; text-align: center; letter-spacing: .08em; text-transform: uppercase; }
.site-header { position: relative; z-index: 50; background: rgba(255,253,249,.96); border-bottom: 1px solid rgba(46,42,39,.1); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 47px; height: 47px; place-items: center; border: 1px solid var(--terracotta); border-radius: 50%; color: var(--terracotta-dark); font-family: var(--serif); font-size: .82rem; letter-spacing: .08em; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1; }
.brand small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .57rem; letter-spacing: .18em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); font-size: .82rem; font-weight: 650; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--terracotta-dark); }
.main-nav .admin-link { color: var(--terracotta-dark); }
.cart-link { display: flex; align-items: center; gap: 8px; }
.cart-link span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: .7rem; }
.nav-toggle { display: none; padding: 8px; background: transparent; border: 0; }
.nav-toggle > span:not(.sr-only) { display: block; width: 25px; height: 1px; margin: 6px; background: var(--ink); }

.flash-stack { position: fixed; top: 105px; right: 20px; z-index: 100; width: min(420px, calc(100% - 40px)); }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; padding: 15px 18px; background: white; border-left: 4px solid var(--sage); box-shadow: var(--shadow); font-size: .88rem; }
.flash-error { border-color: var(--danger); }
.flash-info { border-color: var(--terracotta); }
.flash button { background: none; border: 0; color: var(--ink-soft); font-size: 1.25rem; }

.button { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid var(--terracotta-dark); border-radius: var(--radius); background: var(--terracotta-dark); color: white; font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); background: #74422f; }
.button-dark { border-color: var(--ink); background: var(--ink); }
.button-dark:hover { background: #161412; }
.button-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: white; }
.button-ghost { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); color: white; backdrop-filter: blur(5px); }
.button-ghost:hover { background: white; color: var(--ink); }
.button-small { min-height: 39px; padding: 8px 15px; font-size: .67rem; }
.button-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--terracotta-dark); font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.round-link { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: .2s; }
.round-link:hover { border-color: var(--ink); background: var(--ink); color: white; }
.back-link { display: inline-block; margin-bottom: 35px; font-size: .78rem; font-weight: 700; }
.back-link.light { color: white; }

.hero { position: relative; min-height: 700px; display: grid; align-items: center; overflow: hidden; background: #c9b5a0; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image { object-position: 65% center; }
.hero-shade { background: linear-gradient(90deg, rgba(41,31,26,.78) 0%, rgba(41,31,26,.5) 42%, rgba(41,31,26,.02) 73%); }
.hero-content { position: relative; z-index: 2; color: white; }
.hero-content > * { max-width: 670px; }
.hero-content h1 { margin-bottom: 24px; font-size: clamp(3.2rem, 6.1vw, 6rem); }
.hero-content p { max-width: 590px; margin-bottom: 34px; color: #f5ebe3; font-size: 1.05rem; }
.hero-content .eyebrow { color: #eed8c9; }
.promise-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise-grid > div { display: grid; grid-template-columns: 38px 1fr; padding: 28px 5vw; border-right: 1px solid var(--line); }
.promise-grid > div:last-child { border: 0; }
.promise-grid span { grid-row: 1 / 3; color: var(--terracotta-dark); font-family: var(--serif); font-style: italic; }
.promise-grid strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.promise-grid small { color: var(--ink-soft); font-size: .72rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-heading h2 { max-width: 600px; margin-bottom: 0; }
.section-heading.small h2 { font-size: 2.35rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.product-card { overflow: hidden; background: white; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-visual { position: relative; display: block; aspect-ratio: 1 / .92; overflow: hidden; background: #e9ded2; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-visual img { transform: scale(1.03); }
.visual-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(circle at 70% 25%, #f2e8dd, transparent 32%), linear-gradient(140deg, #d8c2ae, #f2e9df); color: rgba(90,60,43,.45); }
.visual-placeholder > span { display: grid; width: 90px; height: 90px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 1.45rem; letter-spacing: .12em; }
.visual-placeholder.large { min-height: 620px; align-content: center; gap: 15px; }
.visual-placeholder.large small { font-size: .65rem; letter-spacing: .17em; text-transform: uppercase; }
.badge { position: absolute; left: 15px; top: 15px; padding: 6px 10px; background: rgba(255,253,249,.92); color: var(--terracotta-dark); font-size: .61rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-card-body { padding: 24px; }
.product-category { color: var(--terracotta-dark); font-size: .63rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.product-card h3 { margin: 7px 0 11px; }
.product-card h3 a:hover { color: var(--terracotta-dark); }
.product-card p { min-height: 50px; margin-bottom: 20px; color: var(--ink-soft); font-size: .82rem; }
.product-card-body > div { display: flex; align-items: center; justify-content: space-between; }
.product-card-body strong { font-family: var(--serif); font-size: 1.18rem; font-weight: 400; }
.story-section { padding-block: 115px; overflow: hidden; background: var(--ink); color: white; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9vw; }
.story-art { position: relative; min-height: 480px; background: linear-gradient(140deg, #cba88d, #7d5541); }
.story-art::before { position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.35); content: ""; }
.story-word { position: absolute; left: -45px; top: 30px; color: rgba(255,255,255,.09); font-family: var(--serif); font-size: 11rem; font-style: italic; line-height: 1; }
.story-card { position: absolute; right: -35px; bottom: 45px; width: 240px; padding: 30px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.story-card strong, .story-card small { display: block; }
.story-card strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.story-card small { margin-top: 8px; color: var(--ink-soft); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.story-copy h2 { max-width: 570px; }
.story-copy p { color: #cfc6c0; }
.story-copy .button { margin-top: 15px; border-color: white; }
.instagram-section { background: var(--cream); }
.instagram-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 55px 60px; background: var(--paper); border: 1px solid var(--line); }
.instagram-card h2 { margin-bottom: 10px; }
.instagram-card p { margin-bottom: 0; color: var(--ink-soft); }

.page-hero { padding-block: 100px 80px; background: var(--cream); text-align: center; }
.page-hero.compact { padding-block: 62px; background: var(--ink); color: white; text-align: left; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 600px; margin: auto; color: var(--ink-soft); }
.page-hero.compact p { margin: 0; color: #cfc6c0; }
.page-hero.compact .eyebrow { color: #dcbda8; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; align-items: start; gap: 60px; }
.filters { position: sticky; top: 25px; }
.filters h2 { margin-bottom: 28px; font-size: 1.65rem; }
label { display: block; margin-bottom: 19px; color: var(--ink); font-size: .76rem; font-weight: 750; letter-spacing: .02em; }
label small { display: block; margin-top: 4px; color: var(--ink-soft); font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 2px; outline: none; background: white; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(173,111,85,.12); }
.search-field { position: relative; margin-bottom: 20px; }
.search-field input { padding-right: 45px !important; }
.search-field button { position: absolute; right: 5px; top: 12px; width: 35px; height: 35px; border: 0; background: transparent; }
.reset-link { display: block; margin-top: 13px; color: var(--danger); font-size: .72rem; text-align: center; text-decoration: underline; }
.results-header { display: flex; justify-content: flex-end; margin-bottom: 20px; color: var(--ink-soft); font-size: .76rem; }
.shop-products { grid-template-columns: repeat(3, 1fr); }
.shop-products .product-card-body { padding: 20px; }
.shop-products .product-card h3 { font-size: 1.18rem; }
.empty-state { max-width: 650px; margin: 50px auto; padding: 70px 30px; text-align: center; }
.empty-state > span { display: grid; width: 80px; height: 80px; margin: 0 auto 25px; place-items: center; border: 1px solid var(--terracotta); border-radius: 50%; color: var(--terracotta-dark); font-family: var(--serif); }
.empty-state h1, .empty-state h2 { margin-bottom: 15px; }
.empty-state p { color: var(--ink-soft); }
.empty-state .button { margin-top: 15px; }

.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; align-items: start; gap: 8vw; }
.product-detail-visual { overflow: hidden; background: var(--cream); }
.product-detail-visual > img { width: 100%; min-height: 620px; object-fit: cover; }
.product-detail-copy { padding-top: 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 50px; color: var(--ink-soft); font-size: .68rem; }
.breadcrumbs a:hover { color: var(--terracotta-dark); }
.product-detail h1 { margin: 7px 0 20px; font-size: clamp(2.7rem, 4.6vw, 4.7rem); }
.product-intro { color: var(--ink-soft); font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.product-price { margin-block: 24px; font-family: var(--serif); font-size: 1.8rem; }
.rich-copy { color: var(--ink-soft); }
.add-to-cart { display: grid; grid-template-columns: 82px 1fr; align-items: end; gap: 12px; margin-top: 30px; }
.add-to-cart label { margin: 0; }
.stock-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink-soft); font-size: .72rem; }
.stock-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.sold-out { margin-top: 25px; padding: 16px; background: var(--cream); color: var(--danger); }
.product-reassurance { margin-top: 35px; border-top: 1px solid var(--line); }
.product-reassurance div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.product-reassurance strong, .product-reassurance span, .product-reassurance a { display: block; }
.product-reassurance strong { font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.product-reassurance span, .product-reassurance a { color: var(--ink-soft); font-size: .75rem; }
.product-reassurance a { color: var(--terracotta-dark); }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; align-items: start; gap: 70px; }
.cart-list { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 100px 1fr 90px 90px; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; background: var(--cream); color: var(--terracotta-dark); font-family: var(--serif); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h2 { margin: 4px 0; font-size: 1.25rem; }
.cart-item small { color: var(--ink-soft); }
.cart-item label { margin: 0; }
.cart-item > strong { font-family: var(--serif); font-weight: 400; text-align: right; }
.text-button, .danger-link { padding: 12px 0; border: 0; background: none; color: var(--terracotta-dark); font-size: .74rem; font-weight: 750; text-decoration: underline; }
.danger-link { color: var(--danger); }
.danger-link.center { display: block; width: 100%; text-align: center; }
.order-summary { position: sticky; top: 30px; padding: 30px; background: var(--cream); border: 1px solid var(--line); }
.order-summary.static { position: static; }
.order-summary h2 { margin-bottom: 25px; font-size: 1.85rem; }
.order-summary > div { display: flex; justify-content: space-between; gap: 25px; padding: 11px 0; color: var(--ink-soft); font-size: .78rem; border-bottom: 1px solid var(--line); }
.order-summary > div strong { color: var(--ink); font-family: var(--serif); font-weight: 400; text-align: right; }
.order-summary .summary-total { margin: 12px 0 22px; padding-top: 18px; border-bottom: 0; color: var(--ink); font-size: 1rem; }
.order-summary .summary-total strong { font-size: 1.35rem; }
.order-summary > p { margin: 15px 0 0; color: var(--ink-soft); font-size: .68rem; text-align: center; }
.order-summary > p a { text-decoration: underline; }
.checkout-form { max-width: 760px; }
.checkout-form h2 { margin: 15px 0 25px; font-size: 1.75rem; }
.checkout-form h2:not(:first-child) { margin-top: 45px; padding-top: 35px; border-top: 1px solid var(--line); }
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-card { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--line); background: white; }
.choice-card input { accent-color: var(--terracotta-dark); }
.choice-card span, .choice-card strong, .choice-card small { display: block; }
.choice-card small { color: var(--ink-soft); }
.paypal-choice { border-color: #d5b246; background: #fffdf4; }
.payment-hold-note { margin: -5px 0 25px; padding: 12px 15px; background: var(--cream); color: var(--ink-soft); font-size: .72rem; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .73rem; font-weight: 400; }
.checkbox input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--terracotta-dark); }
.checkbox a { color: var(--terracotta-dark); text-decoration: underline; }

.auth-section { min-height: calc(100vh - 116px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { display: grid; min-height: 720px; align-items: end; padding: 9vw 7vw; background: linear-gradient(145deg, rgba(43,32,26,.25), rgba(43,32,26,.78)), url("../images/hero-atelier-fam.webp") center / cover; color: white; }
.auth-art > div { max-width: 550px; }
.auth-art h1 { margin-bottom: 20px; }
.auth-art p { color: #eadfd7; }
.register-art { background-position: 70% center; }
.auth-form-wrap { display: grid; place-items: center; padding: 60px; }
.auth-form { width: min(480px, 100%); }
.auth-form h1 { margin-bottom: 36px; font-size: 3.6rem; }
.auth-form .button { margin-top: 8px; }
.form-switch { margin-top: 22px; color: var(--ink-soft); font-size: .78rem; text-align: center; }
.form-switch a { color: var(--terracotta-dark); font-weight: 700; }

.account-header { padding-block: 75px; background: var(--ink); color: white; }
.account-header.compact { padding-block: 55px; }
.account-welcome { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.account-welcome h1 { margin-bottom: 12px; font-size: 4rem; }
.account-welcome p { margin: 0; color: #ccc2bc; }
.account-nav { display: flex; gap: 10px 35px; margin-top: -100px; margin-bottom: 80px; color: white; font-size: .76rem; font-weight: 700; }
.account-nav a { padding-bottom: 8px; border-bottom: 2px solid transparent; }
.account-nav a.active { border-color: #d8ad91; }
.account-grid { display: grid; grid-template-columns: 1fr 300px; align-items: start; gap: 70px; }
.order-cards { border-top: 1px solid var(--line); }
.order-card { display: grid; grid-template-columns: 1fr 180px 90px 40px; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.order-card h3 { margin: 8px 0 2px; font-size: 1.25rem; }
.order-card small { color: var(--ink-soft); }
.status { display: inline-block; width: fit-content; padding: 4px 8px; border-radius: 20px; background: #eee8e2; color: var(--ink-soft); font-size: .61rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-awaiting_payment { background: #fff0c9; color: #785817; }
.status-crafting, .status-confirmed { background: #f2dfce; color: #8a512f; }
.status-ready, .status-shipped { background: #dfe8dc; color: #47614d; }
.status-completed { background: #e4e4e4; color: #555; }
.status-cancelled { background: #f2dedd; color: var(--danger); }
.mini-progress, .large-progress { overflow: hidden; height: 5px; border-radius: 10px; background: #e3ddd7; }
.mini-progress span, .large-progress span { display: block; height: 100%; border-radius: inherit; background: var(--terracotta); }
.account-sidebar > div { margin-bottom: 18px; padding: 25px; border: 1px solid var(--line); }
.account-sidebar h2, .account-sidebar h3 { margin-bottom: 12px; }
.account-sidebar h3 { font-size: 1.2rem; }
.account-sidebar p { color: var(--ink-soft); font-size: .76rem; }
.account-sidebar small { color: var(--ink-soft); }
.privacy-card { background: var(--cream); }
.privacy-card .text-link { display: block; margin-bottom: 4px; font-size: .66rem; }
.support-card { background: var(--ink); color: white; }
.support-card p { color: #cfc5be; }
.password-details { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.password-details summary { cursor: pointer; color: var(--terracotta-dark); font-size: .7rem; font-weight: 750; }
.password-details form { margin-top: 15px; }
.password-details label { margin-bottom: 10px; }
.empty-panel { padding: 45px; background: var(--cream); text-align: center; }
.empty-panel h3 { margin-bottom: 10px; }
.empty-panel p { color: var(--ink-soft); }

.order-detail-layout { display: grid; grid-template-columns: 1fr 330px; align-items: start; gap: 70px; }
.tracking-card { padding: 35px; border: 1px solid var(--line); background: var(--cream); }
.payment-pending-card { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 22px; padding: 28px 32px; border: 1px solid #e2c36c; background: #fff9e8; }
.payment-pending-card h2 { margin-bottom: 8px; font-size: 1.65rem; }
.payment-pending-card p { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.paypal-button { flex: 0 0 auto; border-color: #0070ba; background: #0070ba; }
.tracking-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.tracking-heading h2 { margin-bottom: 25px; font-size: 2.2rem; }
.large-progress { height: 10px; background: #d8d0c8; }
.progress-labels { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-soft); font-size: .62rem; text-transform: uppercase; }
.tracking-number { margin: 25px 0 0; font-size: .78rem; }
.timeline { margin-top: 50px; }
.timeline h2 { font-size: 2rem; }
.timeline article { display: grid; grid-template-columns: 16px 1fr; gap: 16px; padding-bottom: 28px; }
.timeline article > span { width: 11px; height: 11px; margin-top: 7px; border: 3px solid var(--paper); border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 1px var(--terracotta); }
.timeline article div { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.timeline time { display: block; color: var(--ink-soft); font-size: .68rem; }
.timeline p { margin: 9px 0 0; color: var(--ink-soft); font-size: .82rem; }
.address-card { margin-block: 18px; padding: 25px; border: 1px solid var(--line); }
.address-card h3 { margin-bottom: 10px; }
.address-card p { margin: 0; color: var(--ink-soft); font-size: .8rem; }

.ticket-layout { display: grid; grid-template-columns: 310px 1fr; align-items: start; gap: 45px; }
.ticket-list { border: 1px solid var(--line); }
.ticket-list h2 { padding: 22px; margin: 0; font-size: 1.4rem; border-bottom: 1px solid var(--line); }
.ticket-list > p { padding: 15px 22px; }
.ticket-list > a { display: block; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.ticket-list > a.active { background: var(--cream); border-left: 3px solid var(--terracotta); }
.ticket-list span, .ticket-list strong, .ticket-list small { display: block; }
.ticket-list span { color: var(--terracotta-dark); font-size: .62rem; font-weight: 800; }
.ticket-list strong { margin: 4px 0; font-family: var(--serif); font-weight: 400; }
.ticket-list small { color: var(--ink-soft); font-size: .64rem; }
.ticket-main { min-height: 500px; padding: 35px; border: 1px solid var(--line); }
.conversation-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.conversation-header h2 { margin: 0; font-size: 1.85rem; }
.messages { display: flex; flex-direction: column; gap: 14px; padding-block: 25px; }
.messages article { width: min(78%, 630px); padding: 16px 19px; border-radius: 3px; background: var(--cream); }
.messages .from-customer { align-self: flex-end; background: var(--ink); color: white; }
.messages article strong, .messages article time { display: block; font-size: .65rem; }
.messages article p { margin: 6px 0; font-size: .82rem; }
.messages article time { color: #8c837d; }
.messages .from-customer time { color: #aaa09a; }
.reply-form { padding-top: 25px; border-top: 1px solid var(--line); }
.new-ticket-form { max-width: 650px; }
.new-ticket-form h2 { margin-bottom: 30px; }

.legal-content { max-width: 820px; }
.legal-content h2 { margin-top: 45px; font-size: 2rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content a { color: var(--terracotta-dark); text-decoration: underline; }

.site-footer { padding-top: 80px; background: #24211f; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; padding-bottom: 60px; }
.brand-footer .brand-mark { color: #ddbaa3; border-color: #ddbaa3; }
.brand-footer small, .footer-grid p { color: #aaa19b; }
.footer-grid p { max-width: 290px; margin-top: 20px; font-size: .8rem; }
.footer-grid h2 { margin-bottom: 18px; color: #d9b79f; font-family: var(--sans); font-size: .67rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid > div > a:not(.brand) { display: block; margin: 9px 0; color: #c9c1bc; font-size: .75rem; }
.footer-grid > div > a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 20px; border-top: 1px solid #3b3734; color: #847d78; font-size: .65rem; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; min-width: 112px; height: 46px; padding: 0 17px; place-items: center; border-radius: 30px; background: #236d4a; color: white; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cookie-notice { position: fixed; left: 20px; bottom: 20px; z-index: 80; width: min(510px, calc(100% - 40px)); padding: 20px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cookie-notice p { margin-bottom: 13px; color: var(--ink-soft); font-size: .75rem; }
.cookie-notice strong { color: var(--ink); }

/* Administration */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; background: #f4f1ed; }
.admin-sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 28px 20px; background: var(--ink); color: white; }
.brand-admin { margin: 0 8px 45px; }
.brand-admin .brand-mark { color: #d9b59d; border-color: #d9b59d; }
.brand-admin small { color: #9f9691; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar nav a { padding: 11px 13px; border-radius: 3px; color: #bbb3ae; font-size: .76rem; font-weight: 650; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: #3b3632; color: white; }
.admin-sidebar nav a.active { border-left: 3px solid #d19778; }
.admin-back { margin-top: auto; padding: 12px; color: #aaa19b; font-size: .72rem; }
.admin-content { min-width: 0; padding: 0 42px 70px; }
.admin-topbar { display: flex; align-items: center; justify-content: flex-end; height: 75px; margin-bottom: 35px; border-bottom: 1px solid #ddd5ce; }
.admin-topbar div { display: flex; gap: 18px; font-size: .72rem; }
.admin-topbar span { color: var(--ink-soft); }
.admin-menu-toggle { display: none; }
.admin-title { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 32px; }
.admin-title h1 { margin: 0; font-size: 3.35rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 25px; }
.stat-grid > div { padding: 25px; background: white; border: 1px solid #e0d8d1; }
.stat-grid span, .stat-grid small { display: block; color: var(--ink-soft); font-size: .69rem; }
.stat-grid strong { display: block; margin-block: 10px; font-family: var(--serif); font-size: 2.5rem; font-weight: 400; line-height: 1; }
.admin-panel { background: white; border: 1px solid #e0d8d1; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #e7e0da; }
.panel-heading h2 { margin: 0; font-size: 1.45rem; }
.panel-heading a { color: var(--terracotta-dark); font-size: .7rem; font-weight: 750; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .75rem; }
th { padding: 12px 18px; background: #faf8f5; color: var(--ink-soft); font-size: .61rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 15px 18px; border-top: 1px solid #eee8e3; vertical-align: middle; }
td > strong, td > small { display: block; }
td small { margin-top: 3px; color: var(--ink-soft); }
td > a, td form button { color: var(--terracotta-dark); font-size: .7rem; font-weight: 750; }
.admin-split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .75fr); align-items: start; gap: 24px; }
.admin-form { padding: 27px; }
.admin-form h2 { margin-bottom: 25px; font-size: 1.65rem; }
.admin-form label { margin-bottom: 16px; }
.admin-form .form-grid { gap: 12px; }
.checkbox-row { display: flex; gap: 22px; }
.product-cell { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.product-cell img, .product-cell > span { width: 38px; height: 38px; object-fit: cover; }
.product-cell > span { display: grid; place-items: center; background: var(--cream); color: var(--terracotta-dark); font-family: var(--serif); font-size: .65rem; }
.low-stock { color: var(--danger); font-weight: 800; }
.sticky-panel { position: sticky; top: 20px; }
.order-lines { margin-bottom: 22px; border-top: 1px solid var(--line); }
.order-lines div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .72rem; }
.table-progress { width: 100px; margin-top: 7px; }
input[type=range] { width: 100%; margin-top: 12px; accent-color: var(--terracotta-dark); }
.selection-hint { padding: 65px 35px; color: var(--ink-soft); text-align: center; }
.selection-hint > span { display: block; color: var(--terracotta); font-family: var(--serif); font-size: 3rem; }
.selection-hint h2 { color: var(--ink); font-size: 1.5rem; }
.inline-admin-form { min-width: 420px; display: flex; align-items: center; gap: 8px; }
.inline-admin-form select { width: 80px; margin: 0; padding: 5px; }
.inline-admin-form .compact-input { width: 155px !important; margin: 0 !important; padding: 5px 7px !important; }
.inline-admin-form .checkbox { margin: 0; }
.inline-admin-form button { border: 0; background: transparent; }
.ticket-admin-list { overflow: hidden; }
.ticket-admin-list > a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ticket-admin-list > a.active { background: var(--cream); border-left: 3px solid var(--terracotta); }
.ticket-admin-list strong, .ticket-admin-list small { display: block; }
.ticket-admin-list strong { font-family: var(--serif); font-weight: 400; }
.ticket-admin-list small { color: var(--ink-soft); font-size: .63rem; }
.admin-messages { max-height: 430px; overflow-y: auto; }
.settings-form { max-width: 920px; }
.form-section { margin-bottom: 35px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.form-section h2 { margin-bottom: 20px; }
.legal-list { padding: 20px; }
.legal-list > p { padding: 12px; background: #fff5d9; color: #705d30; font-size: .72rem; }
.legal-list > a { display: flex; align-items: center; justify-content: space-between; padding: 15px 10px; border-bottom: 1px solid var(--line); }
.legal-list > a.active { color: var(--terracotta-dark); }
.legal-list strong, .legal-list small { display: block; }
.legal-list strong { font-family: var(--serif); font-weight: 400; }
.legal-list small { color: var(--ink-soft); font-size: .63rem; }
.code-textarea { font-family: Consolas, monospace; font-size: .72rem; line-height: 1.5; }
.admin-payment-warning { margin-bottom: 18px; padding: 13px 15px; border-left: 4px solid #d29c21; background: #fff5d9; color: #705617; }
.admin-payment-warning strong, .admin-payment-warning span { display: block; }
.admin-payment-warning span { margin-top: 3px; font-size: .7rem; }
.payment-reference { display: grid; gap: 4px; margin: -3px 0 18px; padding: 12px; background: var(--cream); color: var(--ink-soft); font-size: .68rem; overflow-wrap: anywhere; }
.paypal-settings > p { margin-bottom: 20px; color: var(--ink-soft); font-size: .75rem; }
.module-status { width: fit-content; margin-bottom: 20px; padding: 7px 11px; border-radius: 20px; background: #f3e3df; color: var(--danger); font-size: .65rem; font-weight: 750; }
.module-status.configured { background: #dfe8dc; color: #47614d; }
.paypal-payment-layout { display: grid; grid-template-columns: 1fr 360px; align-items: start; gap: 70px; max-width: 950px; }
.paypal-panel { padding: 38px; border: 1px solid var(--line); background: white; }
.paypal-panel h2 { margin-bottom: 15px; }
.paypal-panel > p { margin-bottom: 30px; color: var(--ink-soft); }
#paypal-button-container { min-height: 150px; }
.paypal-error { margin: 15px 0; padding: 13px 15px; background: #f7e1df; color: var(--danger); font-size: .75rem; }

@media (max-width: 1050px) {
    .main-nav { gap: 17px; }
    .shop-products { grid-template-columns: repeat(2, 1fr); }
    .cart-layout, .checkout-layout { gap: 35px; }
    .admin-shell { grid-template-columns: 210px 1fr; }
    .admin-content { padding-inline: 25px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-split { grid-template-columns: 1fr; }
    .sticky-panel { position: static; }
}

@media (max-width: 820px) {
    .container { width: min(100% - 30px, 680px); }
    .section { padding-block: 70px; }
    .nav-toggle { display: block; }
    .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 5px; border-bottom: 1px solid var(--line); }
    .main-nav .cart-link { justify-content: space-between; }
    .hero { min-height: 680px; align-items: end; padding-bottom: 65px; }
    .hero-image { object-position: 62% center; }
    .hero-shade { background: linear-gradient(0deg, rgba(40,30,25,.84), rgba(40,30,25,.12) 85%); }
    .promise-grid { grid-template-columns: 1fr; }
    .promise-grid > div { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .story-grid { grid-template-columns: 1fr; }
    .story-art { width: calc(100% - 25px); min-height: 420px; }
    .story-card { right: -25px; }
    .instagram-card { padding: 40px; }
    .shop-layout { grid-template-columns: 1fr; gap: 35px; }
    .filters { position: static; padding: 25px; background: var(--cream); }
    .product-detail, .cart-layout, .checkout-layout, .account-grid, .order-detail-layout, .ticket-layout, .paypal-payment-layout { grid-template-columns: 1fr; }
    .product-detail { gap: 45px; }
    .product-detail-visual > img, .visual-placeholder.large { min-height: 500px; }
    .order-summary { position: static; }
    .auth-section { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-form-wrap { min-height: 680px; padding: 50px 20px; }
    .account-grid, .order-detail-layout { gap: 45px; }
    .account-nav { margin-top: -90px; overflow-x: auto; }
    .order-card { grid-template-columns: 1fr 120px 70px 38px; }
    .ticket-list { max-height: 330px; overflow-y: auto; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-shell { display: block; }
    .admin-sidebar { position: fixed; z-index: 200; left: -260px; width: 245px; transition: left .25s; }
    .admin-sidebar.open { left: 0; }
    .admin-content { padding: 0 18px 50px; }
    .admin-topbar { justify-content: space-between; }
    .admin-menu-toggle { display: block; padding: 8px 12px; border: 1px solid var(--line); background: white; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 24px, 520px); }
    h1 { font-size: 2.9rem; }
    h2 { font-size: 2.15rem; }
    .announcement { font-size: .58rem; }
    .nav-shell { min-height: 72px; }
    .brand-mark { width: 40px; height: 40px; }
    .brand strong { font-size: 1.15rem; }
    .hero { min-height: 650px; padding-bottom: 40px; }
    .hero-content h1 { font-size: 3.1rem; }
    .hero-content p { font-size: .9rem; }
    .button-row { align-items: stretch; flex-direction: column; }
    .section-heading { align-items: start; flex-direction: column; }
    .product-grid, .shop-products { grid-template-columns: 1fr; }
    .story-art { min-height: 350px; }
    .story-word { left: -20px; font-size: 7rem; }
    .story-card { bottom: 25px; width: 205px; padding: 23px; }
    .instagram-card { align-items: start; flex-direction: column; padding: 30px 24px; }
    .page-hero { padding-block: 70px 55px; }
    .page-hero.compact { padding-block: 50px; }
    .product-detail-visual > img, .visual-placeholder.large { min-height: 400px; }
    .add-to-cart { grid-template-columns: 75px 1fr; }
    .cart-item { grid-template-columns: 70px 1fr 70px; gap: 13px; }
    .cart-item label { grid-column: 2; }
    .cart-item > strong { grid-column: 3; grid-row: 1; }
    .form-grid.two, .form-grid.three { grid-template-columns: 1fr; gap: 0; }
    .account-welcome { align-items: start; flex-direction: column; }
    .account-welcome h1 { font-size: 3rem; }
    .account-nav { gap: 20px; }
    .order-card { grid-template-columns: 1fr 40px; }
    .order-card .mini-progress, .order-card > strong { grid-column: 1; }
    .order-card .round-link { grid-column: 2; grid-row: 1 / 3; }
    .tracking-card { padding: 25px 20px; }
    .payment-pending-card { align-items: stretch; flex-direction: column; padding: 24px 20px; }
    .tracking-heading { flex-direction: column-reverse; }
    .progress-labels { font-size: .52rem; }
    .ticket-main { padding: 22px 16px; }
    .messages article { width: 91%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .whatsapp-float { min-width: 48px; width: 48px; padding: 0; }
    .whatsapp-float span { font-size: 0; }
    .whatsapp-float span::after { content: "WA"; font-size: .65rem; }
    .admin-title { align-items: start; flex-direction: column; }
    .admin-title h1 { font-size: 2.65rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-grid > div { padding: 17px; }
    .stat-grid strong { font-size: 2rem; }
    .admin-form { padding: 20px; }
}
