[hidden] { display: none !important; }

/* ---------- shop ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shop { background: #fff; padding: clamp(72px, 10vw, 120px) var(--gutter); }
.shop__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: clamp(20px, 3vw, 36px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.card { background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card__media { position: relative; aspect-ratio: 496 / 800; background: #fff; touch-action: pan-y; cursor: pointer; }
.card__media img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.card__turn {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  background: rgba(255, 255, 255, 0.85); padding: 6px 12px; border-radius: 999px; pointer-events: none;
}
.card__media--custom { display: grid; place-items: center; aspect-ratio: auto; min-height: 220px; flex: 1; background: #fff; border-bottom: 1px solid var(--line); color: var(--ember); cursor: default; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; margin: 0; }
.card__body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card__meta { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; color: var(--ink) !important; margin: 6px 0 10px !important; }
.card__meta strong { font-weight: 500; font-size: 1.05rem; }
.card__meta span { color: var(--muted); font-size: 0.85rem; }
.card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card .btn { border: 0; cursor: pointer; font-family: inherit; padding: 11px 8px; font-size: 0.68rem; letter-spacing: 0.08em; white-space: nowrap; text-align: center; box-shadow: none; }
.card__name { all: unset; cursor: pointer; }
.card__name:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.btn--ghost { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--ink) !important; box-shadow: none !important; }
.btn--ghost:hover { background: var(--ink) !important; color: #fff !important; }
.btn:disabled { opacity: 0.6; cursor: progress; }
button.btn { font-family: inherit; cursor: pointer; border: 0; }

.footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 72px) var(--gutter) calc(20px + env(safe-area-inset-bottom)); color: var(--ink); font-size: 0.92rem; }
.footer p { margin: 0; }
.footer__inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 56px; height: 56px; flex: none; }
.footer__name { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--ember); }
.footer__name span { font-style: italic; font-weight: 500; color: var(--gold); }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); margin-top: 2px !important; }
.footer__col h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.footer__col p + p { margin-top: 4px; }
.footer__col a { color: var(--ember); font-weight: 500; text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__chat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* official brand logos and colours (Simple Icons, CC0) */
.footer__chat .wa { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 0.86rem; text-decoration: none; transition: border-color 0.2s; }
.footer__chat .wa:hover { border-color: #25d366; text-decoration: none; }
.wa__logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #25d366; font-style: normal; flex: none; }
.wa__logo svg { display: block; }
.footer__chat .snap { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #fffc00; transition: transform 0.2s; }
.footer__chat .snap svg { width: 24px; height: 24px; }
.footer__chat .snap:hover { transform: translateY(-2px); }

.footer__bottom { max-width: 1100px; margin: 40px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 0.8rem; }
.footer__bottom a { color: var(--ink); font-weight: 500; text-decoration: none; }
.footer__bottom a:hover { color: var(--ember); }

@media (min-width: 820px) {
  .footer__inner { grid-template-columns: 1.7fr 0.7fr 0.8fr 1.5fr; align-items: start; gap: 36px; }
}

/* ---------- order dialog ---------- */
body:has(dialog[open]) { overflow: hidden; }
.order {
  border: 0; padding: 0; background: #fff; color: var(--ink);
  width: min(640px, 100%); max-height: min(92dvh, 900px); border-radius: 20px;
  box-shadow: 0 40px 120px rgba(31, 18, 11, 0.4);
}
.order::backdrop { background: rgba(31, 18, 11, 0.55); backdrop-filter: blur(3px); }
.order[open] { display: flex; flex-direction: column; overflow: hidden; }
.order__form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.order__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 8px; }
.order__top h3 { padding-top: 2px; }
.order__top h3 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; line-height: 1.1; margin: 0; }
.order__top .eyebrow { margin-bottom: 6px; }
.order__close { border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.order__steps { list-style: none; margin: 0; padding: 10px 24px 14px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.order__steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.order__steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: 0.7rem; flex: none; }
.order__steps .is-now { color: var(--ink); font-weight: 500; }
.order__steps .is-now span { background: var(--glow); border-color: var(--glow); color: #fff; }
.order__steps .is-done span { background: var(--ink); border-color: var(--ink); color: #fff; }
.order__body { padding: 20px 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.order__body h4 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0 0 14px; }
.order__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order__row h4 { margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 0.88rem; margin: 0 0 16px; }

.field { display: block; margin-bottom: 16px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; font-size: 16px; font-weight: 400; letter-spacing: 0;
  color: var(--ink); background: #fff; border: 1px solid rgba(31, 18, 11, 0.28); border-radius: 10px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--glow); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid] { border-color: #b3261e; }
.field small { display: block; margin-top: 5px; font-weight: 300; color: var(--muted); letter-spacing: 0; font-size: 0.8rem; }
.opt { font-weight: 300; color: var(--muted); }
.measure { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.unitwrap { position: relative; display: block; }
.unitwrap input { padding-right: 44px; }
.unit { position: absolute; right: 14px; top: 50%; transform: translateY(-38%); font-style: normal; font-size: 0.8rem; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; flex: none; }
.seg button { border: 0; background: none; padding: 7px 16px; font: inherit; font-size: 0.8rem; cursor: pointer; }
.seg .is-on { background: var(--ink); color: #fff; }
.warn { color: #8a5200; font-size: 0.85rem; min-height: 1.2em; margin: 4px 0 0; }

.drop { display: grid; gap: 4px; place-items: center; text-align: center; margin-top: 6px; padding: 26px 16px; border: 1.5px dashed rgba(31, 18, 11, 0.35); border-radius: 12px; cursor: pointer; font-weight: 400; background: #fff; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { outline: 2px solid var(--glow); outline-offset: 2px; }
.drop strong { font-weight: 500; color: var(--ember); }
.drop span { font-size: 0.85rem; color: var(--muted); letter-spacing: 0; }
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 12px 0 0; }
.thumbs li { position: relative; width: 76px; height: 76px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.thumbs button { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; line-height: 1; }

.review__block { padding: 14px 0; border-top: 1px solid var(--line); }
.review__block:first-child { border-top: 0; padding-top: 0; }
.review__block h5 { margin: 0 0 4px; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember); font-weight: 500; }
.review__block p { margin: 0; }
.review__meas { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.review__meas div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 2px 0; }
.review__meas dt { color: var(--muted); font-size: 0.85rem; }
.review__meas dd { margin: 0; }

.order__nav { display: flex; align-items: center; gap: 12px; padding: 14px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 20px 20px; }
.order__nav .err { flex: 1; text-align: center; font-size: 0.82rem; margin: 0; }
.err { color: #b3261e; min-height: 1.1em; }

.done { text-align: center; padding: 18px 0 6px; }
.done__tick { width: 58px; height: 58px; border-radius: 50%; background: var(--glow); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 14px; }
.done__ref { font-size: 1.05rem; }
.done__ref strong { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.06em; }
.devnote { background: #fff; border: 1px solid var(--line); color: var(--muted); padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; margin: 14px 0; }
.done .btn { margin-top: 14px; }

/* open animation */
.order[open] { animation: pop 0.22s ease-out; }
.order[open]::backdrop { animation: fade 0.22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(100%); } }

/* phones: a bottom sheet that slides up over the page */
@media (max-width: 700px) {
  .order {
    width: 100%; max-width: none; margin: auto 0 0;
    height: 92dvh; max-height: none; border-radius: 22px 22px 0 0;
  }
  .order[open] { animation: sheet 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .order__top { position: relative; padding-top: 28px; }
  .order__top::before { content: ""; position: absolute; top: 10px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(31, 18, 11, 0.22); }
  .order__nav { border-radius: 0; }
  .order__steps li { font-size: 0; gap: 0; justify-content: center; }
  .order__steps span { font-size: 0.75rem; }
  .order__steps .is-now { font-size: 0.7rem; gap: 8px; justify-content: flex-start; flex: 2; }
}
@media (prefers-reduced-motion: reduce) { .order[open], .order[open]::backdrop { animation: none; } }

/* ---------- cart button + drawer ---------- */
.topbar__cart { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: background 0.25s, color 0.25s; }
.topbar__cart:hover { background: var(--ink); color: #fff; }
.topbar__count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--glow); color: #fff; font-size: 0.7rem; font-weight: 500; display: grid; place-items: center; }

.cart { border: 0; padding: 0; background: #fff; color: var(--ink); }
.cart::backdrop { background: rgba(31, 18, 11, 0.55); backdrop-filter: blur(3px); }
.cart[open] {
  display: flex; flex-direction: column; overflow: hidden;
  width: min(440px, 100%); max-width: none; height: 100dvh; max-height: none;
  margin: 0 0 0 auto; border-radius: 20px 0 0 20px; box-shadow: -30px 0 90px rgba(31, 18, 11, 0.3);
  animation: drawer 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cart[open]::backdrop { animation: fade 0.22s ease-out; }
@keyframes drawer { from { transform: translateX(100%); } }
.cart__top { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
.cart__top h3 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin: 0; }
.cart__body { flex: 1; overflow-y: auto; padding: 20px 24px; overscroll-behavior: contain; }
.cart__foot { padding: 14px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart__foot .btn { width: 100%; text-align: center; }
.cart__foot .err { margin: 0; text-align: center; font-size: 0.82rem; }
.cart__nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.cart__empty { text-align: center; color: var(--muted); margin: 40px 0; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.cart__total strong { font-weight: 500; font-size: 1.1rem; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; }
.line img { width: 64px; height: 104px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.line h4 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.15; margin: 0; }
.line p { margin: 2px 0 10px; color: var(--muted); font-size: 0.9rem; }
.line__ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.line select { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid rgba(31, 18, 11, 0.28); border-radius: 8px; background: #fff; color: var(--ink); }
.line select[aria-invalid] { border-color: #b3261e; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(31, 18, 11, 0.28); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty span { min-width: 22px; text-align: center; font-size: 0.95rem; }
.line__rm { align-self: start; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }

@media (max-width: 700px) {
  .cart[open] { width: 100%; height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; box-shadow: none; animation: sheet 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .cart__top { position: relative; padding-top: 28px; }
  .cart__top::before { content: ""; position: absolute; top: 10px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(31, 18, 11, 0.22); }
}
@media (prefers-reduced-motion: reduce) { .cart[open], .cart[open]::backdrop { animation: none; } }
