/* Order page: matches the new home page (Jost, wide tracking, dark cards, gold pills). Loaded after shop.css. */
:root { --serif: 'Jost', system-ui, sans-serif; --sans: 'Jost', system-ui, sans-serif; --gold2: #f0d58f; --mut: #8f8672; --lineg: rgba(212, 162, 76, .22); }
body { font: 300 17px/1.6 var(--sans); }
@media (max-width: 860px) { body { font-weight: 400; } }   /* phones: a firmer weight in both modes so text stays clear */
h1, h2, h3, h4 { font-weight: 300; }
.btn { border-radius: 999px; font-weight: 400; font-size: 14px; letter-spacing: .1em; padding: 0 22px; }
.btn.solid { background: var(--brass); color: #111; }
.btn.solid:hover { background: var(--gold2); border-color: var(--gold2); }
.btn.quiet { border-color: var(--lineg); }
.btn.small { padding: 0 14px; }
.field > span { letter-spacing: .08em; }
.field input, .field select, .field textarea { border-radius: 10px; border-color: var(--lineg); background: var(--lacquer); }
.eye { margin: 0 0 20px; color: var(--brass); letter-spacing: .3em; font-size: 13px; text-transform: uppercase; }

/* header */
.topbar { padding: 10px max(24px, calc((100% - 1180px) / 2)); border-bottom-color: var(--lineg); }
.brand b { font: 400 14px/1 var(--sans); letter-spacing: .36em; text-transform: uppercase; }
.top-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.top-links a { color: var(--mut); font-size: 14px; letter-spacing: .08em; text-decoration: none; }
.top-links a:hover { color: var(--ivory); }
.cart-btn { gap: 12px; }
.cart-btn .count { background: var(--brass); color: #111; font-weight: 500; }

/* hero */
.hero { max-width: 1180px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); padding: clamp(40px, 6vw, 84px) 24px clamp(40px, 5vw, 64px); }
.hero > div > * { opacity: 0; animation: fade 1.1s ease both; }
.hero .eye { animation-delay: .1s; } .hero h1 { animation-delay: .3s; } .hero .lede { animation-delay: .55s; } .hero .finder { animation-delay: .8s; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero h1 { font: 300 clamp(28px, 3.4vw, 48px)/1.22 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-wrap: balance; }
.hero .lede { max-width: 38ch; color: var(--mut); letter-spacing: .03em; font-size: 17px; }
.finder { max-width: 480px; background: transparent; border: 1px solid var(--lineg); border-radius: 18px; padding: 22px; }
.finder-status { letter-spacing: .03em; }
.hero-photo::before { display: none; }
.hero-photo img { border: 0; border-radius: 0; aspect-ratio: 4 / 3.4; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.hero-photo figcaption { margin-top: 12px; padding-left: 10%; letter-spacing: .06em; color: var(--mut); }

/* filters */
.filters { border-color: var(--lineg); }
.filters-in { max-width: 1180px; }
.chip { border-color: var(--lineg); letter-spacing: .08em; font-weight: 300; font-size: 14px; color: var(--mut); transition: color .2s, border-color .2s; }
.chip:hover { color: var(--ivory); border-color: var(--brass); }
.chip small { color: var(--brass); }
.chip[aria-pressed="true"] { background: var(--brass); color: #111; font-weight: 400; }
.search input { border-radius: 999px; border-color: var(--lineg); padding: 0 16px; }
.date-pill { max-width: 1180px; letter-spacing: .03em; }

/* cards */
.shelf { max-width: 1180px; }
.grid { gap: 20px; }
.card { background: var(--lacquer); color: var(--ivory); border: 1px solid var(--lineg); border-radius: 16px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--brass); }
.card-photo { aspect-ratio: 4 / 3; }
.plate { padding: 18px 20px 20px; gap: 8px; }
.plate h3 { font: 300 22px/1.15 var(--sans); letter-spacing: .01em; }
.plate .rate { font-weight: 400; color: var(--gold2); }
.plate .per { color: var(--mut); }
.avail { color: var(--mut); letter-spacing: .03em; }
.avail.ok { color: var(--moss); } .avail.low { color: #e0b15a; } .avail.out { color: var(--ember); }
.card .btn { border-color: var(--brass); color: var(--gold2); }
.card .btn.solid { background: var(--brass); color: #111; }
.card .btn.solid:hover { background: var(--gold2); }
.card .btn[disabled] { border-color: var(--lineg); color: var(--mut); background: transparent; }
.stepper { border-color: var(--brass); border-radius: 999px; }
.stepper button:hover { background: rgba(212, 162, 76, .14); }
.card .stepper { color: var(--ivory); }

/* cart drawer */
.cart { background: var(--lacquer); border-left-color: var(--lineg); }
.cart-head { border-bottom-color: var(--lineg); }
.cart-head h2, .side h2 { font: 300 22px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.icon-btn { border-radius: 50%; border-color: var(--lineg); }
.line { border-bottom-color: var(--lineg); }
.line img { border-radius: 10px; }
.line h4 { font: 300 18px/1.2 var(--sans); }
.cart-foot { border-top-color: var(--lineg); }
.sum.big { font-weight: 400; }
.sum.adv { color: var(--gold2); font-weight: 400; }
.cartbar { border-radius: 999px; background: var(--brass); }
.cartbar .go { border-radius: 999px; background: #111; }

/* detail */
dialog.detail { background: var(--lacquer); color: var(--ivory); border-color: var(--lineg); border-radius: 18px; }
.detail-info h2 { font: 300 clamp(26px, 3vw, 36px)/1.1 var(--sans); }
.detail .close { background: rgba(10, 9, 7, .7); }

/* checkout */
.co-top { border-bottom-color: var(--lineg); padding-inline: max(24px, calc((100% - 1040px) / 2)); }
.co-wrap h1, .done-box h1 { font: 300 clamp(28px, 3.4vw, 44px)/1.15 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.steps li { letter-spacing: .06em; }
.steps li.on b { color: #111; }
.side, .pay-box { border-color: var(--lineg); border-radius: 18px; }
.pay-amount { font: 300 clamp(40px, 6vw, 56px)/1 var(--sans); color: var(--gold2); }
.done-no { border-radius: 999px; padding: 10px 22px; letter-spacing: .12em; }
.foot { border-top-color: var(--lineg); letter-spacing: .06em; }
.toast { border-radius: 16px; background: var(--gold2); font-weight: 400; max-width: min(440px, calc(100vw - 32px)); line-height: 1.45; text-align: center; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 28px 16px 40px; }
  .hero-photo img { aspect-ratio: 16 / 10; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
  .hero-photo figcaption { padding-left: 6%; }
  .top-links a:not(.cart-btn) { display: none; }
  .brand b { letter-spacing: .24em; }
}
@media (prefers-reduced-motion: reduce) { .hero > div > * { opacity: 1; animation: none; } }
.cart-btn span { white-space: nowrap; }
.co-top .brand b { font-size: 14px !important; }
@media (max-width: 860px) { .cart-btn { padding: 0 14px; gap: 8px; letter-spacing: .06em; } }

/* ---------- phone layout: compact two-column menu ---------- */
.fab { display: none; }
@media (max-width: 860px) {
  .hero-photo img { aspect-ratio: 16 / 7; }
  .hero h1 { font-size: clamp(24px, 6.4vw, 32px); letter-spacing: .1em; }
  .filters-in { padding: 18px 12px 8px; gap: 0; }
  .chips { gap: 6px; margin: 0 -12px; padding: 2px 12px; }
  .chip { min-height: 36px; padding: 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
  .search { display: none; width: 100%; padding-top: 8px; }
  .filters.find .search { display: block; }
  .shelf { padding: 14px 10px 150px; }
  .grid, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .card { background: transparent; border: 0; border-radius: 0; }
  .card:hover { border-color: transparent; }
  .card-photo { aspect-ratio: 1 / 1.05; border-radius: 12px; }
  .plate { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "h h" "a a" "p b"; align-items: center; gap: 4px 8px; padding: 10px 8px 10px; }
  .plate h3 { grid-area: h; font-size: 16px; line-height: 1.25; }
  .plate > p:not(.avail) { grid-area: p; font-size: 14px; }
  .plate .per { display: none; }
  .plate .avail { grid-area: a; font-size: 12.5px; }
  .plate .act { grid-area: b; margin: 0; padding: 0; }
  .card .btn { width: auto; min-height: 34px; padding: 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
  .card .stepper { grid-template-columns: 30px 34px 30px; }
  .card .stepper button { min-height: 32px; }
  .card .stepper input { font-size: 16px; }
  .fab { position: fixed; z-index: 24; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--brass); background: var(--lacquer); color: var(--gold2); text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); font-size: 18px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .fab.up { right: 14px; background: var(--brass); color: #111; }
  .fab.find { left: 14px; }
}
@media (max-width: 860px) {
  .plate > p:not(.avail) { white-space: nowrap; }
  .card .btn.solid { font-size: 0; gap: 0; min-width: 64px; padding: 0 16px; }
  .card .btn.solid::after { content: "Add"; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-right: -.14em; }
}
.hero-photo img { aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 860px) { .hero-photo img { aspect-ratio: 16 / 9; object-position: 50% 58%; } }
@media (max-width: 860px) { .fab { opacity: 0; pointer-events: none; transition: opacity .25s; } .scrolled .fab { opacity: 1; pointer-events: auto; } }
.stepper input.over { color: var(--ember); }
.stepper input:focus { outline: none; background: rgba(212, 162, 76, .1); }
/* detail pop-up: a long quantity bar next to Add to cart */
.addrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qty-new { width: 100%; min-height: 46px; padding: 0 16px; text-align: center; background: transparent; border: 1px solid var(--brass); border-radius: 999px; font-size: 17px; -moz-appearance: textfield; color: var(--ivory); }
.qty-new::placeholder { color: var(--mut); letter-spacing: .06em; }
.qty-new:focus { outline: none; background: rgba(212, 162, 76, .1); border-color: var(--gold2); }
.qty-new.over { color: var(--ember); border-color: var(--ember); }
.qty-new::-webkit-outer-spin-button, .qty-new::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 860px) {
  .plate > p:not(.avail) { white-space: nowrap; }
  .card .btn.solid { font-size: 0; gap: 0; min-width: 64px; padding: 0 16px; }
  .card .btn.solid::after { content: "Add"; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-right: -.14em; }
  .detail .btn.solid { font-size: 14px; min-width: 0; width: 100%; padding: 0 12px; }
  .detail .btn.solid::after { content: none; }
}

/* ======================= checkout (3 steps) ======================= */
.checkout { background: radial-gradient(120% 70% at 80% 0, #1b150b 0, var(--ebony) 60%); }
.co-top { padding-block: 12px; }
.co-shell { max-width: 1060px; margin: 0 auto; padding: 28px 24px 120px; }
.prog { list-style: none; margin: 0 0 30px; padding: 0; display: flex; align-items: center; }
.prog li { display: flex; align-items: center; flex: 1; }
.prog li:last-child { flex: none; }
.prog li:not(:last-child)::after { content: ''; flex: 1; height: 1px; margin: 0 14px; background: var(--lineg); }
.prog li.done:not(:last-child)::after { background: var(--brass); }
.prog button, .prog li > div { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: var(--mut); letter-spacing: .08em; font-size: 14px; white-space: nowrap; }
.prog i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--lineg); display: grid; place-items: center; font-size: 13px; }
.prog li.on > div { color: var(--ivory); }
.prog li.on i { background: var(--brass); border-color: var(--brass); color: #111; }
.prog li.done button { color: var(--gold2); cursor: pointer; }
.prog li.done i { border-color: var(--brass); color: var(--brass); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.co-grid:has(.co-card:only-child) { grid-template-columns: minmax(0, 640px); justify-content: center; }
.co-card { background: var(--lacquer); border: 1px solid var(--lineg); border-radius: 24px; padding: clamp(22px, 3.4vw, 40px); }
.co-card h1 { font: 300 clamp(24px, 2.8vw, 34px)/1.15 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.co-sub { color: var(--mut); max-width: 52ch; margin-bottom: 26px; }
.form-grid { gap: 18px; }
.field input.bad, .field select.bad, .field textarea.bad { border-color: var(--ember); }
.field .err { letter-spacing: .02em; }
.field .hint { color: var(--mut); font-size: 13px; }
.co-date { margin-top: 20px; color: var(--mut); }
.co-date b { color: var(--ivory); font-weight: 400; }
.side { position: sticky; top: 20px; background: transparent; border: 1px solid var(--lineg); border-radius: 24px; padding: 6px 20px 20px; display: block; }
.side summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; letter-spacing: .24em; text-transform: uppercase; font-size: 16px; }
.side summary::-webkit-details-marker { display: none; }
.side summary b { letter-spacing: .04em; color: var(--gold2); font-weight: 400; text-transform: none; }
.sl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; border-top: 1px solid var(--lineg); padding-top: 16px; }
.sl li { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; }
.sl img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.sl .nm { display: grid; line-height: 1.25; }
.sl small { color: var(--mut); font-size: 13px; }
.sl b { font-weight: 400; }
.sl-total { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lineg); font-size: 18px; }
.sl-total b { color: var(--gold2); font-weight: 400; }
.sl.big { margin-top: 22px; }
.sl-total.big { font-size: 22px; }
.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rv-box { border: 1px solid var(--lineg); border-radius: 16px; padding: 16px 18px; }
.rv-box h3 { display: flex; justify-content: space-between; align-items: center; font: 300 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.rv-box h3 button { background: none; border: 0; color: var(--gold2); text-decoration: underline; letter-spacing: .04em; text-transform: none; font-size: 14px; padding: 0; }
.rv-box p { margin: 2px 0; color: var(--mut); overflow-wrap: anywhere; }
.rv-box p b { color: var(--ivory); font-weight: 400; }
.rv-box .note { font-style: italic; margin-top: 8px; }
#payErr { color: var(--ember); margin-top: 14px; }
.done-no { margin: 6px 0 18px; }
.co-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(10, 9, 7, .98); backdrop-filter: blur(12px); border-top: 1px solid var(--lineg); padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)); }
.co-bar-in { max-width: 1060px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; }
.co-bar .btn { min-height: 48px; padding: 0 30px; }
@media (max-width: 860px) {
  .co-shell { padding: 18px 14px 120px; }
  .co-grid { grid-template-columns: 1fr; }
  .co-grid > .side { order: -1; position: static; }
  .co-grid:has(.co-card:only-child) { grid-template-columns: 1fr; }
  .rv-grid { grid-template-columns: 1fr; }
  .prog { margin-bottom: 20px; }
  .prog span { display: none; }
  .prog li.on span { display: inline; }
  .prog li:not(:last-child)::after { margin: 0 8px; }
  .co-bar { padding-inline: 14px; }
  .co-bar .btn { flex: 1; padding: 0 14px; }
}
.form-grid { align-items: start; }
.co-card .field input, .co-card .field select { min-height: 48px; }

/* order confirmation */
@keyframes okIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.co-grid:has(.co-card:only-child) { grid-template-columns: minmax(0, 720px); }

/* last order bar */
.last-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: rgba(212,162,76,.1); border-bottom: 1px solid rgba(212,162,76,.25); font-size: 14px; color: #d9c9a5; }
.last-bar[hidden] { display: none; }
.last-bar b { color: #f0d58f; letter-spacing: .08em; font-weight: 500; }
.last-bar button { font: inherit; color: #111; background: #d4a24c; border: 0; border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.last-bar button:hover { background: #f0d58f; }
.last-bar .x { background: transparent; color: #d9c9a5; padding: 2px 8px; font-size: 20px; line-height: 1; }

/* easier to tap */
.foot a { display: inline-block; padding: 10px 4px; }

/* tracking code on the confirmation screen and "Track order" link */
.track-box { margin: 18px auto 0; max-width: 360px; padding: 14px 16px; border: 1px solid var(--brass-dim, #8a6a2c); border-radius: 10px; text-align: center; }
.track-box span { display: block; font-size: 13px; color: var(--dust); }
.track-box b { display: block; font-size: 28px; letter-spacing: .18em; margin: 4px 0 6px; color: var(--brass-hi); }
.track-box small { display: block; font-size: 12px; color: var(--dust); line-height: 1.5; }
.track-box a { color: var(--brass-hi); }
.last-bar .lb-track { color: var(--brass-hi); padding: 10px 6px; }

/* "My orders" shortcut in the header, visible on phones too */
.mo-icon { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--lineg); border-radius: 50%; color: var(--brass-hi); margin-left: auto; flex: none; }
@media (max-width: 860px) { .mo-icon { display: inline-flex; } .mo-icon + .cart-btn { margin-left: 8px; } }
@media (max-width: 380px) { .topbar .brand b { letter-spacing: .12em; } .topbar .brand { gap: 8px; } .topbar .brand img { height: 32px; } .mo-icon { width: 38px; height: 38px; } .mo-icon + .cart-btn { margin-left: 6px; padding: 0 10px; gap: 6px; letter-spacing: .02em; } }
@media (max-width: 380px) { .topbar .cart-btn > span:nth-child(2) { display: none; } }

/* order received: the Momentra M steps aside and the dip + arrow become the tick.
   Only opacity, transform and one ring draw are animated, so it stays smooth on weak phones. */
.co-grid:has(.lg-wrap) .co-card { text-align: center; display: flex; flex-direction: column; align-items: center; animation: okIn .6s ease both; }
.lg-wrap { position: relative; width: 132px; height: 132px; flex: none; margin: 2px 0 20px; }
.lg-wrap svg { position: absolute; display: block; overflow: visible; }
.lg-ring { inset: 0; width: 100%; height: 100%; }
.lg-ring circle { fill: none; stroke: var(--brass); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 100; transform: rotate(-90deg); transform-origin: 50% 50%; animation: lgDraw .6s cubic-bezier(.5,0,.2,1) backwards; }
.lg-mark { left: 29px; top: 34px; width: 74px; height: 64px; }
.lg-mark polygon { fill: url(#lgG); stroke: url(#lgG); stroke-width: 3; stroke-linejoin: round; }
.lg-mark .all { transform-box: view-box; transform-origin: 121px 103px; animation: lgIn .45s .15s cubic-bezier(.2,.9,.3,1.2) backwards; }
.lg-mark .keep { transform-box: view-box; transform-origin: 121px 103px; animation: lgCenter .6s .95s cubic-bezier(.5,0,.2,1) both; }
.lg-mark .pl { animation: lgPL .5s .95s cubic-bezier(.5,0,.8,.4) both; }
.lg-mark .pr { animation: lgPR .5s .95s cubic-bezier(.5,0,.8,.4) both; }
.co-grid:has(.lg-wrap) .co-card > h1 { animation: lgUp .5s 1.55s ease-out backwards; }
.co-grid:has(.lg-wrap) .done-thanks { animation: lgUp .5s 1.7s ease-out backwards; }
.co-grid:has(.lg-wrap) .done-no { animation: lgUp .5s 1.85s ease-out backwards; }
.co-grid:has(.lg-wrap) .done-no ~ .co-sub { animation: lgUp .5s 2s ease-out backwards; }
.done-no { white-space: nowrap; }
@media (max-width: 380px) { .done-no { font-size: 16px; letter-spacing: .08em; padding-inline: 16px; } }
.done-thanks { color: var(--mut); margin: 0 0 18px; max-width: 34ch; }
@keyframes lgDraw { from { stroke-dashoffset: 100; } }
@keyframes lgIn { from { opacity: 0; transform: scale(.75); } }
@keyframes lgPL { to { opacity: 0; transform: translate(-16px, 22px); } }
@keyframes lgPR { to { opacity: 0; transform: translate(16px, 22px); } }
@keyframes lgCenter { 0% { transform: none; } 70% { transform: translate(-21px, 14px) scale(1.23); } 100% { transform: translate(-21px, 14px) scale(1.18); } }
@keyframes lgUp { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .lg-wrap *, .co-grid:has(.lg-wrap) .co-card, .co-grid:has(.lg-wrap) .co-card > * { animation: none !important; } .lg-mark .pl, .lg-mark .pr { opacity: 0; } .lg-mark .keep { transform: translate(-21px, 14px) scale(1.18); } }

.co-card .co-sub a { color: var(--brass-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- order page: no photo, date first ---------- */
.hero { grid-template-columns: 1fr; max-width: 640px; }
.hero .finder { max-width: none; }
@media (max-width: 860px) { .hero { padding: 22px 16px 28px; } }

/* ---------- tap-to-pick calendar ---------- */
.date-field { position: relative; display: grid; gap: 6px; }
.date-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--brass); border-radius: 10px; background: var(--lacquer); color: var(--mut); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.date-btn svg { color: var(--brass); flex: none; }
.date-btn.set { color: var(--ivory); }
.date-btn:focus-visible, .cal button:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.cal { margin-top: 8px; padding: 14px; border: 1px solid var(--lineg); border-radius: 14px; background: var(--lacquer); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-weight: 400; letter-spacing: .06em; color: var(--ivory); }
.cal-nav { width: 40px; height: 40px; border: 1px solid var(--lineg); border-radius: 50%; background: transparent; color: var(--brass); font-size: 22px; line-height: 1; cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .wd { text-align: center; font-size: 12px; color: var(--mut); padding: 4px 0; }
.cal-day { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--ivory); font: inherit; font-size: 15px; cursor: pointer; }
.cal-day:hover:not(:disabled) { background: rgba(212, 162, 76, .14); }
.cal-day:disabled { color: rgba(163, 154, 133, .35); cursor: default; }
.cal-day.on { background: var(--brass); color: #111; font-weight: 500; }
.cal-day.span { background: rgba(212, 162, 76, .25); }
.cal-note { margin: 10px 0 0; font-size: 12.5px; color: var(--mut); }

/* ---------- category tabs: one line, swipe sideways; arrow for more; menu with every category ---------- */
.chipbar { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.chips { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; margin: 0 !important; padding: 2px 0 !important; }
.chip { flex: none; white-space: nowrap; scroll-snap-align: start; }
.cat-menu, .chip-arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--lineg); background: var(--lacquer); color: var(--gold2); cursor: pointer; }
.chip-arrow { position: absolute; right: 0; top: 50%; transform: translateY(-50%); border-radius: 50%; width: 36px; height: 36px; background: rgba(20, 18, 14, .92); border-color: var(--brass); box-shadow: -14px 0 16px 4px rgba(10, 9, 7, .9); }
.chip-arrow[hidden] { display: none; }
.cat-menu[aria-expanded="true"] { border-color: var(--brass); background: rgba(212, 162, 76, .14); }
.cat-list { position: fixed; z-index: 61; width: min(300px, 86vw); display: grid; gap: 6px; padding: 12px; border: 1px solid var(--lineg); border-radius: 16px; background: var(--lacquer); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.cat-list[hidden] { display: none; }
.cat-list .chip { width: 100%; justify-content: space-between; display: flex; align-items: center; }
.cat-list-h { margin: 0 4px 4px; font-size: 12px; color: var(--mut); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 860px) {
  .filters-in .chipbar { width: 100%; }
}

/* ---------- order again ---------- */
.ro-note { margin: 12px 0 6px; padding: 14px 16px; border: 1px solid var(--lineg); border-radius: 14px; background: rgba(134, 211, 157, .07); font-size: 14px; line-height: 1.5; }
.ro-note.warn { border-color: rgba(232, 128, 109, .5); background: rgba(232, 128, 109, .08); }
.ro-note b { display: block; color: var(--ivory); font-weight: 500; margin-bottom: 4px; }
.ro-note p { margin: 0 0 8px; color: var(--dust); }
.ro-note ul { margin: 6px 0 10px; padding-left: 18px; }
.ro-note li { margin: 4px 0; color: var(--ivory); }
.ro-note li.out { color: var(--ember); }
.ro-ask { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); }
.ro-ask-in { width: min(420px, 100%); display: grid; gap: 10px; padding: 22px; border: 1px solid var(--lineg); border-radius: 18px; background: var(--lacquer); }
.ro-ask-in h3 { margin: 0; font-weight: 400; color: var(--ivory); letter-spacing: .04em; }
.ro-ask-in p { margin: 0 0 6px; color: var(--dust); }
.ro-note .rm, .ro-note .btn { margin-top: 2px; min-height: 36px; padding: 0 16px; border: 1px solid var(--brass); border-radius: 999px; background: transparent; color: var(--brass); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.date-field { scroll-margin-top: 84px; }

/* ---------- price per day on phone cards ---------- */
.plate .pday { color: var(--mut); }
@media (max-width: 860px) { .plate .pday { font-size: 12px; } }

/* ---------- very small phones: price on one line, Add below it, nothing cut ---------- */
@media (max-width: 360px) {
  .plate { grid-template-columns: 1fr; grid-template-areas: "h" "a" "p" "b"; }
  .plate .act { justify-self: stretch; }
  .card .btn.solid { width: 100%; }
  .card .stepper { width: 100%; grid-template-columns: 36px 1fr 36px; }
}

/* ---------- 7+ days ---------- */
#fDaysMoreWrap input { width: 100%; }

/* ---------- order received: WhatsApp ---------- */
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 6px auto 10px; min-height: 48px; padding: 0 22px; text-decoration: none; }

/* ---------- filter bar fully solid so nothing shows through ---------- */
.filters { background: var(--ebony, #0a0907); backdrop-filter: none; }

/* ---------- categories menu: a dropdown on computers, a bottom sheet on phones ---------- */
.cat-list-top { display: flex; align-items: center; justify-content: space-between; }
.cat-x { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ivory); font-size: 28px; line-height: 1; cursor: pointer; }
.cat-rows { display: grid; gap: 6px; }
.sheet-grip { display: none; }
.cat-scrim { z-index: 60; }
@media (max-width: 860px) {
  .cat-list { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 61; width: 100%; max-height: 78vh; overflow-y: auto; padding: 10px 0 calc(18px + env(safe-area-inset-bottom, 0px)); gap: 0; border-radius: 22px 22px 0 0; border-bottom: 0; animation: sheetUp .28s ease; }
  .sheet-grip { display: block; width: 46px; height: 5px; margin: 0 auto 6px; border-radius: 3px; background: rgba(243, 239, 230, .25); }
  .cat-list-top { padding: 4px 18px 10px 24px; border-bottom: 1px solid var(--lineg); }
  .cat-list-h { margin: 0; font-size: 18px; color: var(--ivory); letter-spacing: .14em; }
  .cat-rows { gap: 0; }
  .cat-list .chip { min-height: 58px; padding: 0 24px; border: 0; border-bottom: 1px solid var(--lineg); border-radius: 0; background: transparent; font-size: 15px; letter-spacing: .1em; }
  .cat-list .chip[aria-pressed="true"] { background: rgba(212, 162, 76, .14); color: var(--gold2); }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cat-list { animation: none; } }
.cat-list .chip[aria-pressed="true"] small { color: var(--gold2); }

/* ---------- minimum order ---------- */
.min-bar { margin: 10px 0 4px; }
.min-track { height: 6px; border-radius: 3px; background: rgba(212, 162, 76, .18); overflow: hidden; }
.min-track span { display: block; height: 100%; background: var(--brass); border-radius: 3px; transition: width .3s; }
.min-bar p { margin: 8px 0 0; font-size: 14px; color: var(--ivory); }
.min-bar b { color: var(--gold2); font-weight: 500; }
.cart-foot .btn.solid:disabled { opacity: .55; cursor: not-allowed; }

/* v34: small fixes. Footer links spaced (no stray dots), wordmark room on phones, card rows line up, how-it-works steps line up */
#footer.foot, .foot#footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 18px; }
@media (max-width: 430px) { .topbar:has(.cart-btn) .brand b { letter-spacing: .08em; font-size: 13px; } }
@media (max-width: 860px) {
  .card { display: flex; flex-direction: column; }
  .plate { flex: 1; grid-template-rows: auto 1fr auto; align-content: stretch; }
}
@media (max-width: 430px) { .topbar:has(.cart-btn) .brand { gap: 8px; } .topbar:has(.cart-btn) .brand img { height: 34px; } .topbar .cart-btn { padding-left: 10px; padding-right: 14px; } .topbar:has(.cart-btn) { padding-left: 16px; padding-right: 16px; } }

/* v35: category headings (All shows every category with its heading; a tab shows one) */
.grid .cat-h { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; margin: 30px 0 2px; padding: 0 0 12px; border-bottom: 1px solid var(--lineg); font: 300 clamp(22px, 2.4vw, 30px)/1.2 var(--serif); letter-spacing: .04em; color: var(--ivory); }
.grid .cat-h.first { margin-top: 6px; }
.grid .cat-h small { font: 400 14px/1 var(--sans); letter-spacing: .08em; color: var(--brass); }
@media (max-width: 860px) { .grid .cat-h { margin-top: 22px; } }
.grid .search-note { grid-column: 1 / -1; margin: 4px 0 -10px; font-size: 13px; letter-spacing: .06em; color: var(--dust); }
/* v35: on phones a long price ("PKR 2,500 / day") drops "/ day" to a second line instead of pushing the Add button off the card */
@media (max-width: 860px) {
  .plate > p:not(.avail) { white-space: normal; min-width: 0; line-height: 1.25; }
  .plate .rate { white-space: nowrap; }
}
.grid .no-res { grid-column: 1 / -1; margin: 28px auto 40px; max-width: 460px; padding: 28px 22px; text-align: center; border: 1px solid var(--lineg); border-radius: 14px; }
.grid .no-res h2 { margin: 0 0 8px; font: 300 22px/1.3 var(--serif); letter-spacing: .03em; color: var(--ivory); overflow-wrap: anywhere; }
.grid .no-res p { margin: 0 0 18px; color: var(--dust); font-size: 14px; line-height: 1.5; }
.no-res-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* v36: the home page starfield behind the whole order page. Everything with words or items on it sits on solid black. */
#bgStars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
.finder, .date-pill, .grid .cat-h, .grid .search-note, .grid .no-res, .empty, #footer.foot { background: var(--ebony); }
@media (max-width: 860px) { .card { background: var(--ebony); } }

/* v37: category headings stand clearly apart from the items: gold capitals, a count badge and a gold rule, with room above */
.grid .cat-h { align-items: center; gap: 14px; margin: 56px 0 6px; padding: 0; border-bottom: 0; font: 400 clamp(18px, 2vw, 24px)/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-hi); }
.grid .cat-h.first { margin-top: 10px; }
.grid .cat-h small { order: 1; flex: none; padding: 5px 11px; border: 1px solid rgba(212, 162, 76, .55); border-radius: 999px; font: 500 12px/1 var(--sans); letter-spacing: .08em; color: var(--brass); }
.grid .cat-h::after { content: ""; order: 2; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212, 162, 76, .7), rgba(212, 162, 76, .08)); }
@media (max-width: 860px) { .grid .cat-h { margin-top: 40px; font-size: 17px; letter-spacing: .16em; gap: 10px; } .grid .cat-h.first { margin-top: 8px; } }
/* v38 phones: the sold-out button says just "Booked" so it never squeezes the price (the red line above explains it) */
@media (max-width: 860px) {
  .card .plate .btn[disabled] { gap: 0; font-size: 0; min-width: 0; padding: 0 12px; }
  .card .plate .btn[disabled]::after { content: "Fully booked"; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-right: -.1em; }
}
/* sold-out button readable in the dark page too */
.card .btn[disabled] { opacity: 1; background: rgba(242, 234, 216, .05); border-color: rgba(242, 234, 216, .28); color: #c4baa2; }
/* v40 phones: cards show the price only (the item pop-up and the cart still say it is per day) */
@media (max-width: 860px) { .card .plate .pday { display: none; } }
@media (max-width: 860px) {
  .card .plate .btn[disabled] { padding: 0 10px; }
  .card .plate .btn[disabled]::after { letter-spacing: .05em; font-size: 11.5px; }
}

/* v42 phones: sold-out card - the "Fully booked" button sits on its own row under the price so nothing can overlap */
@media (max-width: 860px) {
  .card .plate:has(.btn[disabled]) { grid-template-columns: 1fr; grid-template-areas: "h" "a" "p" "b"; row-gap: 6px; }
  .card .plate:has(.btn[disabled]) .act { justify-self: stretch; }
  .card .plate .btn[disabled] { width: 100%; padding: 0 10px; }
  .card .plate .btn[disabled]::after { letter-spacing: .08em; font-size: 12px; margin-right: -.08em; }
}

/* v43: sold-out button in the item pop-up is clearly readable (dark and light) */
#detail .btn[disabled] { opacity: 1; width: 100%; background: rgba(242, 234, 216, .08); border-color: rgba(242, 234, 216, .4); color: #e4dac3; font-weight: 500; cursor: not-allowed; }
html[data-theme="light"] #detail .btn[disabled] { background: #ebe6dd; border-color: #b9b1a2; color: #2b2823; font-weight: 600; }

/* v46: bar buttons stay on one line */
.co-bar .btn { white-space: nowrap; }
@media (max-width: 400px) { .co-bar .btn { padding: 0 10px; letter-spacing: .06em; font-size: 13px; } }

/* v47: bigger invisible tap areas for the small text buttons (look unchanged) */
button[data-act="changeDate"], .rm, .rv-box h3 button[data-act="goStep"] { position: relative; }
button[data-act="changeDate"]::after, .rm::after, .rv-box h3 button[data-act="goStep"]::after { content: ""; position: absolute; inset: -9px -8px; }
/* v47: a long item name never runs under the close button */
@media (min-width: 861px) { .detail-info h2 { padding-right: 48px; } }

/* v48 phones: the search circle glides in on the LEFT of the order bar (same row); the bar slides over to make room, and both glide back when you scroll up */
@media (max-width: 860px) {
  .cartbar { transition: left .32s cubic-bezier(.2, .8, .2, 1); }
  .scrolled .cartbar { left: 74px; }
  .fab.find { left: 12px; bottom: calc(21px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .fab.up { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 860px) { .cartbar > span:first-child { text-align: left; } }

/* carpets (sold per sq ft): the size boxes get their own full-width row under the price */
@media (max-width: 860px) {
  .plate:has(.sizebox) { grid-template-columns: 1fr; grid-template-areas: "h" "a" "p" "b"; }
  .plate:has(.sizebox) .act { width: 100%; }
}
.plate:has(.sizebox) .act { min-width: 0; }

/* phones: the order button is a circle for 1-2 digits and stretches into a pill for bigger numbers, so the count always shows in full */
@media (max-width: 500px) {
  .topbar .cart-btn { width: auto; min-width: 42px; height: 42px; min-height: 0; padding: 0 5px; gap: 0; justify-content: center; align-items: center; border-radius: 999px; box-sizing: border-box; }
  .topbar .cart-btn .count { min-width: 26px; width: auto; height: 26px; padding: 0 6px; box-sizing: border-box; line-height: 1; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: lining-nums; white-space: nowrap; }
}
@media (max-width: 430px) { .topbar .cart-btn { min-width: 38px; height: 38px; min-height: 0; padding: 0 5px; } .topbar .cart-btn .count { min-width: 24px; height: 24px; } }

/* Stop the page jumping while it loads: hold space for content that arrives late */
#chips { min-height: 40px; }
#grid { min-height: 90vh; align-content: start; }   /* few items: keep them packed at the top, never stretched to fill the space */
#footer { min-height: 28px; }

/* touch targets */
.topbar .brand { min-height: 44px; }
.card .btn.solid { min-height: 40px; }
