/* Online Dreams Retailers LLC — storefront styles.
   Palette: evergreen + berry + candle gold on cool snow white. */

:root {
  --evergreen: #12352b;
  --pine: #1f5c4a;
  --berry: #a3213a;
  --berry-dark: #861a2f;
  --gold: #c7a046;
  --gold-soft: #ead9a8;
  --snow: #fbfcfa;
  --frost: #e8efeb;
  --mist: #f3f7f5;
  --ink: #17221d;
  --muted: #56655e;
  --line: #d7e1dc;
  --good: #1d7a4f;
  --warn: #9a6a00;
  --bad: #b3261e;
  --radius-sm: 6px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 53, 43, 0.06), 0 8px 24px rgba(18, 53, 43, 0.08);
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--evergreen); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--evergreen); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85em; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--evergreen); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 900px) { .section { padding-top: 80px; padding-bottom: 80px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--evergreen); color: #fff; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--pine); color: #fff; }
.btn-berry { background: var(--berry); }
.btn-berry:hover { background: var(--berry-dark); }
.btn-gold { background: var(--gold); color: var(--evergreen); }
.btn-gold:hover { background: #d6b25c; color: var(--evergreen); }
.btn-ghost { background: transparent; color: var(--evergreen); border-color: currentColor; }
.btn-ghost:hover { background: var(--frost); color: var(--evergreen); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--pine); text-decoration: underline; font: inherit; cursor: pointer; }
.text-link { font-weight: 600; }

/* Banners */
.test-banner { background: #fff4d6; color: #5c4300; text-align: center; font-size: 0.9rem; padding: 8px 16px; border-bottom: 1px solid #ecd9a0; }
.announce { background: var(--berry); color: #fff; text-align: center; font-size: 0.92rem; font-weight: 500; padding: 9px 16px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand-logo { height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.05; color: var(--evergreen); }
.brand-name span { display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; color: #9a7a2c; margin-top: 3px; }
@media (min-width: 900px) { .brand-logo { height: 60px; } .brand-name { font-size: 1.3rem; } }
@media (max-width: 359px) { .brand-name { display: none; } }
.site-nav { display: none; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--evergreen); border-bottom-color: var(--gold); }
.nav-toggle { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; order: 3; color: var(--evergreen); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ''; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }
@media (min-width: 900px) { .site-nav { display: flex; gap: 28px; } .nav-toggle { display: none; } }
body.nav-open .site-nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; gap: 0; box-shadow: var(--shadow); }
body.nav-open .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--frost); }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--evergreen); border-radius: 50%; }
.cart-link:hover { background: var(--frost); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--berry); color: #fff; font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; }

/* Hero with hanging ornaments (the one decorative moment on the site) */
.hero {
  background-color: var(--evergreen);
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.08) 0 1.5px, transparent 2px),
    radial-gradient(circle at 78% 64%, rgba(255,255,255,.07) 0 1.5px, transparent 2px),
    radial-gradient(circle at 42% 82%, rgba(234,217,168,.10) 0 1.5px, transparent 2px);
  background-size: 140px 140px, 190px 190px, 230px 230px;
  color: #fff; overflow: hidden;
}
.hero-grid { display: grid; gap: 8px; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-text { font-size: 1.125rem; color: #d9e6df; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.ornaments { position: relative; height: 300px; }
.ornament { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; text-decoration: none; }
.ornament .string { width: 1.5px; background: linear-gradient(var(--gold-soft), var(--gold)); }
.ornament .cap { width: 26px; height: 14px; background: linear-gradient(90deg, #a98330, var(--gold-soft), #a98330); border-radius: 3px 3px 2px 2px; }
.ornament .bauble { display: block; border-radius: 50%; overflow: hidden; background: #fff; border: 5px solid var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.28), inset 0 -10px 30px rgba(0,0,0,.06); margin-top: -2px; }
.ornament .bauble img { width: 100%; height: 100%; object-fit: cover; }
.ornament.o1 { left: 4%; } .ornament.o1 .string { height: 40px; } .ornament.o1 .bauble { width: 170px; height: 170px; border-color: var(--gold); }
.ornament.o2 { left: 38%; } .ornament.o2 .string { height: 110px; } .ornament.o2 .bauble { width: 130px; height: 130px; border-color: var(--berry); }
.ornament.o3 { right: 2%; } .ornament.o3 .string { height: 20px; } .ornament.o3 .bauble { width: 150px; height: 150px; border-color: #e9f0ec; }
.bauble-empty { background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--berry) 60%); }
.bauble-empty.b2 { background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--gold) 60%); }
.bauble-empty.b3 { background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--pine) 60%); }
a.ornament:hover .bauble { box-shadow: 0 0 0 4px rgba(234,217,168,.5), 0 18px 40px rgba(0,0,0,.3); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 0; padding-bottom: 0; min-height: 520px; }
  .hero-copy { padding: 72px 0; }
  .ornaments { height: 520px; }
  .ornament.o1 .string { height: 70px; } .ornament.o1 .bauble { width: 250px; height: 250px; }
  .ornament.o2 { left: 46%; } .ornament.o2 .string { height: 250px; } .ornament.o2 .bauble { width: 190px; height: 190px; }
  .ornament.o3 .string { height: 30px; } .ornament.o3 .bauble { width: 170px; height: 170px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ornament { animation: sway 2.6s cubic-bezier(.3,.1,.3,1) both; }
  .ornament.o2 { animation-delay: .15s; } .ornament.o3 { animation-delay: .3s; }
  @keyframes sway { 0% { transform: rotate(5deg); opacity: 0; } 25% { opacity: 1; } 55% { transform: rotate(-2.5deg); } 80% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
}

/* Product grid */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.page-head { margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-media { position: relative; aspect-ratio: 1; background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
@media (hover: hover) { .card-link:hover .card-alt { opacity: 1; } }
.card-title { font: 600 1rem/1.35 var(--sans); color: var(--ink); margin: 12px 0 4px; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--gold); }
.card-price { margin: 0; color: var(--muted); font-weight: 500; }
.card-swatches { display: flex; gap: 5px; align-items: center; margin-top: 8px; }
.card-swatches .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.card-swatches .more { font-size: 0.8rem; color: var(--muted); }

/* Family set photos */
.family { background: var(--frost); padding-top: 56px; padding-bottom: 56px; }
.family-grid { display: grid; gap: 28px; }
.family-copy p { color: #33433b; max-width: 44ch; font-size: 1.05rem; }
.family-photos { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.family-photo { margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 1199 / 1312; box-shadow: 0 0 0 1px rgba(18,53,43,.06); }
.family-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .family-photos { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
@media (min-width: 1000px) {
  .family { padding-top: 80px; padding-bottom: 80px; }
  .family-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 48px; align-items: center; }
}
.photo-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.photo-row figure { margin: 0; }
.thumb-md { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 10px; }
td.actions form { margin: 0 0 6px; }

/* Assurances */
.assure { list-style: none; display: grid; gap: 20px; padding-top: 56px; padding-bottom: 8px; margin-top: 0; margin-bottom: 0; }
@media (min-width: 700px) { .assure { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .assure { grid-template-columns: repeat(4, 1fr); } }
.assure li { border-top: 2px solid var(--gold); padding-top: 14px; }
.assure strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--evergreen); margin-bottom: 4px; }
.assure span { color: var(--muted); font-size: 0.95rem; }

/* Signup */
.signup { background: var(--frost); border-radius: var(--radius); padding: 28px 20px; display: grid; gap: 18px; }
@media (min-width: 900px) { .signup { grid-template-columns: 1fr 1.1fr; padding: 44px 48px; align-items: center; gap: 40px; } }
.signup h2 { margin-bottom: 6px; }
.signup-copy p { color: var(--muted); margin: 0; }
.signup-fields { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .signup-fields { grid-template-columns: 1fr auto; } .signup-fields .consent, .signup-fields .signup-msg { grid-column: 1 / -1; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--muted); line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--evergreen); }
.signup-msg, .form-msg { margin: 0; font-weight: 600; color: var(--evergreen); }
.signup-msg.err, .form-msg.err { color: var(--bad); }

/* Forms */
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  min-height: 48px; padding: 10px 14px; border: 1.5px solid #b9c8c0; border-radius: var(--radius-sm);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pine); outline: 3px solid rgba(31,92,74,.18); outline-offset: 0; }
label { font-weight: 500; }
.stack { display: grid; gap: 16px; }
.stack label { display: grid; gap: 6px; }
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 8px; }
.check { display: flex !important; grid-template-columns: none; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex: none; }

/* Breadcrumbs */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted); padding-top: 20px; padding-bottom: 4px; }
.crumbs a { color: var(--muted); }

/* Product page */
.product { display: grid; gap: 28px; padding-top: 16px; padding-bottom: 72px; }
@media (min-width: 768px) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; } .gallery { position: sticky; top: 96px; } }
@media (min-width: 1100px) { .product { gap: 56px; } }
.gallery-main { background: var(--mist); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--mist); cursor: pointer; overflow: hidden; }
.thumb[aria-current="true"] { border-color: var(--evergreen); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buybox h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 8px; }
.price { font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 20px; }
.opt { border: 0; padding: 0; margin: 0 0 20px; }
.opt legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.opt-current { font-weight: 400; color: var(--muted); }
.opt-values { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-value { position: relative; cursor: pointer; }
.opt-value input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.swatch { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); outline: 2px solid transparent; outline-offset: 3px; }
.swatch.two { background: linear-gradient(135deg, var(--c) 50%, var(--c2) 50%); }
.opt-value input:checked + .swatch { outline-color: var(--evergreen); }
.opt-value input:focus-visible + .swatch, .opt-value input:focus-visible + .pill { outline: 3px solid var(--gold); outline-offset: 3px; }
.pill { display: grid; place-items: center; min-width: 52px; min-height: 44px; padding: 8px 14px; border: 1.5px solid #b9c8c0; border-radius: var(--radius-sm); font-weight: 600; background: #fff; }
.opt-value input:checked + .pill { border-color: var(--evergreen); background: var(--evergreen); color: #fff; }
.opt-value.unavailable .pill, .opt-value.unavailable .swatch { opacity: 0.35; }
.opt-value.unavailable .pill { text-decoration: line-through; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.qty { display: inline-flex; border: 1.5px solid #b9c8c0; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty button { width: 44px; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--evergreen); }
.qty button:hover { background: var(--frost); }
.qty input { width: 56px; min-height: 44px; border: 0; border-radius: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-msg { color: var(--bad); font-weight: 600; min-height: 1.2em; margin: 0 0 8px; }
.added-msg { margin: 12px 0 0; padding: 12px 14px; background: var(--frost); border-radius: var(--radius-sm); font-weight: 500; }
.ship-note { margin: 24px 0; padding: 18px 0 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.description { color: #2a3832; }

/* Prose / policies */
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.policy { padding-top: 48px; padding-bottom: 72px; }
.lead { font-size: 1.15rem; }

/* Cart */
.cart h1 { margin-bottom: 24px; }
.cart-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
@media (min-width: 600px) { .cart-line { grid-template-columns: 112px 1fr auto; gap: 20px; } }
.cart-line img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--mist); }
.cart-line h3 { font: 600 1rem/1.35 var(--sans); margin: 0 0 4px; color: var(--ink); }
.cart-line h3 a { color: inherit; text-decoration: none; }
.cart-line .variant { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; }
.cart-line .line-price { font-weight: 600; white-space: nowrap; }
.cart-line .remove { margin-left: 12px; font-size: 0.9rem; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.summary h2 { font-size: 1.4rem; }
.summary dl { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; margin: 0 0 18px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; padding-left: 16px; text-align: right; font-weight: 500; }
.summary .total { font-weight: 700; color: var(--ink); font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; }
.summary .fine { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; }
.cart-alert { background: #fdecee; border: 1px solid #f2c4cb; color: #6e1424; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.empty-state { text-align: center; padding: 40px 0; }

/* Thank you */
.thanks { text-align: center; }
.thanks-mark { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--evergreen); position: relative; box-shadow: 0 0 0 6px var(--gold-soft); }
.thanks-mark::after { content: ''; position: absolute; left: 22px; top: 17px; width: 14px; height: 26px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.thanks .btn { margin: 6px; }

/* Order status result */
.order-result { margin-top: 20px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.order-card .status { font-family: var(--serif); font-size: 1.3rem; color: var(--evergreen); margin: 4px 0 10px; }
.order-card ul { padding-left: 1.1em; margin: 0 0 10px; }
.notice { padding: 12px 14px; background: var(--frost); border-radius: var(--radius-sm); }

/* Footer */
.site-footer { background: var(--evergreen); color: #cfe0d7; margin-top: 40px; }
.footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-name { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: 2px; }
.footer-logo { width: 96px; height: 96px; margin-bottom: 14px; }
.footer-tagline { color: var(--gold-soft); font-style: italic; margin-bottom: 12px; }
.site-footer .muted { color: #a9c2b6; }
.footer-head { color: var(--gold-soft); font-weight: 600; margin-bottom: 8px; }
.site-footer nav a { display: block; color: #e6f0ea; text-decoration: none; padding: 5px 0; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 96px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.875rem; }
.footer-bottom a { color: #e6f0ea; }
@media (min-width: 900px) { .footer-bottom { padding-bottom: 28px; } }

/* Help widget */
.help { position: fixed; right: 16px; bottom: 16px; z-index: 60; }
.help-open { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--evergreen); color: #fff; font: 600 1rem var(--sans); cursor: pointer; box-shadow: 0 6px 20px rgba(18,53,43,.3); }
.help-open:hover { background: var(--pine); }
.help.open .help-open { display: none; }
.help-panel { position: fixed; right: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 32px)); display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(18,53,43,.3); overflow: hidden; }
.help-panel[hidden] { display: none; }
.help-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 16px 18px 12px; background: var(--evergreen); color: #fff; }
.help-title { font-family: var(--serif); font-size: 1.2rem; margin: 0; }
.help-sub { font-size: 0.8rem; color: #cfe0d7; margin: 4px 0 0; line-height: 1.4; }
.help-sub a { color: #fff; }
.help-close { width: 36px; height: 36px; flex: none; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.help-tabs { display: flex; border-bottom: 1px solid var(--line); }
.help-tabs button { flex: 1; min-height: 44px; border: 0; background: #fff; font: 600 0.95rem var(--sans); color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.help-tabs button[aria-selected="true"] { color: var(--evergreen); border-bottom-color: var(--gold); }
.help-body { padding: 14px 16px; overflow-y: auto; flex: 1; min-height: 200px; }
.help-body[hidden] { display: none; }
.help-log { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.msg { margin: 0; padding: 10px 12px; border-radius: 12px; max-width: 88%; font-size: 0.95rem; line-height: 1.45; white-space: pre-wrap; }
.msg.bot { background: var(--mist); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--evergreen); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); }
.help-form { display: flex; gap: 8px; position: sticky; bottom: 0; background: #fff; padding-top: 4px; }
.help-human { margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: 0.9rem; text-align: center; }
@media (max-width: 520px) { .help-panel { right: 0; bottom: 0; width: 100vw; max-height: 85vh; border-radius: var(--radius) var(--radius) 0 0; } }

/* ---------- Admin ---------- */
body.admin { background: var(--mist); }
.admin-top { background: var(--evergreen); color: #fff; }
.admin-top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.admin-brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.1rem; margin-right: auto; }
.admin-brand span { color: var(--gold-soft); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.admin-nav a, .admin-nav .linklike { color: #e6f0ea; text-decoration: none; font-weight: 500; }
.admin-nav a:hover { color: #fff; text-decoration: underline; }
.admin-nav form { margin: 0; }
.admin-main { padding-top: 28px; padding-bottom: 64px; }
.admin-main h1 { font-size: 1.9rem; }
.admin-main section { margin-bottom: 32px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.admin-cols { display: grid; gap: 24px; }
@media (min-width: 1000px) { .admin-cols { grid-template-columns: 1fr 1.4fr; } }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.row form { margin: 0; }
form.inline { display: inline; }
.flash { background: #e6f2ec; border: 1px solid #b8d8c7; padding: 12px 16px; border-radius: var(--radius-sm); }
.flash-bad { background: #fdecee; border-color: #f2c4cb; }
.all-clear { background: #e6f2ec; border-left: 4px solid var(--good); padding: 14px 18px; border-radius: var(--radius-sm); }
.alert { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 12px; }
.alert-warning { border-left-color: var(--warn); }
.alert h3 { font: 700 1.05rem var(--sans); color: var(--ink); }
.alert p { margin: 0 0 6px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; background: #e9eeeb; color: #3d4a44; }
.badge-good { background: #dcefe4; color: #14583a; }
.badge-warn { background: #fbefd0; color: #6d4b00; }
.badge-bad { background: #fadde0; color: #8b1d16; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--frost); vertical-align: top; }
table.data th { background: var(--mist); font-weight: 600; white-space: nowrap; }
.row-attn { background: #fff6f6; }
.row-muted { opacity: 0.6; }
table.kv { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.kv th, table.kv td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--frost); vertical-align: top; }
table.kv th { width: 42%; font-weight: 500; color: var(--muted); }
.tabs { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a[aria-current="page"] { font-weight: 700; color: var(--evergreen); }
.timeline { list-style: none; padding: 0; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--frost); }
.thumb-sm { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); background: var(--mist); }
.logo-preview { max-height: 80px; width: auto; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.admin select { max-width: 420px; }
.cart-count[hidden] { display: none; }
