.add,.subtle,.step {
  border:1px solid #ccced0;border-radius:4px;background:white;color:var(--ink);
  min-height:44px;padding:8px 13px;font-weight:600;font-size:.875rem
}
.add {background:var(--brand-action);border-color:var(--brand-action);color:white}
.add:hover:enabled {background:var(--brand-ink)}
.add:disabled,.step:disabled {background:#f1f2f2;color:#696c70;border-color:#e4e5e6;cursor:default}
#confirm-removal,#checkout {position:fixed;inset:0;block-size:fit-content;max-block-size:calc(100dvh - 32px);border:0;color:var(--ink);box-shadow:0 20px 70px #11273133;overflow:auto}
dialog::backdrop {background:#12131675}
.cart-heading,.cart-total,.line-title,.line-controls {display:flex;align-items:center;justify-content:space-between;gap:12px}
.cart-heading {margin-bottom:28px}.cart-heading h2 {font-size:2rem}
.cart-total {border-top:1px solid var(--ink);padding-top:18px;font-size:1.25rem}
.cart-line {padding:18px 0;border-top:1px solid var(--rule)}
.line-title {align-items:start}.line-title strong:last-child {white-space:nowrap}
.line-controls {justify-content:start;margin-top:12px}.step {min-width:44px}
.line-controls .subtle {margin-left:auto}
.visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body:has(dialog[open]) {overflow:hidden}
.masthead {position:sticky;top:0;z-index:5}
html {scroll-padding-top:80px}
@media(max-width:760px) {html {scroll-padding-top:116px}}
.cart-flight {
  position:fixed;z-index:6;pointer-events:none;width:72px;height:52px;
  object-fit:cover;border:2px solid white;border-radius:10px;
  box-shadow:0 4px 16px #13283042;
}
@media(prefers-reduced-motion:reduce) {.cart-flight {display:none}}


#empty {padding:28px 20px;margin-block:24px;text-align:center;background:#f2f6f8;border-radius:12px}
#empty p {margin:0 0 10px}
.empty-link {display:inline-flex;align-items:center;min-height:44px;color:var(--brand-ink);font-weight:600;text-decoration:underline;text-underline-offset:4px}
.line-controls {flex-wrap:wrap}
.line-title strong:first-child {min-width:0;overflow-wrap:anywhere}

.in-cart:not(:empty) {
  display:inline-flex;align-items:center;gap:6px;padding:4px 10px;
  background:#e4f4ed;color:#16543c;border-radius:20px;font-weight:600;
}
.add {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
}
.add::before {
  content:"";width:12px;height:12px;
  background:linear-gradient(currentColor,currentColor) center / 10px 2px no-repeat,
    linear-gradient(currentColor,currentColor) center / 2px 10px no-repeat;
}
.add:disabled:not(.added)::before {display:none}
.add.added {background:#186449;border-color:#186449;color:white}
.add.added::before {
  width:12px;height:7px;background:none;border:solid currentColor;
  border-width:0 0 2px 2px;transform:translateY(-2px) rotate(-45deg);
}
.in-cart:not(:empty)::before {
  content:"";width:8px;height:4px;border:solid currentColor;
  border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg);
}
@media (prefers-reduced-motion:no-preference) {
  :is(.add,.step,.subtle,.mast-cart,.hero-link,.filters button) {
    transition:transform 150ms ease-out,background-color 160ms ease-out;
  }
  :is(.add,.step,.subtle,.mast-cart,.filters button):enabled:active,.hero-link:active {
    transform:scale(.96);
  }
  .hero-link span {display:inline-block;transition:transform 180ms ease-out}
  .add::before {transition:transform 160ms ease-out}
  .hero-link:is(:hover,:focus-visible) span {transform:translateX(4px)}
  #checkout[open],#confirm-removal[open] {animation:popup-in 160ms ease-out}
  @keyframes popup-in {from {opacity:0;transform:translateY(6px) scale(.98)}}

}

.cart-page {width:min(90%,760px);margin:clamp(28px,5vw,64px) auto}
.cart-page h1 {font-size:clamp(2.4rem,5vw,4rem);margin:18px 0 30px}
.back-link {color:var(--brand-ink);text-decoration:underline;text-underline-offset:4px}
.cart-page .cart-line {background:white;border:1px solid var(--rule);border-radius:12px;padding:20px;margin:12px 0}
.cart-page .cart-total {margin-top:24px}
.cart-total[hidden] {display:none}
#confirm-removal {width:min(92%,28rem);height:fit-content;margin:auto;border-radius:14px;padding:26px}
#confirm-removal h2 {margin:0;line-height:1.2}
#remove-description {overflow-wrap:anywhere;color:var(--muted)}
.confirm-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.remove-confirm {background:#9c302a;color:white;border-color:#9c302a}
.checkout-action {background:var(--brand-action);color:white;font-weight:650;border:0;border-radius:8px;min-height:44px;padding:10px 18px}
.checkout-action:hover {background:var(--brand-ink)}
#checkout {width:min(94%,32rem);height:auto;max-height:90dvh;margin:auto;border-radius:14px;padding:clamp(18px,4vw,32px)}
#checkout h2 {margin:0}
#pickup-address {margin:14px 0 4px;padding:12px 14px;background:#f2f6f8;border-radius:8px;font-style:normal;line-height:1.45}
#checkout-form label {display:grid;gap:4px;margin-top:14px;font-weight:600;font-size:.9rem}
#checkout-form :is(input,textarea) {font:inherit;font-weight:400;width:100%;box-sizing:border-box;min-height:44px;padding:9px 10px;border:1px solid #8a9094;border-radius:6px;background:white;color:var(--ink)}
#checkout-form textarea {resize:vertical}
#checkout-form .detail strong {color:var(--ink);overflow-wrap:anywhere}
#checkout-form .cart-total {margin-top:18px}
#checkout .confirm-actions {margin-top:20px}
#checkout-error {margin:14px 0 0}
#confirm-order:disabled {opacity:.65;cursor:progress}
.checkout-start {margin-top:16px}
.checkout-start[hidden],.pickup-note[hidden],#cart-error[hidden],#checkout-error[hidden] {display:none}
.checkout-start .detail {margin:8px 0 0}
a.checkout-action {display:inline-flex;align-items:center;text-decoration:none}
.pickup-note {margin:10px 0 0;color:var(--muted)}
#cart-error {border-radius:8px;margin-bottom:12px}

.offer-window {width:min(94%,42rem);max-height:85dvh;margin:auto;padding:0;border:0;border-radius:16px;color:var(--ink);box-shadow:0 20px 70px #11273140}
.offer-window-heading {display:flex;gap:14px;align-items:center;padding:20px;background:#f2f7fa;border-bottom:1px solid var(--rule)}
.offer-window-heading .meta {margin:0 0 4px}
.offer-window-heading h2 {margin:0;padding:0;font-size:1.45rem}
.offer-thumb img {display:block;width:86px;height:60px;object-fit:cover;border-radius:6px}
.offer-window-heading form {margin-left:auto}
.offer-window-body {padding:4px 20px 14px}
.offer-window .offers li {align-items:center;padding:14px 0;margin:0}
.offer-window .offers li:first-child {border-top:0}
.offer-window .offer-actions {justify-content:flex-end;margin-top:4px}
.offer-window .in-cart {order:-1}
@media(min-width:650px) {
  .offer-window .offers li {grid-template-columns:minmax(0,1fr) auto minmax(8rem,auto);column-gap:18px}
  .offer-window .offers .detail {grid-row:2;grid-column:1}
  .offer-window .stock {grid-row:2;grid-column:2}
  .offer-window .offer-actions {grid-column:3;grid-row:1/3;flex-direction:column;margin:0;gap:4px}
  .offer-window .in-cart {order:1}
  .offer-window .in-cart:empty {display:none}
}
@media(max-width:480px) {
  .offer-thumb img {width:52px;height:52px}
  .offer-window-heading {gap:10px;padding:14px}
  .offer-window-heading h2 {font-size:1.15rem}
  .offer-window-body {padding-inline:14px}
}
