/* Tyler Candle Co. — palette and type taken from the logo:
   ivory paper, espresso-black serif caps, antique gold rules,
   blush ribbon and sage leaves. */
:root {
  --ivory: #fbf7f1;
  --paper: #ffffff;
  --ink: #1f1a16;
  --ink-soft: #5c5249;
  --muted: #8a7f74;
  --gold: #b38b55;
  --gold-deep: #8b6734;
  --gold-soft: #e9dcc6;
  --blush: #f6e6dd;
  --blush-deep: #e8cbbd;
  --sage: #7d8c6b;
  --sage-soft: #e6ebdd;
  --line: #e7ddcf;
  --danger: #a3432f;
  --success: #4e6b3c;

  --serif-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Great Vibes", cursive;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(31, 26, 22, .04), 0 8px 24px rgba(31, 26, 22, .06);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.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: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

.eyebrow { font: 500 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .75rem; }
.eyebrow a { text-decoration: none; }
.script-line { font-family: var(--script); font-size: 1.9rem; line-height: 1.2; color: var(--gold-deep); margin: 0 0 .25rem; }
.lede { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 28px; border-radius: var(--radius);
  font: 500 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--gold-deep); color: #fff; }
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--gold); color: var(--ink); }
.btn-ghost:hover { background: var(--gold); color: #fff; }
.btn-wide { width: 100%; }
.btn-small { min-height: 36px; padding: 0 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.link-btn:hover { color: var(--danger); }

/* ---------- Header ---------- */
.announce { background: var(--blush); color: var(--ink-soft); text-align: center; font-size: .8rem; letter-spacing: .08em; padding: 8px 16px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 10px 16px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
}
@media (min-width: 720px) { .header-inner { padding: 12px 28px; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); justify-self: center; }
.brand img { width: 64px; height: 64px; }
.brand-text { display: none; line-height: 1; }
.brand-name { display: block; font: 600 2.3rem/.9 var(--serif); letter-spacing: .01em; }
.brand-sub { display: block; font: 400 .72rem/1.6 var(--serif-caps); letter-spacing: .34em; }
.brand-script { display: block; font: 1.2rem/1 var(--script); color: var(--gold-deep); margin-top: 2px; }
.header-search { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.account-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px; color: var(--ink); text-decoration: none; font-size: .85rem; }
.account-label { display: none; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-link { position: relative; display: inline-flex; padding: 8px; color: var(--ink); }
.cart-count {
  position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--gold-deep); color: #fff; font-size: .7rem; font-weight: 600;
  display: grid; place-items: center;
}
.nav-toggle { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav { display: none; border-top: 1px solid var(--line); }
.site-nav.is-open { display: block; max-height: calc(100vh - 90px); overflow-y: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li > a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.site-nav .submenu a { display: block; padding: 10px 20px 10px 36px; font-size: .95rem; text-decoration: none; color: var(--ink-soft); }
.site-nav a[aria-current="page"] { color: var(--gold-deep); }
.nav-sale { color: var(--danger) !important; }

@media (min-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .nav-toggle { display: none; }
  .brand { grid-column: 2; }
  .brand img { width: 84px; height: 84px; }
  .brand-text { display: block; }
  .header-search { display: flex; grid-column: 1; grid-row: 1; max-width: 280px; border-bottom: 1px solid var(--line); }
  .header-search input { border: 0; background: transparent; padding: 8px 4px; width: 100%; font-size: .9rem; }
  .header-search input:focus { outline: none; }
  .header-search:focus-within { border-color: var(--gold); }
  .header-search button { border: 0; background: none; cursor: pointer; color: var(--ink-soft); }
  .header-actions { grid-column: 3; }
  .account-label { display: inline; }
  .site-nav { display: block !important; border-top: 1px solid var(--line); }
  .site-nav > ul { display: flex; justify-content: center; flex-wrap: wrap; max-width: var(--container); margin: 0 auto; }
  .site-nav > ul > li { position: relative; }
  .site-nav > ul > li > a { border: 0; padding: 14px 12px; font-size: .72rem; }
  .site-nav > ul > li > a:hover { color: var(--gold-deep); }
  .site-nav .submenu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 240px;
    background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 0;
    display: none;
  }
  .site-nav > ul > li:nth-last-child(-n+4) .submenu { left: auto; right: 0; transform: none; }
  .site-nav .submenu a { padding: 8px 20px; font-size: .95rem; }
  .site-nav .submenu a:hover { background: var(--ivory); color: var(--gold-deep); }
  .site-nav .has-menu:hover .submenu, .site-nav .has-menu:focus-within .submenu { display: block; }
}

/* ---------- Flash & toast ---------- */
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 8px; border: 1px solid; font-size: .95rem; }
.flash-success { background: var(--sage-soft); border-color: #cdd6c0; color: var(--success); }
.flash-error { background: #f8e6e1; border-color: #ecc8bf; color: var(--danger); }
.flash-info { background: var(--blush); border-color: var(--blush-deep); color: var(--ink-soft); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  background: var(--ink); color: var(--ivory); padding: 14px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: calc(100% - 32px); font-size: .95rem; display: flex; gap: 16px; align-items: center;
}
.toast a { color: var(--gold-soft); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 40px; align-items: center; }
.hero-art { order: -1; justify-self: center; max-width: 300px; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 400; }
.hero-script { font-size: 2.2rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; padding-top: 56px; padding-bottom: 64px; gap: 48px; }
  .hero-art { order: 0; max-width: 460px; }
}

/* ---------- Sections ---------- */
.section { padding: 48px 0 16px; }
.page { padding-top: 24px; padding-bottom: 64px; }
.section-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; text-align: center; white-space: nowrap; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); position: relative; }
.section-head .rule:first-child { background: linear-gradient(90deg, transparent, var(--gold)); }
.section-head .rule:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.tile { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: 1px solid var(--line); padding: 12px 12px 18px; text-align: center; transition: border-color .2s, box-shadow .2s; }
.tile:hover { border-color: var(--gold); box-shadow: var(--shadow); color: inherit; }
.tile-img { aspect-ratio: 1; overflow: hidden; background: var(--ivory); margin-bottom: 12px; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tile-name { font: 500 .95rem/1.3 var(--serif-caps); letter-spacing: .08em; }
.tile-blurb { font-size: .85rem; color: var(--muted); margin-top: 4px; }

.band { background: var(--blush); margin: 48px 0 0; border-top: 1px solid var(--blush-deep); border-bottom: 1px solid var(--blush-deep); }
.band-inner { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 40px; text-align: center; }
.band h2 { font-size: 1.6rem; }
.band p:last-child { color: var(--ink-soft); margin: 0; }
@media (min-width: 720px) { .band-inner { grid-template-columns: 1fr 1fr; } }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; min-width: 0; }
.card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-img { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--sage); color: #fff; font: 500 .65rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; }
.badge-sale { background: var(--danger); }
.badge-muted { background: var(--muted); }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--line); }
.card-scent { font: 500 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 4px; }
.card-title { font: 500 1.1rem/1.25 var(--serif); margin: 0 0 8px; flex: 1; overflow-wrap: anywhere; }
.card-price { margin: 0; font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.card-sizes { font-size: .78rem; color: var(--muted); font-weight: 400; }

/* ---------- Listing ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.breadcrumbs a { text-decoration: none; }
.page-head { margin-bottom: 24px; }
.page-head.center .mark { margin: 0 auto 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1px solid var(--line); background: var(--paper); padding: 6px 14px; border-radius: 999px; font-size: .85rem; text-decoration: none; }
.chip:hover { border-color: var(--gold); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 0; margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar label { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); }
.result-count { margin: 0 auto 0 0; font-size: .9rem; color: var(--muted); }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], input:not([type]), textarea {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 10px 12px; min-height: 44px; max-width: 100%;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179, 139, 85, .18); }
.empty { text-align: center; padding: 48px 16px; background: var(--paper); border: 1px dashed var(--line); }
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 32px; font-size: .95rem; }

.scent-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.scent-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font: 500 1.15rem var(--serif); }
.scent-list a:hover { border-color: var(--gold); color: var(--gold-deep); }
.scent-list small { font: .8rem var(--sans); color: var(--muted); }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.buybox { min-width: 0; }
.gallery { width: 100%; max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } .gallery { position: sticky; top: 150px; max-width: none; } }
.gallery-main { background: #fff; border: 1px solid var(--line); aspect-ratio: 1; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 72px; height: 72px; border: 1px solid var(--line); background: #fff; padding: 4px; cursor: pointer; }
.thumb.is-active { border-color: var(--gold-deep); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-title { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.product-price { font-size: 1.5rem; font-family: var(--serif); font-weight: 600; display: flex; gap: 12px; align-items: baseline; }
.compare { color: var(--muted); font-weight: 400; font-size: 1.1rem; }
.sizes { border: 0; padding: 0; margin: 0 0 16px; }
.sizes legend { font: 500 .75rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink-soft); }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { display: flex; flex-direction: column; align-items: center; min-width: 104px; padding: 10px 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .92rem; text-align: center; transition: border-color .15s; }
.size small { color: var(--muted); font-size: .8rem; }
.size:hover span { border-color: var(--gold); }
.size input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.size.is-out span { color: var(--muted); background: repeating-linear-gradient(135deg, #fff 0 6px, var(--ivory) 6px 12px); }
.stock { min-height: 1.6em; font-size: .9rem; margin: 0 0 12px; }
.stock.in { color: var(--success); }
.stock.low { color: var(--gold-deep); }
.stock.out { color: var(--danger); }
.add-row { display: flex; gap: 12px; }
.qty { display: flex; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.qty button { width: 40px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 48px; border: 0; text-align: center; padding: 0; min-height: 46px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.add-row .btn { flex: 1; }
.assurances { list-style: none; padding: 16px 0; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.assurances li::before { content: "✦"; color: var(--gold); margin-right: 10px; font-size: .75rem; }
.prose { font-size: 1rem; color: var(--ink-soft); }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.2rem; }
.description h4:first-child { margin-top: 0; }
.sku { font-size: .8rem; color: var(--muted); }

/* ---------- Cart ---------- */
.cart-lines { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; grid-template-areas: "img info total" "img qty remove"; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-img { grid-area: img; background: #fff; border: 1px solid var(--line); }
.cart-img img { width: 72px; height: 72px; object-fit: contain; }
.cart-info { grid-area: info; display: flex; flex-direction: column; min-width: 0; }
.cart-name { font: 500 1.1rem/1.25 var(--serif); text-decoration: none; }
.cart-variant, .cart-unit { font-size: .85rem; color: var(--muted); }
.cart-qty { grid-area: qty; }
.cart-qty input { width: 80px; }
.cart-total { grid-area: total; font-weight: 500; text-align: right; }
.cart-line .link-btn { grid-area: remove; justify-self: end; }
@media (min-width: 720px) {
  .cart-line { grid-template-columns: 96px 1fr 100px 100px 70px; grid-template-areas: "img info qty total remove"; }
  .cart-img img { width: 96px; height: 96px; }
}
.cart-summary { max-width: 380px; margin-left: auto; }
.meter { height: 4px; background: var(--line); margin: -6px 0 16px; }
.meter span { display: block; height: 100%; background: var(--gold); }
.free-ship-note { font-size: .9rem; color: var(--ink-soft); }
.totals { margin: 0 0 20px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.2rem; font-family: var(--serif); font-weight: 600; }
.continue { display: block; text-align: center; margin-top: 14px; font-size: .9rem; }

/* ---------- Checkout ---------- */
.checkout { display: grid; gap: 24px; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1fr 380px; align-items: start; } .checkout-side { position: sticky; top: 150px; } }
.panel { background: var(--paper); border: 1px solid var(--line); padding: 20px; margin: 0 0 16px; min-width: 0; }
.panel legend, .panel h2 { font: 500 1.35rem var(--serif); padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.panel legend + * { clear: both; }
.fields { display: grid; gap: 12px; clear: both; }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; color: var(--ink); font-size: 1rem; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .8rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { color: var(--muted); font-size: .8rem; }
.choice-row { display: grid; gap: 10px; clear: both; }
@media (min-width: 600px) { .choice-row { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { margin-top: 5px; accent-color: var(--ink); }
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--muted); }
.choice-inline { display: inline-flex; gap: 6px; margin-right: 16px; }
.test-pay { background: var(--blush); padding: 14px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; clear: both; }
.card-container { min-height: 90px; clear: both; }
.form-error { color: var(--danger); background: #f8e6e1; padding: 10px 12px; margin-top: 12px; font-size: .92rem; }
.summary h2 { font-size: 1.35rem; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 12px; clear: both; }
.summary-lines li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.summary-img { position: relative; flex: 0 0 56px; border: 1px solid var(--line); background: #fff; }
.summary-img img { width: 56px; height: 56px; object-fit: contain; }
.summary-qty { position: absolute; top: -8px; right: -8px; background: var(--ink-soft); color: #fff; border-radius: 10px; min-width: 20px; height: 20px; font-size: .72rem; display: grid; place-items: center; }
.summary-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.summary-name small { color: var(--muted); }
.status { display: inline-block; padding: 2px 10px; background: var(--sage-soft); color: var(--success); font: 500 .75rem/1.8 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.status-pending, .status-cancelled, .status-refunded { background: #f1ebe4; color: var(--ink-soft); }
.mark { display: block; margin: 0 auto 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); margin-top: 64px; padding-top: 48px; font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; text-align: center; }
.footer-brand img { margin: 0 auto 8px; width: 140px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; text-align: left; } .footer-brand img { margin: 0 0 8px; } }
.footer-h { font: 500 .78rem/1.4 var(--serif-caps); letter-spacing: .16em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--gold-deep); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 24px; padding-bottom: 24px; margin-top: 40px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Recurring orders ---------- */
.purchase-options { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.purchase-options legend { font: 500 .75rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink-soft); }
.purchase-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.purchase-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.purchase-option input[type="radio"] { margin-top: 4px; accent-color: var(--ink); }
.po-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.po-title { font-weight: 500; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.po-save { background: var(--sage-soft); color: var(--success); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; }
.po-price { font-size: .9rem; color: var(--ink-soft); }
.po-detail { display: grid; gap: 6px; margin-top: 6px; }
.po-detail select { width: 100%; }
.po-detail select:disabled { opacity: .55; }
.po-detail small { color: var(--muted); font-size: .8rem; }
.recurring-note { background: var(--sage-soft); color: var(--success); padding: 10px 14px; font-size: .9rem; }
.recurring-tag { color: var(--success) !important; font-size: .78rem; }
.cart-frequency select { margin-top: 6px; min-height: 36px; padding: 4px 8px; font-size: .85rem; max-width: 100%; }
.totals .savings dd, .totals .savings dt { color: var(--success); }

/* ---------- Accounts ---------- */
.header-actions .account-link:hover, .header-actions .cart-link:hover { color: var(--gold-deep); }
.auth-form { max-width: 440px; margin: 0 auto 16px; display: grid; gap: 14px; }
.auth-form .field { margin: 0; }
.signed-in { background: var(--sage-soft); border-color: #cdd6c0; }
.account-signin { margin: 0 0 12px; clear: both; }
.choice.is-disabled { opacity: .5; cursor: not-allowed; }
.account-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; padding: 0 0 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-nav a { text-decoration: none; font-size: .9rem; letter-spacing: .04em; padding: 4px 0; }
.account-nav a[aria-current="page"] { color: var(--gold-deep); border-bottom: 2px solid var(--gold); }
.account-nav form { margin-left: auto; }
.verify-banner { background: var(--blush); border: 1px solid var(--blush-deep); padding: 12px 16px; margin-bottom: 20px; font-size: .92rem; }
.account-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .account-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head h2 { float: none; }
.panel.flush { padding: 0; overflow-x: auto; }
.sub-list, .order-list, .sub-items, .plain-list { list-style: none; margin: 0; padding: 0; clear: both; }
.sub-card { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.sub-card:hover { color: inherit; background: var(--ivory); }
.sub-thumbs { display: flex; }
.sub-thumbs img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); margin-right: -10px; border-radius: 50%; }
.sub-info { display: grid; gap: 2px; flex: 1; min-width: 0; margin-left: 12px; }
.order-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-list li > :last-child { margin-left: auto; font-weight: 500; }
.sub-items li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sub-items li.is-unavailable { opacity: .55; }
.sub-items img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.sub-item-name { flex: 1; display: grid; min-width: 0; }
.sub-item-name a { text-decoration: none; font-family: var(--serif); font-size: 1.05rem; }
.sub-item-name small { color: var(--muted); }
.sub-items input { width: 72px; }
.inline-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; clear: both; }
.inline-row .field { flex: 1; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; clear: both; }
.btn-danger-link { background: none; border: 0; color: var(--danger); text-decoration: underline; padding: 0 4px; letter-spacing: .04em; }
.btn-danger-link:hover { color: var(--danger); background: none; }
details summary { cursor: pointer; color: var(--gold-deep); font-size: .9rem; margin: 4px 0 10px; }
.stack-form { display: grid; gap: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table .num { text-align: right; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.tracking { background: var(--sage-soft); border-color: #cdd6c0; }

/* ---------- Shipping options ---------- */
.ship-options { display: grid; gap: 8px; clear: both; }
.ship-option { align-items: center; }
.ship-option > span:nth-of-type(1) { flex: 1; }
.ship-price { font-weight: 600; white-space: nowrap; }
