/* CrabKids customer shop. Mobile first; brand blue + orange (same as the logo). */
:root {
  --blue: #1d4ed8; --blue-dk: #1e3a8a; --blue-soft: #eef3ff;
  --orange: #f97316; --orange-dk: #ea580c; --orange-soft: #fff4ea;
  --pink: #db2777; --pink-soft: #fdf0f6;
  --bg: #f6f8fc; --card: #fff; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --green: #059669; --green-soft: #e8f8f1; --amber: #b45309; --amber-soft: #fff6e0; --red: #dc2626; --red-soft: #fdecec;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Nunito', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(29, 78, 216, 0.45); outline-offset: 2px; }

.sh-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sh-muted { color: var(--muted); font-size: 0.86rem; }
.sh-center { text-align: center; margin-top: 1.5rem; }
.sh-link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Top bar */
.sh-top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.sh-top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
/* Header: logo on the left, "Visit Home Page" in the middle, cart on the right.
   On small phones the link is centred in the space between the logo and the cart; from 480px up it is centred on the page. */
.sh-mainlink { margin: 0 auto; white-space: nowrap; font-size: 0.86rem; font-weight: 700; color: var(--blue); text-decoration: none; padding: 7px 12px; border: 1.5px solid #c7d6fb; border-radius: 999px; background: var(--blue-soft); }
.sh-mainlink:hover { background: #dfe9ff; }
@media (min-width: 480px) {
  .sh-top-in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .sh-top-in .sh-brand { justify-self: start; }
  .sh-top-in .sh-mainlink { margin: 0; }
  .sh-top-in .sh-cartbtn { justify-self: end; }
}
@media (max-width: 420px) { .sh-mainlink { font-size: 0.74rem; padding: 6px 9px; } }
@media (max-width: 359.98px) { .sh-mainlink { font-size: 0.68rem; padding: 5px 7px; } }
.sh-brand { display: flex; align-items: center; text-decoration: none; }
.sh-brand img { display: block; height: 46px; width: auto; }
.sh-cartbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; }
.sh-cartbtn:hover { background: var(--blue-dk); }
.sh-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 0.78rem; line-height: 22px; text-align: center; font-weight: 800; }


/* Contact banner */
.sh-hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%); color: #fff; padding: 11px 0 12px; }
.sh-hero-line { margin: 0; text-align: center; font: 700 clamp(0.85rem, 3.2vw, 1rem)/1.45 var(--display); letter-spacing: 0.01em; }
.sh-hero-line a { color: #fff; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; padding: 6px 2px; margin: -6px 0; display: inline-block; }
.sh-hero-line a:hover { background: rgba(255, 255, 255, 0.16); border-radius: 6px; }

.sh-main { padding-top: 22px; padding-bottom: 56px; }
.sh-alert { background: var(--red-soft); color: #991b1b; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 0.92rem; }

/* Product grid */
.sh-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sh-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sh-img { position: relative; aspect-ratio: 1; background: #f1f4fa; }
.sh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-img.noimg img { visibility: hidden; }
.sh-img.noimg::after { content: "No photo yet"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; }
.sh-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.sh-name { font-size: 0.98rem; font-weight: 800; line-height: 1.25; }
.sh-price { font-weight: 800; color: var(--blue-dk); }
.sh-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sh-sz { min-width: 38px; height: 36px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; color: var(--ink); }
.sh-sz:hover { border-color: #b6c4e6; }
.sh-sz.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.sh-sizes.nudge { animation: nudge 0.45s; }
@keyframes nudge { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.sh-left { min-height: 1.2em; color: var(--amber); font-size: 0.8rem; font-weight: 700; }
.sh-add { margin-top: auto; height: 44px; border: 0; border-radius: 12px; background: var(--orange); color: #fff; font-weight: 800; }
.sh-add:hover { background: var(--orange-dk); }
.sh-add.done { background: var(--green); }

.sh-empty { text-align: center; background: var(--card); border: 1px dashed #c8d2e6; border-radius: var(--radius); padding: 34px 20px; margin-top: 16px; }
.sh-empty-title { font: 800 1.15rem var(--display); margin-bottom: 6px; }
.sh-empty p { color: var(--muted); margin: 0 0 14px; }

/* Buttons */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--orange); color: #fff; font-weight: 800; text-decoration: none; }
.sh-btn:hover { background: var(--orange-dk); }
.sh-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.sh-btn-block { display: flex; width: 100%; }
.sh-btn-lg { min-height: 54px; font-size: 1.05rem; }
.sh-btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.sh-btn-ghost:hover { background: var(--bg); }

/* Cart drawer */
.sh-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 60; }
.sh-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s ease; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15); }
.sh-drawer.open { transform: none; }
.sh-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sh-drawer-head h2 { font-size: 1.2rem; font-weight: 900; }
.sh-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); font-size: 1.5rem; line-height: 1; }
.sh-drawer-body { flex: 1; overflow-y: auto; padding: 6px 16px; }
.sh-drawer-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
/* Continue shopping (left) and Checkout (right), side by side */
.sh-foot-btns { display: flex; gap: 8px; }
.sh-foot-btns .sh-btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; text-align: center; white-space: nowrap; }
@media (max-width: 359.98px) { .sh-foot-btns .sh-btn { font-size: 0.86rem; } }
.sh-cart-empty { text-align: center; padding: 48px 12px; }

.sh-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sh-line:last-child { border-bottom: 0; }
.sh-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #f1f4fa; }
.sh-line-sm { grid-template-columns: 52px 1fr auto; padding: 10px 0; }
.sh-line-sm img { width: 52px; height: 52px; }
.sh-line-name { font-weight: 700; line-height: 1.25; }
.sh-line-total { font-weight: 800; white-space: nowrap; }
.sh-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sh-qty button:not(.sh-link) { width: 32px; height: 32px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-weight: 800; }
.sh-qty button:disabled { opacity: 0.4; cursor: not-allowed; }
.sh-qty span { min-width: 20px; text-align: center; font-weight: 800; }
.sh-remove { margin-left: 8px; font-size: 0.82rem; color: var(--muted); }

.sh-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.sh-sum-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.12rem; }
.sh-sum-total b { font: 900 1.25rem var(--display); }
.sh-sum-note { margin: 2px 0 12px; }

.sh-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 0.92rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.sh-toast .sh-link { color: #ffcf9e; margin-left: 8px; }

/* "Added to cart" card */
.sh-added { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 81; width: min(370px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 9px 12px 12px 9px; background: #fff; color: var(--ink);
  border: 1.5px solid #b7e6d0; border-radius: 15px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.26), 0 0 0 3px rgba(5, 150, 105, 0.12); }
.sh-added[hidden] { display: none; }
.sh-added.show { animation: addedIn 0.45s cubic-bezier(0.2, 1.25, 0.3, 1) both; }
@keyframes addedIn { from { opacity: 0; transform: translate(-50%, 30px) scale(0.93); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.sh-added-img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.sh-added-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-added-img.noimg img { display: none; }
.sh-added-body { flex: 1 1 auto; min-width: 0; }
.sh-added-title { display: flex; align-items: center; gap: 6px; font: 900 0.9rem/1.2 var(--display); color: var(--green); }
.sh-added-check { position: relative; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); animation: checkPop 0.4s 0.1s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.sh-added-check svg { position: absolute; inset: 0; width: 18px; height: 18px; }
.sh-added-check path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: checkDraw 0.35s 0.3s ease-out forwards; }
.sh-added-check i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--c); opacity: 0;
  animation: burst 0.7s 0.25s ease-out forwards; }
@keyframes checkPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-8px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-26px) scale(0.3); } }
.sh-added-name { margin-top: 2px; font-weight: 700; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-added-meta { margin-top: 1px; color: var(--muted); font-size: 0.72rem; }
.sh-added-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sh-added-view { border: 0; border-radius: 999px; background: var(--orange); color: #fff; font: 800 0.76rem var(--font); padding: 7px 12px; white-space: nowrap; cursor: pointer;
  box-shadow: 0 3px 0 var(--orange-dk); transition: transform 0.1s, box-shadow 0.1s; }
.sh-added-view:hover { background: var(--orange-dk); }
.sh-added-view:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--orange-dk); }
.sh-added-count { color: var(--muted); font-size: 0.65rem; white-space: nowrap; }
.sh-added-x { position: absolute; top: 2px; right: 6px; border: 0; background: transparent; color: #94a3b8; font-size: 1.2rem; line-height: 1; padding: 2px 4px; cursor: pointer; }
.sh-added-x:hover { color: var(--ink); }
.sh-added-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #059669, #34d399); transform-origin: left; animation: barRun 4.5s linear forwards; }
@keyframes barRun { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.sh-cartbtn.bump { animation: cartBump 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@media (max-width: 420px) {
  .sh-added { flex-wrap: wrap; gap: 6px 9px; padding: 8px 10px 12px 8px; bottom: 12px; }
  .sh-added-img { flex-basis: 40px; width: 40px; height: 40px; }
  .sh-added-body { flex: 1 1 0; padding-right: 14px; }
  .sh-added-title { font-size: 0.88rem; white-space: nowrap; }
  .sh-added-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sh-added-side { flex: 1 0 100%; flex-direction: row-reverse; justify-content: space-between; gap: 10px; }
  .sh-added-view { flex: 0 0 auto; font-size: 0.72rem; padding: 5px 11px; box-shadow: 0 2px 0 var(--orange-dk); }
  .sh-added-count { display: block; flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-added.show, .sh-added-check, .sh-added-check path, .sh-added-check i, .sh-added-bar, .sh-cartbtn.bump { animation: none; }
  .sh-added-check path { stroke-dashoffset: 0; }
}

/* Checkout */
.sh-back { display: inline-block; margin-bottom: 8px; font-weight: 600; text-decoration: none; }
.sh-h1 { font-size: 1.8rem; font-weight: 900; margin-bottom: 16px; }
.sh-co { display: grid; gap: 20px; align-items: start; }
.sh-form { display: grid; gap: 16px; }
.sh-box { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 16px; }
.sh-box legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font: 800 1.05rem var(--display); }
.sh-box legend ~ * { clear: both; }
.sh-field { display: grid; gap: 6px; margin-bottom: 12px; }
.sh-field:last-child { margin-bottom: 0; }
.sh-field > span { font-weight: 700; font-size: 0.9rem; }
.sh-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.sh-field input, .sh-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cdd6e6; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.sh-field textarea { resize: vertical; }
.sh-field input:focus, .sh-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(29, 78, 216, 0.18); outline-offset: 0; }
.sh-field .bad { border-color: var(--red); }
.sh-err { color: var(--red); font-size: 0.82rem; min-height: 0; }
.sh-err:empty { display: none; }
.sh-row2 { display: grid; gap: 0 12px; }

.sh-pay { display: block; position: relative; margin-bottom: 10px; cursor: pointer; }
.sh-pay input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sh-pay-card { display: grid; gap: 2px; padding: 14px 14px 14px 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; position: relative; }
.sh-pay-card::before { content: ""; position: absolute; left: 14px; top: 17px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b6c0d4; background: #fff; }
.sh-pay-card small { color: var(--muted); }
.sh-pay input:checked + .sh-pay-card { border-color: var(--blue); background: var(--blue-soft); }
.sh-pay input:checked + .sh-pay-card::before { border-color: var(--blue); background: radial-gradient(var(--blue) 0 45%, #fff 50%); }
.sh-pay input:focus-visible + .sh-pay-card { outline: 3px solid rgba(29, 78, 216, 0.45); outline-offset: 2px; }
.sh-mpesa { margin-top: 4px; padding: 12px; border-radius: 12px; background: var(--green-soft); }
.sh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sh-fine { margin: 0; text-align: center; }

.sh-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.sh-summary h2 { font-size: 1.1rem; font-weight: 900; margin-bottom: 6px; }

/* Order page */
.sh-order { max-width: 760px; }
.sh-panel { text-align: center; border-radius: var(--radius); padding: 28px 20px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--card); }
.sh-panel h1 { font-size: 1.5rem; font-weight: 900; margin: 10px 0 6px; }
.sh-panel p { margin: 6px auto; max-width: 46ch; }
.sh-panel.is-ok { background: var(--green-soft); border-color: #b7e6d0; }
.sh-panel.is-wait { background: var(--blue-soft); border-color: #c7d6fb; }
.sh-panel.is-warn { background: var(--amber-soft); border-color: #f2dc9b; }
.sh-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; font: 900 1.7rem var(--display); }
.sh-ico.ok { background: var(--green); }
.sh-ico.warn { background: var(--orange); }
.sh-ico.wait { background: var(--blue); }
.sh-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sh-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 4px; }
.sh-inline { max-width: 280px; margin: 10px auto 0; text-align: left; }
.sh-error { color: var(--red); font-weight: 600; }
.sh-details-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.sh-orderno { font: 900 1.3rem var(--display); }
.sh-ol-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sh-meta { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.sh-meta dt { color: var(--muted); font-weight: 600; }
.sh-meta dd { margin: 0; overflow-wrap: anywhere; }

.sh-foot { margin-top: 24px; padding: 26px 0 34px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 0.9rem; }
.sh-foot-sub { margin-top: 4px; font-size: 0.8rem; }

@media (min-width: 640px) {
  .sh-row2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) { .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .sh-co { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
  .sh-summary { position: sticky; top: 84px; }
}
@media (max-width: 899.98px) { .sh-summary { order: -1; } }
@media (max-width: 420px) { .sh-cartbtn-label { display: none; } .sh-cartbtn { padding: 0 14px; } .sh-brand img { height: 40px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }



/* ── Catalogue layout (same shape as the staff catalogue) ── */
.sh-filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.sh-sel { display: grid; gap: 5px; flex: 1 1 140px; max-width: 280px; min-width: 0; }
.sh-sel span { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.sh-sel select, .sh-dd { width: 100%; min-height: 46px; padding: 0 38px 0 14px; border: 1.5px solid #cdd6e6; border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); font: 600 1rem var(--font); appearance: none; -webkit-appearance: none; }
.sh-sel select:focus, .sh-dd:focus { border-color: var(--blue); outline: 3px solid rgba(29, 78, 216, 0.18); outline-offset: 0; }
.sh-resultbar { margin-top: 16px; }

.sh-card { padding: 14px; gap: 12px; }
.sh-card-top { display: flex; align-items: flex-start; gap: 14px; }
.sh-img { flex: 0 0 46%; max-width: 250px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f1f4fa; cursor: zoom-in; display: block; }
.sh-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sh-name { font-size: 1.02rem; }
.sh-price { font-size: 1.05rem; }
.sh-avail { color: var(--green); font-size: 0.82rem; font-weight: 700; }
.sh-sizes { margin-top: 0; }
.sh-add { margin-top: 0; }

/* Photo enlarge */
.sh-lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 42, 0.88); cursor: zoom-out; }
.sh-lb figure { margin: 0; text-align: center; }
.sh-lb img { max-width: min(92vw, 720px); max-height: 78vh; border-radius: 14px; background: #fff; }
.sh-lb figcaption { margin-top: 10px; color: #fff; font-weight: 700; }
.sh-lb-x { position: absolute; top: 14px; right: 14px; }

.sh-resultbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-resultbar .sh-link { white-space: nowrap; }

@media (max-width: 639.98px) { .sh-sel { max-width: none; } }


/* Sizes and Add to cart sit directly under "N sizes in stock", beside the photo */
.sh-info .sh-pick { display: grid; gap: 8px; margin-top: 6px; }
.sh-info .sh-sizes { margin-top: 0; }
.sh-info .sh-add { width: 100%; margin: 0; height: 40px; }
/* "Please choose a size first": sits just above the size buttons of that card */
.sh-info .sh-pick { position: relative; }
.sh-need { position: absolute; left: 0; bottom: 100%; margin-bottom: 9px; z-index: 6; width: max-content; white-space: nowrap;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.78rem; line-height: 1.25; padding: 7px 11px; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3); animation: needPop 0.22s ease-out; }
.sh-need::after { content: ""; position: absolute; left: 18px; top: 100%; border: 6px solid transparent; border-top-color: var(--ink); }
.sh-need[hidden] { display: none; }
@media (max-width: 480px) { .sh-need { white-space: normal; max-width: 100%; width: auto; } }
@keyframes needPop { from { opacity: 0; transform: translateY(6px) scale(0.92); } to { opacity: 1; transform: none; } }
/* Add to cart plus a small WhatsApp button beside it */
.sh-buyrow { display: flex; gap: 8px; align-items: center; }
.sh-buyrow .sh-add { flex: 1 1 auto; min-width: 0; }
.sh-wa svg { width: 18px; height: 18px; }
.sh-wa { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; }
.sh-wa:hover { background: #1ebe5a; }
.sh-wa:focus-visible { outline: 3px solid rgba(37, 211, 102, 0.45); outline-offset: 2px; }
.sh-buyrow .sh-add { white-space: nowrap; }
@media (max-width: 420px) { .sh-buyrow .sh-add { font-size: 0.85rem; padding: 0 6px; } }
@media (max-width: 359.98px) {
  .sh-buyrow { gap: 6px; }
  .sh-wa { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; }
  .sh-wa svg { width: 17px; height: 17px; }
  .sh-buyrow .sh-add { font-size: 0.78rem; padding: 0 3px; }
}
.sh-left:empty { display: none; }

/* Delivery option cards */
.sh-pay.off { opacity: 0.45; pointer-events: none; }
.sh-pickup-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); }

.sh-dd { display: block; }
.sh-dd.bad { border-color: var(--red); }

/* Phones: the three filter dropdowns share one row */
@media (max-width: 639.98px) {
  .sh-filterbar { flex-wrap: nowrap; gap: 6px; padding: 10px; }
  .sh-sel { flex: 1 1 0; max-width: none; min-width: 0; gap: 4px; }
  .sh-sel span { font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sh-sel select { min-height: 42px; padding: 0 22px 0 9px; font-size: 0.82rem; background-position: right 6px center; background-size: 12px; text-overflow: ellipsis; }
}
@media (max-width: 359.98px) {
  .sh-filterbar { gap: 4px; padding: 8px; }
  .sh-sel select { padding: 0 16px 0 6px; font-size: 0.72rem; background-position: right 4px center; background-size: 10px; }
  .sh-sel span { font-size: 0.66rem; }
}

/* gap between the M-Pesa number box and the next payment option */
.sh-mpesa { margin-bottom: 10px; }

/* Long option names (e.g. the shop pickup with its address) end with an ellipsis instead of being cut off hard */
.sh-dd { text-overflow: ellipsis; }
@media (max-width: 639.98px) { .sh-dd { font-size: 0.92rem; } }

/* ── Checkout form: compact version (only affects .sh-form) ── */
.sh-form { gap: 10px; }
.sh-form .sh-box { padding: 11px 13px 12px; border-radius: 12px; }
.sh-form .sh-box legend { margin: 0 0 7px; font-size: 0.95rem; }
.sh-form .sh-field { gap: 3px; margin-bottom: 8px; }
.sh-form .sh-field > span { font-size: 0.8rem; }
.sh-form .sh-field input,
.sh-form .sh-field textarea { padding: 8px 11px; border-radius: 9px; font-size: 0.92rem; line-height: 1.35; }
.sh-form .sh-dd { min-height: 40px; border-radius: 9px; }
.sh-form .sh-row2 { gap: 0 10px; }
.sh-form .sh-err { font-size: 0.78rem; }

/* payment cards */
.sh-form .sh-pay { margin-bottom: 6px; }
.sh-form .sh-pay-card { padding: 8px 12px 8px 38px; border-radius: 10px; gap: 0; }
.sh-form .sh-pay-card::before { left: 11px; top: 11px; width: 17px; height: 17px; }
.sh-form .sh-pay-card b { font-size: 0.92rem; }
.sh-form .sh-pay-card small { font-size: 0.78rem; line-height: 1.3; }
.sh-form .sh-mpesa { margin: 2px 0 6px; padding: 7px 9px; border-radius: 10px; }
.sh-form .sh-mpesa .sh-field { margin-bottom: 0; }
.sh-form .sh-pickup-note { margin: 0 0 8px; padding: 7px 10px; font-size: 0.88rem; }
.sh-form #parcelNote { margin: 0 0 6px; font-size: 0.8rem; }

/* place-order button and small print */
.sh-form .sh-btn-lg { min-height: 48px; font-size: 1rem; }
.sh-form .sh-fine { font-size: 0.75rem; line-height: 1.35; }

/* phone + email side by side from 480px (was 640px) */
@media (min-width: 480px) { .sh-form .sh-row2 { grid-template-columns: 1fr 1fr; } }

/* Animated progress dots on a busy button ("Sending M-Pesa request...") */
.sh-dots { display: inline-flex; gap: 3px; margin-left: 5px; vertical-align: middle; }
.sh-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.25; animation: sh-dot 1.2s infinite ease-in-out; }
.sh-dots i:nth-child(2) { animation-delay: 0.2s; }
.sh-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes sh-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sh-btn:disabled .sh-dots i { opacity: 1; }
.sh-btn:disabled:has(.sh-dots) { opacity: 1; }

/* Progress button: the busy button fills left to right (slows down towards ~90%), then completes on success */
.sh-btn.sh-progress { position: relative; overflow: hidden; }
.sh-btn.sh-progress::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: rgba(15, 23, 42, 0.16);
  animation: sh-fill 14s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}
.sh-btn.sh-progress .sh-pl { position: relative; z-index: 1; }
.sh-btn.sh-progress.sh-done::before { animation: none; width: 100%; transition: width 0.25s ease-out; }
@keyframes sh-fill { from { width: 0; } to { width: 92%; } }

/* Phones: the first filter holds the longest name ("CrabKids Sport"), so it gets a little more room */
@media (max-width: 639.98px) {
  .sh-filterbar .sh-sel:first-child { flex-grow: 1.35; }
  .sh-filterbar .sh-sel select { padding: 0 18px 0 7px; font-size: 0.78rem; background-position: right 4px center; background-size: 11px; }
}
@media (max-width: 359.98px) {
  .sh-filterbar .sh-sel select { padding: 0 15px 0 5px; font-size: 0.68rem; background-position: right 3px center; background-size: 9px; }
}

/* ── Other ways to pay on the order page: resend the request, or pay by Paybill ── */
.sh-sent { color: var(--green); font-weight: 700; }
.sh-help { margin: 14px auto 0; max-width: 420px; text-align: left; border: 1px solid #c7d6fb; border-radius: 12px; background: #fff; }
.sh-help > summary { cursor: pointer; padding: 12px 14px; font-weight: 800; color: var(--blue); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.sh-help > summary::-webkit-details-marker { display: none; }
.sh-help > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s; margin-top: -4px; }
.sh-help[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.sh-help-body { padding: 0 14px 14px; }
.sh-help-body p { margin-left: 0; margin-right: 0; }
.sh-help-body .sh-field.sh-inline { max-width: none; }
.sh-help-body .sh-actions { justify-content: flex-start; }
.sh-paybill { margin: 16px auto 0; max-width: 420px; text-align: left; padding: 14px; border: 1.5px dashed #b7c4e0; border-radius: 12px; background: #fff; }
.sh-help-body .sh-paybill { margin-top: 14px; }
.sh-pb-title { font-weight: 800; margin-bottom: 2px; }
.sh-pb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.sh-pb-k { flex: 0 0 100%; color: var(--muted); font-size: 0.8rem; }
.sh-pb-v { flex: 1 1 auto; font-size: 1.25rem; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.sh-copy { flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 8px; padding: 5px 11px; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.sh-copy:hover { background: #eaf0fb; }
.sh-copy.is-copied { background: var(--green-soft); border-color: #b7e6d0; color: var(--green); }
.sh-copy:disabled { opacity: 0.6; cursor: default; }
.sh-pb-note { margin: 8px 0 0; }
