/* Ordering on the website: cart button, product sizes + add to cart, cart drawer, checkout, map pin. */
html.locked, html.locked body { overflow: hidden; }
[hidden] { display: none !important; }

.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-family: var(--serif); font-weight: 700; color: var(--green); }
.cart-ico { width: 20px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22' fill='none' stroke='%231F3326' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/><circle cx='9' cy='20' r='1.3'/><circle cx='20' cy='20' r='1.3'/></svg>"); }
.cart-count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--line); color: var(--ink); font-size: 13px; display: grid; place-items: center; padding: 0 5px; font-family: var(--text); }
.cart-btn.has .cart-count { background: var(--clay); color: #fff; }

/* product cards: sizes + add to cart */
.card { cursor: default; }
.card .sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.card .size { font-family: var(--text); font-size: 15px; padding: 3px 12px; border: 1px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.card .size.on { background: var(--green); border-color: var(--green); color: #F6EBD0; }
.card .size.solo { cursor: default; }
.card .pre-note { font-size: 14px; color: var(--clay); font-style: italic; }
.card .foot-row { align-items: center; }
.card .add { font-family: var(--serif); font-weight: 700; font-size: 17px; background: var(--green); color: #F6EBD0; border: 0; padding: 8px 16px; cursor: pointer; border-radius: 2px; }
.card .add:hover { background: var(--green-2); }
.card .add:disabled { background: #B9AE98; cursor: not-allowed; }
.card .in-cart { font-size: 14px; color: var(--green); font-style: italic; margin-top: 6px; }

/* overlay + cart drawer */
.veil { position: fixed; inset: 0; background: rgba(20, 16, 10, .45); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 100; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0, 0, 0, .25); }
.drawer-head, .map-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3, .map-head h3 { font-family: var(--serif); font-size: 26px; color: var(--green); }
.x { background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 20px; }
.empty { text-align: center; color: var(--ink-soft); font-style: italic; margin-top: 40px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img, .line .ph0 { width: 64px; height: 64px; object-fit: cover; background: var(--paper-2); }
.line-txt b { display: block; font-family: var(--serif); font-size: 19px; color: var(--green); line-height: 1.15; }
.line-txt span { font-size: 15px; color: var(--ink-soft); }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); background: #fff; cursor: pointer; font-size: 17px; line-height: 1; color: var(--green); }
.qty em { font-style: normal; min-width: 16px; text-align: center; }
.qty a { font-size: 14px; color: var(--clay); margin-left: 6px; }
.line strong { font-family: var(--serif); font-size: 19px; }
.drawer-foot { padding: 16px 20px 22px; border-top: 1px solid var(--line); background: var(--card); }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 18px; }
.sum b { font-family: var(--serif); font-size: 26px; }
.wide { width: 100%; text-align: center; cursor: pointer; }

/* checkout */
.checkout { position: fixed; inset: 0; z-index: 110; background: var(--paper); overflow-y: auto; }
.co-in { max-width: 1060px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) 60px; }
.co-head .back { background: none; border: 0; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--clay); cursor: pointer; padding: 0; }
.co-head h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 50px); color: var(--green); margin-top: 8px; }
.co-head p { color: var(--ink-soft); font-style: italic; }
.co-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; margin-top: 22px; align-items: start; }
.co-form h3, .co-sum h3 { font-family: var(--serif); font-size: 24px; color: var(--green); margin: 22px 0 10px; }
.co-form h3:first-child { margin-top: 0; }
.co-form label { display: block; font-size: 16px; color: var(--ink-soft); margin-bottom: 12px; }
.co-form label small { font-style: italic; }
.co-form input:not([type=radio]) { display: block; width: 100%; margin-top: 5px; padding: 12px 14px; font-family: var(--text); font-size: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 2px; }
.co-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.co-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-form .radio { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--ink); cursor: pointer; }
.co-form .radio input { width: 18px; height: 18px; accent-color: var(--green); }
.hint { font-size: 14.5px; color: var(--ink-soft); font-style: italic; line-height: 1.5; margin: 4px 0 10px; }
.pin { width: 100%; padding: 14px; border: 1px dashed var(--clay); background: #fff; color: var(--clay); font-family: var(--serif); font-weight: 700; font-size: 18px; cursor: pointer; }
.pin.done { border-style: solid; border-color: var(--green); color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--text); font-size: 15.5px; padding: 7px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; }
.chip.on { background: var(--green); border-color: var(--green); color: #F6EBD0; }
.co-sum { background: var(--card); border: 1px solid var(--line); padding: 22px; position: sticky; top: 16px; }
.co-sum h3 { margin-top: 0; }
.sl { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 17px; }
.sl small { color: var(--ink-soft); }
.sl.sub { color: var(--ink-soft); font-size: 15.5px; }
.sl.tot { border-bottom: 0; font-size: 20px; margin-bottom: 14px; }
.sl.tot b { font-family: var(--serif); font-size: 26px; }
.err { background: #F6E1D8; color: #7A2E12; border: 1px solid #D9A58C; padding: 10px 12px; margin-bottom: 12px; font-size: 16px; }
.co-done { max-width: 560px; margin: 40px auto; text-align: center; }
.tick { width: 78px; height: 78px; border-radius: 50%; background: var(--green); color: #fff; font-size: 40px; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold); }
.co-done h2 { font-family: var(--serif); font-size: 44px; color: var(--green); }
.co-done .code { font-family: var(--serif); font-weight: 700; color: var(--clay); font-size: 19px; margin: 6px 0 10px; }
.co-done .btn { margin-top: 18px; }
.pay { background: var(--card); border: 1px solid var(--line); padding: 18px; margin: 16px 0; }
.pay .btn { cursor: pointer; }
.pay-msg { color: #7A2E12; font-size: 15px; }
.paid { color: var(--green); font-weight: 600; font-size: 18px; }
.btn-ghostdark { background: transparent; color: var(--green); border: 1px solid var(--green); cursor: pointer; }
.btn-ghostdark:hover { background: var(--green); color: #F6EBD0; }

/* map pin */
.mapbox { position: fixed; inset: 0; z-index: 120; background: var(--paper); display: flex; flex-direction: column; }
.map-hint { padding: 8px 20px; color: var(--ink-soft); font-style: italic; font-size: 16px; }
.map-wrap { position: relative; flex: 1; }
#map { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 34px; height: 46px; margin: -46px 0 0 -17px; z-index: 500; pointer-events: none; background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 46'><path d='M17 45C17 45 2 27 2 16a15 15 0 0 1 30 0c0 11-15 29-15 29z' fill='%239C4A2B' stroke='white' stroke-width='2'/><circle cx='17' cy='16' r='5.5' fill='white'/></svg>"); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.map-status { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 600; background: rgba(31, 51, 38, .92); color: #F6EBD0; padding: 8px 14px; font-size: 15px; border-radius: 999px; max-width: 90%; text-align: center; }
.map-status:empty { display: none; }
.map-foot { display: flex; gap: 10px; padding: 14px 20px 20px; border-top: 1px solid var(--line); background: var(--card); }
.map-foot .btn { flex: 1; text-align: center; cursor: pointer; }

/* toast */
.toast { position: fixed; left: 50%; top: 78px; transform: translate(-50%, -16px); opacity: 0; z-index: 200; background: var(--green); color: #F6EBD0; padding: 12px 20px; font-size: 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: opacity .25s, transform .25s; pointer-events: none; max-width: 92vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .cart-btn { margin-left: auto; }
  .menu { margin-left: 8px; }
}
@media (max-width: 520px) {
  .brand small { display: none; }
  .brand b { font-size: 20px; }
  .brand img { width: 38px; height: 38px; }
  .cart-btn { padding: 6px 10px; }
}
@media (max-width: 860px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-sum { position: static; }
  .map-foot { flex-direction: column; }
}

/* floating cart button, shown on every part of the page once the cart has something in it */
.fab-cart { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #F6EBD0; border: 0; border-radius: 999px; padding: 12px 18px 12px 14px; font-family: var(--serif); font-weight: 700; font-size: 18px; cursor: pointer; box-shadow: 0 0 0 2px var(--gold-2), 0 12px 30px rgba(0, 0, 0, .3); }
.fab-cart .cart-ico { filter: invert(1) sepia(.3) brightness(1.6); }
.fab-count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--clay); color: #fff; font-family: var(--text); font-size: 13px; display: grid; place-items: center; padding: 0 6px; }
html.locked .fab-cart { display: none; }
