/* 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: stretch;
  position: relative;
}
.buy-photo.panel { padding: 12px; }
.gal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
}
.gal-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gal-stage img.on { opacity: 1; transform: none; }
.gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  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 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.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; }
}

.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 {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 0 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  color: var(--navy);
  font: inherit;
}
.cat-tile::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(to top, #fff 42%, rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 1;
}
.cat-tile picture,
.cat-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 0;
}
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
}
.cat-tile strong {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  padding: 0 6px;
}
.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;
  border-radius: 12px;
}
.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;
  top: 24px;
  left: 24px;
  bottom: auto;
  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; }

/* Cart-added modal (under header on desktop) */
.cart-pop {
  position: fixed;
  inset: 76px 0 0;
  z-index: 1030;
  background: rgba(27, 42, 74, .28);
  display: none;
}
.cart-pop.is-open { display: block; }
.cart-sheet {
  position: absolute;
  top: 12px;
  left: 18px;
  width: min(400px, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(27, 42, 74, .18);
  color: var(--navy);
}
.cart-added-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cart-added-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}
.cart-added-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--cream);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cart-added-section {
  margin-bottom: 12px;
}
.cart-added-label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
}
.cart-added-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.cart-added-row.is-fresh {
  background: var(--cream);
  border-radius: 14px;
  padding: 8px;
}
.cart-added-row .ph {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-added-row .ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-added-row .name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.cart-added-row .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.cart-added-row .side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cart-added-row .price {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.cart-added-sums {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin: 4px 0 12px;
}
.cart-added-go { display: block; text-align: center; text-decoration: none; }
.cart-added-stay { margin-top: 8px; width: 100%; }
@media (max-width: 991px) {
  .cart-pop { inset: 0; background: rgba(27, 42, 74, .45); }
  .cart-sheet {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 82vh;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(27, 42, 74, .16);
  }
}

@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, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 .2rem rgba(0,120,209,.15);
}
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid .dp-select-trigger {
  border-color: #b42318;
  box-shadow: 0 0 0 .2rem rgba(180, 35, 24, .12);
}
.field-error {
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
  margin: -6px 0 0;
}

/* Custom select (province, etc.) — replaces native dropdown */
.dp-select { position: relative; }
.dp-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.dp-select-trigger {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  text-align: right;
}
.dp-select-trigger:hover { border-color: #d2cbbd; }
.dp-select.is-open .dp-select-trigger,
.dp-select-trigger:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 .2rem rgba(0,120,209,.15);
}
.dp-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-select-value.is-placeholder { color: var(--muted); font-weight: 600; }
.dp-select-chevron { flex: none; color: var(--muted); transition: transform .18s ease; }
.dp-select.is-open .dp-select-chevron { transform: rotate(180deg); color: var(--blue); }
.dp-select-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(27, 42, 74, .12);
  overflow: hidden;
}
.dp-select-search { padding: 10px; border-bottom: 1px solid var(--line); background: var(--cream-2); }
.dp-select-search input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.dp-select-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 .15rem rgba(0,120,209,.12);
}
.dp-select-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 240px;
  overflow: auto;
}
.dp-select-option {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  cursor: pointer;
}
.dp-select-option:hover,
.dp-select-option:focus {
  outline: none;
  background: var(--cream);
}
.dp-select-option.is-on {
  background: #eef6ff;
  color: var(--blue);
}
.dp-select-empty {
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.modal .dp-select-panel { z-index: 60; }
.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; }
.otp-wait {
  margin: 10px 0 12px;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}
.otp-wait-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.otp-wait-row b {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.otp-wait-track {
  margin-top: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(27, 42, 74, 0.12);
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}
.otp-wait-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--navy);
  border-radius: inherit;
  transition: width 0.9s linear;
}
.otp-cells {
  display: flex;
  direction: ltr;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 2px;
}
.otp-cells .otp-cell,
.field .otp-cells .otp-cell {
  width: 52px;
  height: 58px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
}
.otp-cells .otp-cell:focus,
.field .otp-cells .otp-cell:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.12);
}
.otp-cells .otp-cell:disabled {
  opacity: 0.55;
}
@media (max-width: 420px) {
  .otp-cells .otp-cell,
  .field .otp-cells .otp-cell {
    width: 46px;
    height: 52px;
    font-size: 20px;
  }
}
.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;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-2);
  vertical-align: middle;
}
.qty button {
  flex: none;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
}
.qty button:hover { background: #fff; color: var(--blue); }
.qty button:active { background: #fff; }
.qty span {
  flex: none;
  min-width: 32px;
  padding: 0 4px;
  text-align: center;
  line-height: 40px;
  font-weight: 800;
  color: var(--navy);
  background: #fff;
  border-inline: 1px solid var(--line);
}
.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, .cart-pop { 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); }
.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; }
.empty-panel { text-align: center; color: var(--muted); }

/* Home promo row (above footer, not on search) */
.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 8px 0 40px;
}
.promo-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: inherit;
  text-decoration: none;
  min-height: 240px;
}
.promo-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.promo-card-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: 28px 24px;
  background: linear-gradient(to left, rgba(246, 244, 239, 0.96) 0%, rgba(246, 244, 239, 0.78) 34%, rgba(246, 244, 239, 0) 62%);
  pointer-events: none;
}
.promo-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.promo-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.35;
  max-width: 12ch;
}
@media (max-width: 800px) {
  .promo-row { grid-template-columns: 1fr; }
  .promo-title { font-size: 18px; }
}
.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: 12px 0; border-bottom: 1px solid var(--line); }
.contact-rows li:last-child { border-bottom: 0; }
.contact-rows span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.contact-rows a, .contact-rows b { font-weight: 800; color: var(--navy); word-break: break-word; }
.contact-rows a:hover { color: var(--blue); }
.footer-contact a { color: inherit; text-decoration: none; font-weight: 700; }
.footer-contact a:hover { color: var(--blue); }
.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; top: 12px; bottom: auto; }
}
.mega { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }

[hidden] { display: none !important; }
.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 {
  .invoice-sheet:not(.printing) { display: none !important; }
  body { background: #fff; }
}


/* Category tile with sub-categories: count + arrow pill (width follows content) */
.sub-foot {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: auto;
  max-width: calc(100% - 12px);
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--cream);
  color: var(--navy);
  border-radius: 999px;
  padding: 2px 8px 2px 2px;
  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; }
}

