/* Dress the Goose: warm, playful, readable on phones first. Fredoka for titles, system sans for text. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/assets/font/fredoka-latin.woff2") format("woff2"); }
:root {
  --cream: #fff8ee; --paper: #ffffff; --ink: #2b2118; --muted: #6a5a4c; --line: #ecdfcc; --sun: #f6b73c; --soft: #fdeed3;
  --accent: #c8401f; --accent-dark: #9c2f14; --teal: #1f7a72;
  --r: 18px; --shadow: 0 2px 0 rgba(43, 33, 24, .05), 0 10px 24px -14px rgba(43, 33, 24, .35);
  --title: "Fredoka", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--title); font-weight: 600; line-height: 1.15; letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4.6vw, 1.9rem); margin-top: 1.6em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ----- header */
.top { background: var(--paper); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 30; }
.top-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.logo { display: flex; align-items: center; gap: 8px; font: 600 1.3rem/1 var(--title); color: var(--ink); text-decoration: none; margin-right: auto; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.menu ul { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.menu a, .menu-phone nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover, .menu-phone nav a:hover { background: var(--soft); }
.menu a[aria-current="page"] { background: var(--soft); }
.cart-link { display: flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: var(--soft); }
.cart-word { display: none; }
.count { background: var(--accent); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: .8rem; line-height: 22px; text-align: center; }
.menu-phone { position: relative; }
.menu-phone summary { list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .95rem; }
.menu-phone summary::-webkit-details-marker { display: none; }
.menu-phone nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 230px; padding: 8px; }
.menu-phone ul { list-style: none; margin: 0; padding: 0; }
.strip { margin: 0; background: var(--teal); color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: 5px 12px; }
@media (min-width: 900px) {
  .menu ul { display: flex; }
  .menu-phone { display: none; }
  .cart-word { display: inline; }
  .logo { margin-right: 12px; }
  .menu { margin-right: auto; }
}

/* ----- layout */
main { max-width: 1180px; margin: 0 auto; padding: 0 16px 56px; }
.page, .guide, .legal { max-width: 760px; margin: 0 auto; }
.narrow { max-width: 680px; margin: 0 auto; }
.page > :first-child, .guide > :first-child, .legal > :first-child { margin-top: 28px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); padding: 16px 0 4px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 4px; }
.notice { background: var(--soft); border: 2px dashed var(--sun); border-radius: var(--r); padding: 12px 16px; }
.pending { background: #fff1ee; border-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
.more { margin-top: 12px; font-weight: 700; }
.btn, button[type="submit"], #to-checkout { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px; font: 700 1.05rem/1.1 var(--text); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--accent-dark); }
.btn:hover, button[type="submit"]:hover, #to-checkout:hover { background: var(--accent-dark); color: #fff; }
.btn:active, button[type="submit"]:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-dark); }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); padding: 12px 24px; }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
button[disabled] { opacity: .65; cursor: default; }

/* ----- home */
.hero { background: linear-gradient(135deg, #ffe7b8 0%, #ffd3c2 100%); border-radius: 0 0 32px 32px; margin: 0 -16px; padding: 40px 20px 36px; }
.hero-text { max-width: 760px; margin: 0 auto; }
.kicker { display: inline-block; background: var(--paper); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .85rem; color: var(--teal); margin-bottom: 14px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { color: #4b3b2e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.hero-points { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; font-size: .95rem; margin: 0; }
.hero-points li::before { content: "✓ "; color: var(--teal); font-weight: 800; }
@media (min-width: 900px) { .hero { margin: 0; border-radius: 0 0 40px 40px; padding: 64px 40px 56px; } .hero-text { margin: 0; max-width: 700px; } }
.block { margin-top: 40px; }
.block-soft { background: var(--soft); margin-left: -16px; margin-right: -16px; padding: 28px 16px; border-radius: 28px; }
.block h2 { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; background: var(--tile, #fdeed3); border-radius: var(--r); padding: 16px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 118px; transition: transform .15s; }
.tile:hover { transform: translateY(-3px); color: var(--ink); }
.tile-emoji { font-size: 2rem; line-height: 1.1; }
.tile-name { font: 600 1.08rem/1.15 var(--title); margin-top: auto; }
.tile-count { font-size: .85rem; color: #4b3b2e; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } .block-soft { margin-left: 0; margin-right: 0; padding: 36px; } }
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--paper); border-radius: var(--r); padding: 14px 16px 14px 60px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 700 1.1rem/34px var(--title); text-align: center; }

/* ----- product grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--sun); color: var(--ink); }
.card-img { display: block; aspect-ratio: 1; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-size { margin: 10px 12px 0; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.card-name { margin: 2px 12px 0; font: 600 1rem/1.25 var(--title); }
.card-price { margin: 6px 12px 14px; font-weight: 800; font-size: 1.1rem; }
.card-price small { display: block; font-weight: 600; font-size: .75rem; color: var(--muted); }
.card-opts { font-size: .75rem; font-weight: 700; background: var(--soft); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }

/* ----- collection */
.coll-head { background: var(--tile, var(--soft)); border-radius: 0 0 32px 32px; margin: 0 -16px 24px; padding: 28px 20px 26px; }
.coll-head > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.coll-head h1 { margin-bottom: .3em; }
.coll-emoji { font-size: 2.4rem; margin: 0 auto .1em; line-height: 1; }
.coll-head .lead { color: #4b3b2e; margin-bottom: .6em; }
@media (min-width: 900px) { .coll-head { margin: 0 0 28px; border-radius: 0 0 40px 40px; padding: 40px; } .coll-head > * { margin-left: 0; } }
.valentine { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 6px 16px; border-radius: 999px; font-size: .95rem; margin: 6px 0 12px; }
.buy .valentine { font-size: .85rem; padding: 4px 12px; }
.coll-more { margin-top: 36px; }

/* ----- product page */
.product { display: grid; gap: 20px; margin-top: 8px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; border-radius: var(--r); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 88%; scroll-snap-align: center; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: var(--r); border: 2px solid var(--line); }
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.gallery-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.gallery-dots button[aria-current="true"] { background: var(--accent); }
.info h1 { font-size: clamp(1.6rem, 5.2vw, 2.3rem); }
.short { color: var(--muted); font-size: 1.05rem; }
.buy { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.price { font: 700 2.1rem/1 var(--title); margin: 0; }
.price-note { margin: 4px 0 12px; color: var(--teal); font-weight: 700; font-size: .95rem; }
.variant { border: 0; padding: 0; margin: 0 0 14px; }
.variant legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.variant legend small { font-weight: 500; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 14px; padding: 6px 12px 6px 6px; cursor: pointer; background: #fff; font-size: .92rem; font-weight: 600; min-height: 44px; }
.opt:not(:has(img)) { padding-left: 14px; }
.opt img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: #fff1ee; box-shadow: 0 0 0 2px var(--accent) inset; }
.opt:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.form-error { color: var(--accent-dark); font-weight: 700; margin: 0 0 10px; }
.add button { width: 100%; font-size: 1.15rem; padding: 16px; }
.eta { margin: 14px 0 0; font-weight: 700; }
.delivery { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.facts { list-style: none; padding: 0; margin: 14px 0 0; font-size: .92rem; display: grid; gap: 6px; }
.facts li::before { content: "✓ "; color: var(--teal); font-weight: 800; }
.detail { margin-top: 36px; }
.tick { list-style: none; padding: 0; }
.tick li { padding-left: 28px; position: relative; margin-bottom: .45em; }
.tick li::before { content: "✓"; position: absolute; left: 4px; color: var(--teal); font-weight: 800; }
.specs { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); margin: 0 0 1em; }
.specs caption { text-align: left; font-weight: 700; padding: 0 2px 8px; }
.specs th, .specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 36%; background: #fffaf2; font-weight: 700; }
.photo-note { font-size: .9rem; color: var(--muted); }
.related { margin-top: 40px; max-width: none; }
@media (min-width: 860px) {
  .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .gallery { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .gallery img { grid-column: span 1; flex: none; }
  .gallery img:first-child { grid-column: 1 / -1; }
  .gallery-dots { display: none; }
  .gallery-block { position: sticky; top: 112px; }
  .detail { max-width: 760px; }
}

/* ----- cart */
.cart-rows { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--paper); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.cart-row img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.cart-row a { font-weight: 700; color: var(--ink); }
.cart-var { display: block; font-size: .9rem; color: var(--muted); }
.cart-qty { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cart-qty button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; font-weight: 700; }
.cart-qty button.remove { width: auto; border-radius: 999px; padding: 0 12px; font-size: .85rem; margin-left: 6px; }
.cart-qty span { min-width: 22px; text-align: center; font-weight: 700; }
.cart-price { font-weight: 800; }
.cart-total { font: 700 1.5rem/1.2 var(--title); margin: 8px 0 14px; }
.cart-total small { font: 600 .85rem var(--text); color: var(--teal); }
#to-checkout { width: 100%; font-size: 1.15rem; padding: 16px; }
.cart-msg { background: #fff1ee; border: 2px solid var(--accent); border-radius: var(--r); padding: 12px 16px; margin-top: 14px; font-weight: 600; }
.cart-note { color: var(--muted); font-size: .92rem; margin-top: 20px; }

/* ----- text pages, faq, guides */
.faq details { background: var(--paper); border-radius: 14px; padding: 4px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 8px; font: 700 1.5rem/1 var(--title); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.guides { list-style: none; padding: 0; display: grid; gap: 12px; }
.guides a { display: block; background: var(--paper); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.guides a:hover { background: var(--soft); }
.guide-title { display: block; font: 600 1.2rem/1.2 var(--title); }
.guide-line { display: block; color: var(--muted); font-size: .95rem; margin-top: 4px; }
.guide h2 { margin-top: 1.4em; }

/* ----- footer */
.foot { background: #2b2118; color: #f5ead8; margin-top: 40px; }
.foot a { color: #ffd9a0; }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px; display: grid; gap: 22px; }
.foot-brand { font: 600 1.4rem/1 var(--title); margin: 0 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 20px; justify-content: start; }
.foot-note { font-size: .82rem; color: #cdbda5; margin: 0; }
@media (min-width: 800px) { .foot-inner { grid-template-columns: 1.3fr 1fr; } .foot-note { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.coll-more.page { margin-left: 0; }
