/* Cuddle Threads — site styles. Change the colors here to restyle the whole site. */
:root {
  --cream: #fbf7f2;
  --paper: #ffffff;
  --blush: #f4e6e1;
  --ink: #3b3330;
  --muted: #7a6e68;
  --line: #eadfd6;
  --sage: #8fa58c;
  --sage-deep: #6d8569;
  --rose: #c98f89;
  --rose-deep: #a9706a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(59, 51, 48, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); font-weight: 700; margin-bottom: .6em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 99; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font: 700 .95rem var(--sans); letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #2a2422; }
.btn.alt { background: transparent; color: var(--ink); }
.btn.alt:hover { background: var(--blush); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Header */
.announce { background: var(--sage-deep); color: #fff; text-align: center; font-size: .85rem; padding: 7px 12px; letter-spacing: .03em; }
header.site { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--rose-deep); font-style: italic; font-weight: 500; }
.logo { display: inline-flex; align-items: center; }
.logo-img { display: block; width: auto; max-width: 240px; object-fit: contain; }
.logo-small { height: 40px; } .logo-medium { height: 56px; } .logo-large { height: 68px; }
@media (max-width: 820px) { .logo-img { max-width: 170px; } .logo-small { height: 34px; } .logo-medium { height: 44px; } .logo-large { height: 52px; } }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--rose-deep); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: inline-flex; padding: 8px; color: var(--ink); }
.cart-count { position: absolute; top: 0; right: -4px; background: var(--rose-deep); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.cart-count[data-n="0"] { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav ul { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
  .logo { font-size: 1.45rem; }
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 56px 0 64px; }
.hero { transition: opacity .25s; }
.hero.pending { opacity: 0; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-img { border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); background: var(--blush); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 32px; } .hero-img { max-width: 420px; margin: 0 auto; } }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; text-align: center; font-size: .92rem; color: var(--muted); }
.trust strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
@media (max-width: 700px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--rose); transform: translateY(-2px); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.card { text-decoration: none; color: var(--ink); display: block; }
.card .ph { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--blush); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .ph img { transform: scale(1.04); }
.card h3 { font-size: 1.2rem; margin: 12px 0 2px; }
.card .price { color: var(--muted); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; font: 600 .9rem var(--sans); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Canva / embed block */
.embed-block { background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.embed-block:empty { display: none; }
.embed-block iframe { max-width: 100%; }

/* Story band */
.band { background: var(--blush); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 40px 0 64px; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.gallery .main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--blush); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--blush); }
.thumbs button[aria-current="true"] { border-color: var(--rose-deep); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp .price-big { font-size: 1.6rem; font-family: var(--serif); font-weight: 600; margin: 4px 0 12px; }
.pdp .meta { font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field .help { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font: 1rem var(--sans); color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage-deep); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 14px; font: 600 .92rem var(--sans); cursor: pointer; color: var(--ink); }
.pill[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pill small { display: block; font-weight: 400; color: var(--muted); }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.qty button { width: 40px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty input { width: 44px; border: 0; text-align: center; font: 600 1rem var(--sans); background: none; }
.add-row { display: flex; gap: 12px; align-items: stretch; margin: 8px 0 20px; }
.add-row .btn { flex: 1; }
details.acc { border-top: 1px solid var(--line); padding: 14px 0; }
details.acc summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details.acc summary::after { content: "+"; font-size: 1.2rem; }
details.acc[open] summary::after { content: "–"; }
details.acc ul { padding-left: 1.2em; margin: 10px 0 0; }

/* Cart */
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.cart-line .opts { font-size: .88rem; color: var(--muted); margin: 4px 0 8px; }
.cart-line .remove { background: none; border: 0; color: var(--rose-deep); cursor: pointer; font: 600 .85rem var(--sans); padding: 0; margin-left: 12px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.summary { background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.summary .row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.summary .total { font-size: 1.25rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
@media (max-width: 820px) { .cart-layout { grid-template-columns: 1fr; } .cart-line { grid-template-columns: 72px 1fr; } .cart-line img { width: 72px; height: 72px; } .cart-line .line-price { grid-column: 2; } }
.alert { background: #fdecea; color: #8a2a1f; border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.alert:empty { display: none; }

/* Text pages */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.faq details { background: var(--paper); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; border: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; }

/* Footer */
footer.site { background: var(--ink); color: #e9e1dc; margin-top: 40px; padding: 48px 0 28px; font-size: .92rem; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-logo { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 6px; }
.copy { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; color: #b9aea8; font-size: .82rem; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); transition: transform .3s; z-index: 50; font-weight: 600; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast a { color: #fff; }

/* product attributes, breadcrumbs, shop search */
.attrs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 4px; font-size: .92rem; }
.attrs strong { color: var(--ink); }
.crumbs { font-size: .88rem; color: var(--muted); margin-top: 16px; }
.crumbs a { color: var(--muted); }
.shop-search { max-width: 480px; margin-bottom: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.ship-nudge { background: var(--blush); border-radius: 10px; padding: 8px 12px; font-size: .88rem; margin: 4px 0 8px; text-align: center; }
.ship-nudge.ok { background: #e3eee1; color: var(--sage-deep); font-weight: 600; }

/* font & thread pickers */
.picked { font-weight: 400; color: var(--rose-deep); }
.picker { display: grid; gap: 8px; }
.picker.fonts { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.picker.threads { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.pick-btn { border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 6px; cursor: pointer; display: grid; gap: 4px; justify-items: center; font: 600 .78rem var(--sans); color: var(--ink); text-align: center; }
.pick-btn img { width: 100%; aspect-ratio: 3/2; object-fit: contain; background: #fff; border-radius: 6px; }
.pick-btn span { line-height: 1.2; word-break: break-word; }
.pick-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--blush); }
.pick-btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.dot { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), inset 0 0 0 2px #fff; background-size: cover; background-position: center; display: grid; place-items: center; }
.dot.surprise { background: conic-gradient(#f4b6c2, #f9e29c, #b5d8b5, #a9c8ec, #d4b5e8, #f4b6c2); font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.field.invalid .picker { outline: 2px solid #c0392b; outline-offset: 4px; border-radius: 10px; }

/* enlarged preview when hovering a font or thread color */
.pick-zoom { position: fixed; z-index: 60; pointer-events: none; background: #fff; border-radius: 14px; box-shadow: 0 12px 36px rgba(59,51,48,.22); padding: 12px; display: grid; justify-items: center; gap: 8px; animation: zoomIn .12s ease-out; }
.pick-zoom[hidden] { display: none; }
.pick-zoom.is-font img { width: 340px; max-width: 80vw; aspect-ratio: 3/2; object-fit: contain; }
.pick-zoom .zoom-dot { width: 150px; height: 150px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), inset 0 0 0 4px #fff; background-size: cover !important; background-position: center !important; display: grid; place-items: center; font: 700 3rem var(--serif); color: #fff; }
.pick-zoom .zoom-dot.surprise { background: conic-gradient(#f4b6c2, #f9e29c, #b5d8b5, #a9c8ec, #d4b5e8, #f4b6c2); text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.pick-zoom .zoom-name { font: 700 1rem var(--sans); color: var(--ink); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pick-zoom { animation: none; } }

/* reviews */
.stars { color: #d9cfc9; letter-spacing: 1px; white-space: nowrap; }
.stars .on { color: #d4a24c; }
.stars.big { font-size: 1.35rem; }
.pdp-stars { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--muted); font-size: .9rem; margin: -6px 0 12px; }
.card-stars { font-size: .85rem; color: var(--ink); margin: 2px 0; }
.card-stars > span:first-child { color: #d4a24c; }
.reviews-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.reviews-list { display: grid; gap: 0; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.review-text { margin: 0 0 8px; }
.review-meta { font-size: .85rem; color: var(--muted); }
.verified { color: var(--sage-deep); font-weight: 700; }
.review-reply { margin-top: 10px; background: var(--blush); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.rv-photo { padding: 0; border: 0; border-radius: 10px; overflow: hidden; width: 96px; height: 96px; cursor: zoom-in; background: var(--blush); }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(30,24,22,.85); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem; cursor: pointer; }
.review-form { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 18px 0; max-width: 680px; }
.review-form h3 { margin-bottom: 14px; }
.row2-rv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2-rv { grid-template-columns: 1fr; } }
.star-pick { display: flex; gap: 4px; }
.star-pick button { background: none; border: 0; font-size: 2rem; line-height: 1; color: #d9cfc9; cursor: pointer; padding: 2px; }
.star-pick button.on { color: #d4a24c; }
.rv-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rv-prev { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; }
.rv-prev img { width: 100%; height: 100%; object-fit: cover; }
.rv-prev button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small-note { font-size: .82rem; margin: 10px 0 0; }
.rv-thanks { text-align: center; padding: 10px 0; }

/* inventory */
.stock-note { font-size: .85rem; color: var(--rose-deep); font-weight: 600; margin-top: 4px; min-height: 0; }
.stock-note:empty { display: none; }
.card .ph { position: relative; }
.soldout-tag { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }

/* Fonts & Thread Colors page */
.ft-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 8px; }
.ft-filter label { font-weight: 700; }
.ft-filter select { min-width: 260px; max-width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font: 1rem var(--sans); color: var(--ink); }
.ft-filter select:focus { outline: none; border-color: var(--sage-deep); }
.ft-filter [hidden] { display: none; }
.ft-h { margin: 34px 0 14px; font-size: 1.9rem; }
.ft-h .muted { font: 400 1rem var(--sans); }
.ft-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ft-font { border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 10px; cursor: zoom-in; display: grid; gap: 8px; justify-items: center; font: 700 .95rem var(--sans); color: var(--ink); }
.ft-font img { width: 100%; aspect-ratio: 3/2; object-fit: contain; background: #fff; border-radius: 8px; }
.ft-threads { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }
.ft-thread { border: 0; background: none; cursor: zoom-in; display: grid; gap: 8px; justify-items: center; font: 600 .88rem var(--sans); color: var(--ink); text-align: center; padding: 6px; border-radius: 12px; }
.ft-font:hover, .ft-thread:hover { background: var(--blush); }
.ft-font:focus-visible, .ft-thread:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.ft-dot { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), inset 0 0 0 3px #fff; background-size: cover !important; background-position: center !important; }
.ft-dot.big { width: 220px; height: 220px; max-width: 60vw; max-height: 60vw; }
.ft-lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(40,32,30,.6); display: grid; place-items: center; padding: 16px; }
.ft-lightbox[hidden] { display: none; }
.ft-lb-body { background: #fff; border-radius: 16px; padding: 18px; display: grid; gap: 12px; justify-items: center; max-width: min(720px, 100%); font: 700 1.1rem var(--sans); }
.ft-lb-body img { width: 640px; max-width: 100%; max-height: 70vh; object-fit: contain; }
.ft-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); }
.picker-all { font-size: .85rem; font-weight: 600; margin-left: 6px; }
@media (max-width: 560px) { .ft-filter select { flex: 1 1 100%; min-width: 0; } .ft-fonts { grid-template-columns: repeat(2, 1fr); gap: 10px; } .ft-threads { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); } .ft-dot { width: 60px; height: 60px; } }


/* Account & order pages */
.acct { max-width: 820px; }
.acct-box { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; max-width: 560px; }
.acct-box h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.acct-box form { display: grid; gap: 12px; margin: 18px 0 8px; }
.acct-box .alert:empty { display: none; }
.acct-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.acct-top h1 { margin-bottom: 4px; }
.ord-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 0 0 18px; }
.ord-card.small-card { padding: 14px 18px; margin-bottom: 10px; }
.ord-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ord-head h2 { font-size: 1.6rem; margin: 0 0 2px; }
.ord-badge { font: 700 .82rem var(--sans); padding: 6px 12px; border-radius: 999px; background: var(--blush); color: var(--rose-deep); white-space: nowrap; }
.ord-badge.s-shipped, .ord-badge.s-delivered { background: #e4eee2; color: var(--sage-deep); }
.ord-badge.s-cancelled { background: #eee; color: var(--muted); }
.ord-steps { list-style: none; padding: 0; margin: 20px 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.ord-steps li { display: grid; justify-items: center; text-align: center; gap: 4px; position: relative; font-size: .9rem; color: var(--muted); }
.ord-steps li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.ord-steps li:first-child::before { display: none; }
.ord-steps li.done::before, .ord-steps li.now::before { background: var(--sage-deep); }
.ord-steps .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line); display: grid; place-items: center; font: 700 .85rem var(--sans); color: #fff; position: relative; z-index: 1; }
.ord-steps li.done .dot, .ord-steps li.now .dot { background: var(--sage-deep); border-color: var(--sage-deep); }
.ord-steps li.done, .ord-steps li.now { color: var(--ink); }
.ord-steps small { color: var(--muted); font-size: .78rem; }
.ord-cancel { margin: 16px 0 0; }
.ord-track { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 16px 0 0; padding: 12px 14px; background: var(--cream); border-radius: 12px; }
.ord-items { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.ord-items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ord-items li > span { white-space: nowrap; }
.ord-foot { display: grid; grid-template-columns: 1fr minmax(200px, 260px); gap: 20px; margin-top: 16px; font-size: .95rem; }
.ord-tot { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.ord-tot.grand { color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
@media (max-width: 560px) { .ord-foot { grid-template-columns: 1fr; } .ord-card { padding: 18px 16px; } .ord-steps { font-size: .8rem; } .ord-steps small { font-size: .68rem; } }

/* Product photos: arrows, swipe and full-screen viewer */
.gallery .main { position: relative; }
.main-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.main-open img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-select: none; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--ink); font: 400 1.9rem/1 var(--serif); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.12); display: grid; place-items: center; padding-bottom: 4px; }
.g-nav.prev { left: 12px; } .g-nav.next { right: 12px; }
.g-nav:hover { background: #fff; }
.g-count { position: absolute; bottom: 12px; right: 12px; background: rgba(40,32,30,.62); color: #fff; font: 700 .78rem var(--sans); padding: 4px 10px; border-radius: 99px; pointer-events: none; }
body.pv-open { overflow: hidden; }
.pv { position: fixed; inset: 0; z-index: 90; background: rgba(24,19,18,.94); }
.pv[hidden] { display: none; }
.pv-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: none; }
.pv-track::-webkit-scrollbar { display: none; }
.pv-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 56px 12px 72px; box-sizing: border-box; }
.pv-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-select: none; }
.pv-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font: 400 2.4rem/1 var(--serif); cursor: pointer; padding-bottom: 6px; }
.pv-nav.prev { left: 16px; } .pv-nav.next { right: 16px; }
.pv-nav:disabled { opacity: .25; cursor: default; }
.pv-close:hover, .pv-nav:not(:disabled):hover { background: rgba(255,255,255,.26); }
.pv-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #fff; font: 700 .9rem var(--sans); }
.pv-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 16px; }
.pv-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.pv-dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }
.pv button:focus-visible, .g-nav:focus-visible, .main-open:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) { .pv-nav { display: none; } .g-nav { width: 36px; height: 36px; font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .pv-track { scroll-behavior: auto; } }
.dot.pictured { background-size: cover; background-position: center; box-shadow: 0 0 0 1px var(--line), inset 0 0 0 2px #fff; }

/* ---------- Gallery ---------- */
.gal-grid { columns: 3 260px; column-gap: 18px; margin-top: 24px; }
.gal-item { break-inside: avoid; margin: 0 0 18px; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gal-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-open img { display: block; width: 100%; height: auto; transition: transform .3s ease; }
.gal-open:hover img { transform: scale(1.02); }
.gal-open:focus-visible { outline: 3px solid var(--rose); outline-offset: -3px; }
.gal-item figcaption { padding: 10px 14px 12px; font-size: .92rem; color: var(--ink); }
.gal-item figcaption a { font-weight: 700; white-space: nowrap; }
.pv-slide { position: relative; }
.pv-cap { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; max-width: min(90%, 640px); width: max-content; text-align: center; color: #fff; font: 600 .95rem var(--sans); padding: 8px 16px; background: rgba(24,19,18,.72); border-radius: 999px; }
.pv-cap a { color: #fff; text-decoration: underline; }
@media (max-width: 560px) { .gal-grid { columns: 2 150px; column-gap: 10px; } .gal-item { margin-bottom: 10px; } .gal-item figcaption { padding: 8px 10px; font-size: .85rem; } .pv-cap { border-radius: 14px; } }
.rv-source { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--blush); color: var(--rose-deep); }
.rv-source a { color: inherit; text-decoration: none; }
.recommends { font-weight: 700; color: var(--sage-deep); font-size: .9rem; }

/* cart: ship or local pickup */
.deliv { border: 0; padding: 0; margin: 0 0 14px; }
.deliv legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.deliv-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; background: var(--paper, #fff); }
.deliv-opt:has(input:checked) { border-color: var(--ink); }
.deliv-opt input { margin-top: 4px; accent-color: var(--ink); }
.deliv-opt small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
