/* Online shop (customer-facing). Marketplace-style layout; --brand comes from shop settings. */
:root {
    --brand: #DD2E5F;
    --brand-ink: #fff;
    --brand-dark: color-mix(in srgb, var(--brand) 80%, #000);
    --brand-deep: color-mix(in srgb, var(--brand) 62%, #000);
    --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
    --brand-line: color-mix(in srgb, var(--brand) 35%, #fff);
    --ink: #0f1111;
    --muted: #565959;
    --line: #d5d9d9;
    --bg: #eaeded;
    --ok: #007600;
    --warn: #b12704;
    --amber-soft: #fff4e0;
    --red: #b12704;
    --red-soft: #fdecec;
    --radius: 8px;
    --shadow: 0 2px 5px rgba(15, 17, 17, .15);
    --font: "Amazon Ember", Arial, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.shop { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.4; font-size: 14px; }
:where(.shop) a { color: inherit; text-decoration: none; }
.shop img { max-width: 100%; display: block; }
:where(.shop) :is(button, input, select, textarea) { font: inherit; color: inherit; }
.shop-wrap { width: min(1500px, 100% - 28px); margin: 0 auto; }
.shop-muted { color: var(--muted); }
.shop-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.shop-link { color: var(--brand-dark); }
.shop-link:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Header: brand belt + sub nav ---------- */
.shop-preview-bar { background: #232f3e; color: #ffd8e2; font-size: .82rem; text-align: center; padding: 6px 12px; }
.shop-preview-bar a { text-decoration: underline; color: #fff; }
.shop-header { position: sticky; top: 0; z-index: 30; }
.shop-belt { background: var(--brand); color: var(--brand-ink); }
.shop-belt-row { display: flex; align-items: center; gap: 6px; height: 60px; }
.shop-belt a, .shop-belt .shop-belt-item { border: 1px solid transparent; border-radius: 3px; padding: 6px 8px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.shop-belt a:hover { border-color: var(--brand-ink); }
.shop-brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.shop-brand-mark {
    width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
    background: var(--brand-ink); color: var(--brand); font-size: 1.05rem; font-weight: 900;
}
.shop-belt-small { display: flex; flex-direction: column; line-height: 1.15; }
.shop-belt-small small { font-size: .75rem; opacity: .85; }
.shop-belt-small strong { font-size: .88rem; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.shop-belt svg { width: 20px; height: 20px; flex-shrink: 0; }

.shop-search { flex: 1; display: flex; height: 40px; border-radius: 6px; overflow: hidden; margin: 0 8px; min-width: 0; }
.shop-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ink) 70%, transparent); }
.shop-search select {
    border: 0; background: #e6e6e6; color: #555; padding: 0 8px; font-size: .8rem; max-width: 130px; border-right: 1px solid #cdcdcd; cursor: pointer;
}
.shop-search input { flex: 1; min-width: 0; border: 0; padding: 0 12px; font-size: 1rem; outline: none; background: #fff; color: var(--ink); }
.shop-search button {
    width: 48px; border: 0; background: var(--brand-deep); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.shop-search button:hover { background: color-mix(in srgb, var(--brand) 50%, #000); }
.shop-search button svg { width: 22px; height: 22px; }

.shop-cart-link { position: relative; align-items: flex-end !important; font-weight: 800; }
.shop-cart-icon { position: relative; display: inline-block; }
.shop-cart-icon svg { width: 36px; height: 30px; }
.shop-cart-count {
    position: absolute; top: -6px; left: 50%; transform: translateX(-30%);
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand-ink); color: var(--brand);
    font-size: .8rem; font-weight: 900; display: grid; place-items: center;
}
.shop-cart-count[hidden] { display: none; }
.shop-cart-count.is-bump { animation: shop-bump .35s ease; }
@keyframes shop-bump { 50% { transform: translateX(-30%) scale(1.35); } }

.shop-subnav { background: var(--brand-deep); color: #fff; font-size: .9rem; }
.shop-subnav-row { display: flex; align-items: center; gap: 2px; height: 39px; overflow-x: auto; scrollbar-width: none; }
.shop-subnav-row::-webkit-scrollbar { display: none; }
.shop-subnav a { padding: 6px 9px; border: 1px solid transparent; border-radius: 3px; white-space: nowrap; }
.shop-subnav a:hover, .shop-subnav a.is-active { border-color: #fff; }
.shop-subnav a.shop-subnav-all { font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.shop-subnav-note { margin-left: auto; white-space: nowrap; font-weight: 700; padding-left: 12px; }
.shop-open-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.shop-open-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.shop-open-pill.is-open { color: #7dffb0; }
.shop-open-pill.is-closed { color: #ffd08a; }

/* ---------- Flash + page basics ---------- */
.shop-flash { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius); font-weight: 700; border: 1px solid; background: #fff; }
.shop-flash--success { border-color: #067d62; color: #067d62; box-shadow: inset 6px 0 0 #067d62; }
.shop-flash + :not(.shop-flash) { margin-top: 14px; }
.shop-flash--error { border-color: var(--red); color: var(--red); box-shadow: inset 6px 0 0 var(--red); }

main.shop-main { padding: 0 0 40px; min-height: 60vh; }
main.shop-main > .shop-wrap > :first-child:not(.shop-hero):not(.shop-flash) { margin-top: 18px; }
.shop-title { font-size: 1.75rem; font-weight: 400; margin: 0 0 4px; }
.shop-subtitle { margin: 0 0 16px; color: var(--muted); }
.shop-section { margin-top: 20px; }
.shop-box { background: #fff; padding: 20px; }
.shop-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.shop-section-head h2 { margin: 0; font-size: 1.3rem; font-weight: 700; }

/* ---------- Home ---------- */
.shop-hero {
    position: relative; height: 340px; margin: 0 -14px; padding: 30px 48px 0; color: var(--brand-ink);
    background:
        linear-gradient(to bottom, transparent 55%, var(--bg) 100%),
        radial-gradient(circle at 80% 10%, color-mix(in srgb, #fff 22%, transparent), transparent 45%),
        linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 70%, var(--brand-deep) 100%);
}
.shop-hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; max-width: 720px; }
.shop-hero p { margin: 0 0 14px; font-size: 1.05rem; opacity: .92; max-width: 640px; }
.shop-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-hero-meta span { background: color-mix(in srgb, #000 22%, transparent); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }

.shop-tiles { position: relative; z-index: 1; margin-top: -130px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.shop-tile { background: #fff; padding: 20px 20px 16px; display: flex; flex-direction: column; min-height: 380px; }
.shop-tile h2 { margin: 0 0 12px; font-size: 1.3rem; line-height: 1.2; }
.shop-tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px 14px; flex: 1; }
.shop-tile-grid a { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--ink); }
.shop-tile-grid a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-tile-thumb { aspect-ratio: 1 / 1; background: #f7f7f7; display: grid; place-items: center; overflow: hidden; }
.shop-tile-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.shop-tile-thumb .shop-placeholder { font-size: 1.6rem; }
.shop-tile-more { margin-top: 12px; font-size: .85rem; }
.shop-tile-info { gap: 10px; }
.shop-tile-info dl { margin: 0; display: grid; gap: 10px; }
.shop-tile-info dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.shop-tile-info dd { margin: 0; font-weight: 700; font-size: .98rem; }
.shop-tile-steps { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; display: grid; gap: 4px; }

.shop-row { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.shop-row > * { scroll-snap-align: start; }

/* ---------- Product grid + card ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.shop-card { background: #fff; display: flex; flex-direction: column; position: relative; border: 1px solid #e7e7e7; border-radius: 4px; overflow: hidden; }
.shop-card:hover { box-shadow: var(--shadow); }
.shop-card-media { aspect-ratio: 1 / 1; background: #f7f7f7; display: grid; place-items: center; overflow: hidden; }
.shop-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.shop-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800;
    color: var(--brand); background: linear-gradient(135deg, var(--brand-soft), #fafafa);
}
.shop-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.shop-card-name { font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-name:hover { color: var(--brand-dark); }
.shop-card-meta { font-size: .8rem; color: var(--muted); }
.shop-card-deal { display: flex; align-items: center; gap: 6px; font-size: .78rem; flex-wrap: wrap; }
.shop-deal-tag { background: var(--brand); color: var(--brand-ink); font-weight: 800; padding: 3px 6px; border-radius: 2px; font-size: .72rem; }
.shop-deal-text { color: var(--brand-dark); font-weight: 700; }
.shop-card-stock { font-size: .8rem; }
.shop-card .shop-add { margin-top: auto; padding-top: 8px; }
.shop-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.shop-badge { font-size: .7rem; font-weight: 800; padding: 3px 7px; border-radius: 3px; }
.shop-badge--offer { background: var(--brand); color: var(--brand-ink); }
.shop-badge--id { background: #232f3e; color: #fff; }
.shop-badge--low { background: var(--amber-soft); color: var(--warn); }
.shop-badge--out { background: #f0f2f2; color: var(--muted); }

/* Marketplace-style price: $ 2 49 */
.shop-price { display: inline-flex; align-items: flex-start; font-weight: 400; color: var(--ink); line-height: 1; }
.shop-price sup { font-size: .8rem; position: relative; top: .3em; }
.shop-price-whole { font-size: 1.75rem; }
.shop-price--sm sup { font-size: .72rem; top: .2em; }
.shop-price--sm .shop-price-whole { font-size: 1.4rem; }
.shop-price--lg sup { font-size: .95rem; }
.shop-price--lg .shop-price-whole { font-size: 2.3rem; }

/* ---------- Buttons ---------- */
.shop-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--brand-dark); background: var(--brand); color: var(--brand-ink); font-weight: 600; cursor: pointer; text-align: center;
    box-shadow: 0 2px 5px color-mix(in srgb, var(--brand) 25%, transparent); font-size: .9rem;
}
.shop-btn:hover { background: var(--brand-dark); }
.shop-btn:disabled, .shop-btn.is-disabled { background: #f0f2f2; border-color: #d5d9d9; color: #8d9696; box-shadow: none; cursor: not-allowed; }
.shop-btn--block { width: 100%; }
.shop-btn--lg { padding: 11px 20px; font-size: 1rem; }
.shop-btn--dark { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.shop-btn--dark:hover { background: color-mix(in srgb, var(--brand) 50%, #000); }
.shop-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 2px 5px rgba(213, 217, 217, .5); }
.shop-btn--ghost:hover { background: #f7fafa; }
.shop-btn--danger { background: var(--red); border-color: var(--red); color: #fff; }

/* Quantity */
.shop-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f0f2f2; box-shadow: 0 2px 5px rgba(15,17,17,.12); }
.shop-qty button { width: 32px; height: 32px; border: 0; background: transparent; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.shop-qty button:hover { background: #e3e6e6; }
.shop-qty input { width: 44px; height: 32px; border: 0; text-align: center; font-weight: 700; background: #fff; -moz-appearance: textfield; }
.shop-qty input::-webkit-outer-spin-button, .shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Results page ---------- */
.shop-results-bar { background: #fff; margin: 0 -14px; padding: 10px 14px; box-shadow: 0 2px 4px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shop-results-bar strong.shop-q { color: var(--warn); }
.shop-results-bar select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #f0f2f2; box-shadow: 0 2px 5px rgba(15,17,17,.12); font-size: .85rem; }
.shop-results { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.shop-filters { font-size: .9rem; }
.shop-filters h3 { font-size: .95rem; margin: 0 0 8px; }
.shop-filters ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.shop-filters a:hover { color: var(--brand-dark); }
.shop-filters a.is-active { font-weight: 800; color: var(--brand-dark); }
.shop-pager { display: flex; justify-content: center; gap: 0; margin-top: 22px; flex-wrap: wrap; }
.shop-pager a, .shop-pager span { min-width: 42px; padding: 10px 14px; background: #fff; text-align: center; border: 1px solid var(--line); margin-left: -1px; }
.shop-pager a:hover { background: #f7fafa; }
.shop-pager .is-current { border-color: var(--ink); font-weight: 800; position: relative; z-index: 1; }
.shop-empty { text-align: center; padding: 48px 16px; background: #fff; }

/* ---------- Product page ---------- */
.shop-crumbs { font-size: .82rem; color: var(--muted); padding: 10px 0; }
.shop-crumbs a:hover { color: var(--brand-dark); text-decoration: underline; }
.shop-product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) 290px; gap: 28px; background: #fff; padding: 24px; align-items: start; }
.shop-product-media { aspect-ratio: 1 / 1; background: #fff; overflow: hidden; display: grid; place-items: center; position: sticky; top: 120px; }
.shop-product-media img { width: 100%; height: 100%; object-fit: contain; }
.shop-product-media .shop-placeholder { border-radius: 8px; }
.shop-product h1 { margin: 0 0 4px; font-size: 1.6rem; font-weight: 400; line-height: 1.25; }
.shop-product-brand { color: var(--brand-dark); font-size: .9rem; }
.shop-product hr { border: 0; border-top: 1px solid #e7e7e7; margin: 12px 0; }
.shop-offer-list { margin: 8px 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.shop-offer-list li { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.shop-about { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.shop-specs { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .9rem; }
.shop-specs dt { font-weight: 700; }
.shop-specs dd { margin: 0; }
.shop-buybox { border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; gap: 10px; }
.shop-buybox .shop-qty { justify-self: start; }
.shop-buybox-pickup { font-size: .9rem; }
.shop-buybox-pickup strong { display: block; }
.shop-buybox-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .82rem; color: var(--muted); }
.shop-buybox-row dd { margin: 0; color: var(--ink); }
.shop-stock { font-size: 1.1rem; }
.shop-stock.is-in { color: var(--ok); }
.shop-stock.is-low { color: var(--warn); }
.shop-stock.is-out { color: var(--red); }
.shop-notice { padding: 12px 14px; border-radius: 8px; background: #f0f2f2; color: var(--ink); font-size: .9rem; margin: 12px 0; border: 1px solid var(--line); }
.shop-notice--id { background: #fff8e6; border-color: #f0c36d; color: #5c3b00; }
.shop-notice--warn { background: var(--amber-soft); border-color: #f0c36d; color: #7a3d00; }

/* ---------- Cart + checkout ---------- */
.shop-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.shop-panel { background: #fff; padding: 20px; }
.shop-panel h2 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 700; }
.shop-panel-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
.shop-panel-head h1 { margin: 0; font-size: 1.75rem; font-weight: 400; }
.shop-sticky { position: sticky; top: 120px; }
.shop-line { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid #ddd; }
.shop-line-thumb { width: 150px; height: 150px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.shop-line-thumb img { width: 100%; height: 100%; object-fit: contain; }
.shop-line-thumb .shop-placeholder { font-size: 2rem; border-radius: 6px; }
.shop-line-name { font-size: 1.1rem; line-height: 1.3; }
.shop-line-name:hover { color: var(--brand-dark); }
.shop-line-sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.shop-line-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; font-size: .85rem; }
.shop-line-controls .shop-sep { color: #ddd; }
.shop-line-total { font-weight: 800; font-size: 1.1rem; text-align: right; white-space: nowrap; }
.shop-line-save { color: var(--ok); font-size: .82rem; font-weight: 700; margin-top: 2px; }
.shop-line-short { color: var(--red); font-size: .85rem; font-weight: 700; margin-top: 2px; }
.shop-instock { color: var(--ok); font-size: .82rem; }
.shop-remove { border: 0; background: none; color: var(--brand-dark); cursor: pointer; font-size: .85rem; padding: 0; }
.shop-remove:hover { text-decoration: underline; }
.shop-subtotal { text-align: right; font-size: 1.1rem; padding-top: 10px; }
.shop-subtotal strong { font-weight: 800; }
.shop-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 0 0 14px; font-size: .9rem; }
.shop-sum dt { color: var(--ink); }
.shop-sum dd { margin: 0; text-align: right; }
.shop-sum .is-total { font-size: 1.15rem; color: var(--red); font-weight: 800; padding-top: 10px; border-top: 1px solid #ddd; }
.shop-sum dt.is-total { color: var(--red); }

.shop-checkout-step { background: #fff; padding: 18px 20px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid #ddd; }
.shop-checkout-step > b { font-size: 1.1rem; }
.shop-checkout-step h2 { margin: 0 0 12px; font-size: 1.1rem; }
.shop-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.shop-field label, .shop-field .shop-label { font-weight: 700; font-size: .85rem; }
.shop-field input, .shop-field select, .shop-field textarea {
    padding: 8px 10px; border: 1px solid #888c8c; border-radius: 4px; background: #fff; outline: none; width: 100%;
    box-shadow: 0 1px 2px rgba(15,17,17,.15) inset;
}
.shop-field input:focus, .shop-field select:focus, .shop-field textarea:focus {
    border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.shop-field small { color: var(--muted); font-size: .8rem; }
.shop-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; margin-bottom: 8px; }
.shop-choice:has(input:checked) { border-color: var(--brand-line); background: var(--brand-soft); }
.shop-choice input { margin-top: 2px; accent-color: var(--brand); width: 16px; height: 16px; }
.shop-choice strong { display: block; }
.shop-choice span { color: var(--muted); font-size: .85rem; }
.shop-field-row--wide { grid-template-columns: 2fr 1fr; }
.shop-fulfil { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
[data-fulfil="delivery"] [data-fulfil-show="pickup"],
[data-fulfil="pickup"] [data-fulfil-show="delivery"] { display: none !important; }
.shop-free-hint { margin: 0; padding: 8px 10px; border-radius: 6px; background: var(--brand-soft); font-size: .85rem; }
.shop-free-hint--done { color: #067D62; background: #e9f7f1; }
.shop-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.shop-check input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 1px; flex-shrink: 0; }
.shop-legal { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Order status ---------- */
.shop-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.shop-order-number { font-size: 2.2rem; font-weight: 800; letter-spacing: .02em; color: var(--brand-dark); }
.shop-progress { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0; padding: 0; counter-reset: step; position: relative; }
.shop-progress li { list-style: none; text-align: center; font-size: .85rem; font-weight: 700; color: var(--muted); position: relative; padding-top: 36px; }
.shop-progress li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 4px; background: #e3e6e6; z-index: 0; }
.shop-progress li:first-child::after { display: none; }
.shop-progress li.is-done::after, .shop-progress li.is-current::after { background: var(--brand); }
.shop-progress li::before {
    counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
    width: 30px; height: 30px; border-radius: 50%; background: #e3e6e6; color: var(--muted); display: grid; place-items: center;
}
.shop-progress li.is-done { color: var(--ink); }
.shop-progress li.is-done::before { background: var(--brand); color: var(--brand-ink); content: "✓"; }
.shop-progress li.is-current { color: var(--brand-dark); }
.shop-progress li.is-current::before { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 4px var(--brand-soft); }
.shop-status-box { border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; border: 1px solid; }
.shop-status-box h2 { margin: 0 0 4px; font-size: 1.15rem; }
.shop-status-box p { margin: 0; }
.shop-status-box--ok { background: #f0fff4; border-color: #067d62; color: #04513f; }
.shop-status-box--wait { background: var(--amber-soft); border-color: #f0c36d; color: #7a3d00; }
.shop-status-box--bad { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.shop-status-box--info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-deep); }

/* Payment simulator */
.shop-sim { max-width: 440px; margin: 20px auto; }
.shop-sim-card { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; border-radius: 14px; padding: 20px; font-family: ui-monospace, Menlo, monospace; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.shop-backtop { display: block; width: 100%; border: 0; background: var(--brand-dark); color: #fff; padding: 15px; font-size: .85rem; cursor: pointer; text-align: center; margin-top: 30px; }
.shop-backtop:hover { background: color-mix(in srgb, var(--brand) 72%, #000); }
.shop-footer { background: #232f3e; color: #ddd; padding: 36px 0 24px; font-size: .88rem; }
.shop-footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 40px; justify-content: center; }
.shop-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.shop-footer p { margin: 0 0 6px; }
.shop-footer a:hover { text-decoration: underline; }
.shop-footer-note { border-top: 1px solid #3a4553; margin-top: 26px; padding-top: 16px; font-size: .78rem; color: #999; text-align: center; }
.shop-footer-brand { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; color: #fff; font-weight: 800; }

.shop-toast {
    position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: #fff; color: var(--ok); border: 1px solid #067d62; box-shadow: var(--shadow), inset 6px 0 0 #067d62;
    padding: 12px 18px 12px 22px; border-radius: 8px; font-weight: 700; z-index: 50; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.shop-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.shop-toast.is-error { color: var(--red); border-color: var(--red); box-shadow: var(--shadow), inset 6px 0 0 var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .shop-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .shop-buybox { grid-column: 1 / -1; }
    .shop-belt-hide-md { display: none !important; }
}
@media (max-width: 860px) {
    .shop-two-col { grid-template-columns: 1fr; }
    .shop-sticky { position: static; }
    .shop-results { grid-template-columns: 1fr; }
    .shop-filters { display: none; }
    .shop-product { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
    .shop-product-media { position: static; max-width: 420px; margin: 0 auto; width: 100%; }
    .shop-footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .shop-line { grid-template-columns: 96px minmax(0, 1fr); }
    .shop-line-thumb { width: 96px; height: 96px; }
    .shop-line-total { grid-column: 2; text-align: left; }
}
@media (max-width: 640px) {
    .shop-wrap { width: calc(100% - 20px); }
    .shop-belt-row { flex-wrap: wrap; height: auto; padding: 6px 0 10px; }
    .shop-search { order: 3; flex-basis: 100%; margin: 4px 0 0; }
    .shop-search select { display: none; }
    .shop-cart-link { margin-left: auto; }
    .shop-cart-label, .shop-belt-hide-sm { display: none !important; }
    .shop-hero { height: 210px; padding: 20px 16px 0; margin: 0 -10px; }
    .shop-hero p { font-size: .92rem; }
    .shop-hero-meta { display: none; }
    .shop-tiles { grid-template-columns: 1fr; margin-top: -70px; gap: 12px; }
    .shop-tile { min-height: 0; padding: 14px; }
    .shop-tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .shop-row { grid-auto-columns: 160px; }
    .shop-field-row, .shop-fulfil { grid-template-columns: 1fr; }
    .shop-progress li { font-size: .72rem; }
    .shop-order-number { font-size: 1.7rem; }
    .shop-results-bar { margin: 0 -10px; }
    .shop-checkout-step { grid-template-columns: 1fr; }
}
