:root {
  color-scheme: light;
  --cream: #fff8ef;
  --ink: #391414;
  --accent: #af0919;
  --line: #eedbd0;
  --muted: #795b54;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.45 system-ui, sans-serif; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 12px; padding: 10px 15px; background: var(--accent); color: white; font-weight: 750; }
button:hover:not(:disabled) { filter: brightness(.91); }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid #c15d07; outline-offset: 3px; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid #d8c4bc; border-radius: 10px; background: #fff; color: var(--ink); }
label { display: block; margin: 12px 0 5px; font-weight: 700; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); font-size: .875rem; }
.secondary { background: #f6e9e1; color: var(--ink); }
.hero { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 5vw, 3rem); padding: clamp(22px, 5vw, 48px) 18px; background: linear-gradient(120deg, #a80012, #cf1922 70%, #ee761f); color: white; }
.hero img { width: clamp(90px, 24vw, 150px); height: auto; border-radius: 50%; box-shadow: 0 8px 28px #65000050; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 6px 0 10px; font: 800 clamp(28px, 5.5vw, 58px)/1 Georgia, serif; letter-spacing: -.04em; }
.hero h1 + p { font-size: clamp(.8rem, 2vw, 1rem); }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 22px 16px 110px; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.catalog-heading input { width: min(100%, 320px); }
nav { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; overflow: auto; padding: 12px 4px; background: var(--cream); }
nav button { flex: none; border: 1px solid #ebc9be; border-radius: 999px; background: white; color: var(--accent); font-size: .88rem; }
nav button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: white; }
.category { margin: 20px 0 30px; }
.category h2 { margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(9px, 2vw, 18px); }
.item { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; min-width: 0; padding: clamp(7px, 1.4vw, 12px); border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 4px 12px #49100008; }
.art { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 11px; background: #ffe9db; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art.illustrated { background: radial-gradient(circle, #fff7e5, #ffdecf); }
.ice { width: 30%; height: 58%; border: 2px solid #ffffffa0; border-radius: 90% 90% 45% 45% / 24% 24% 9% 9%; background: linear-gradient(90deg, #ffffff80, transparent 38%, #39141420), var(--flavor-color); box-shadow: 5px 7px 12px #39141424; transform: rotate(17deg); }
.flavor-info { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; padding: 0 2px; }
.name { font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.price { color: var(--accent); font-weight: 800; }
.sold-out { position: absolute; top: 14px; right: 14px; padding: 4px 9px; border-radius: 999px; background: #fff7ed; color: #6f1019; font-size: .75rem; font-weight: 850; box-shadow: 0 1px 5px #39141428; }
.item.unavailable .art img { filter: saturate(.64); }
.qty, .out-note { min-height: 36px; }
.qty { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.qty button { min-width: 34px; min-height: 36px; padding: 4px 8px; }
.out-note { display: flex; align-items: center; color: var(--muted); font-size: .83rem; }
.notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0; padding: 10px; border-radius: 10px; background: #ffe9d2; }
.closing-note { margin-bottom: 8px; }
.cart-bar { position: fixed; z-index: 3; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; align-items: center; gap: 24px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: white; box-shadow: 0 -4px 22px #3914141c; }
dialog { width: min(94%, 500px); max-height: 90dvh; padding: 22px; border: 0; border-radius: 20px; color: var(--ink); }
dialog::backdrop { background: #240b0a80; }
dialog h2, dialog h3, #checkout-message { margin-bottom: 10px; }
.line { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.close { float: right; padding: 4px 12px; font-size: 1.25rem; }
.send { width: 100%; margin-top: 14px; background: #16713b; }
#order .muted { margin-top: 8px; }
.panel-wrap { max-width: 760px; padding-bottom: 38px; }
.panel-heading { margin: 25px 0 16px; }
.panel-heading h1 { font: 800 clamp(34px, 7vw, 53px)/1.02 Georgia, serif; }
.panel-heading p { margin-top: 8px; }
.panel-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.panel-card form { max-width: 440px; }
.panel-card form button { margin-top: 14px; }
.panel-card form p { margin-top: 7px; }
#panel-message:not(:empty) { margin: 12px 0; color: var(--accent); }
.panel-tools, .stock-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stock-group { margin-top: 20px; }
.stock-group h3 { margin-bottom: 5px; }
.stock-row { padding: 9px 0; border-top: 1px solid var(--line); }
.stock-row .action { flex: none; padding: 8px 10px; font-size: .83rem; }
.stock-state { display: block; color: #17633e; }
.stock-state.unavailable { color: #94212b; }

@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
