/* Grinders native checkout funnel — matches the Pizza Lab streetwear system */
#order-cart.flow {
  width: min(560px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  display: none;
  flex-direction: column;
  background: #f4f1e9;
  color: #111;
  border: 0;
  border-left: 1px solid #111;
  box-shadow: -14px 0 0 #e62629;
}
#order-cart.flow[open] { display: flex; animation: flow-in .32s cubic-bezier(.2,.8,.2,1) both; }
#order-cart.flow::backdrop { background: #000c; backdrop-filter: blur(6px); }
@keyframes flow-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.flow-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 20px 22px 14px; background: #111; color: #f4f1e9;
}
.flow-top h2 { font: 950 clamp(2rem, 6vw, 3rem)/.9 var(--heading); text-transform: uppercase; letter-spacing: -.05em; margin: 4px 0 0; }
.flow-top .close { background: #e62629; color: #111; border-radius: 0; flex: none; }
.flow-kicker { font: 700 .66rem var(--label); text-transform: uppercase; letter-spacing: .16em; color: #ff575b; margin: 0; }

.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #111; background: #f4f1e9; }
.flow-steps li { display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 46px; border-right: 1px solid #aaa69b; color: #8a867c; font: 700 .68rem var(--label); text-transform: uppercase; letter-spacing: .05em; transition: .2s; }
.flow-steps li:last-child { border-right: 0; }
.flow-steps li b { font-size: .62rem; }
.flow-steps li.is-done { color: #111; box-shadow: inset 0 -4px #111; }
.flow-steps li.is-active { background: #111; color: #fff; box-shadow: inset 0 -4px #e62629; }
.flow-steps li.is-active b { color: #ff4a4e; }

.flow-body { flex: 1; overflow-y: auto; padding: 22px; display: block; }
.flow-panel { animation: studio-in .28s ease-out both; }
.flow-panel h3 { font: 950 clamp(1.9rem, 6vw, 2.8rem)/.92 var(--heading); text-transform: uppercase; letter-spacing: -.055em; margin: 0 0 20px; }
.flow-panel label { display: grid; gap: 6px; margin-bottom: 12px; font: 700 .7rem var(--label); text-transform: uppercase; letter-spacing: .05em; }
.flow-panel label small { text-transform: none; letter-spacing: 0; color: #6d6960; }
.flow-panel input:not([type=radio]):not([type=checkbox]), .flow-panel textarea {
  width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid #111; border-radius: 0; background: #fff;
  font: 600 1rem system-ui, sans-serif; color: #111; text-transform: none; letter-spacing: 0;
}
.flow-panel textarea { min-height: 70px; resize: vertical; }
.flow-panel input:focus, .flow-panel textarea:focus { outline: 0; box-shadow: 4px 4px 0 #e62629; }
.flow-panel input:user-invalid { border-color: #c41419; box-shadow: 4px 4px 0 #c41419; }
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .82rem !important; }
.flow-check input { width: 20px; height: 20px; accent-color: #e62629; }

/* Bag */
.flow-flag[hidden] { display: none; }
.flow-flag { display: inline-block; background: #111; color: #fff; padding: 7px 11px; font: 700 .7rem var(--label); text-transform: uppercase; margin: 0 0 6px; }
#order-cart .cart-line { grid-template-columns: 1fr; padding: 14px 0; border-bottom: 1px solid #aaa69b; }
#order-cart .cart-line strong { font: 900 1rem/1.2 var(--heading); text-transform: uppercase; }
#order-cart .cart-line p { font: .72rem/1.4 var(--label); color: #6d6960; margin: 4px 0 0; }
#order-cart .cart-line-controls input { width: 4.2rem; min-height: 44px; border: 1px solid #111; border-radius: 0; text-align: center; font-weight: 700; }
#order-cart .cart-line-controls button { min-height: 44px; padding: 0 12px; background: transparent; border: 1px solid #aaa69b; font: 700 .66rem var(--label); text-transform: uppercase; cursor: pointer; }
#order-cart .cart-line-controls button:hover { border-color: #c41419; color: #c41419; }
#cart-lines > p { font: 900 1.4rem var(--heading); text-transform: uppercase; padding: 30px 0; }

.flow-upsell { margin: 22px 0 6px; }
.upsell-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin-top: 10px; }
.upsell-card { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding: 8px; text-align: left; background: #fff; border: 1px solid #aaa69b; cursor: pointer; transition: .16s; color: #111; }
.upsell-card:hover, .upsell-card:focus-visible { border-color: #111; transform: translateY(-3px); box-shadow: 4px 4px 0 #e62629; }
.upsell-art { display: grid; place-items: center; aspect-ratio: 4/3; overflow: hidden; background: #e62629; color: #111; font: 950 1.5rem var(--heading); }
.upsell-art img { width: 100%; height: 100%; object-fit: cover; }
.upsell-card strong { font: 900 .74rem/1.2 var(--heading); text-transform: uppercase; }
.upsell-card em { font: 700 .7rem var(--label); font-style: normal; color: #c41419; }

.flow-totals { margin-top: 18px; border-top: 2px solid #111; }
#order-cart .cart-subtotal, #order-cart .cart-discount:not([hidden]) { display: flex; justify-content: space-between; padding: 10px 0 0; font: 700 .78rem var(--label); text-transform: uppercase; }
#order-cart .cart-estimated-total { border-top: 1px solid #aaa69b; margin-top: 10px; padding-top: 12px; }
#order-cart .cart-estimated-total strong { font: 950 1.6rem var(--heading); color: #d31d22; }
.flow-fine { font: .66rem/1.5 var(--label); color: #6d6960; text-transform: uppercase; margin-top: 10px; }

/* How */
.fulfil-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 18px; }
.fulfil-tile { margin: 0 !important; }
.fulfil-tile input { position: absolute; opacity: 0; pointer-events: none; }
.fulfil-tile span { display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 16px 14px; border: 1px solid #aaa69b; background: #f8f5ed; cursor: pointer; transition: .18s; }
.fulfil-tile b { font: 950 1.6rem var(--heading); text-transform: uppercase; letter-spacing: -.04em; }
.fulfil-tile small { font: 700 .66rem/1.4 var(--label); color: #6d6960; text-transform: none; }
.fulfil-tile em { margin-top: auto; font: 700 .7rem/1.3 var(--label); font-style: normal; text-transform: none; }
.fulfil-tile input:checked + span { background: #e62629; border-color: #111; box-shadow: inset 0 0 0 2px #111; transform: translateY(-5px); }
.fulfil-tile input:checked + span small { color: #111; }
.fulfil-tile input:disabled + span { opacity: .45; cursor: not-allowed; }
.fulfil-tile input:focus-visible + span { outline: 3px solid #111; outline-offset: 2px; }
#delivery-address:not([hidden]) { display: block; border: 0; padding: 0; margin: 0; }
#delivery-address legend { font: 700 .66rem var(--label); text-transform: uppercase; letter-spacing: .15em; color: #c41419; margin-bottom: 10px; }

/* Review */
.flow-review { border-top: 2px solid #111; margin-bottom: 16px; }
.receipt-row { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid #aaa69b; align-items: baseline; }
.receipt-row span { font: 700 .64rem var(--label); text-transform: uppercase; color: #6d6960; }
.receipt-row strong { text-align: right; font: 800 .86rem/1.4 var(--heading); text-transform: uppercase; }
.flow-receipt { background: #111; color: #f4f1e9; padding: 4px 16px 10px; }
.flow-receipt .receipt-row { border-color: #444; }
.flow-receipt .receipt-row span { color: #b9b5ab; }
.flow-receipt .is-save strong { color: #7ee08f; }
.flow-receipt .is-total { border-bottom: 0; }
.flow-receipt .is-total span { color: #fff; }
.flow-receipt .is-total strong { font: 950 2rem var(--heading); color: #ff4a4e; }
.flow-secure { margin-top: 14px; font: 700 .68rem/1.5 var(--label); text-transform: uppercase; }

/* Footer */
.flow-foot { border-top: 1px solid #111; padding: 12px 22px calc(14px + env(safe-area-inset-bottom)); background: #f4f1e9; }
#checkout-status:not(:empty) { margin: 0 0 10px; padding: 10px 12px; background: #fff; border-left: 4px solid #e62629; font: 700 .74rem/1.4 var(--label); }
.flow-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.flow-back { min-height: 56px; padding: 0 16px; background: transparent; border: 1px solid #777268; color: #111; font: 700 .7rem var(--label); text-transform: uppercase; cursor: pointer; }
.flow-next.button { min-height: 56px; width: 100%; border-radius: 0; background: #111; color: #fff; border: 0; font: 800 .85rem var(--label); text-transform: uppercase; letter-spacing: .04em; box-shadow: 5px 5px 0 #e62629; transition: .15s; }
.flow-next.button:hover:not(:disabled) { background: #e62629; color: #111; box-shadow: 5px 5px 0 #111; }
.flow-next.button:disabled { opacity: .55; box-shadow: none; cursor: progress; }
#order-cart form:last-child { margin-top: 0; }

/* Thank you */
.flow-done { width: min(560px, calc(100% - 30px)); background: #e62629; color: #111; border: 1px solid #111; padding: clamp(26px, 5vw, 48px); box-shadow: 14px 14px 0 #f4f1e9; }
.flow-done::backdrop { background: #000c; backdrop-filter: blur(7px); }
.flow-done > img { width: min(220px, 60%); filter: brightness(0); margin-bottom: 26px; }
.flow-done h2 { font: 950 clamp(3rem, 9vw, 5.6rem)/.84 var(--heading); text-transform: uppercase; letter-spacing: -.06em; margin: 10px 0 20px; }
.flow-done .flow-kicker { color: #111; }
.flow-done p { font-family: var(--label); }
.flow-done .flow-fine { color: #111; }
.flow-done .close { position: absolute; right: 12px; top: 12px; background: #111; color: #fff; border-radius: 0; }
.flow-done .button { margin-top: 18px; background: #111; color: #fff; border-radius: 0; border: 0; min-height: 52px; padding: 0 22px; font: 800 .8rem var(--label); text-transform: uppercase; }

@media (max-width: 560px) {
  #order-cart.flow { box-shadow: none; border-left: 0; }
  .flow-steps li span { display: none; }
  .fulfil-tiles, .flow-row { grid-template-columns: 1fr; }
  .fulfil-tile span { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #order-cart.flow[open], .flow-panel { animation: none; }
  .upsell-card, .fulfil-tile span, .flow-next.button { transition: none; }
}

/* Hero: smaller headline + quick order widget */
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 5rem); line-height: .86; margin: 12px 0 14px; }
.hero-description { margin-bottom: 18px; }
.hero .actions { margin-top: 0; }
.quick-order { margin-top: 22px; max-width: 520px; background: #f4f1e9; color: #111; border: 1px solid #111; box-shadow: 8px 8px 0 #e62629; }
.quick-order[hidden] { display: none; }
.quick-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #111; color: #f4f1e9; }
.quick-head p { margin: 0; font: 950 1rem var(--heading); text-transform: uppercase; letter-spacing: -.02em; }
.quick-head span { font: 700 .64rem var(--label); text-transform: uppercase; color: #b9b5ab; text-align: right; }
.quick-head span.is-live { color: #7ee08f; }
.quick-head span.is-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #7ee08f; animation: quick-pulse 1.6s infinite; }
@keyframes quick-pulse { 50% { opacity: .25; } }
.quick-picks, .quick-sizes { display: grid; gap: 4px; padding: 10px 12px 0; }
.quick-picks { grid-template-columns: repeat(4, 1fr); }
.quick-sizes { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.quick-choice { margin: 0; }
.quick-choice input { position: absolute; opacity: 0; pointer-events: none; }
.quick-choice span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 46px; padding: 6px 8px; border: 1px solid #aaa69b; background: #fff; cursor: pointer; transition: .15s; }
.quick-choice b { font: 900 .72rem/1.15 var(--heading); text-transform: uppercase; }
.quick-choice small { font: 700 .62rem var(--label); color: #6d6960; }
.quick-choice input:checked + span { background: #e62629; border-color: #111; box-shadow: inset 0 0 0 2px #111; }
.quick-choice input:checked + span small { color: #111; }
.quick-choice input:focus-visible + span { outline: 3px solid #111; outline-offset: 1px; }
.quick-go { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 10px 12px 12px; }
.quick-buy.button { min-height: 52px; width: 100%; border-radius: 0; border: 0; background: #111; color: #fff; font: 800 .82rem var(--label); text-transform: uppercase; }
.quick-buy.button:hover:not(:disabled) { background: #e62629; color: #111; }
.quick-add { min-height: 52px; padding: 0 16px; border: 1px solid #111; background: transparent; color: #111; font: 800 .74rem var(--label); text-transform: uppercase; cursor: pointer; }
.quick-add.is-added { background: #111; color: #7ee08f; }
.quick-buy:disabled, .quick-add:disabled { opacity: .5; cursor: progress; }
@media (max-width: 560px) {
  .quick-picks { grid-template-columns: repeat(2, 1fr); }
  .quick-order { box-shadow: 5px 5px 0 #e62629; }
}
.hero-wrap { align-items: start; padding-block: 22px 44px; }
.hero-copy { align-self: start; padding: 6px 0 0; }
.hero .eyebrow { margin-bottom: 4px; }
.hero h1 { font-size: clamp(2.2rem, 4.1vw, 4.4rem); margin: 8px 0 10px; }
.hero-description { margin-bottom: 0; font-size: 1rem; }
.quick-order { margin-top: 16px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0 12px 12px; }
.quick-links a { font: 700 .66rem var(--label); text-transform: uppercase; color: #111; text-decoration: underline; text-underline-offset: 3px; }
.quick-links a:hover { color: #c41419; }

/* Pizza Lab: compact, flush with the rest of the page */
#builder > .wrap.section { padding-block: 44px 52px; }
.studio-intro { margin-bottom: 18px; gap: 24px; align-items: end; }
.studio-intro h2 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: .86; margin-top: 8px; }
.studio-intro > p { font-size: .72rem; line-height: 1.6; }
.studio-shell { min-height: 0; grid-template-columns: minmax(250px, .58fr) minmax(0, 1.42fr); }
.studio-product { min-height: 0; }
.studio-product::after { font-size: clamp(3rem, 5vw, 5.5rem); }
.studio-edition { padding: 10px 14px; }
.studio-photo { flex: 1 1 auto; min-height: 0; height: 300px; padding: 16px; }
.studio-photo::before { width: 70%; box-shadow: 0 0 0 20px #ffffff0d, 0 0 0 40px #ffffff0b; }
.studio-photo img { width: auto; height: 100%; max-height: 270px; max-width: 100%; }
.studio-live { padding: 12px 14px; }
.studio-live b { font-size: 1.25rem; }
.studio-tabs button { min-height: 48px; padding: 8px 14px; }
.studio-panel { padding: 22px 26px; }
.studio-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin: 6px 0 16px; }
.studio-sizes span { min-height: 84px; padding: 10px; }
.studio-sizes b { font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
.studio-toppings { grid-template-columns: repeat(4, 1fr); }
.studio-toppings span { min-height: 44px; padding: 7px 9px; font-size: .62rem; }
.studio-toppings span > svg { width: 22px; height: 22px; flex: none; }
.studio-next { margin-top: 16px; min-height: 46px; }
.studio-panel-actions { padding-top: 16px; }
.studio-receipt > div { padding: 10px 0; }
.studio-receipt .studio-total strong { font-size: 1.5rem; }
.studio-order { min-height: 50px; }
@media (max-width: 900px) {
  .studio-intro { grid-template-columns: 1fr; gap: 10px; }
  .studio-shell { grid-template-columns: 1fr; }
  .studio-photo { height: 220px; }
  .studio-photo img { max-height: 200px; }
  .studio-toppings { grid-template-columns: repeat(2, 1fr); }
  .studio-sizes { grid-template-columns: repeat(3, 1fr); }
}
