/* DigitalPart storefront. Tokens and classes from reference/handoff/code/styles.css; additions at the end. */

@layer base {
  button:not(:disabled),
  [role="button"]:not(:disabled) {
    cursor: pointer;
  }
}
:root {
  --cream: #f6f4ef;
  --cream-2: #fbfaf7;
  --navy: #1b2a4a;
  --navy-2: #24365e;
  --blue: #0078d1;
  --line: #e6e1d6;
  --muted: #6b7280;
  --ok: #1f8a4c;
}

* { box-sizing: border-box; }
html, body { background: var(--cream); color: var(--navy); }
body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  min-width: 320px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container-shell {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1040;
}
.site-header .row-head {
  min-height: 76px;
  gap: 16px;
  display: flex;
  align-items: center;
  direction: rtl;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand .word {
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
}
.btn-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.btn-icon:hover { border-color: var(--navy); color: var(--navy); }
.btn-hamburger { border-color: var(--navy); }

.search-wrap { flex: 1; min-width: 240px; position: relative; }
.search-wrap .form-control {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border-color: var(--line);
  background: var(--cream-2);
  padding-inline: 18px 44px;
}
.search-wrap .form-control:focus {
  box-shadow: 0 0 0 .2rem rgba(0,120,209,.15);
  border-color: var(--blue);
}
.search-wrap .bi-search {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-field { position: relative; }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(27, 42, 74, 0.14);
  z-index: 40;
  overflow: hidden;
}
.search-hit {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font: inherit;
  color: inherit;
}
.search-hit:last-child { border-bottom: 0; }
.search-hit:hover { background: var(--cream); }
.search-hit img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--cream-2);
  border-radius: 12px;
}
.hit-name { display: block; font-size: 14px; }
.hit-name mark {
  background: #fff4e8;
  color: #c05621;
  border-radius: 4px;
  padding: 0 2px;
}
.search-empty { margin: 0; padding: 14px; color: var(--muted); font-size: 14px; }
.buy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
  direction: rtl;
}
.buy-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  position: relative;
  padding-bottom: 84px;
}
.buy-photo > img { max-height: 340px; object-fit: contain; }
.gal-arrow {
  position: absolute;
  top: 38%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}
.gal-arrow.prev { left: 12px; }
.gal-arrow.next { right: 12px; }
.thumbs { position: absolute; bottom: 12px; display: flex; gap: 8px; }
.thumb-btn {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  padding: 4px;
}
.thumb-btn.on { border-color: var(--navy); }
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.review-head { display: flex; align-items: center; gap: 8px; }
.review-head .stars { margin-inline-start: auto; }
.bought {
  display: inline-flex;
  align-items: center;
  background: #e8f6ee;
  color: #1c7a45;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
}
.buy-info { text-align: right; }
.rate-row, .price-row, .buy-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rate-row { margin: 6px 0 10px; }
.price.big { font-size: 22px; }
.badge-off.static { position: static; }
.stars { display: inline-flex; gap: 2px; }
.star {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #d9d3c7;
}
.star.on { color: #f5b400; }
.star svg { fill: currentColor; }
.star:disabled { cursor: default; }
.opt-block { margin: 14px 0; }
.opt-title { font-weight: 800; margin-bottom: 8px; }
.opt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  color: var(--navy);
}
.pill.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill small { font-weight: 600; opacity: 0.8; }
.combo { display: flex; gap: 8px; font-weight: 700; }
.combo span { color: var(--muted); font-weight: 600; }
.tab-bar { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
}
.tab.on { color: var(--navy); border-bottom-color: var(--navy); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 34%; color: var(--muted); font-weight: 700; }
.about p { line-height: 1.7; }
.product-video { width: 100%; max-width: 720px; aspect-ratio: 16/9; border: 0; border-radius: 16px; margin-top: 12px; background: #111; }
.review { border-bottom: 1px solid var(--line); padding: 12px 0; }
.review-form { margin-top: 16px; max-width: 520px; }
.card-link { display: block; color: inherit; }
.card-link:hover h3 { color: var(--blue); }
.variant-chip {
  display: inline-block;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--navy);
  background: var(--cream);
}
@media (max-width: 800px) {
  .buy-grid { grid-template-columns: 1fr; }
  .buy-photo { order: -1; min-height: 220px; }
}

.account-link, .cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  background: none;
  border: 0;
}
.account-link .label { font-size: 14px; font-weight: 600; }
.account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.account-avatar.logged {
  background: var(--navy);
  color: #fff;
  border: 0;
  font-weight: 700;
}
.account-avatar.logged .dot {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: 0;
  left: 0;
}
.cart-btn { position: relative; padding: 6px; }
.cart-badge {
  position: absolute;
  top: 0;
  left: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #e07a2f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(27,42,74,.12);
  padding: 8px;
  min-width: 200px;
}
.dropdown-item { border-radius: 10px; padding: 8px 12px; }

/* Mega menu */
.mega {
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  width: min(560px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(27,42,74,.16);
  padding: 18px;
  display: none;
  overflow: hidden;
}
.mega.open { display: block; }
.mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mega-head h2 { font-size: 16px; font-weight: 800; margin: 0; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cat-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.cat-tile img {
  height: 72px;
  object-fit: contain;
  margin-bottom: 8px;
}
.cat-tile strong { display: block; font-size: 13px; }
.cat-tile.has-sub:hover,
.cat-tile.active {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy) inset;
}
.mega-panel { display: none; }
.mega-panel.active { display: block; }

/* Hero */
.hero {
  padding: 28px 0 10px;
}
.hero-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-photo { min-height: 320px; padding: 0; }
.hero-slider .carousel-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-copy { padding: 36px 32px; }
.hero-copy h1 {
  font-weight: 900;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.35;
  margin-bottom: 12px;
}
.hero-copy p { color: var(--muted); font-size: 15px; }
.btn-navy {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
}
.btn-navy:hover { background: var(--navy-2); color: #fff; }

.chips { gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--navy);
}
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Cards */
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  height: 100%;
  position: relative;
}
.product-card .thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.product-card .thumb img { max-height: 170px; object-fit: contain; }
.badge-off {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff4e8;
  color: #c05621;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}
.product-card h3 { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.product-card .meta { color: var(--muted); font-size: 12px; }
.price-old { color: #9aa3b2; text-decoration: line-through; font-size: 13px; }
.price { font-weight: 800; }
.in-stock { color: var(--ok); font-size: 13px; font-weight: 700; }

/* Footer */
.site-footer { margin-top: 40px; background: var(--cream-2); border-top: 1px solid var(--line); }
.site-footer .cols { padding-top: 36px; padding-bottom: 20px; }
.site-footer h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr auto;
  gap: 36px;
  align-items: start;
}
.footer-main .brand { margin-bottom: 16px; }
.footer-main p { margin: 0 0 12px; color: #3d4a63; font-size: 14px; line-height: 1.8; }
.footer-main > div > a { font-weight: 700; font-size: 14px; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 12px; }
.footer-contact li { margin-bottom: 10px; color: #3d4a63; font-size: 14px; line-height: 1.6; }
.footer-contact li span { display: block; color: var(--muted); font-size: 12px; }
.seal-row { display: flex; gap: 12px; align-items: center; }
.seal {
  width: 92px;
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex: none;
}
.seal img { max-width: 64px; max-height: 64px; width: auto; height: auto; }
.seal-enamad { width: auto; height: auto; padding: 8px; }
.seal-enamad img { width: 125px; height: 136px; max-width: none; max-height: none; display: block; }
.footer-bar {
  background: var(--navy);
  color: #e8eef8;
  padding: 14px 0;
  font-size: 13px;
}

.toast-cart {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  display: none;
  z-index: 1080;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.toast-cart.show { display: block; }

@media (max-width: 991px) {
  .hero-photo { min-height: 220px; }
  .mega { right: 8px; left: 8px; width: auto; }
}

.hero-split { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-copy { order: -1; }
}
.product-grid, .checkout-grid {
  display: grid;
  gap: 18px;
}
.product-grid { grid-template-columns: repeat(4, 1fr); }
.checkout-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
.card-foot, .line-actions, .bar-row, .field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.page-wrap { padding: 28px 0 56px; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.auth-card { max-width: 460px; margin: 12px auto; }
.page-title { font-size: 26px; font-weight: 900; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  padding: 0 14px;
  font: inherit;
  color: var(--navy);
}
.field textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 .2rem rgba(0,120,209,.15);
}
.otp-box {
  background: #eef6ff;
  border: 1px dashed var(--blue);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.otp-box b { letter-spacing: 3px; font-size: 18px; }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}
.btn-block { width: 100%; }
.err { color: #b42318; font-size: 13px; margin: 0 0 10px; }
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 12px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 36px; height: 36px; border: 0; background: #fff; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; line-height: 36px; font-weight: 700; }
.sum-row { display: flex; justify-content: space-between; margin: 8px 0; font-size: 14px; }
.sum-row.total { font-size: 18px; font-weight: 900; margin-top: 12px; }
.modal-back {
  position: fixed; inset: 0; background: rgba(27,42,74,.45);
  z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.addr-grid { display: grid; gap: 10px; margin-top: 12px; }
.addr-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  background: #fff;
}
.addr-card.on { border-color: var(--navy); background: var(--cream); }
.addr-main {
  flex: 1;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: right;
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  padding: 4px;
}
.addr-main strong, .addr-main .meta { display: block; }
.addr-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
}
.addr-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.addr-dot.on { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 3px #fff; }
.modal {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 22px;
}
.account-menu { position: relative; }
.account-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(27,42,74,.12);
  min-width: 180px;
  padding: 8px;
  z-index: 30;
}
.account-pop a, .account-pop button {
  display: block; width: 100%; text-align: right;
  background: none; border: 0; border-radius: 10px;
  padding: 8px 12px; font: inherit; color: var(--navy);
}
.account-pop a:hover, .account-pop button:hover { background: var(--cream); }
.order-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; }
.order-main { flex: 1; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: inherit; }
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
}
.print-btn:hover { border-color: var(--navy); }
.invoice-sheet { display: none; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #1b2a4a; padding-bottom: 12px; }
.inv-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.inv-table th, .inv-table td { border-bottom: 1px solid #ddd; text-align: right; padding: 8px; }
@media print {
  .site-header, .site-footer, .toast-cart { display: none !important; }
  .page-wrap > *:not(.invoice-sheet) { display: none !important; }
  .invoice-sheet {
    display: block !important;
    background: #fff;
    color: #111;
    padding: 8px;
  }
}
.order-card:hover { border-color: var(--navy); }
.pill-ok, .pill-bad {
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800;
}
.pill-ok { background: #e8f7ee; color: var(--ok); }
.pill-bad { background: #fdecec; color: #b42318; }
.result-mark {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; margin: 8px auto 12px; font-size: 32px; font-weight: 900;
}
.result-mark.ok { background: #e8f7ee; color: var(--ok); }
.result-mark.bad { background: #fdecec; color: #b42318; }
.center { text-align: center; }
.search-wrap { position: relative; }
@media (max-width: 991px) {
  .product-grid, .checkout-grid { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .auth-card { margin-inline: 0; }
}
@media (max-width: 800px) {
  .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .row-head { flex-wrap: wrap; }
  .search-wrap { order: 5; flex-basis: 100%; }
}


/* ---- Blade storefront additions ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
button { font-family: inherit; }
.site-header .container-shell { position: relative; }
.search-wrap .form-control { border: 1px solid var(--line); font: inherit; color: var(--navy); outline: none; }
.search-hit .meta { display: block; color: var(--muted); font-size: 12px; }
.search-results[hidden], .account-pop[hidden] { display: none; }
.search-more { display: block; padding: 10px 12px; text-align: center; font-size: 13px; color: var(--blue); background: var(--cream-2); }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.hero-photo .slide.on { opacity: 1; }
.hero-photo { min-height: 360px; }
.hero-copy .btn-navy { display: inline-block; }
.chips { display: flex; flex-wrap: wrap; padding: 12px 0; }
.chip:hover { border-color: var(--navy); }
.product-card .thumb picture, .product-card .thumb img { max-height: 170px; display: block; }
.product-card .thumb picture { display: flex; align-items: center; justify-content: center; height: 170px; }
.product-card .thumb img { width: auto; height: auto; max-width: 100%; object-fit: contain; }
.btn-navy:disabled, .btn-navy[aria-disabled="true"] { background: #9aa3b2; cursor: not-allowed; }
.price-soon { color: var(--muted); font-size: 13px; font-weight: 700; }
.badge-preview { position: absolute; top: 12px; left: 12px; background: #fdecec; color: #b42318; border-radius: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; }
.preview-bar { background: #fff4e8; color: #c05621; text-align: center; font-size: 13px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.empty-panel { text-align: center; color: var(--muted); }
.mega .cat-tile picture, .mega .cat-tile img { display: block; height: 72px; margin: 0 auto 8px; }
.mega .cat-tile img { width: auto; max-width: 100%; object-fit: contain; }
.mega .cat-tile { display: block; color: var(--navy); font: inherit; width: 100%; }
.mega-head .btn-ghost { display: inline-flex; align-items: center; gap: 6px; }
.footer-main a:hover { color: var(--blue); }
.info-page p { line-height: 1.9; margin: 0 0 12px; }
.info-page .btn-navy { display: inline-block; margin-top: 8px; }
.contact-rows { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-rows li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-rows span { display: block; color: var(--muted); font-size: 12px; }
.contact-rows a, .contact-rows b { font-weight: 700; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 24px 0 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; font-weight: 700; }
.pager .on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .off { color: #c4c9d2; }
.toast-cart.err { background: #b42318; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 640px) {
  .hero-photo { min-height: 220px; }
  .brand .word { font-size: 18px; }
  .toast-cart { left: 12px; right: 12px; bottom: 12px; }
}
.mega { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }

[hidden] { display: none !important; }
.buy-photo .shot { display: flex; align-items: center; justify-content: center; width: 100%; }
.buy-photo .shot img { max-height: 340px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.thumb-btn picture, .thumb-btn img { width: 100%; height: 100%; object-fit: contain; display: block; }
.about h3 { font-size: 16px; margin: 14px 0 6px; }
.about ul { padding-inline-start: 20px; line-height: 1.8; }
.combo bdi { font-weight: 700; color: var(--navy); }
.review-form h3 { margin-bottom: 10px; }
.stars .star { width: 22px; height: 22px; }
[data-star-pick] .star { width: 30px; height: 30px; cursor: pointer; }
[data-star-pick] .star svg { width: 22px; height: 22px; }

@media print {
  .preview-bar { display: none !important; }
  .invoice-sheet:not(.printing) { display: none !important; }
  body { background: #fff; }
}


/* Category tile with sub-categories: count + arrow pill */
.sub-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--cream);
  color: var(--navy);
  border-radius: 999px;
  padding: 3px 10px 3px 3px;
  font-size: 11px;
  font-weight: 800;
}
.sub-go {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.cat-tile.has-sub:hover .sub-go { background: var(--blue); }
.sub-foot > span:first-child { white-space: nowrap; }
@media (max-width: 480px) {
  .sub-foot { gap: 4px; padding: 2px 6px 2px 2px; font-size: 10px; }
  .sub-go { width: 18px; height: 18px; }
  .sub-go svg { width: 10px; height: 10px; }
}

