/* Hallmark · theme: garden (by choice, deal: manual; paper set to white by user 2026-11-01) · job: buy · shape: catalogue grid, mobile first · signature: the printables themselves, two to a row, cart always one copy */
/* critique: an Etsy-shaped shop on oat paper; no invented ratings, sales counts or reviews; stand-in tiles mark products without previews */

:root {
  --color-paper: oklch(100% 0 0); --color-paper-2: oklch(96.5% 0.008 120); --color-paper-3: oklch(93% 0.012 120);
  --color-ink: oklch(23% 0.050 152); --color-ink-2: oklch(33% 0.048 150); --color-muted: oklch(46% 0.034 142);
  --color-rule: oklch(83% 0.024 112); --color-rule-2: oklch(68% 0.042 138);
  --color-accent: oklch(46% 0.135 142); --color-accent-dark: oklch(39% 0.125 142); --color-accent-2: oklch(86% 0.075 128); --color-accent-ink: oklch(97% 0.015 95);
  --color-focus: oklch(46% 0.135 142); --tint-moss: oklch(46% 0.135 142 / 0.11); --tint-clay: oklch(54% 0.140 46 / 0.10);
  --color-star: oklch(62% 0.150 70); --color-warn-bg: oklch(93% 0.040 40); --color-warn: oklch(42% 0.130 35);
  --font-display: "Vollkorn", ui-serif, Georgia, serif; --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 4px; --radius-pill: 999px;
  --gutter: max(16px, env(safe-area-inset-left));
  --dur-short: 140ms; --ease-out: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink-2); font: 400 17px/1.5 var(--font-body); font-variant-numeric: oldstyle-nums; -webkit-text-size-adjust: 100%; }
body.has-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--color-ink); letter-spacing: -0.012em; line-height: 1.08; overflow-wrap: break-word; min-width: 0; margin: 0; }
a { color: var(--color-ink); text-underline-offset: 3px; transition: text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }

/* header: brand + cart, then the search field, sticky */
.top { position: sticky; top: 0; z-index: 10; background: var(--color-paper); border-bottom: 1px solid var(--color-rule); padding: 10px var(--gutter) 12px; }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.brand { font: 600 22px/1 var(--font-display); color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--color-ink); border-radius: var(--radius-pill); }
.cart-link:hover { background: var(--tint-moss); }
.count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 12px/19px var(--font-body); text-align: center; font-variant-numeric: lining-nums; }
.search input { width: 100%; height: 46px; margin-top: 8px; padding: 0 18px; border: 1px solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font: 400 16px var(--font-body); }
.search input::placeholder { color: var(--color-muted); }

main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px var(--gutter) 48px; }

.intro h1 { font-size: clamp(28px, 7.4vw, 46px); max-width: 16ch; }
.intro p { margin: 8px 0 0; color: var(--color-muted); font-size: 16px; max-width: 40ch; }
.list-head { font-size: clamp(24px, 6vw, 34px); }

/* category chips: one swipeable row on a phone */
.chips { display: flex; gap: 8px; margin: 16px calc(-1 * var(--gutter)) 18px; padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; padding: 9px 16px; min-height: 40px; border: 1px solid var(--color-rule-2); border-radius: var(--radius-pill); color: var(--color-ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.chip:hover { background: var(--tint-moss); }
.chip[aria-current="page"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-accent-ink); }

/* product grid: two to a row on a phone, like the Etsy app */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card-act { margin-top: 10px; }
.card-act form, .card-act .btn { width: 100%; }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn.in { background: var(--tint-moss); border-color: transparent; color: var(--color-accent-dark); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.count-line { margin: 0; font-size: 15px; color: var(--color-muted); }
.sort select { height: 40px; padding: 0 34px 0 14px; border: 1px solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23233' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--color-ink); font: 500 15px var(--font-body); appearance: none; -webkit-appearance: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; font-size: 15px; color: var(--color-muted); }
.thumb { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-2); outline: 1px solid var(--color-rule); outline-offset: -1px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 300ms var(--ease-out); }
@media (hover: hover) { .card-link:hover .thumb img { transform: scale(1.03); } .card-link:hover h3 { text-decoration: underline; text-decoration-color: var(--color-accent); } }
.cbody { padding-top: 9px; }
.cbody h3 { font: 500 15px/1.3 var(--font-body); color: var(--color-ink); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin: 4px 0 0; font: 600 17px/1.2 var(--font-body); color: var(--color-ink); font-variant-numeric: lining-nums; }
.tag { display: block; text-align: start; margin-top: 6px; font-size: 13px; color: var(--color-muted); }
.tag.ok, .tag.free { color: var(--color-accent-dark); }

/* stand-in tile for products without a preview yet */
.stand-in { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; background: var(--tint-moss); color: var(--color-ink); }
.stand-in[data-cat="advent"], .stand-in[data-cat="art"] { background: var(--tint-clay); }
.stand-in span { font-size: 13px; color: var(--color-muted); }
.stand-in b { font: 600 clamp(18px, 5vw, 26px)/1.08 var(--font-display); }
.stand-in i { font-style: normal; font-size: 12px; color: var(--color-muted); }
.stand-in.big { aspect-ratio: 4 / 5; border-radius: var(--radius-card); }
.stand-in.big b { font-size: clamp(28px, 8vw, 40px); }

/* product page */
.product { display: grid; gap: 18px; }
.gallery { display: flex; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 86%; scroll-snap-align: center; border-radius: var(--radius-card); outline: 1px solid var(--color-rule); outline-offset: -1px; background: var(--color-paper-2); }
.gallery.single { overflow: visible; }
.gallery.single .stand-in { flex: 1; }
.swipe { margin: -8px 0 0; font-size: 13px; color: var(--color-muted); }
.crumb { margin: 0 0 6px; font-size: 14px; color: var(--color-muted); }
.crumb a { color: var(--color-muted); }
.info h1 { font-size: clamp(26px, 7vw, 38px); }
.price.big { font-size: 26px; margin-top: 10px; }
.lede { margin: 10px 0 0; font-size: 17px; color: var(--color-ink-2); max-width: 46ch; }
.facts { list-style: none; padding: 14px 0; margin: 18px 0 0; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); display: grid; gap: 6px; font-size: 15px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: rotate(-45deg); }
.info h2, .pair h2 { font-size: 22px; margin-top: 26px; }
.inside { padding-left: 20px; margin: 10px 0 0; line-height: 1.6; }
.pair { margin-top: 36px; padding-top: 6px; border-top: 1px solid var(--color-rule); }
.pair .grid { margin-top: 14px; }
.grid.one { grid-template-columns: minmax(0, 170px); }

/* sticky buy bar on phones: price on the left, the one action on the right */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--color-paper); border-top: 1px solid var(--color-rule-2); }
.bar form { flex: 1; display: flex; justify-content: flex-end; }
.bar-price { margin: 0; font: 600 20px/1 var(--font-body); color: var(--color-ink); font-variant-numeric: lining-nums; white-space: nowrap; }
.bar .btn { flex: 1; max-width: 260px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: var(--radius-pill); border: 1px solid var(--color-rule-2); background: transparent; color: var(--color-ink); font: 600 16px var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.btn.primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn.primary:hover { background: var(--color-accent-dark); }
.btn.ghost:hover { background: var(--tint-moss); }
.btn[aria-disabled="true"] { color: var(--color-muted); cursor: default; background: var(--color-paper-2); }
.btn.wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 6px 0; min-height: 36px; color: var(--color-muted); font: 500 14px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--color-ink); }

.notice { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-card); background: var(--tint-moss); color: var(--color-ink); font-size: 15px; }
.free-form { display: grid; gap: 8px; margin-top: 18px; }
.free-form label { font-size: 15px; font-weight: 500; color: var(--color-ink); }
.free-form input { height: 50px; padding: 0 14px; border: 1px solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); font: 400 16px var(--font-body); color: var(--color-ink); }
.fine { margin: 6px 0 0; font-size: 13px; color: var(--color-muted); }
.center { text-align: center; }
.empty { padding: 32px 0; color: var(--color-muted); }
.warn { background: var(--color-warn-bg); color: var(--color-warn); padding: 12px 14px; border-radius: var(--radius-card); font-size: 14px; }

/* cart */
.cart { max-width: 620px; margin: 0 auto; }
.cart h1 { font-size: clamp(28px, 7vw, 38px); margin-bottom: 14px; }
.cart > .btn { margin-top: 18px; }
.lines { list-style: none; padding: 0; margin: 0; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-rule); align-items: start; }
.line-thumb { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-card); outline: 1px solid var(--color-rule); outline-offset: -1px; }
.line-thumb img, .line-thumb .stand-in { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.line-thumb .stand-in { padding: 6px; } .line-thumb .stand-in b { font-size: 11px; } .line-thumb .stand-in span, .line-thumb .stand-in i { display: none; }
.line-body a { font-weight: 500; color: var(--color-ink); }
.line-price { margin: 0; font-weight: 600; color: var(--color-ink); font-variant-numeric: lining-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; font-size: 18px; color: var(--color-ink); }
.total b { font-size: 24px; font-variant-numeric: lining-nums; }

.thanks { text-align: center; padding: 32px 0; max-width: 560px; margin: 0 auto; }
.thanks h1 { font-size: clamp(30px, 8vw, 44px); }
.dl { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; justify-items: center; }

.foot { border-top: 1px solid var(--color-rule); padding: 22px var(--gutter) 28px; text-align: center; font-size: 13px; color: var(--color-muted); }
.foot p { margin: 0 0 4px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 14px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--color-ink); font-size: 15px; }

/* header orders link */
.top-row { gap: 6px; }
.orders-link { margin-left: auto; padding: 10px 6px; min-height: 44px; font-size: 14px; color: var(--color-ink); white-space: nowrap; }

/* my orders */
.orders { list-style: none; padding: 0; margin: 0 0 24px; }
.order { padding: 14px 0; border-bottom: 1px solid var(--color-rule); }
.order-items { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }

/* account */
.sub-head { font-size: 20px; margin: 26px 0 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 400; color: var(--color-ink-2); }
.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--color-accent); }

/* owner dashboard */
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-bar .chips { flex: 1; min-width: 0; margin: 0; padding: 2px 0; }
.dash .coupon-form { margin: 10px 0; }
.dash { max-width: 980px; margin: 0 auto; }
.dash h1 { font-size: clamp(28px, 7vw, 38px); }
.dash h2 { font-size: 20px; margin: 28px 0 6px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpis div { padding: 14px; background: var(--color-paper-2); border-radius: var(--radius-card); }
.kpis b { display: block; font: 600 28px/1.1 var(--font-display); color: var(--color-ink); font-variant-numeric: lining-nums; }
.kpis span { font-size: 14px; color: var(--color-muted); }
.tbl { overflow-x: auto; margin-top: 8px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: lining-nums tabular-nums; }
.tbl th { text-align: left; font-weight: 500; color: var(--color-muted); border-bottom: 1px solid var(--color-rule-2); padding: 6px 10px 6px 0; white-space: nowrap; }
.tbl td { border-bottom: 1px solid var(--color-rule); padding: 8px 10px 8px 0; color: var(--color-ink); }
.tbl .n { text-align: right; }
@media (min-width: 40rem) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* reviews */
.rating { margin: 4px 0 0; font-size: 14px; color: var(--color-ink); font-variant-numeric: lining-nums; }
.rating-n { color: var(--color-muted); }
.rating-link { text-decoration: none; }
.stars { color: var(--color-star); }
.stars.big { margin: 0; font-size: 18px; letter-spacing: 1px; }
.reviews { margin-top: 36px; padding-top: 6px; border-top: 1px solid var(--color-rule); max-width: 720px; }
.reviews h2 { font-size: 22px; margin-top: 22px; }
.review-avg { margin: 6px 0 0; font-weight: 600; color: var(--color-ink); font-variant-numeric: lining-nums; }
.review-list { list-style: none; padding: 0; margin: 12px 0 0; }
.review { padding: 16px 0; border-bottom: 1px solid var(--color-rule); }
.review-body { margin: 6px 0; white-space: pre-line; overflow-wrap: anywhere; }
.review-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.review-imgs img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-card); outline: 1px solid var(--color-rule); outline-offset: -1px; }
.review-form textarea { padding: 12px 14px; border: 1px solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); font: 400 16px/1.5 var(--font-body); color: var(--color-ink); resize: vertical; }
.review-form input[type="file"] { height: auto; padding: 10px; }
.review-form .btn { margin-top: 8px; }
.star-pick { border: 0; padding: 0; margin: 0; }
.star-pick legend { padding: 0; font-size: 15px; font-weight: 500; color: var(--color-ink); }
.star-row { display: inline-flex; flex-direction: row-reverse; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { padding: 4px 6px; font-size: 34px; line-height: 1; color: var(--color-rule-2); cursor: pointer; }
.star-row input:checked ~ label { color: var(--color-star); }
.star-row input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.order-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-line span { min-width: 0; font-weight: 500; color: var(--color-ink); }
.coupon-form { display: flex; gap: 8px; margin-top: 16px; }
.coupon-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); font: 400 16px var(--font-body); color: var(--color-ink); }
.total.sub { padding: 14px 0 2px; font-size: 15px; }
.total.sub b { font-size: 16px; }

/* legal pages: one readable column */
.legal { max-width: 680px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 7vw, 40px); }
.legal h2 { font-size: 20px; margin: 26px 0 6px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 20px; margin: 6px 0; }
.legal section + .fine { margin-top: 28px; }
.gap { background: var(--color-warn-bg); color: var(--color-warn); padding: 0 4px; border-radius: 3px; }

/* wider screens: more columns, the product page splits, the buy bar joins the column */
@media (min-width: 40rem) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 60rem) {
  .top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding-block: 12px; }
  .top-row { display: contents; }
  .orders-link { order: 3; margin-left: 0; }
  .cart-link { order: 4; }
  .search { order: 2; } .search input { margin-top: 0; max-width: 640px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.has-bar { padding-bottom: 0; }
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  .gallery { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .gallery img { flex: none; width: 100%; }
  .swipe { display: none; }
  .info { position: sticky; top: 96px; }
  .bar { position: static; padding: 18px 0 0; border: 0; background: none; }
  .bar-price { display: none; }
  .bar .btn { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .card-link:hover .thumb img { transform: none; }
}
