/* JRShub storefront. Brand colors:
   cyan #1AC8DB (buttons, never text on white), deep blue #0292B7 (focus, accents),
   link teal #01617A (text-safe 7:1), charcoal #373435 (body), ink #1E1C1D (headings),
   gray-blue #DEE2EC (borders), soft #F4F6FA (surfaces), taupe #8C756A (decorative only). */
:root {
  --cyan: #1AC8DB; --cyan-hover: #13B3C5; --blue: #0292B7; --link: #01617A; --link-hover: #014456;
  --ink: #1E1C1D; --text: #373435; --muted: #5C5859; --line: #DEE2EC; --soft: #F4F6FA; --white: #FFFFFF;
  --ok-fg: #0B5A3A; --ok-bg: #E3F4EC; --warn-fg: #5A4A42; --warn-bg: #EFE9E5; --err: #A12622;
  --radius: 12px; --max: 1240px;
  --display: Outfit, Inter, system-ui, sans-serif; --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--link); } a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Top bar & header */
.topbar { background: var(--text); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #fff; font-weight: 600; }
.header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.logo img { height: 44px; width: auto; }
.search { flex: 1 1 320px; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--text); border: 2px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: #fff; }
.search button { height: 48px; width: 56px; border: 0; border-radius: 0 10px 10px 0; background: var(--cyan); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search button:hover { background: var(--cyan-hover); }
.cart-link { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 500; min-height: 44px; }
.cart-count { background: var(--cyan); color: var(--ink); border-radius: 999px; font-size: 13px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.catnav { display: flex; flex-wrap: wrap; gap: 0 28px; padding-bottom: 8px; font-weight: 500; font-size: 15px; }
.catnav a { color: var(--text); text-decoration: none; padding: 8px 0; }
.catnav a:hover { color: var(--link); text-decoration: underline; }
.catnav a.all { color: var(--link); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: var(--radius); border: 0; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--cyan); color: var(--ink); } .btn-primary:hover { background: var(--cyan-hover); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: #fff; color: var(--text); border: 2px solid var(--text); } .btn-outline:hover { color: var(--ink); background: var(--soft); }
.btn-block { width: 100%; min-height: 56px; font-size: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.link-btn { display: inline-flex; align-items: center; background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 600; color: var(--link); text-decoration: underline; cursor: pointer; }
.link-btn.danger { color: var(--err); }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #C9CED8; background: #fff; font: inherit; font-size: 15px; color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--blue); }

/* Badges */
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge-ok { color: var(--ok-fg); background: var(--ok-bg); }
.badge-warn { color: var(--warn-fg); background: var(--warn-bg); }
.badge-out { color: var(--text); background: var(--line); }

/* Notices */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; font-size: 15px; }
.notice-warn { background: var(--warn-bg); color: #3D322D; }
.notice-error { background: #FBEAEA; color: #7A1D1A; }
.notice-ok { background: var(--ok-bg); color: var(--ok-fg); }

/* Home */
.hero { background: var(--soft); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.eyebrow img { width: 28px; height: 28px; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.hero p.lead { font-size: 19px; line-height: 1.6; max-width: 34em; }
.hero-art { flex: 1 1 380px; min-width: 0; aspect-ratio: 5 / 4; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.hero-art img { width: 60%; height: auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.promises { border-bottom: 1px solid var(--line); }
.promises .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; padding-top: 36px; padding-bottom: 36px; }
.promise { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.promise svg { flex: none; }
.promise strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: 16px; }
.section { padding-top: 64px; padding-bottom: 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 19px; }
.cat-card:hover { border-color: var(--blue); color: var(--ink); }
.cat-card small { display: block; font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--muted); }
.steps-band { background: var(--soft); margin-top: 48px; }
.steps-band .wrap { padding-top: 64px; padding-bottom: 64px; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.steps li { background: #fff; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--cyan); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.cta-band { margin: 64px auto; border-radius: 20px; background: var(--cyan); padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; color: var(--ink); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); }
.card:hover .card-name { text-decoration: underline; }
.card-img { aspect-ratio: 1 / 1; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card-name { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--ink); }
.card-price strong { color: var(--ink); }
.card .badge { align-self: flex-start; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }

/* Shop layout */
.crumbs { font-size: 14px; margin: 24px 0 12px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.shop { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 72px; }
.filters { flex: 1 1 240px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.filters legend { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.filters label { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 15px; cursor: pointer; }
.filters input[type=checkbox], .filters input[type=radio] { width: 18px; height: 18px; accent-color: var(--blue); }
.filters .toggle { min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--soft); font-weight: 600; }
.results { flex: 999 1 560px; min-width: 0; }
.select { height: 44px; padding: 0 12px; font: inherit; color: var(--text); border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; align-items: center; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; padding: 0 12px; }
.pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 48px; border-radius: 16px; background: var(--soft); text-align: center; }

/* Product page */
.pdp { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-bottom: 24px; }
.gallery { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.thumbs button { aspect-ratio: 1 / 1; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; overflow: hidden; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border: 2px solid var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buybox { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.price-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--ink); }
.field-label { font-weight: 600; color: var(--ink); font-size: 16px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue); }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.stock-dot { width: 10px; height: 10px; border-radius: 50%; background: #13865A; flex: none; }
.stock-dot.low { background: #8C756A; }
.qty-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qty-input { width: 140px; height: 52px; padding: 0 16px; font: inherit; font-size: 20px; font-weight: 600; color: var(--ink); border: 2px solid #C9CED8; border-radius: 10px; }
.qty-input[aria-invalid="true"] { border-color: var(--err); }
.error-text { font-size: 15px; font-weight: 600; color: var(--err); }
.tiers { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tiers th, .tiers td { padding: 10px 16px; text-align: left; border-top: 1px solid var(--line); }
.tiers th:last-child, .tiers td:last-child { text-align: right; }
.tiers thead th { background: var(--soft); border-top: 0; font-weight: 600; }
.tiers tr.active td { background: #E3F7FA; font-weight: 600; }
.imprint { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; }
.imprint:has(input:checked) { border-color: var(--blue); background: #F2FBFC; }
.imprint input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.imprint-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.imprint-methods label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.summary { border-radius: 16px; background: var(--soft); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-row small { display: block; color: var(--muted); font-size: 13px; }
.sum-total { border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-total .amt { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--ink); }
.free { font-weight: 600; color: var(--ok-fg); }
.details { display: flex; flex-wrap: wrap; gap: 48px; padding: 56px 0 72px; }
.details section { flex: 1 1 420px; min-width: 0; }
.details ul { padding-left: 22px; font-size: 17px; line-height: 1.65; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-size: 16px; margin: 16px 0 0; }
.specs dt { font-weight: 600; } .specs dd { margin: 0; }

/* Cart / checkout / order */
.two-col { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 72px; }
.main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.side-col { flex: 1 1 340px; min-width: 0; }
.line-item { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; }
.line-thumb { width: 104px; height: 104px; flex: none; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.line-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.line-body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.line-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.line-price { text-align: right; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); }
.line-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.line-actions input { width: 110px; height: 44px; padding: 0 12px; font: inherit; border: 2px solid var(--line); border-radius: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text); border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field .hint { font-size: 13px; color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; }
.timeline li[aria-current="step"] { background: #F2FBFC; }
.tl-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: var(--soft); color: var(--ink); }
.tl-done .tl-dot { background: var(--cyan); }
li[aria-current="step"] .tl-dot { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }

/* Footer */
.footer { background: var(--ink); color: var(--line); margin-top: 0; }
.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer a { color: var(--line); }
.footer h2 { font-family: var(--body); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer img { height: 48px; width: auto; align-self: flex-start; }
.footer-bottom { border-top: 1px solid var(--text); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; font-size: 14px; grid-template-columns: none; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 72px; font-size: 17px; line-height: 1.7; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 24px; }
.legal-toc { background: var(--soft); border-radius: 12px; padding: 16px 20px; margin: 20px 0 8px; font-size: 15px; }
.legal-toc ol { margin: 0; columns: 2 220px; }
