/* Roselia & Co. storefront */
:root {
  --petal: #fbf2ef;
  --blush: #f2dcd8;
  --blush-deep: #e8c6c2;
  --claret: #4a1526;
  --claret-deep: #34101c;
  --rose: #b8475f;
  --rose-dark: #9a3349;
  --gold: #a9823f;
  --ink: #2a1a20;
  --muted: #6c5760;
  --line: #e7d3cf;
  --white: #fffdfc;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--petal); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
p { margin: 0 0 1em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border: 1.5px solid var(--claret); border-radius: 999px;
  background: var(--claret); color: var(--petal); text-decoration: none; font-weight: 500; letter-spacing: .01em;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--claret); }
.btn.ghost:hover { background: var(--claret); color: var(--petal); }
.btn.wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.btn.wa:hover { background: #17633d; border-color: #17633d; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--rose-dark); text-underline-offset: 3px; }

/* announcement + header */
.announce { background: var(--claret); color: var(--blush); text-align: center; font-size: .86rem; padding: 9px var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--petal) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: 64px; }
.brand { text-align: center; text-decoration: none; font-family: var(--serif); font-size: 1.55rem; letter-spacing: .01em; line-height: 1; font-variation-settings: "opsz" 144; }
.brand small { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .22em; color: var(--muted); margin-top: 4px; text-transform: lowercase; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--blush); }
.icon-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.badge-count { position: absolute; top: 5px; right: 3px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--rose); color: #fff; font-size: .7rem; font-weight: 600; display: none; place-items: center; padding: 0 5px; }
.badge-count.on { display: grid; }
.badge-count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav { display: none; }
.nav a { text-decoration: none; padding: 10px 12px; font-size: .95rem; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a.on { background: var(--blush); }
.menu { display: none; border-top: 1px solid var(--line); background: var(--petal); }
.menu.open { display: block; }
.menu a { display: block; padding: 14px var(--gutter); text-decoration: none; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.15rem; }
@media (min-width: 1100px) {
  .hdr { grid-template-columns: 1fr auto 1fr; min-height: 78px; }
  .hdr .menu-btn { display: none; }
  .nav { display: flex; gap: 2px; }
  .hdr .right { justify-self: end; display: flex; }
  .brand { font-size: 1.9rem; }
  .menu.open { display: none; }
}

/* hero */
.hero { padding: 28px 0 8px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.9rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.025em; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 30em; margin: 18px 0 26px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.arches { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; align-items: end; }
.arch { border-radius: 999px 999px 0 0; overflow: hidden; background: var(--blush); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch.tall { aspect-ratio: 3/4.4; }
.arch.short { aspect-ratio: 3/3.4; margin-bottom: 0; border: 1.5px solid var(--gold); padding: 7px; background: transparent; }
.arch.short img { border-radius: 999px 999px 0 0; }
@media (min-width: 900px) {
  .hero { padding: 48px 0 24px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* sections */
section.block { padding: 56px 0 8px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }

.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 38%; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { text-decoration: none; text-align: center; scroll-snap-align: start; }
.cat .arch { aspect-ratio: 3/3.8; margin-bottom: 12px; transition: transform .3s; }
.cat:hover .arch { transform: translateY(-4px); }
.cat span { font-family: var(--serif); font-size: 1.2rem; }
@media (min-width: 700px) { .cats { grid-auto-columns: 1fr; overflow: visible; } }

/* product grid + card */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 32px 18px; } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; }
.card .ph { position: relative; display: block; aspect-ratio: 4/5; background: var(--blush); border-radius: 14px; overflow: hidden; }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.card .ph img + img { opacity: 0; }
.card:hover .ph img + img { opacity: 1; }
.card:hover .ph img:first-child { transform: scale(1.03); }
.tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--claret); color: var(--petal); font-size: .76rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.tag.soldout { background: var(--white); color: var(--muted); border: 1px solid var(--line); }
.card h3 { font-family: var(--sans); font-size: .98rem; font-weight: 500; line-height: 1.35; margin: 12px 0 4px; letter-spacing: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.price { font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: .9em; }
.card .add { position: relative; z-index: 3; margin-top: 10px; min-height: 42px; border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; font-weight: 500; font-size: .9rem; transition: border-color .2s, background .2s; }
.card .add:hover { border-color: var(--claret); background: var(--claret); color: var(--petal); }
.card .add[disabled] { color: var(--muted); background: transparent; pointer-events: none; }

/* trust band */
.trust { background: var(--claret); color: var(--blush); margin-top: 64px; }
.trust .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.trust div.item { padding: 28px 18px; border-left: 1px solid rgba(255,255,255,.14); }
.trust div.item:nth-child(odd) { border-left: 0; }
.trust div.item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
.trust h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--petal); margin-bottom: 6px; }
.trust p { margin: 0; font-size: .92rem; opacity: .86; }
@media (min-width: 900px) {
  .trust .wrap { grid-template-columns: repeat(4, 1fr); }
  .trust div.item { border-top: 0 !important; border-left: 1px solid rgba(255,255,255,.14) !important; padding: 38px 24px; }
  .trust div.item:first-child { border-left: 0 !important; }
}

/* story */
.story { display: grid; gap: 28px; align-items: center; }
.story .arch { aspect-ratio: 4/5; max-width: 420px; }
.story p { color: var(--muted); max-width: 34em; }
@media (min-width: 860px) { .story { grid-template-columns: 1fr 1fr; gap: 64px; } }
.follow { text-align: center; padding: 64px 0 72px; }
.follow .socials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* collection page */
.page-head { padding: 36px 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 300; }
.page-head p { color: var(--muted); margin-top: 8px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; background: var(--white); }
.chip:hover { border-color: var(--claret); }
.chip.on { background: var(--claret); color: var(--petal); border-color: var(--claret); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.filters select { min-height: 42px; padding: 0 36px 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236c5760' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.filters label.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; min-height: 42px; }
.filters .count { margin-left: auto; color: var(--muted); font-size: .9rem; }
.empty { text-align: center; padding: 56px 0; color: var(--muted); }

/* product page */
.pdp { display: grid; gap: 26px; padding: 24px 0 8px; }
@media (min-width: 880px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 40px; } }
.gallery .main { background: var(--blush); border-radius: 16px; overflow: hidden; cursor: zoom-in; position: relative; min-height: 240px; }
.gallery .main img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 68px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--blush); opacity: .75; }
.thumbs button.on { border-color: var(--claret); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 400; }
.pdp .price-row { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; font-size: 1.4rem; }
.pdp .price-row s { color: var(--muted); font-size: 1.05rem; }
.pdp .save { background: var(--blush); color: var(--rose-dark); font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.stock { font-size: .92rem; margin-bottom: 18px; }
.stock.low { color: var(--rose-dark); font-weight: 500; }
.stock.out { color: var(--muted); }
.pdp .desc { color: var(--muted); max-width: 34em; }
.buy { display: flex; gap: 10px; margin: 22px 0 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.2rem; border-radius: 999px; }
.qty button:hover { background: var(--blush); }
.qty span { min-width: 28px; text-align: center; font-weight: 500; }
.buy .btn.grow { flex: 1; min-width: 160px; }
details.info { border-top: 1px solid var(--line); padding: 14px 0; }
details.info:last-of-type { border-bottom: 1px solid var(--line); }
details.info summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
details.info summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
details.info[open] summary::after { content: "\2212"; }
details.info p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.sticky-buy { display: none; }
@media (max-width: 879px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; gap: 12px; align-items: center; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .sticky-buy .p { font-weight: 600; white-space: nowrap; }
  .sticky-buy .btn { flex: 1; }
  body.has-sticky { padding-bottom: 76px; }
}

/* cart + checkout */
.two { display: grid; gap: 32px; padding: 8px 0 24px; }
@media (min-width: 900px) { .two { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; } }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 84px; height: 105px; object-fit: cover; border-radius: 10px; background: var(--blush); }
.line h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-bottom: 6px; }
.line .qty { height: 38px; }
.line .qty button { width: 36px; }
.line .rm { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .86rem; margin-left: 12px; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.summary h2 { font-size: 1.5rem; margin-bottom: 14px; }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 600; font-size: 1.1rem; }
.summary .note { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .94rem; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--claret); }
.field .hint { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.field.bad input, .field.bad textarea { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: .86rem; margin-top: 4px; display: none; }
.field.bad .err { display: block; }
.pay { border: 1.5px solid var(--claret); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; background: var(--white); }
.pay strong { display: block; }
.pay span { color: var(--muted); font-size: .92rem; }
.thanks { text-align: center; max-width: 560px; margin: 0 auto; padding: 56px 0 72px; }
.thanks .mark { width: 72px; height: 72px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; margin: 0 auto 20px; }
.thanks .mark svg { width: 34px; stroke: var(--claret); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 { font-size: 2.3rem; font-weight: 300; margin-bottom: 10px; }
.thanks p { color: var(--muted); }

/* info pages */
.prose { max-width: 40em; padding: 12px 0 64px; }
.prose h2 { font-size: 1.5rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }

/* footer */
.site-footer { background: var(--claret-deep); color: var(--blush); padding: 52px 0 28px; margin-top: 0; }
.foot { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { text-align: left; font-size: 1.7rem; color: var(--petal); }
.site-footer p { opacity: .8; font-size: .94rem; max-width: 24em; }
.site-footer h4 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--petal); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; opacity: .86; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.copy { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 20px; font-size: .84rem; opacity: .7; }

/* toast + lightbox */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 24px); background: var(--claret); color: var(--petal); padding: 12px 20px; border-radius: 999px; font-size: .94rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-sticky .toast { bottom: 92px; }
.lightbox { position: fixed; inset: 0; background: rgba(30, 10, 18, .92); z-index: 70; display: none; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; max-width: 100%; border-radius: 8px; }
.notice { background: #fff3cd; color: #5c4400; padding: 12px var(--gutter); text-align: center; font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* product options, details, variants */
.card a.add { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.opt { margin: 0 0 18px; }
.opt .lbl { font-weight: 500; margin-bottom: 8px; }
.opt .chosen { color: var(--muted); font-weight: 400; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 42px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.pill:hover { border-color: var(--claret); }
.pill.on { background: var(--claret); color: var(--petal); border-color: var(--claret); }
.opt.need .pills { outline: 2px solid #b3261e; outline-offset: 6px; border-radius: 14px; }
dl.spec { display: grid; grid-template-columns: 100px 1fr; gap: 8px 14px; margin: 12px 0 0; font-size: .95rem; }
dl.spec dt { color: var(--muted); }
dl.spec dd { margin: 0; }
.line .var { font-size: .88rem; color: var(--muted); margin: -2px 0 8px; }

.pill.soldout { color: var(--muted); text-decoration: line-through; border-style: dashed; }
.pill.soldout.on { color: var(--petal); text-decoration: none; border-style: solid; }
.btn[disabled], .btn:disabled { opacity: .5; pointer-events: none; }

/* ---------- reviews, discount codes, order tracking ---------- */
.stars { display: inline-block; letter-spacing: 2px; font-size: 1rem; line-height: 1; background: linear-gradient(90deg, var(--gold) var(--p, 100%), #dccfca var(--p, 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.rate { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; font-size: .84rem; color: var(--muted); }
.rate .stars { font-size: .9rem; letter-spacing: 1px; }
.pdp .rate { margin: 6px 0 10px; font-size: .92rem; }
.pdp .rate .stars { font-size: 1.05rem; }
.reviews { padding-top: 8px; }
.rv-sum { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rv-sum strong { font-size: 1.1rem; }
.rv-sum span:last-child { color: var(--muted); font-size: .92rem; }
.rv-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .rv-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; } }
.rv { padding: 18px 0; border-top: 1px solid var(--line); }
.rv:first-child { border-top: 0; padding-top: 0; }
.rv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv p { margin: 8px 0 6px; color: var(--ink); }
.rv-by { font-size: .86rem; color: var(--muted); }
.rv-by strong { color: var(--ink); font-weight: 600; }
.vbadge { font-size: .74rem; font-weight: 600; color: #1f6b3a; background: #e6f3ea; border-radius: 999px; padding: 3px 10px; }
.rv-empty { color: var(--muted); margin: 0; }
.rv-write { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rv-write form { padding-top: 16px; }
.starpick { display: flex; gap: 4px; }
.starpick button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: #dccfca; padding: 0; cursor: pointer; }
.starpick button.on { color: var(--gold); }
.starpick button:focus-visible { outline: 2px solid var(--claret); border-radius: 8px; }
.field.bad .starpick { outline: 1.5px solid #b3261e; border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rv-thanks { padding: 8px 0 4px; }
.rv-thanks p { margin: 6px 0 0; }
.say { background: var(--white); }
.say-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .say-grid { grid-template-columns: repeat(3, 1fr); } }
.say-card { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--petal); }
.say-card blockquote { margin: 12px 0 14px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; }
.say-card figcaption { font-size: .86rem; color: var(--muted); }
.say-card figcaption strong { color: var(--ink); }
.summary .row.disc { color: #1f6b3a; }
.code-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); text-transform: uppercase; }
.code-row input:focus { outline: 0; border-color: var(--claret); }
.btn.sm { min-height: 44px; padding: 0 18px; }
.dmsg { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.dmsg:empty { display: none; }
.dmsg.bad { color: #b3261e; }
.code-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #e6f3ea; color: #1f6b3a; font-size: .94rem; }
.code-on .rm { background: none; border: 0; color: #1f6b3a; text-decoration: underline; cursor: pointer; font-size: .88rem; }
.track { max-width: 34em; }
.track form { margin: 18px 0 8px; }
.track-card { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.track-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.track-head strong { display: block; color: var(--ink); font-size: 1.25rem; font-family: var(--serif); }
.lbl { display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.steps { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 20px 32px; color: var(--muted); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .dot { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); }
.steps li.done, .steps li.now { color: var(--ink); font-weight: 500; }
.steps li.done .dot { background: var(--claret); border-color: var(--claret); }
.steps li.done::before { background: var(--claret); }
.steps li.now .dot { border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 20%, transparent); }
.ship-box { display: grid; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--petal); margin-bottom: 16px; }
@media (min-width: 520px) { .ship-box { grid-template-columns: 1fr 1fr; } }
.ship-box .link { background: none; border: 0; padding: 0 0 0 6px; cursor: pointer; font: inherit; font-size: .88rem; }
.track-items { margin: 0 0 12px; padding-left: 18px; color: var(--muted); }
.track-card .row.total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 14px; font-weight: 600; }
.track-cancel, .track-miss { margin: 16px 0; padding: 12px 14px; border-radius: 12px; background: #fbeceb; color: #8a1c15; }

/* logo mark beside the wordmark */
.brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.brand .bt { text-align: center; }
.brand .mark { width: 36px; height: 36px; flex: none; }
.site-footer .brand { justify-content: flex-start; }
@media (max-width: 520px) { .brand .mark { width: 30px; height: 30px; } .brand { gap: 8px; } }

/* wide photos are shown whole instead of cropped */
.card .ph img.fit, .line img.fit { object-fit: contain; }
