.mini-cart, .palette-add, .size-grid { --pink-dark: #ca1765; }
/* Quick-add: one row per size, in bags. */
.size-grid { grid-column: 1 / -1; display: grid; gap: 2px; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 6px; }
.size-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name price stepper" "bag price stepper"; align-items: center; column-gap: 10px; min-height: 48px; font-size: 13px; }
.size-name { grid-area: name; font-weight: 750; align-self: end; }
.size-bag { grid-area: bag; color: var(--muted); font-size: 12px; align-self: start; }
.size-price { grid-area: price; font-variant-numeric: tabular-nums; font-weight: 700; }
.size-row .stepper { grid-area: stepper; }
.size-row.in-cart .size-name { color: var(--pink-dark); }
.size-row.out { color: #9a94a1; }
.size-row.out .size-name, .size-row.out .size-price { color: #9a94a1; font-weight: 600; }
.size-row.out .stepper { display: none; }
.size-status { grid-area: stepper; justify-self: end; min-width: 132px; min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; font-size: 12px; font-weight: 700; color: #7d7684; }
a.size-status { color: var(--pink-dark); }
.stepper { display: inline-grid; grid-template-columns: 44px 36px 44px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: white; }
.stepper button { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 20px; font-weight: 700; color: var(--ink); cursor: pointer; }
.stepper button:disabled { color: #c9c4cd; cursor: default; }
.stepper output { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.palette-add { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.palette-add h3 { margin: 0 0 8px; font-size: 14px; }
.palette-add-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.palette-add select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: white; font: inherit; font-weight: 700; }
.palette-add .secondary-button { flex: 1 1 150px; min-height: 44px; }
/* Sticky mini-cart: total bags, subtotal and checkout. */
.mini-cart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right)); background: white; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(24, 18, 28, .1); }
.mini-cart[hidden] { display: none; }
.mini-cart-lines { flex: 1; min-width: 0; }
.mini-cart-lines summary { display: flex; align-items: center; min-height: 44px; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums; }
.mini-cart-lines ul { position: absolute; left: 0; right: 0; bottom: 100%; max-height: 45vh; overflow-y: auto; margin: 0; padding: 8px 12px; list-style: none; background: white; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(24, 18, 28, .1); font-size: 13px; }
.mini-cart-lines li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.checkout-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--pink-dark); color: white; font-weight: 850; text-decoration: none; }
body.has-cart { padding-bottom: 84px; }
body.has-cart .toast { bottom: 96px; }
@media (min-width: 900px) { .mini-cart { left: auto; right: 24px; bottom: 24px; width: 420px; border: 1px solid var(--line); border-radius: 18px; } .mini-cart-lines ul { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; } }

.size-options-note { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
