/* The public shop. Colours come from tlapp/style.css, so light and dark themes follow the site. */
/* One corner size for product cards, category rows, the list box and category tiles: change it here only */
:root { --shop-round: 10px; }
.shop-head { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; min-height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shop-brand { display: inline-flex; flex: 0 1 auto; align-items: center; gap: 8px; min-width: 0; font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.shop-main { max-width: 960px; margin: 0 auto; padding: 16px; }
.shop-title { margin: 8px 0; font-size: 1.5rem; }
.shop-intro, .shop-note, .shop-empty { color: var(--muted); }
/* Two products per row on phones (See all, search, filters), four on wider screens */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.shop-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--shop-round); background: var(--card); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.shop-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: rgba(127, 127, 127, 0.15); }
.shop-card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.shop-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 500; font-size: 0.9rem; }
.shop-price { color: var(--brand); font-weight: 700; }
.shop-price.big { margin: 4px 0; font-size: 1.4rem; }
.shop-save { font-size: 0.85rem; color: var(--ok); }
.shop-out { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.shop-back a { color: var(--muted); text-decoration: none; }
.shop-product { display: grid; gap: 16px; }
@media (min-width: 720px) { .shop-product { grid-template-columns: 1fr 1fr; align-items: start; } }
.shop-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shop-gallery img, .shop-gallery .shop-photo { flex: 0 0 100%; scroll-snap-align: start; border-radius: 14px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.shop-btn { display: block; margin: 12px 0; padding: 14px; border-radius: 12px; text-align: center; font-weight: 700; background: var(--brand); color: #fff; text-decoration: none; }
.shop-btn.is-off { cursor: default; }
.shop-soon { padding: 48px 16px; text-align: center; }
.shop-foot { padding: 24px 16px; text-align: center; font-size: 0.85rem; color: var(--muted); }
/* Checkout, order and tracking */
.shop-form label { display: block; margin: 14px 0 4px; font-weight: 600; }
.shop-form input, .shop-form select, .shop-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(127, 127, 127, 0.4); border-radius: 10px; background: transparent; color: var(--text); font: inherit; }
.shop-form .help { margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); }
.shop-form .error { margin: 4px 0 0; font-size: 0.85rem; color: #c0392b; }
button.shop-btn { width: 100%; border: 0; font: inherit; cursor: pointer; }
.shop-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; background: var(--ok-bg); color: var(--ok); }
.shop-sum { width: 100%; margin: 16px 0; border-collapse: collapse; }
.shop-sum td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.shop-sum td:last-child { padding-left: 12px; text-align: right; white-space: nowrap; }
.shop-sum .total td { border-top: 1px solid rgba(127, 127, 127, 0.3); font-weight: 800; }
.shop-foot a { color: var(--muted); }
/* Payment messages and the second button */
.shop-msg { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: var(--info); }
.shop-msg.success { background: #f2b33d; color: #1b1426; font-weight: 600; }
.shop-msg.success a { color: #1b1426; text-decoration: underline; }
.shop-msg.error { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.shop-msg.warning { background: var(--caution-bg); color: var(--caution); font-weight: 600; }
.shop-btn-light { background: transparent; color: var(--text); border: 1px solid rgba(127, 127, 127, 0.4); }
form + form .shop-btn, form .shop-btn { margin-top: 12px; }
/* Category chips on the shop page */
.shop-chips { position: sticky; top: 58px; z-index: 4; display: flex; gap: 8px; margin: 0 -16px 8px; padding: 8px 16px; overflow-x: auto; background: var(--bg); scrollbar-width: none; }
.shop-chip { padding: 6px 14px; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; white-space: nowrap; }
.shop-chip.on { border-color: transparent; background: var(--brand); color: #fff; }

/* The buyer's progress bar on the order page: one compact row */
.shop-bar { display: flex; margin: 16px 0 4px; padding: 0; list-style: none; }
.shop-bar li { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; min-width: 0; text-align: center; color: var(--muted); }
.shop-bar li::before { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: rgba(127, 127, 127, 0.35); }
.shop-bar li:first-child::before { display: none; }
.shop-bar li.done { color: var(--text); }
.shop-bar li.done::before { background: var(--ok); }
.shop-bar-dot { position: relative; z-index: 1; width: 14px; height: 14px; border: 2px solid rgba(127, 127, 127, 0.5); border-radius: 50%; background: var(--bg, transparent); box-sizing: border-box; }
.shop-bar li.done .shop-bar-dot { border-color: var(--ok); background: var(--ok); }
.shop-bar-name { margin-top: 6px; font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
.shop-bar small { font-size: 0.7rem; color: var(--muted); }
.shop-bar-now { margin: 4px 0 12px; font-size: 0.9rem; }
/* Seller pages */
.shop-card-box { margin: 12px 0; padding: 16px; border-radius: 14px; background: rgba(127, 127, 127, 0.08); }
.shop-card-box h2 { margin: 0 0 6px; font-size: 1.1rem; }
.shop-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--info-bg); color: var(--info); }
.shop-pill.ok { background: var(--ok-bg); color: var(--ok); }
.shop-pill.bad { background: rgba(192, 57, 43, 0.15); color: #c0392b; }
/* Seller products */
.shop-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.shop-sub { margin: 0; font-size: 1.1rem; }
.shop-btn.shop-btn-small { display: inline-block; margin: 0; padding: 8px 14px; font-size: 0.9rem; }
.shop-myprod { display: flex; gap: 12px; align-items: flex-start; }
.shop-myprod img, .shop-myprod .shop-photo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.shop-myprod-body { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.shop-myprod-actions { display: flex; gap: 16px; align-items: center; }
.shop-myprod-actions form { margin: 0; }
.shop-linkbtn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.shop-sold { margin: 4px 0; font-size: 0.9rem; color: var(--muted); }
/* Seller money and orders */
.shop-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.shop-money-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: rgba(127, 127, 127, 0.08); }
.shop-money-card span { font-size: 0.8rem; color: var(--muted); }
.shop-money-card strong { font-size: 1.1rem; }
.shop-money-card.ok strong { color: var(--ok); }
.shop-order-row { display: flex; flex-direction: column; gap: 6px; }
/* ---------- Shop look, version 2 ---------- */
.shop-body { overflow-x: clip; background: var(--bg); }
.shop-head-links { display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 6px; }
.shop-head-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; color: var(--text); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.shop-head-links svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-facts svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-hero { margin: 4px 0 14px; }
.shop-hero h1 { margin: 0 0 6px; font-size: 1.5rem; }
.shop-hero .shop-intro { position: relative; z-index: 1; max-width: 36ch; margin: 0 0 14px; color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; line-height: 1.5; }
.shop-search { display: flex; gap: 8px; margin: 0 0 4px; }
.shop-search input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
.shop-search button { padding: 0 18px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.shop-chips::-webkit-scrollbar { display: none; }
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }
.shop-card.is-out .shop-photo { opacity: 0.45; }
.shop-card .shop-out { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); color: #fff; }
.shop-specs-line, .shop-loc { overflow: hidden; font-size: 0.75rem; font-weight: 400; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.shop-loc { display: flex; align-items: center; gap: 3px; }
.shop-loc svg { flex: 0 0 12px; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-loc span { overflow: hidden; text-overflow: ellipsis; }
.shop-btn.shop-btn-light { background: transparent; color: var(--text); }
/* Product page */
.shop-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.shop-thumbs img { display: block; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.shop-info { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.shop-facts { margin: 12px 0; padding: 0; list-style: none; }
.shop-facts li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.shop-facts .shop-sold, .shop-facts .shop-note { margin: 0; }
.shop-desc-title { margin: 18px 0 4px; font-size: 1rem; }
.shop-buybar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 6; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12); }
.shop-buybar span { display: flex; flex-direction: column; }
.shop-buybar small { font-size: 0.75rem; color: var(--ok); }
.shop-buybar .shop-btn { margin: 0; padding: 12px 18px; white-space: nowrap; }
.shop-main:has(.shop-buybar) { padding-bottom: 90px; }
/* ---------- Search, filters and many categories ---------- */
.shop-filter { position: relative; display: flex; align-items: stretch; gap: 8px; margin: 0 0 4px; }
.shop-filter .shop-search { position: relative; display: flex; flex: 1; align-items: center; margin: 0; }
.shop-filter .shop-search svg { position: absolute; left: 12px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.shop-filter .shop-search input { width: 100%; padding-top: 9px; padding-bottom: 9px; padding-left: 40px; border-radius: 10px; font-size: 1rem; }
.shop-filters { position: static; }
.shop-filter-btn { display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; height: 100%; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--text); font-size: 0.9rem; font-weight: 700; list-style: none; cursor: pointer; }
.shop-filter-btn::-webkit-details-marker { display: none; }
.shop-filter-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.shop-filters[open] .shop-filter-btn { border-color: var(--brand); color: var(--brand); }
.shop-filter-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.72rem; line-height: 18px; text-align: center; }
.shop-filter-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 8; width: min(92vw, 300px); box-sizing: border-box; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
.shop-filter-title { margin: 8px 0 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.shop-opt { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.shop-filter-clear { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 700; text-decoration: none; }
.shop-chips-row { position: sticky; top: 58px; z-index: 4; display: flex; align-items: center; gap: 8px; margin: -8px -16px 8px; padding: 8px 16px; background: var(--bg); }
.shop-chips-row .shop-chips { position: static; flex: 1; min-width: 0; margin: 0; padding: 0; }
.shop-more-cats { position: relative; flex: 0 0 auto; }
.shop-more-cats summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; }
.shop-more-cats summary::-webkit-details-marker { display: none; }
.shop-more-cats summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.shop-cat-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: min(92vw, 340px); max-height: 60vh; box-sizing: border-box; padding: 12px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
.shop-cat { padding: 8px 10px; border-radius: 10px; background: var(--bg); color: var(--text); font-size: 0.9rem; text-decoration: none; }
.shop-cat.on { background: var(--brand); color: #fff; }
/* ---------- The shop's bottom bar and the categories page ---------- */
.shop-bnav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 7; display: flex; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.shop-bnav a { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: 0.75rem; font-weight: 600; text-decoration: none; }
.shop-bnav a.active { color: var(--brand); }
.shop-bnav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-body:has(.shop-bnav) .shop-foot { padding-bottom: 90px; }
.shop-cats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (min-width: 720px) { .shop-cats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .shop-cats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.shop-cat-tile { display: flex; flex-direction: column; gap: 2px; padding: 0 0 10px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--shop-round); background: var(--card); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.shop-cat-tile strong { padding: 0 8px; font-size: 0.85rem; line-height: 1.25; overflow-wrap: anywhere; }
.shop-cat-tile small { padding: 0 8px; color: var(--muted); font-size: 0.75rem; }
.shop-cat-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; margin-bottom: 6px; overflow: hidden; background: var(--bg); color: var(--muted); font-size: 1.8rem; font-weight: 700; }
.shop-cat-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The promo card: the balance card's own corners and colours, with professional type */
.shop-hero.bal-card { position: relative; overflow: hidden; padding: 22px 20px; color: #fff; }
.shop-hero-eyebrow { margin: 0 0 6px; color: #f2b33d; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.shop-hero h1.shop-hero-title { position: relative; z-index: 1; max-width: 22ch; margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.shop-hero-link { position: relative; z-index: 1; display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.shop-hero-link:hover { background: rgba(255, 255, 255, 0.22); }
.shop-hero-mark { position: absolute; right: -10px; bottom: -14px; width: 120px; height: 120px; fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* A professional header: small logo, Hustro | Shop, compact buttons */
.shop-brand .ge-mark { flex: 0 0 auto; }
.shop-brand-name { color: var(--text); font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.shop-brand { gap: 10px; }
.shop-brand-line { width: 1.5px; height: 26px; background: var(--text); opacity: .35; }
.shop-head-links a:hover { background: var(--bg); }
.shop-head-links a.shop-account { border: 1px solid var(--line-strong); }
@media (max-width: 380px) { .shop-head-link span { display: none; } }
/* ---------- Product page sections, colours, shipping table ---------- */
.shop-sections { position: sticky; top: 62px; z-index: 4; display: flex; gap: 6px; margin: 0 0 12px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--card); scrollbar-width: none; }
.shop-sections::-webkit-scrollbar { display: none; }
.shop-sections a { flex: 0 0 auto; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.shop-sections a:hover { border-color: var(--brand); background: var(--bg); color: var(--brand); }
.shop-anchor { scroll-margin-top: 112px; }
.shop-section { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.shop-section h2 { margin: 0 0 8px; font-size: 1.05rem; }
.shop-label { margin: 12px 0 6px; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.shop-colours { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-colour { position: relative; }
.shop-colour input { position: absolute; opacity: 0; pointer-events: none; }
.shop-colour span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.shop-colour input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.shop-colour input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
#order-form button.shop-btn { margin-top: 14px; }
.shop-areas th { padding: 6px 0; color: var(--muted); font-size: 0.8rem; text-align: left; }
.shop-areas th:last-child { text-align: right; }
.shop-policy { color: var(--muted); font-size: 0.9rem; }
.shop-facts a { color: var(--brand); }
/* ---------- Product page, arranged: summary, price block, contact buttons, one Order now ---------- */
.shop-info .shop-title { margin: 0 0 4px; font-size: 1.35rem; line-height: 1.25; }
.shop-summary { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.shop-price-block { display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 0 0 4px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shop-price-block .shop-price.big { margin: 0; font-size: 1.6rem; }
.shop-price-block .shop-save { margin: 4px 0 0; }
.shop-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.shop-contact-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); font-weight: 700; text-decoration: none; }
.shop-contact-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-contact-btn.wa { border-color: #25d366; color: #128c4b; }
@media (prefers-color-scheme: dark) { .shop-contact-btn.wa { color: #4ade80; } }
.shop-buybar .shop-btn.is-off { background: var(--line); color: var(--muted); }
/* One Order now, in the bar, on every screen size */
@media (min-width: 720px) {
    .shop-buybar { display: flex; right: 50%; left: auto; width: min(960px, 100%); transform: translateX(50%); border-radius: 16px 16px 0 0; }
}
/* ---------- Product page, version 3: media area, price line, rows, description card ---------- */
.shop-media-box { position: relative; }
.shop-media { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 4px; background: transparent; }
.shop-media::-webkit-scrollbar { display: none; }
.shop-slide { display: flex; flex: 0 0 100%; align-items: center; justify-content: center; aspect-ratio: 1 / 1; scroll-snap-align: center; }
.shop-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.shop-slide .shop-photo { width: 100%; height: 100%; background: rgba(127, 127, 127, 0.15); }
.shop-slide-video iframe { width: 100%; height: 100%; border: 0; }
.shop-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.shop-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: width 0.2s ease; }
.shop-dots button.on { width: 20px; background: var(--brand); }
.shop-dots button.is-video { background: var(--accent); }
.shop-media-box button.shop-media-step { display: none; position: absolute; top: calc(50% - 22px); z-index: 2; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.shop-media-box button.shop-media-step.prev { left: 10px; }
.shop-media-box button.shop-media-step.next { right: 10px; }
@media (min-width: 720px) { .shop-media-box button.shop-media-step { display: flex; } }
.shop-info .shop-summary { margin: 12px 0 0; color: var(--text); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.shop-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; }
.shop-price-now { color: var(--brand); font-size: 1.6rem; font-weight: 800; }
.shop-price-sep { color: var(--muted); }
.shop-price-code { color: var(--text); font-size: 0.95rem; }
.shop-price-code strong { color: var(--brand); }
.shop-save-pill { padding: 3px 10px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-size: 0.75rem; font-weight: 800; }
.shop-rows { margin: 12px 0 0; padding: 0; list-style: none; }
.shop-rows li + li { border-top: 1px solid var(--line); }
.shop-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--text); font-size: 0.92rem; text-decoration: none; }
.shop-row svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-row > span { flex: 1; min-width: 0; }
.shop-row .shop-sold { margin: 0; color: var(--text); }
.shop-chev { color: var(--muted); font-size: 1.3rem; font-style: normal; line-height: 1; }
.shop-kicker { margin: 0 0 10px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.shop-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 0.88rem; }
.shop-highlights li { display: flex; align-items: flex-start; gap: 8px; }
.shop-highlights svg { flex: 0 0 18px; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--ok-bg); fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }
.shop-desc-wrap.is-clamped:not(.is-open) .shop-desc { position: relative; max-height: 150px; overflow: hidden; }
.shop-desc-wrap.is-clamped:not(.is-open) .shop-desc::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 48px; background: linear-gradient(rgba(255, 255, 255, 0), var(--card)); }
.shop-more-btn { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
.shop-ship { display: flex; align-items: flex-start; gap: 12px; }
.shop-ship svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-ship span { display: flex; flex-direction: column; gap: 2px; }
.shop-ship small { color: var(--muted); font-size: 0.85rem; }
/* ---------- Product page, version 4: photos as before, sharp corners, contact in the bar ---------- */
.shop-info, .shop-section, .shop-media, .shop-slide img { border-radius: 4px; }
.shop-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop-ship-text { display: flex; flex-direction: column; gap: 2px; }
.shop-ship-text small { color: var(--muted); font-size: 0.85rem; }
.shop-buybar-price { display: flex; flex-direction: column; min-width: 0; }
.shop-buybar-actions { display: flex; align-items: center; gap: 8px; }
.shop-buybar .shop-contact { display: flex; flex-direction: row; align-items: stretch; gap: 8px; margin: 0; }
.shop-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); }
.shop-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-icon-btn.wa { border-color: #25d366; color: #128c4b; }
@media (prefers-color-scheme: dark) { .shop-icon-btn.wa { color: #4ade80; } }

/* The bottom bar: price, then Call, WhatsApp and Order now in one row */
.shop-buybar .shop-buybar-actions { display: flex; flex: 1; flex-direction: row; align-items: stretch; justify-content: stretch; gap: 0; min-width: 0; }
.shop-buybar .shop-buybar-price { flex: 0 0 auto; }
.shop-buybar .shop-buybar-actions .shop-btn { flex: 1 1 auto; min-width: 140px; margin: 0 0 0 10px; padding: 13px 18px; text-align: center; }

/* The product bar: Call, WhatsApp and Order now only */
.shop-icon-btn .wa-logo { width: 24px; height: 24px; stroke: none; }
/* Search and filters a bit smaller; text stays 16px so phones do not zoom in */
.shop-count { margin: 6px 0 8px; color: var(--muted); font-size: 0.85rem; }

/* Back: a small pill button anyone can see */
.shop-back { margin: 4px 0 10px; }
.shop-back a.shop-back-btn { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--text); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.shop-back a.shop-back-btn:hover { border-color: var(--brand); color: var(--brand); }
/* The bottom bar: labelled Call and WhatsApp with divider lines, then a roomy Order now */
.shop-bar-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 64px; padding: 4px 10px; border-radius: 10px; color: var(--text); font-size: 0.72rem; font-weight: 700; text-decoration: none; }
.shop-bar-act:active { background: var(--bg); }
.shop-bar-act svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-bar-act .wa-logo { width: 24px; height: 24px; stroke: none; }
.shop-bar-rule { align-self: stretch; width: 1px; margin: 4px 6px; background: var(--line-strong); }

/* ---------- The price band: product page (capitals) and shop cards (normal case) ---------- */
.shop-price-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shop-band-rule { align-self: stretch; width: 1px; min-height: 22px; background: var(--line-strong); }
.shop-offer-pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: rgba(242, 179, 61, 0.2); color: #8a5a00; font-size: 0.85rem; font-weight: 800; line-height: 1.2; }
@media (prefers-color-scheme: dark) { .shop-offer-pill { color: #f2b33d; } }
.shop-offer-pill.is-caps { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }
.shop-card-price { display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; min-width: 0; margin-top: 2px; }
.shop-card-price .shop-band-rule { flex: 0 0 1px; min-height: 14px; }
.shop-card-price .shop-offer-pill { display: block; min-width: 0; overflow: hidden; padding: 2px 7px; font-size: 0.68rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

/* Shop cards: price and promo pill always on one row */
.shop-card-price .shop-price { flex: 0 0 auto; font-size: 1.02rem; font-weight: 800; white-space: nowrap; }
@media (max-width: 719px) { .shop-card-body { gap: 2px; padding: 6px 7px 8px; font-size: 0.82rem; } .shop-card-price .shop-price { font-size: 0.92rem; } .shop-specs-line, .shop-loc { font-size: 0.7rem; } .shop-card .shop-out { top: 4px; right: 4px; padding: 2px 6px; font-size: 0.7rem; } }
/* Colour dots on the product page, and the note when there is no photo of that colour */
.shop-dot { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 50%; vertical-align: -1px; }
.shop-colour input:checked + span .shop-dot { border-color: rgba(255, 255, 255, 0.8); }
.shop-colour-note { margin: 6px 0 0; color: var(--muted); font-size: 0.82rem; }

/* Shipping, Warranty and returns, Reviews and Product details together in one card */
.shop-sections-box { margin-top: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: rgba(127, 127, 127, 0.06); }
.shop-sections-box .shop-section { margin: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.shop-sections-box .shop-section + .shop-section { margin-top: 10px; border-top: 1px solid var(--line); }

/* The product list and the Categories page inside a container */
.shop-list-box { padding: 10px; border: 1px solid var(--line); border-radius: var(--shop-round); background: rgba(127, 127, 127, 0.06); }
.shop-list-box .shop-grid { margin-top: 0; }
.shop-list-box .shop-count { margin-top: 0; }
/* Specifications table on the product page */
.shop-specs { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-size: 0.9rem; }
.shop-specs th, .shop-specs td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.shop-specs th { width: 42%; color: var(--muted); font-weight: 600; }
.shop-specs tr:nth-child(odd) { background: rgba(127, 127, 127, 0.05); }
/* Checkout: county search and the delivery estimate; Confirm your order buttons */
.shop-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.shop-confirm-actions .shop-btn { margin: 0; }
/* Reviews */
.shop-rating { display: inline-block; color: var(--text); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.shop-stars { color: #f2b33d; letter-spacing: 1px; }
.shop-reviews { margin: 0; padding: 0; list-style: none; }
.shop-reviews li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.shop-reviews li:last-child { border-bottom: 0; }
.shop-reviews p { margin: 6px 0; }
.shop-reviews small { color: var(--muted); }
.shop-review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shop-review-box { margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.shop-review-form textarea { width: 100%; box-sizing: border-box; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--text); font: inherit; }
.shop-star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.shop-star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.shop-star-pick label { color: var(--line-strong); font-size: 2rem; line-height: 1; cursor: pointer; }
.shop-star-pick input:checked ~ label, .shop-star-pick label:hover, .shop-star-pick label:hover ~ label { color: #f2b33d; }
.shop-star-pick input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Checkout and order pages: cards, neat fields, a clear total ---------- */
.shop-ck-card { margin: 0 0 12px; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.shop-ck-head { margin: 0 0 10px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.shop-ck-item { display: flex; align-items: center; gap: 12px; }
.shop-ck-item img, .shop-ck-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 4px; background: var(--bg); object-fit: cover; }
.shop-ck-item strong { display: block; }
.shop-ck-item .shop-note { margin: 4px 0 0; }
.shop-ck-form .shop-field { margin: 0 0 12px; }
.shop-ck-form .shop-field:last-child { margin-bottom: 0; }
.shop-ck-form label { display: block; margin: 0 0 5px; font-size: 0.85rem; font-weight: 700; }
.shop-ck-form input, .shop-ck-form select, .shop-ck-form textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }
.shop-ck-form input:focus, .shop-ck-form select:focus, .shop-ck-form textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.15); }
.shop-ck-form .help { margin: 4px 0 0; color: var(--muted); font-size: 0.78rem; }
.shop-ck-form .error { margin: 4px 0 0; color: #dc2626; font-size: 0.82rem; font-weight: 600; }
.shop-ck-form > .shop-btn, .shop-ck-actions form .shop-btn { width: 100%; margin: 8px 0 0; }
.shop-banner .shop-title { margin: 0 0 4px; }
.shop-banner .shop-note { margin: 0; }
.shop-banner .shop-status { display: inline-block; margin: 10px 0 0; padding: 3px 12px; border-radius: 999px; background: var(--bg); color: var(--brand); font-size: 0.8rem; font-weight: 700; }
.shop-banner.is-confirm { border-left: 4px solid var(--brand); }
.shop-ck-line { margin: 0; }
.shop-sum tr.total td { padding-top: 12px; border-bottom: 0; color: var(--brand); font-size: 1.05rem; font-weight: 800; }
.shop-ck-actions { margin: 0 0 12px; }
.shop-keep { margin-top: 4px; text-align: center; }

/* ---------- The confirm popup on checkout ---------- */
.shop-modal { width: min(92vw, 440px); max-height: 88vh; padding: 0; border: 0; border-radius: 14px; background: var(--card); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.shop-modal::backdrop { background: rgba(10, 6, 20, 0.6); }
.shop-modal-head { padding: 16px 16px 4px; }
.shop-modal-head h2 { margin: 0; font-size: 1.15rem; }
.shop-modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.shop-modal-rows { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shop-modal-rows dt { color: var(--muted); font-size: 0.85rem; }
.shop-modal-rows dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.shop-modal-rows dt.is-total, .shop-modal-rows dd.is-total { padding-top: 8px; border-top: 1px dashed var(--line); color: var(--brand); font-size: 1.05rem; font-weight: 800; }
.shop-modal-note { margin: 0 16px 10px; color: var(--muted); font-size: 0.8rem; }
.shop-modal-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 0 16px 16px; }
.shop-modal-actions button { margin: 0; padding: 13px 12px; border-radius: 10px; font: inherit; font-weight: 800; cursor: pointer; }
.shop-modal-edit { border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.shop-modal-ok { border: 0; background: var(--brand); color: #fff; }

/* ---------- The payment bar fixed at the bottom of the order page ---------- */
.shop-buybar.shop-paybar { display: block; padding: 10px 16px; }
.shop-paybar form { margin: 0; }
.shop-pay-btn { display: block; width: 100%; padding: 15px 18px; border: 0; border-radius: 12px; background: #16a34a; color: #fff; font: inherit; font-size: 1.05rem; font-weight: 800; box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35); cursor: pointer; }
.shop-pay-btn:active { transform: translateY(1px); }
.shop-pay-note { margin: 0 0 8px; padding: 10px 12px; border-left: 4px solid #16a34a; border-radius: 4px; background: rgba(22, 163, 74, 0.1); font-weight: 600; }
main:has(.shop-paybar) { padding-bottom: 96px; }
/* The My orders list */
.shop-orders-list { margin: 0; padding: 0; list-style: none; }
.shop-orders-list li { margin: 0 0 10px; }
.shop-orders-list a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--text); text-decoration: none; }
.shop-orders-list img, .shop-orders-list .shop-ck-thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 4px; background: var(--bg); object-fit: cover; }
.shop-orders-list .shop-o-main { flex: 1; min-width: 0; }
.shop-orders-list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-orders-list small { color: var(--muted); }
.shop-orders-list .shop-o-side { text-align: right; white-space: nowrap; }
.shop-o-status { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--brand); font-size: 0.72rem; font-weight: 700; }
/* ---------- Cart ---------- */
.shop-buybar .shop-cart-btn { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 48px; margin-left: 10px; border: 1px solid var(--brand); border-radius: 12px; background: transparent; color: var(--brand); cursor: pointer; }
.shop-buybar .shop-cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-buybar .shop-cart-btn + .shop-btn { margin-left: 8px; }
.shop-cart-list { margin: 0 0 12px; padding: 0; list-style: none; }
.shop-cart-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.shop-cart-line img, .shop-cart-line .shop-ck-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 4px; background: var(--bg); object-fit: cover; }
.shop-cart-line .shop-o-main { flex: 1; min-width: 0; }
.shop-cart-line .shop-o-main a { color: var(--text); text-decoration: none; }
.shop-cart-line .shop-o-main small, .shop-cart-line .shop-o-main span { display: block; color: var(--muted); font-size: 0.85rem; }
.shop-qty { display: flex; flex: 1 0 100%; align-items: center; gap: 8px; margin: 0; }
.shop-qty button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.shop-qty span { min-width: 24px; text-align: center; font-weight: 800; }
.shop-qty .shop-remove { margin-left: auto; border-color: transparent; color: #dc2626; }
.shop-cart-go { display: block; width: 100%; text-align: center; }

/* ---------- The header fits on a phone; the page is never wider than the screen ---------- */
.shop-head-links a.shop-head-link { position: relative; }
.shop-badge { position: absolute; top: 1px; right: 1px; left: 8px; z-index: 1; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.65rem; font-weight: 800; line-height: 16px; text-align: center; }
@media (max-width: 599px) {
    .shop-head-link span, .shop-head-links a.shop-account.is-mine span { display: none; }
    .shop-head-links .shop-register { display: none; }
    .shop-head-links a { padding: 7px 8px; }
}
/* The cart count sits next to the icon, never over it */
.shop-head-links .shop-badge { position: static; display: inline-block; margin-left: 2px; }
.shop-details-card .shop-btn { margin-top: 8px; }
/* ---------- The Account tab ---------- */
.shop-acct-head { display: flex; align-items: center; gap: 14px; }
.shop-acct-head strong { display: block; font-size: 1.05rem; }
.shop-acct-head small { color: var(--muted); }
.shop-avatar { display: inline-flex; flex: 0 0 52px; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.3rem; font-weight: 800; }
.shop-avatar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-acct-guest { text-align: center; }
.shop-acct-guest .shop-avatar { margin: 0 auto 8px; }
.shop-acct-guest h1 { margin: 0 0 4px; font-size: 1.2rem; }
.shop-acct-list { margin: 0 0 12px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--card); list-style: none; }
.shop-acct-list li + li { border-top: 1px solid var(--line); }
.shop-acct-list a { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--text); font-weight: 600; text-decoration: none; }
.shop-acct-list a:hover { background: var(--bg); }
.shop-acct-list svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-acct-list span { flex: 1; }
.shop-acct-list b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--brand); font-size: 0.78rem; text-align: center; }
.shop-acct-list .chev { flex: 0 0 16px; width: 16px; height: 16px; color: var(--muted); }

/* Checkout: the promo saving stands out */
.shop-promo-hint { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0 0 10px; padding: 10px 12px; border: 1px dashed #16a34a; border-radius: 10px; background: rgba(22, 163, 74, 0.08); font-weight: 600; }
.shop-promo-amount { color: #16a34a; font-size: 1.2rem; font-weight: 800; }

/* You earn: only for students with a promo code */
.shop-earn { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(22, 163, 74, 0.12); color: #15803d; font-size: 0.75rem; font-weight: 800; }
.shop-info .shop-earn { margin-top: 8px; font-size: 0.85rem; }

/* Ready for pickup: the pickup code and Report a problem */
.shop-pickup { border-left: 4px solid #16a34a; }
.shop-pickup-code { margin: 4px 0 8px; color: #16a34a; font-size: 2.4rem; font-weight: 800; letter-spacing: 0.3em; }
.shop-pickup form .shop-btn { width: 100%; margin: 10px 0 0; }
.shop-problem { margin-top: 12px; }
.shop-problem > summary { color: #b91c1c; font-weight: 700; cursor: pointer; }
.shop-problem select, .shop-problem textarea { margin: 8px 0 0; }
.shop-problem-open { color: #b45309; font-weight: 600; }

/* County list rows with the fee and time; the delivery estimate tiles */
.shop-estimate-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 10px 0 0; }
.shop-estimate-card > div { padding: 10px 12px; border: 1px solid rgba(22, 163, 74, 0.35); border-radius: 10px; background: rgba(22, 163, 74, 0.07); }
.shop-estimate-card span { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.shop-estimate-card strong { display: block; margin-top: 2px; color: #15803d; font-size: 1.05rem; }

/* No container around the product list and product page */
body .shop-list-box, body .shop-media-box, body .shop-sections-box { margin-left: 0; margin-right: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
/* Photos and videos on reviews */
.shop-review-files { display: flex; flex-wrap: nowrap; gap: 8px; margin: 8px 0 0; }
.shop-file-btn { position: relative; display: inline-flex; align-items: center; padding: 9px 14px; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--brand); font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.shop-file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shop-review-media { display: flex; flex-wrap: nowrap; gap: 6px; margin: 8px 0 4px; overflow-x: auto; }

/* Reviews: picked files, compact thumbnails, a viewer, and Show all */
.shop-file-btn.picked { border-style: solid; border-color: #16a34a; background: rgba(22, 163, 74, 0.08); color: #15803d; }
.shop-file-preview { width: 28px; height: 28px; margin-right: 8px; border-radius: 6px; object-fit: cover; }
.shop-rm { position: relative; width: 64px; height: 64px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #000; cursor: pointer; }
.shop-rm img, .shop-rm video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.shop-rm-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; background: rgba(0, 0, 0, 0.3); }
.shop-rm-viewer { width: 94vw; max-width: 94vw; max-height: 90vh; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #000; }
.shop-rm-viewer::backdrop { background: rgba(0, 0, 0, 0.8); }
.shop-rm-viewer img, .shop-rm-viewer video { display: block; max-width: 94vw; max-height: 86vh; }
.shop-rm-close { position: absolute; top: 6px; right: 6px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.4rem; cursor: pointer; }
.shop-reviews-more { margin-top: 10px; }

/* Reviews: one compact row of thumbnails, side-by-side upload buttons, a swipeable gallery */
.shop-review-media .shop-rm { flex: 0 0 64px; width: 64px !important; min-width: 0; height: 64px; margin: 0; padding: 0 !important; border: 0; background: transparent !important; box-shadow: none !important; line-height: 0; }
.shop-review-files .shop-file-btn { display: inline-flex; flex: 1 1 0; justify-content: center; width: auto; margin: 0; }
.shop-rm-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shop-rm-track::-webkit-scrollbar { display: none; }
.shop-rm-slide { display: flex; flex: 0 0 100%; align-items: center; justify-content: center; min-height: 50vh; scroll-snap-align: center; }
.shop-rm-slide img, .shop-rm-slide video { max-width: 100%; max-height: 86vh; }
.shop-rm-count { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.8rem; font-weight: 700; }
.shop-review-media .shop-rm img, .shop-review-media .shop-rm video { display: block; width: 100%; height: 100%; margin: 0; border-radius: 10px; object-fit: cover; }

/* Instant pages (10 Nov 2026): like the student site, the top bar and bottom menu stay put while only the
   page content cross-fades, so changing shop pages no longer blinks the whole screen. */
@media (prefers-reduced-motion: no-preference) {
    .shop-head { view-transition-name: tl-shop-head; }
    .shop-bnav { view-transition-name: tl-shop-bnav; }
}
/* Shop page with no search or filter: one scrolling row per category, each with See all (11 Nov 2026).
   Own names (shop-cat-row...) because .shop-row is the delivery line on the product page.
   Each category sits in its own card. Two cards per screen on phones with the next one peeking; a row with one product keeps the same card size, on the left. */
.shop-cat-row { display: block; overflow: hidden; padding: 12px; border: 1px solid var(--line); border-radius: var(--shop-round); background: var(--card); box-shadow: var(--shadow); }
.shop-cat-row + .shop-cat-row { margin-top: 12px; }
.shop-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.shop-cat-head h2 { margin: 0; min-width: 0; overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.shop-cat-head a { flex: 0 0 auto; color: var(--brand); font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.shop-cat-scroll { display: flex; align-items: stretch; justify-content: flex-start; gap: 10px; overflow-x: auto; margin: 0 -12px -12px; padding: 2px 12px 12px; scroll-padding: 0 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shop-cat-scroll::-webkit-scrollbar { display: none; }
.shop-cat-scroll .shop-card { flex: 0 0 calc((100% - 10px) / 2.3); min-width: 0; scroll-snap-align: start; }
@media (min-width: 720px) { .shop-cat-scroll { gap: 12px; } .shop-cat-scroll .shop-card { flex-basis: calc((100% - 36px) / 4.3); } }

/* How it works, under the products, for people who earn with a promo code (11 Nov 2026) */
.shop-how { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--shop-round); background: var(--card); box-shadow: var(--shadow); }
.shop-how h2 { margin: 0 0 10px; font-size: 1.05rem; }
.shop-how-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.shop-how-steps li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.shop-how-steps strong { display: block; color: var(--text); font-size: 0.95rem; }
.shop-how-n { display: inline-flex; flex: 0 0 28px; align-items: center; justify-content: center; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.shop-how-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.shop-how-links .shop-btn { margin: 0; padding: 12px; border-radius: var(--shop-round); }
.shop-btn.shop-btn-outline { border: 1px solid var(--brand); background: transparent; color: var(--brand); }
