/* ==========================================================================
   Shop module styles (loaded only on shop-*.php pages)
   Look: engineering blueprint. Grid paper, ink-outlined parts, hard offset shadows (same language as the
   site's "Buy Robotic Kits" button), brand orange for the one action that matters on each screen.
   ========================================================================== */
.shop-page {
  --ink: #0e1a3a;
  --ink-2: #2a3866;
  --paper: #eef3fa;
  --grid: rgba(14, 26, 58, .07);
  --line: #b7c2da;
  --muted: #55607f;
  --orange: #f26b1d;
  --orange-d: #b84a09;
  --yellow: #ffc83d;
  --teal: #0b8a7c;
  --red: #c8321f;
  --white: #fff;
  --font-display: "Lexend", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

.shop-wrap {
  padding: 48px 0 96px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.shop-wrap h1, .shop-wrap h2, .shop-wrap h3, .shop-wrap h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.shop-wrap a { color: var(--ink-2); text-underline-offset: 3px; }
.shop-wrap a:hover { color: var(--orange-d); }
.shop-wrap :focus-visible, .shop-hero :focus-visible { outline: 3px solid #3361ff; outline-offset: 2px; }
.shop-alert { border-radius: 8px; border: 2px solid var(--ink); margin-bottom: 20px; font-weight: 500; }
.shop-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shop-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* ---- hero band ------------------------------------------------------------------------------------ */
.shop-hero {
  position: relative;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff;
  font-family: var(--font-body);
  border-bottom: 4px solid var(--orange);
}
.shop-hero-compact { padding: 176px 0 40px; }
.shop-hero-full { padding: 176px 0 64px; }
.shop-hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.shop-hero-full .shop-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.shop-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #b9c4e2; margin-bottom: 14px; }
.shop-crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.shop-crumbs a:hover { color: var(--yellow); border-color: var(--yellow); }
.shop-hero-title { font-family: var(--font-display); font-weight: 700; color: #fff; margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.shop-hero-full .shop-hero-title { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; max-width: 14ch; }
.shop-hero-lead { font-size: 19px; color: #d3dbf1; max-width: 46ch; margin: 18px 0 0; }
.shop-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; font-weight: 600; font-size: 15px; }
.shop-trust i { color: var(--yellow); margin-right: 8px; }
.shop-hero-art { justify-self: end; width: min(100%, 360px); }

/* line-drawn robot */
.rb { display: block; width: 100%; height: auto; overflow: visible; --rb-line: #fff; --rb-grid: rgba(255,255,255,.1); --rb-fill: rgba(255,255,255,.05); }
.rb-empty { --rb-line: var(--ink); --rb-grid: rgba(14,26,58,.1); --rb-fill: #fff; }
.rb .rb-grid path { stroke: var(--rb-grid); stroke-width: 1; fill: none; }
.rb .rb-line { fill: none; stroke: var(--rb-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rb .rb-line .rb-fill { fill: var(--rb-fill); }
.rb .rb-acc-fill { fill: var(--orange); }
.rb .rb-pupil { fill: #0e1a3a; }
.rb .rb-dim path { stroke: var(--yellow); stroke-width: 1.5; fill: none; stroke-dasharray: 5 4; }
.rb .rb-dim text { fill: var(--yellow); font: 600 12px var(--font-body); }
.rb-empty .rb-dim { display: none; }
.rb .rb-eyes { transform-box: fill-box; transform-origin: center; animation: rb-blink 6s infinite; }
@keyframes rb-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }

/* ---- buttons -------------------------------------------------------------------------------------- */
.shop-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; border: 2px solid var(--ink);
  font: 600 15px/1.2 var(--font-display); letter-spacing: 0;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.shop-btn-primary { background: var(--orange); color: var(--ink) !important; box-shadow: 3px 3px 0 var(--ink); }
.shop-btn-primary:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); background: #ff7d33; }
.shop-btn-primary:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.shop-btn-ghost { background: #fff; color: var(--ink) !important; }
.shop-btn-ghost:hover { background: var(--yellow); }
.shop-btn-lg { padding: 15px 26px; font-size: 16px; }
.shop-btn-sm { padding: 7px 14px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }
.shop-btn-block { display: flex; width: 100%; }
.shop-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.shop-icon-btn { background: none; border: 0; color: var(--muted); font-size: 16px; padding: 8px; cursor: pointer; border-radius: 6px; }
.shop-icon-btn:hover { color: var(--red); background: #fdeceb; }

/* ---- shop listing: filter bar ----------------------------------------------------------------------- */
.shop-filterbar { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-cats a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 8px;
  background: #fff; color: var(--ink); font: 600 14px var(--font-display); text-decoration: none;
  transition: background-color .12s ease;
}
.shop-cats a b { font: 600 12px var(--font-body); color: var(--muted); }
.shop-cats a:hover { background: var(--yellow); color: var(--ink); }
.shop-cats a.is-active { background: var(--ink); color: #fff; }
.shop-cats a.is-active b { color: #c9d3ee; }
.shop-search { display: flex; border: 2px solid var(--ink); border-radius: 8px; background: #fff; overflow: hidden; min-width: min(100%, 300px); }
.shop-search:focus-within { box-shadow: 3px 3px 0 var(--ink); }
.shop-search input { flex: 1; min-width: 0; border: 0; padding: 10px 14px; outline: 0; background: transparent; font: 500 15px var(--font-body); color: var(--ink); }
.shop-search button { border: 0; border-left: 2px solid var(--ink); background: var(--orange); color: var(--ink); padding: 0 16px; cursor: pointer; }
.shop-listhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; font-weight: 500; }
.shop-listhead strong { font-family: var(--font-display); }
.shop-clear { margin-left: 8px; font-size: 14px; }
.shop-sort select, .shop-input {
  border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink);
  font: 500 15px var(--font-body); padding: 10px 14px; width: 100%;
}
.shop-sort select { width: auto; padding: 8px 12px; }
.shop-pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.shop-pagination a, .shop-pagination span { min-width: 42px; padding: 8px 12px; text-align: center; border-radius: 8px; background: #fff; border: 2px solid var(--ink); font: 600 14px var(--font-display); text-decoration: none; color: var(--ink); }
.shop-pagination a:hover { background: var(--yellow); }
.shop-pagination .current { background: var(--ink); color: #fff; }
.shop-pagination .dots { border: 0; background: none; }

/* ---- product card ----------------------------------------------------------------------------------- */
.shop-card { background: #fff; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: transform .14s ease, box-shadow .14s ease; }
.shop-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.shop-plate {
  position: relative; display: block; aspect-ratio: 4 / 3; border-bottom: 2px solid var(--ink); overflow: hidden;
  background-color: #f6f9ff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px;
}
.shop-plate::before, .shop-plate::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--ink); pointer-events: none; z-index: 2; }
.shop-plate::before { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.shop-plate::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.shop-plate img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s ease; }
.shop-card:hover .shop-plate img { transform: scale(1.04); }
.shop-sku { position: absolute; right: 8px; top: 8px; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; padding: 1px 7px; font: 600 12px var(--font-body); color: var(--ink); z-index: 3; }
.shop-save-tag { position: absolute; left: 8px; bottom: 8px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; padding: 2px 9px; font: 700 13px var(--font-display); color: var(--ink); z-index: 3; margin-left: 0; }
.shop-soldout { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; text-align: center; padding: 6px; font: 600 13px var(--font-display); z-index: 3; }
.shop-card.is-out .shop-plate img { filter: grayscale(1); opacity: .55; }
.shop-card-body { padding: 16px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.shop-card-cat { font-size: 13px; font-weight: 600; color: var(--muted) !important; text-decoration: none; }
.shop-card-cat:hover { color: var(--orange-d) !important; text-decoration: underline; }
.shop-card-title { font-size: 18px; font-weight: 600; margin: 4px 0 8px; }
.shop-card-title a { color: var(--ink); text-decoration: none; }
.shop-card-title a:hover { color: var(--orange-d); }
.shop-card-desc { font-size: 14px; color: var(--muted); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.shop-card-actions { display: flex; gap: 8px; margin-top: 14px; }
.shop-card-actions form { margin: 0; }
.shop-card-actions .shop-btn-ghost { flex: 1; padding: 9px 12px; font-size: 14px; }
.shop-card-actions .shop-btn-primary { padding: 9px 14px; }
.shop-price strong { font: 700 22px var(--font-display); color: var(--ink); }
.shop-price del { color: var(--muted); margin-left: 8px; font-size: 14px; }
.shop-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.shop-stock i { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); display: inline-block; }
.shop-stock-low i { background: var(--orange); }
.shop-stock-out i { background: var(--red); }
.shop-stock-out { color: var(--red); }

/* empty state */
.shop-empty { text-align: center; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 44px 20px 48px; box-shadow: 6px 6px 0 var(--ink); max-width: 560px; margin: 8px auto; }
.shop-empty .rb { width: 150px; margin: 0 auto 6px; }
.shop-empty > i { font-size: 44px; color: var(--ink); }
.shop-empty h3 { margin: 14px 0 8px; font-size: 24px; }
.shop-empty p { color: var(--muted); margin: 0 auto 20px; max-width: 42ch; }

/* ---- product detail --------------------------------------------------------------------------------- */
.shop-detail { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 28px 14px; box-shadow: 6px 6px 0 var(--ink); margin: 0 0 40px; }
.shop-gallery-main { position: relative; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background-color: #f6f9ff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.shop-gallery-main::before, .shop-gallery-main::after { content: ""; position: absolute; width: 24px; height: 24px; border: 2px solid var(--ink); z-index: 2; pointer-events: none; }
.shop-gallery-main::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.shop-gallery-main::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.shop-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.shop-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.shop-gallery-thumbs button { width: 74px; height: 74px; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.shop-gallery-thumbs button.active, .shop-gallery-thumbs button:hover { border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.shop-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.shop-detail-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin: 6px 0 14px; }
.shop-detail-price strong { font: 800 36px var(--font-display); }
.shop-detail-price del { color: var(--muted); margin-left: 10px; font-size: 18px; }
.shop-detail-price small { display: block; color: var(--muted); margin-top: 2px; font-size: 14px; }
.shop-save { margin-left: 12px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; font: 700 13px var(--font-display); padding: 2px 9px; }
.shop-detail-lead { font-size: 17px; margin: 18px 0; max-width: 56ch; }
.shop-detail-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.shop-qty label { display: block; font: 600 14px var(--font-display); margin-bottom: 6px; }
.shop-qty-box { display: inline-flex; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; }
.shop-qty-box button { width: 44px; border: 0; background: #fff; font-size: 20px; cursor: pointer; color: var(--ink); }
.shop-qty-box button:hover { background: var(--yellow); }
.shop-qty-box input { width: 58px; text-align: center; border: 0; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); outline: 0; font: 700 17px var(--font-display); color: var(--ink); -moz-appearance: textfield; }
.shop-qty-box input::-webkit-outer-spin-button, .shop-qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-buy-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.shop-soldout-note { background: #fdeceb; border: 2px solid var(--red); color: #7b1a0f; border-radius: 8px; padding: 14px 16px; }
.shop-assure { list-style: none; margin: 28px 0 0; padding: 18px 0 0; border-top: 2px dashed var(--line); display: grid; gap: 10px; font-size: 15px; font-weight: 500; }
.shop-assure i { color: var(--ink); width: 22px; }
.shop-tabs, .shop-related { margin-top: 40px; }
.shop-tabs h2, .shop-related h2 { font-size: 26px; margin-bottom: 16px; font-weight: 700; }
.shop-desc { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 24px 26px; line-height: 1.75; max-width: 78ch; }

/* ---- checkout flow tracker -------------------------------------------------------------------------- */
.shop-flow { list-style: none; display: flex; gap: 0; margin: 0 0 30px; padding: 0; counter-reset: flow; }
.shop-flow li { flex: 1; display: flex; align-items: center; gap: 10px; font: 600 14px var(--font-display); color: var(--muted); position: relative; padding-right: 12px; }
.shop-flow li::before { counter-increment: flow; content: counter(flow); flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; font: 700 14px var(--font-display); color: var(--ink); }
.shop-flow li::after { content: ""; flex: 1; height: 0; border-top: 2px dashed var(--line); margin-left: 6px; }
.shop-flow li:last-child::after { display: none; }
.shop-flow li.is-done { color: var(--ink); }
.shop-flow li.is-done::before { background: var(--ink); color: #fff; content: "\2713"; }
.shop-flow li.is-now { color: var(--ink); }
.shop-flow li.is-now::before { background: var(--orange); box-shadow: 2px 2px 0 var(--ink); }

/* ---- cart / order tables ---------------------------------------------------------------------------- */
.shop-table-wrap { background: #fff; border: 2px solid var(--ink); border-radius: 10px; overflow-x: auto; }
.shop-table { width: 100%; border-collapse: collapse; }
.shop-table th { text-align: left; font: 600 13px var(--font-display); color: var(--muted); padding: 13px 16px; border-bottom: 2px solid var(--ink); background: #f6f9ff; white-space: nowrap; }
.shop-table td { padding: 14px 16px; border-bottom: 1.5px dashed var(--line); vertical-align: middle; }
.shop-table tr:last-child td { border-bottom: 0; }
.shop-td-img { width: 88px; }
.shop-td-img img { width: 68px; height: 68px; object-fit: contain; border: 2px solid var(--ink); border-radius: 8px; background: #f6f9ff; padding: 4px; }
.shop-td-name { font: 600 16px var(--font-display); color: var(--ink) !important; text-decoration: none; }
.shop-td-name:hover { color: var(--orange-d) !important; text-decoration: underline; }
.shop-qty-input { width: 72px; border: 2px solid var(--ink); border-radius: 8px; padding: 7px 8px; text-align: center; font: 700 16px var(--font-display); background: #fff; color: var(--ink); }
.shop-cart-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---- panels, summary -------------------------------------------------------------------------------- */
.shop-panel { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 28px; }
.shop-panel h3 { font-size: 22px; font-weight: 700; margin: 0 0 18px; }
.shop-summary { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 24px; box-shadow: 6px 6px 0 var(--ink); position: sticky; top: 110px; }
.shop-summary h3 { font-size: 20px; font-weight: 700; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.shop-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 14px; }
.shop-summary dt { font-weight: 500; color: var(--ink-2); }
.shop-summary dd { margin: 0; font-weight: 700; text-align: right; }
.shop-summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 18px; font: 600 16px var(--font-display); }
.shop-summary-total strong { font: 800 28px var(--font-display); }
.shop-mini-items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.shop-mini-items li { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; font-size: 14px; font-weight: 500; }
.shop-mini-items img { width: 54px; height: 54px; border: 2px solid var(--ink); border-radius: 8px; object-fit: contain; background: #f6f9ff; padding: 3px; }
.shop-mini-items small { display: block; color: var(--muted); }
.shop-link-center { display: block; text-align: center; margin-top: 12px; font-size: 14px; }

/* ---- forms ------------------------------------------------------------------------------------------ */
.shop-label { display: block; font: 600 14px var(--font-display); margin-bottom: 6px; }
.shop-input::placeholder { color: #8591ad; }
.shop-input:focus, .shop-sort select:focus { outline: 0; box-shadow: 3px 3px 0 var(--orange); }
.shop-input:disabled { background: #eef1f8; color: var(--muted); }
.shop-input.is-invalid { border-color: var(--red); background: #fff7f6; }
.shop-field-error { color: var(--red); font-size: 14px; font-weight: 600; margin-top: 5px; }
.shop-check { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.shop-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.shop-pay-opts { display: grid; gap: 12px; margin: 0 0 6px; }
.shop-pay-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 2px solid var(--ink); border-radius: 10px; padding: 14px 16px; background: #fff; cursor: pointer; }
.shop-pay-opt input { width: 20px; height: 20px; accent-color: var(--ink); }
.shop-pay-opt:has(input:checked) { background: #fff6e8; box-shadow: 4px 4px 0 var(--ink); }
.shop-pay-opt strong { display: block; font: 600 16px var(--font-display); }
.shop-pay-opt span { display: block; color: var(--muted); font-size: 14px; }
.shop-pay-opt > i { font-size: 22px; }
.shop-pay-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 30px; }
.shop-address { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1.5px dashed var(--line); font-size: 15px; }
.shop-address:last-child { border-bottom: 0; }

/* ---- login / register ------------------------------------------------------------------------------- */
.shop-auth-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-width: 1000px; margin: 8px auto 0; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 8px 8px 0 var(--ink); }
.shop-auth-side {
  background-color: var(--ink); color: #fff; padding: 36px 34px;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.shop-auth-side .rb { width: 190px; margin: 0 auto 4px; }
.shop-auth-side h2 { color: #fff !important; font-size: 26px; font-weight: 700; margin: 0; }
.shop-auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-weight: 500; color: #d3dbf1; }
.shop-auth-side li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.shop-auth-side li i { color: var(--yellow); margin-top: 4px; }
.shop-auth-main { padding: 38px 40px 34px; }
.shop-auth-main h1, .shop-auth-main h3 { font-size: 28px; font-weight: 700; margin: 0 0 6px; }
.shop-auth-sub { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.shop-auth-alt { text-align: center; margin: 22px 0 0; color: var(--muted); }
.shop-auth-alt a { font-weight: 700; color: var(--ink); }
.shop-auth { max-width: 520px; margin: 8px auto 0; box-shadow: 8px 8px 0 var(--ink); }

/* ---- order pages ------------------------------------------------------------------------------------ */
.shop-thanks { display: flex; gap: 18px; align-items: center; background: #e6f7f3; border: 2px solid var(--teal); border-radius: 10px; padding: 20px 24px; margin-bottom: 24px; }
.shop-thanks > i { font-size: 38px; color: var(--teal); }
.shop-thanks h3 { margin: 0 0 4px; font-size: 20px; }
.shop-thanks p { margin: 0; color: #124a43; }
.shop-order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.shop-steps { list-style: none; display: flex; justify-content: space-between; margin: 22px 0; padding: 0; position: relative; }
.shop-steps::before { content: ""; position: absolute; top: 16px; left: 8%; right: 8%; border-top: 2px dashed var(--line); }
.shop-steps li { position: relative; flex: 1; text-align: center; font: 600 13px var(--font-display); color: var(--muted); }
.shop-steps li span { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 2px solid var(--line); position: relative; z-index: 1; }
.shop-steps li.done { color: var(--ink); }
.shop-steps li.done span { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge { border-radius: 6px !important; font-weight: 600 !important; letter-spacing: 0; }
.badge.bg-warning { color: #212529 !important; }

/* ---- pagination, misc ------------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .shop-hero-compact, .shop-hero-full { padding-top: 120px; }
  .shop-hero-full .shop-hero-grid { grid-template-columns: 1fr; }
  .shop-hero-art { display: none; }
  .shop-summary { position: static; }
  .shop-auth-wrap { grid-template-columns: 1fr; }
  .shop-auth-side { padding: 26px 24px; flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
  .shop-auth-side .rb { width: 90px; margin: 0; }
  .shop-auth-side h2 { flex: 1; min-width: 180px; font-size: 22px; }
  .shop-auth-side ul { width: 100%; }
}
@media (max-width: 767px) {
  .shop-wrap { padding: 32px 0 64px; }
  .shop-hero-compact, .shop-hero-full { padding-bottom: 28px; }
  .shop-detail { padding: 18px 6px; }
  .shop-panel { padding: 20px; }
  .shop-auth-main { padding: 26px 22px; }
  .shop-flow li { font-size: 12px; }
  .shop-flow li::after { display: none; }
  .shop-table thead { display: none; }
  .shop-table, .shop-table tbody, .shop-table tr, .shop-table td { display: block; width: 100%; }
  .shop-table tr { padding: 14px; border-bottom: 2px solid var(--ink); }
  .shop-table tr:last-child { border-bottom: 0; }
  .shop-table td { padding: 5px 0; border: 0; text-align: left !important; }
  .shop-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); font-size: 13px; margin-right: 6px; }
  .shop-td-img { width: auto; }
  .shop-td-img img { width: 76px; height: 76px; }
  .shop-steps li { font-size: 11px; }
  .shop-filterbar { flex-direction: column; align-items: stretch; }
  .shop-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .shop-cats a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .rb .rb-eyes { animation: none; }
  .shop-card, .shop-card:hover, .shop-btn, .shop-plate img { transition: none; }
}

/* ---- layout guards against the main site's global rules --------------------------------------------- */
.shop-hero .container, .shop-wrap .container { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.shop-hero .shop-hero-lead { color: #d3dbf1 !important; opacity: 1 !important; }
.shop-hero .shop-hero-title { color: #fff !important; }
@media (max-width: 575px) { .shop-hero .container, .shop-wrap .container { padding-left: 16px; padding-right: 16px; } }
