/* Store template: shared tokens + product page. Brand colours live in :root; change them per store. System fonts only. */
:root {
  --ink: #1d1d1f; --muted: #5f6368; --line: #e3e3e6; --bg: #ffffff; --soft: #f6f6f7;
  --brand: #1f4fd8; --brand-ink: #ffffff; --accent: #0a7a3d; --danger: #b3261e;
  --radius: 10px; --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* an element hidden by script stays hidden even if a class sets display */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
button, input, select { font: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.small { font-size: 13px; color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.announcement { background: var(--ink); color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; }
.site-header { border-bottom: 1px solid var(--line); }
/* Three cells: "Track Your Order" (left, track-order.css styles it), the centred logo, and a free right cell (cart, if any). */
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 64px; }
.header-inner .logo { grid-column: 2; }
.header-inner .header-track { grid-column: 1; justify-self: start; }
.header-inner .header-contact { grid-column: 3; justify-self: end; } /* Contact Us pop-up link: the right cell, mirroring Track Your Order */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo-img { height: 40px; width: auto; }
.logo-text { font-weight: 700; font-size: 22px; }

.product { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 20px; padding-bottom: 32px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 32px; } }
.gallery-main { aspect-ratio: 1 / 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; display: flex; }
.gallery-main > * { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumb { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: var(--soft); overflow: hidden; cursor: pointer; }
.thumb.is-active { border-color: var(--ink); }
.thumb img, .thumb .media-ph { width: 100%; height: 100%; object-fit: cover; }
.thumb .media-ph small, .thumb .media-ph span { display: none; }
.media-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 12px; text-align: center;
  background: repeating-linear-gradient(45deg, #f1f1f3, #f1f1f3 10px, #e9e9ec 10px, #e9e9ec 20px); color: var(--muted); font-size: 14px; border-radius: var(--radius); }
.media-ph small { font-size: 12px; }

.rating { display: inline-block; font-size: 14px; color: var(--ink); text-decoration: none; margin-bottom: 4px; }
.product-title { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
@media (min-width: 900px) { .product-title { font-size: 34px; } }
.value-bullets { padding-left: 20px; margin: 0 0 20px; }
.offers { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.offers-heading { font-weight: 700; margin-bottom: 8px; padding: 0; }
.offer-cards { display: grid; gap: 10px; }
.offer-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.offer-card.is-selected { border-color: var(--brand); background: #f3f6ff; }
.offer-card input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; flex: none; }
.offer-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.offer-main span { font-size: 14px; color: var(--muted); }
.offer-price { text-align: right; display: flex; flex-direction: column; }
.offer-price s, .addon-price s { color: var(--muted); font-size: 14px; }
.gift { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius); background: #effaf3; font-size: 15px; }
.gift-tag { background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; border-radius: 4px; padding: 2px 6px; }

.addons { display: grid; gap: 10px; margin: 0 0 16px; }
.addon-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.addon-card.is-added { border-color: var(--accent); }
.addon-thumb { flex: 0 0 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.addon-thumb .media-ph { min-height: 64px; height: 64px; padding: 4px; font-size: 11px; }
.addon-thumb .media-ph small { display: none; }
.addon-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.addon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.addon-row select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.addon-btn { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; }
.addon-btn.is-remove { border-color: var(--line); color: var(--muted); }

.atc { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 20px; border: 0; border-radius: var(--radius);
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; }
.atc:disabled { opacity: .55; cursor: not-allowed; }
.atc-sm { width: auto; min-height: 48px; font-size: 16px; }
.guarantee { text-align: center; font-weight: 600; margin: 12px 0 0; }

.block { padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.block h2 { font-size: 24px; margin: 0 0 16px; text-align: center; }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card h3 { font-size: 18px; margin: 12px 0 4px; display: flex; gap: 8px; align-items: center; }
.card p { margin: 0; color: var(--muted); }
.card img, .card .media-ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); }
.step-n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.block-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.block-faq summary { cursor: pointer; font-weight: 600; min-height: 24px; }
.block-faq p { margin: 8px 0 0; color: var(--muted); }
.reviews { display: grid; gap: 16px; }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.review h3 { font-size: 16px; margin: 4px 0; }
.stars { margin: 0; color: #c28a00; letter-spacing: 2px; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 96px; text-align: center; }
.policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.policy-links a { color: var(--ink); font-size: 14px; min-height: 24px; }

.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 16px;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); z-index: 20; }
.sticky-bar[hidden] { display: none; }
.sticky-info { display: flex; flex-direction: column; min-width: 0; }
.sticky-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .sticky-bar { display: none !important; } }

/* Policy modal (policies-ui.js) */
.pm { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pm[hidden] { display: none; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.pm-dialog { position: relative; background: #fff; border-radius: var(--radius); width: min(720px, 100%); max-height: 88vh; display: flex; flex-direction: column; }
.pm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pm-title { margin: 0; font-size: 20px; }
.pm-close { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.pm-close svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2; fill: none; }
.pm-draft { margin: 0; padding: 8px 20px; background: #fff4e5; color: #7a4b00; font-size: 14px; }
.pm-body { padding: 16px 20px 24px; overflow: auto; }
.pm-body h3 { font-size: 17px; margin: 18px 0 6px; }
html.pm-open { overflow: hidden; }
