/* Sami's IX Market & Liquor.
   Layout: a corner-store sign at night: burgundy and cream with a marigold
   price-tag accent, wide signage type for names and prices, plain body text. */
@font-face { font-family: "Archivo"; src: url(/static/fonts/archivo.woff2) format("woff2-variations"), url(/static/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(/static/fonts/sourcesans.woff2) format("woff2-variations"), url(/static/fonts/sourcesans.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --wine: #8a1c2b;
  --wine-deep: #5e0f1c;
  --wine-ink: #2a0a10;
  --marigold: #f2a93b;
  --marigold-soft: #fbe4bd;
  --paper: #f8f3e8;
  --paper-2: #efe6d4;
  --panel: #fffdf8;
  --ink: #1f1a17;
  --muted: #6d645b;
  --line: #e3d8c4;
  --ok: #2f7a4b;
  --ok-soft: #d9eedf;
  --bad: #a3321f;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --gutter-l: max(18px, env(safe-area-inset-left, 0px));
  --gutter-r: max(18px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; text-transform: uppercase; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.kicker { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wine); }
.muted { color: var(--muted); }
.price { font-family: var(--display); font-weight: 800; font-stretch: 100%; font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-wine { background: var(--wine); color: var(--paper); }
.btn-wine:hover { background: var(--wine-deep); }
.btn-gold { background: var(--marigold); color: var(--wine-ink); }
.btn-gold:hover { background: #f6b955; }
.btn-line { border-color: currentColor; background: transparent; }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 1.4rem; line-height: 1; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: var(--wine-deep); color: var(--paper); padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.top-row { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--marigold); color: var(--wine-ink); font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 1.05rem; letter-spacing: .02em; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .01em; }
.logo-text small { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: 3px; }
.nav { display: flex; gap: 22px; margin-left: 10px; }
.nav a { text-decoration: none; font-weight: 600; opacity: .85; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { opacity: 1; border-color: var(--marigold); }
.sign { margin-left: auto; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1.5px solid rgba(248,243,232,.35); color: rgba(248,243,232,.6); white-space: nowrap; }
.sign.open { color: #fff6df; border-color: var(--marigold); box-shadow: 0 0 0 1px rgba(242,169,59,.25), 0 0 18px rgba(242,169,59,.45); text-shadow: 0 0 8px rgba(242,169,59,.9); }
.cart-btn { position: relative; margin-left: 8px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(248,243,232,.3); background: transparent; color: var(--paper); display: grid; place-items: center; }
.sign[hidden] + .cart-btn { margin-left: auto; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--marigold); color: var(--wine-ink); font-weight: 800; font-size: .78rem; display: grid; place-items: center; padding: 0 5px; }
.banner { background: var(--marigold); color: var(--wine-ink); text-align: center; font-weight: 700; padding: 9px var(--gutter-r) 9px var(--gutter-l); }

/* hero */
.hero { background: var(--wine-deep); color: var(--paper); position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: "IX"; position: absolute; right: -2%; bottom: -18%; z-index: -1; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(14rem, 34vw, 30rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(242,169,59,.22); letter-spacing: -.02em; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px 380px at 15% 0%, rgba(242,169,59,.16), transparent 70%), linear-gradient(180deg, var(--wine-deep), var(--wine-ink)); }
.hero-in { padding-block: 64px 70px; display: grid; gap: 22px; justify-items: start; }
.hero-in > * { max-width: 760px; }
.hero .kicker { color: var(--marigold); }
.hero h1 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.7rem, 9vw, 6rem); line-height: .9; letter-spacing: -.01em; }
.hero h1 span { display: block; color: var(--marigold); font-stretch: 100%; font-size: .42em; letter-spacing: .06em; margin-top: 12px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 46ch; color: rgba(248,243,232,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-line { color: var(--paper); border-color: rgba(248,243,232,.5); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: rgba(248,243,232,.85); }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; vertical-align: 1px; width: 9px; height: 9px; border-radius: 50%; background: rgba(248,243,232,.4); flex: none; }
.dot.on { background: #6fd394; box-shadow: 0 0 10px #6fd394; }

/* sections */
.sec { padding-block: 64px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.sec-head > div { display: grid; gap: 8px; }
.alt { background: var(--paper-2); }

/* deals: shelf price tags */
.deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.deal { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.deal-img { aspect-ratio: 4 / 3; background: var(--paper-2); object-fit: cover; width: 100%; }
.deal-body { padding: 18px; display: grid; gap: 8px; align-content: start; }
.deal-tag { justify-self: start; background: var(--marigold); color: var(--wine-ink); font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: 1.5rem; padding: 6px 14px 6px 22px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); line-height: 1.1; }
.deal-ends { font-size: .88rem; color: var(--muted); font-weight: 600; }
.deal-noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--wine) 0 14px, var(--wine-deep) 14px 28px); color: var(--marigold); font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 2.4rem; text-transform: uppercase; text-align: center; padding: 12px; line-height: 1; }

/* departments */
.depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.dept { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; min-height: 96px; padding: 16px; border-radius: 14px; background: var(--wine); color: var(--paper); text-decoration: none; border: 0; text-align: left; transition: transform .15s, background .15s; }
.dept:nth-child(3n+2) { background: var(--wine-deep); }
.dept:nth-child(3n) { background: var(--ink); }
.dept:hover { transform: translateY(-2px); }
.dept b { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; line-height: 1.05; }
.dept span { font-size: .85rem; opacity: .75; font-variant-numeric: tabular-nums; }

/* products */
.shop-bar { position: sticky; top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--paper); padding-block: 14px 10px; border-bottom: 1px solid var(--line); }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); }
.search input:focus { outline: none; border-color: var(--wine); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }
.chip.on { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding-block: 20px 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; background: #fff; padding: 10px; }
.card-ph { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--paper-2); color: var(--wine); font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 2.2rem; text-transform: uppercase; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-weight: 700; line-height: 1.25; }
.card-dept { font-size: .82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tag21 { font-size: .7rem; font-weight: 800; color: var(--wine); border: 1.5px solid var(--wine); border-radius: 6px; padding: 0 5px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.card-foot .price { font-size: 1.3rem; }
.add { border: 0; background: var(--wine); color: var(--paper); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .9rem; }
.add:hover { background: var(--wine-deep); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--wine); border-radius: 999px; overflow: hidden; }
.stepper button { border: 0; background: transparent; width: 34px; height: 34px; font-size: 1.2rem; font-weight: 700; color: var(--wine); }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.more { display: flex; justify-content: center; padding-bottom: 40px; }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.hours { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.hours table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--wine); font-weight: 800; }
.where { display: grid; gap: 16px; }
.where address { font-style: normal; font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.where .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* order status */
.status-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 18px; max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps div { height: 8px; border-radius: 4px; background: var(--paper-2); }
.steps div.on { background: var(--ok); }
.state-big { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(1.8rem, 5vw, 2.6rem); text-transform: uppercase; }
.state-big.bad { color: var(--bad); }
.lines { display: grid; gap: 6px; }
.line { display: flex; justify-content: space-between; gap: 12px; }
.line .price { font-weight: 700; }
.total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; font-weight: 800; }
.note-box { background: var(--marigold-soft); border-radius: 12px; padding: 12px 14px; font-weight: 600; }

/* order sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(20, 8, 10, .45); z-index: 60; }
.sheet { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.25); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.4rem; }
.sheet-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; display: grid; gap: 16px; align-content: start; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-line .price { font-size: 1.05rem; text-align: right; }
.cart-line .cl-name { font-weight: 700; }
.cart-line .cl-sub { font-size: .85rem; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px 14px; }
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--wine); margin-top: 2px; flex: none; }
.err { color: var(--bad); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* age gate */
.gate { position: fixed; inset: 0; z-index: 90; background: var(--wine-ink); display: grid; place-items: center; padding: 20px var(--gutter-r) 20px var(--gutter-l); }
.gate-card { max-width: 420px; text-align: center; color: var(--paper); display: grid; gap: 16px; justify-items: center; }
.gate-mark { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 16px; }
.gate h2 { font-size: 2rem; }
.gate p { color: rgba(248,243,232,.8); }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gate .btn-line { color: var(--paper); }
.gate .btn-wine { background: var(--marigold); color: var(--wine-ink); }
.gate-no { font-weight: 700; color: var(--marigold) !important; }

/* footer */
.foot { background: var(--wine-ink); color: rgba(248,243,232,.8); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.foot-logo { color: var(--paper); margin-bottom: 10px; }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; font-weight: 600; }
.foot-nav a:hover { color: var(--marigold); }
.foot-legal { grid-column: 1 / -1; font-size: .85rem; border-top: 1px solid rgba(248,243,232,.15); padding-top: 16px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top-row { gap: 10px; }
  .sign { font-size: .64rem; padding: 5px 9px; }
  .hero-in { padding-block: 44px 50px; }
  .visit, .foot-row { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 11px 12px; }
  .card-foot { flex-wrap: wrap; }
  .sec { padding-block: 44px; }
  .sheet { top: auto; width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  nav.tabbar { display: grid; }
  main { padding-bottom: 64px; }
}
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 39; grid-template-columns: repeat(3, 1fr); background: var(--wine-deep); padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid rgba(0,0,0,.25); }
.tabbar a { color: rgba(248,243,232,.8); text-decoration: none; text-align: center; padding: 12px 0; font-weight: 700; font-size: .92rem; }
.tabbar a.on { color: var(--marigold); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* register sale prices */
.card { position: relative; }
.sale-flag { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--marigold); color: var(--wine-ink); font-family: var(--display); font-weight: 900; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px 4px 14px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); }
.price-wrap { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price.sale { color: var(--wine); }
.was { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
