/* ==========================================================================
   Shahzain CCTV Solutions
   ========================================================================== */

:root {
  /* Brand red comes from the business card and is fixed. The dark is pushed
     towards an IR/night-feed green-black rather than a neutral near-black, so
     the hero reads as something a camera is seeing. */
  --red: #c61a21;
  --red-dark: #9e1319;
  --red-soft: #fdf2f2;
  --live: #ff3b43;

  --night: #0a1113;
  --night-2: #101a1d;
  --night-3: #162226;
  --phosphor: #dbe7e4;
  --phosphor-dim: #8ea6a2;

  --ink: #101619;
  --ink-2: #2b3438;
  --body: #4c5457;
  --muted: #7a868a;
  --line: #e3e7e7;
  --line-soft: #eef1f1;
  --bg: #ffffff;
  --bg-alt: #f4f6f6;
  --green: #0f7f47;
  --wa: #1c9e55;
  --wa-dark: #168245;
  --amber: #a8690a;

  --wrap: 1280px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 25, .06);
  --shadow: 0 4px 16px rgba(16, 22, 25, .08);
  --shadow-lg: 0 16px 40px rgba(16, 22, 25, .14);

  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Archivo', 'IBM Plex Sans', system-ui, sans-serif;
  --font-osd: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .4em; line-height: 1.18; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

.ic { width: 20px; height: 20px; flex: none; display: block; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; cursor: pointer; text-align: center;
  transition: background .15s, color .15s, border-color .15s, transform .08s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--red-dark); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f2f4; }

.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* WhatsApp actions: recognisable, but never louder than the red primary */
.btn-wa { background: var(--wa); color: #fff; box-shadow: inset 0 -1px 0 rgba(0,0,0,.12); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-wa .ic { width: 18px; height: 18px; }

/* ---------- announcement + topbar ---------- */
.announce {
  background: linear-gradient(90deg, var(--red) 0%, #a81419 100%);
  color: #fff; font-size: 13px; font-weight: 500;
}
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 18px; text-align: center; }
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd9da; flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.topbar { background: var(--night-2); color: #a9bab7; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 38px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item .ic { width: 14px; height: 14px; color: var(--red); }
.topbar-sep { width: 1px; height: 14px; background: #333842; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topbar-right a:hover { color: #fff; }
.topbar-call { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.topbar-call .ic { width: 14px; height: 14px; color: var(--red); }

/* ---------- header ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; gap: 22px; height: 78px; }

.brand img { height: 46px; width: auto; }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

.search { position: relative; flex: 1; max-width: 620px; display: flex; align-items: center; }
.search-lead {
  position: absolute; left: 16px; width: 18px; height: 18px;
  color: var(--muted); pointer-events: none; z-index: 1;
}
.search input {
  width: 100%; height: 46px; padding: 0 116px 0 44px;
  border: 1.5px solid var(--line); border-radius: 23px; font-family: inherit;
  font-size: 14px; color: var(--ink); background: var(--bg-alt);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  outline: none; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 3px rgba(198,26,33,.09);
}
.search button {
  position: absolute; right: 5px; height: 36px; padding: 0 20px;
  border: 0; border-radius: 18px; background: var(--red); color: #fff;
  font-size: 13.5px; font-weight: 600; cursor: pointer; letter-spacing: .01em;
}
.search button:hover { background: var(--red-dark); }

.suggest-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 420px; overflow-y: auto;
}
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.is-active { background: var(--red-soft); }
.suggest-item img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.suggest-name { font-size: 13.5px; color: var(--ink); font-weight: 500; line-height: 1.35; }
.suggest-brand { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.suggest-price { margin-left: auto; font-weight: 700; color: var(--red); font-size: 13.5px; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hact {
  display: inline-flex; align-items: center; gap: 8px; position: relative;
  padding: 9px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px;
  border: 1px solid var(--line); color: var(--ink);
}
.hact:hover { border-color: var(--red); color: var(--red); }
/* In the header it sits beside the solid cart button, so it stays outlined
   and lets the green glyph do the identifying. */
.hact-wa { background: #fff; border-color: var(--line); color: var(--ink); }
.hact-wa .ic { color: var(--wa); width: 19px; height: 19px; }
.hact-wa:hover { border-color: var(--wa); background: #f1faf5; color: var(--ink); }
.hact-cart { background: var(--ink); border-color: var(--ink); color: #fff; }
.hact-cart:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cart-badge {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--red); color: #fff; border: 2px solid #fff; border-radius: 10px;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.cart-badge[hidden] { display: none; }

/* ---------- main nav ---------- */
.mainnav { background: var(--night); position: relative; z-index: 55; }
.mainnav-inner { display: flex; align-items: stretch; gap: 2px; }
.navitem { position: relative; display: flex; }
.navlink {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 46px;
  color: #d5d9df; font-size: 13.5px; font-weight: 600; letter-spacing: .1px;
  border-bottom: 3px solid transparent;
}
.navlink:hover, .navlink.is-active { color: #fff; background: rgba(255,255,255,.06); border-bottom-color: var(--red); }
.navlink-all { background: var(--red); color: #fff; }
.navlink-all:hover { background: var(--red-dark); color: #fff; border-bottom-color: var(--red-dark); }
.navlink .chev { width: 13px; height: 13px; opacity: .65; }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 258px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.navitem:hover .submenu, .navitem:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 16px; font-size: 13.5px; color: var(--ink-2);
}
.submenu a:hover { background: var(--red-soft); color: var(--red); }
.submenu a span { font-size: 11px; color: var(--muted); background: var(--bg-alt); padding: 1px 7px; border-radius: 9px; }

/* ---------- alerts + toasts ---------- */
.alert {
  margin: 16px 0; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; border: 1px solid;
}
.alert-ok { background: #edf9f1; border-color: #bfe6cd; color: #10693c; }
.alert-err { background: #fdf1f1; border-color: #f4c9cb; color: #a3151b; }
.alert a { text-decoration: underline; }
.alert { display: flex; align-items: center; gap: 9px; }
.alert .ic { width: 17px; height: 17px; }

.toast-stack { position: fixed; right: 18px; bottom: 90px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; max-width: 320px;
  border-left: 3px solid var(--wa); animation: toastIn .22s ease;
}
.toast.is-err { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
/* ==========================================================================
   First fold - the camera's own view
   ========================================================================== */
.watch {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: var(--phosphor);
  min-height: clamp(560px, 76vh, 760px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.watch::after {
  /* vignette, so the copy in the lower-left keeps its contrast */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 95% at 8% 100%, rgba(10,17,19,.88) 0%, rgba(10,17,19,.45) 42%, transparent 72%),
    linear-gradient(to top, rgba(10,17,19,.92) 0%, transparent 46%);
}

.watch-scene { position: absolute; inset: 0; z-index: 0; }
.watch-scene svg { width: 100%; height: 100%; display: block; }

.cam-arm, .cam-mount, .cam-hood, .cam-body, .cam-ring { }
.cam-glow { animation: irPulse 4.2s ease-in-out infinite; transform-origin: 1148px 214px; }
@keyframes irPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.beam-wrap {
  transform-box: view-box; transform-origin: 1148px 214px;
  animation: ptzScan 13s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes ptzScan {
  0%   { transform: rotate(-16deg); }
  8%   { transform: rotate(-16deg); }
  42%  { transform: rotate(16deg); }
  50%  { transform: rotate(16deg); }
  92%  { transform: rotate(-16deg); }
  100% { transform: rotate(-16deg); }
}

/* --- on-screen display, where a DVR burns it in --- */
.watch-osd {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px;
  font-family: var(--font-osd); font-size: 11.5px; letter-spacing: .1em;
  color: rgba(219,231,228,.72); text-transform: uppercase;
  border-bottom: 1px solid rgba(159,210,201,.12);
}
.osd-ch {
  color: var(--night); background: rgba(219,231,228,.82);
  padding: 2px 7px; border-radius: 3px; font-weight: 500; letter-spacing: .12em;
}
.osd-site { color: rgba(219,231,228,.5); }
.osd-rec { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #ff9a9e; }
.osd-rec i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(255,59,67,.55); animation: recBlink 1.9s steps(1, end) infinite;
}
@keyframes recBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .18; } }
.osd-clock { color: rgba(219,231,228,.62); font-variant-numeric: tabular-nums; }

/* --- detection brackets --- */
.watch-marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mark {
  position: absolute; width: 132px; height: 96px;
  opacity: 0; animation: acquire 13s ease-in-out infinite;
}
.mark i {
  position: absolute; width: 17px; height: 17px;
  border: 2px solid rgba(214,238,232,.9);
}
.mark i:nth-child(2) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.mark i:nth-child(3) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.mark i:nth-child(4) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.mark i:nth-child(5) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.mark-tag {
  position: absolute; top: -9px; left: -2px; transform: translateY(-100%);
  font-family: var(--font-osd); font-size: 10.5px; letter-spacing: .06em;
  color: var(--night); background: rgba(214,238,232,.9);
  padding: 2px 7px; border-radius: 2px; white-space: nowrap;
}
.mark-1 { left: 64%;   top: 40%;   width: 110px; height: 84px; animation-delay: 1.4s; }
.mark-2 { left: 52%;   top: 32.5%; width: 150px; height: 96px; animation-delay: 5.2s; }
.mark-3 { left: 60%;   top: 50%;   width: 92px;  height: 72px; animation-delay: 8.6s; }
@keyframes acquire {
  0%      { opacity: 0; transform: scale(1.14); }
  3%      { opacity: 1; transform: scale(1); }
  20%     { opacity: 1; transform: scale(1); }
  24%     { opacity: 0; transform: scale(.97); }
  100%    { opacity: 0; transform: scale(.97); }
}

/* --- copy --- */
.watch-inner { position: relative; z-index: 4; padding: 120px 18px 40px; }
.watch-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(38px, 6.1vw, 82px); line-height: .96; letter-spacing: -.03em;
  color: #fff; margin: 0 0 20px; max-width: 16ch;
}
.watch-lead {
  font-size: clamp(15px, 1.35vw, 18px); line-height: 1.65;
  color: rgba(219,231,228,.74); max-width: 54ch; margin: 0 0 30px;
}
.watch-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-glass {
  background: rgba(219,231,228,.09); color: #fff;
  border-color: rgba(219,231,228,.3); backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(219,231,228,.17); border-color: rgba(219,231,228,.55); }

/* --- rail --- */
.watch-rail {
  position: relative; z-index: 4;
  border-top: 1px solid rgba(159,210,201,.14);
  background: rgba(10,17,19,.5); backdrop-filter: blur(8px);
}
.watch-rail-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.rail-brands { display: flex; align-items: center; gap: 22px; }
.rail-brands span {
  font-size: 12.5px; color: rgba(219,231,228,.42);
}
.rail-brands img { height: 21px; width: auto; filter: brightness(0) invert(1); opacity: .6; }
.rail-facts { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 13px; color: rgba(219,231,228,.6); }
.rail-facts span, .rail-facts a { display: inline-flex; align-items: center; gap: 9px; }
.rail-facts .ic { width: 17px; height: 17px; color: var(--red); opacity: .95; }
.rail-facts a { color: #fff; font-weight: 600; }
.rail-facts a:hover { color: #ff9a9e; }

@media (max-width: 900px) {
  .watch { min-height: 0; }
  .watch-inner { padding-top: 92px; padding-bottom: 32px; }
  .watch-scene svg { opacity: .85; }
  .mark-2, .mark-3 { display: none; }
  .mark-1 { left: 56%; top: 30%; }
  .osd-site { display: none; }
  .rail-facts span:nth-child(2) { display: none; }
}
@media (max-width: 620px) {
  .watch-osd { gap: 10px; padding: 11px 16px; font-size: 10.5px; }
  /* the camera crops into the top-right here, so start the copy below it */
  .watch-inner { padding-top: 148px; }
  .watch::after {
    background:
      radial-gradient(135% 80% at 0% 100%, rgba(10,17,19,.94) 0%, rgba(10,17,19,.6) 48%, transparent 78%),
      linear-gradient(to top, rgba(10,17,19,.95) 0%, rgba(10,17,19,.3) 52%, transparent 78%);
  }
  .watch-title { font-size: clamp(31px, 9vw, 44px); max-width: 14ch; }
  .watch-lead { font-size: 14.5px; }
  .watch-cta .btn { flex: 1 1 100%; }
  .mark { display: none; }
  .rail-facts span { display: none; }
  .watch-rail-inner { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .beam-wrap { animation: none; transform: rotate(-3deg); }
  .cam-glow { animation: none; opacity: .8; }
  .osd-rec i { animation: none; }
  /* without the acquire/release cycle the three boxes just overlap - show one */
  .mark { animation: none; opacity: 0; }
  .mark-1 { opacity: 1; }
}

/* ---------- sections ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  display: flex; align-items: center; gap: 22px; margin-bottom: 26px;
}
.section-head h2 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.4vw, 31px);
  letter-spacing: -.022em; margin: 0; white-space: nowrap;
}
.section-head::after {
  content: ''; flex: 1; height: 1px; background: var(--line); align-self: center;
}
.section-head .section-link { order: 3; }
.section-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 600; color: var(--red); white-space: nowrap;
}
.section-link .ic { width: 15px; height: 15px; transition: transform .16s; }
.section-link:hover { color: var(--red-dark); }
.section-link:hover .ic { transform: translateX(3px); }

/* ---------- product grid + card ---------- */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.card:hover { border-color: #cfd5d5; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media::before {
  content: ''; position: absolute; top: 10px; left: 10px; width: 13px; height: 13px;
  border: 2px solid var(--red); border-right: 0; border-bottom: 0;
  opacity: 0; transition: opacity .18s, top .18s, left .18s; z-index: 2;
}
.card:hover .card-media::before { opacity: 1; top: 6px; left: 6px; }
.card-media { position: relative; display: block; aspect-ratio: 1; background: #fff; padding: 8px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.card:hover .card-media img { transform: scale(1.04); }

.badge {
  position: absolute; top: 9px; left: 9px; padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #fff; z-index: 2;
}
.badge-off { background: var(--red); }
.badge-oos { background: var(--ink-2); left: auto; right: 9px; }
.badge-order { background: var(--amber); left: auto; right: 9px; }
.badge-lg { font-size: 13px; padding: 5px 11px; top: 12px; left: 12px; }

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-brand {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.card-name { font-size: 13.5px; font-weight: 600; line-height: 1.4; margin: 0 0 10px; }
.card-name a { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-name a:hover { color: var(--red); }
.card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; margin-bottom: 11px; }
.price-now { font-size: 17px; font-weight: 800; color: var(--red); letter-spacing: -.2px; }
.price-was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-call { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.price-call-lg { font-size: 22px; }
.card-add { margin: 0; }

/* ---------- horizontal rail ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(212px, 1fr);
  gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rail-item { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: #cfd3d9; border-radius: 3px; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.cat-tile {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 4px; padding: 22px 14px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cat-tile:hover { border-color: #cfd5d5; box-shadow: var(--shadow); transform: translateY(-2px); }
/* corner brackets draw in on hover - the same viewfinder motif as the hero */
.cat-tile::before, .cat-tile::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--red); opacity: 0; transition: opacity .18s, inset .18s;
}
.cat-tile::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.cat-tile::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.cat-tile:hover::before { opacity: 1; top: 8px; left: 8px; }
.cat-tile:hover::after { opacity: 1; bottom: 8px; right: 8px; }
.cat-img { width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 10px; }
.cat-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.cat-count { font-size: 11.5px; color: var(--muted); }

/* ---------- brand tiles ---------- */
.brand-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.brand-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 118px; padding: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .16s, box-shadow .16s;
}
.brand-tile:hover { border-color: var(--red); box-shadow: var(--shadow); }
.brand-tile img { max-height: 36px; width: auto; object-fit: contain; }
.brand-word {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--ink); letter-spacing: -.01em; text-align: left;
}
.brand-word .ic { width: 26px; height: 26px; color: var(--red); }
.brand-count { font-size: 11.5px; color: var(--muted); }

/* ---------- CTA strip ---------- */
.cta-strip { background: linear-gradient(120deg, var(--red) 0%, #8f1116 100%); color: #fff; }
.cta-strip-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 38px 18px; flex-wrap: wrap;
}
.cta-strip h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(23px, 2.4vw, 31px); color: #fff; letter-spacing: -.022em; margin-bottom: 5px; }
.cta-strip p { color: rgba(255,255,255,.88); margin: 0; font-size: 15px; }
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- why / stats ---------- */
.why-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: start; }
.why-copy h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(25px, 2.7vw, 34px); letter-spacing: -.024em; margin-bottom: 14px; }
.why-list { list-style: none; padding: 0; margin: 0 0 26px; }
.why-list li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 14.5px; }
.why-list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}
.why-list strong { color: var(--ink); }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center;
}
.stat strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 42px; color: var(--red); line-height: 1; letter-spacing: -.03em; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------- SEO block ---------- */
.seo-block { max-width: none; }
.seo-block h2 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.022em; margin-bottom: 18px; max-width: 26ch;
}
.seo-block .seo-body { columns: 2; column-gap: 54px; }
.seo-block p {
  font-size: 14.5px; line-height: 1.8; margin: 0 0 1.15em;
  break-inside: avoid; max-width: 68ch;
}
@media (max-width: 860px) { .seo-block .seo-body { columns: 1; } }

/* ---------- trust bar ---------- */
.trustbar { background: var(--night-2); color: #b3c2bf; }
.trustbar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 18px;
}
.trust { display: flex; align-items: center; gap: 13px; }
.trust .ic { width: 26px; height: 26px; color: var(--red); }
.trust strong { display: block; color: #fff; font-size: 14px; }
.trust span { font-size: 12.5px; color: var(--phosphor-dim); }

/* ---------- footer ---------- */
.footer { background: var(--night); color: #93a5a2; font-size: 14px; }
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding: 48px 18px 36px;
}
.footer h4 {
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 17px;
  letter-spacing: -.008em; margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.flogo { height: 46px; width: auto; margin-bottom: 16px; }
.fcol-brand p { line-height: 1.7; max-width: 42ch; }
.fbrands { display: flex; align-items: center; gap: 18px; margin: 18px 0; flex-wrap: wrap; }
.fbrands img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .5; }
.fsocial { display: flex; gap: 9px; }
.fsocial a {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.07); color: #c3c9d1;
}
.fsocial a:hover { background: var(--red); color: #fff; }
.fcontact li { display: flex; gap: 11px; margin-bottom: 14px; line-height: 1.6; }
.fcontact .ic { color: var(--red); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; font-size: 12.5px; color: #767d87;
}
.ftag { color: var(--red); font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; font-size: 11.5px; }

/* ---------- floating WhatsApp ---------- */
/* Floating action: a pill that opens on hover/focus rather than a bare blob */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  display: inline-flex; align-items: center; gap: 0;
  height: 54px; padding: 0 14px; border-radius: 27px;
  background: var(--wa); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 24px rgba(16, 130, 69, .32), 0 2px 6px rgba(16, 22, 25, .16);
  transition: gap .22s cubic-bezier(.2,.7,.3,1), padding .22s cubic-bezier(.2,.7,.3,1), background .16s;
  overflow: hidden;
}
.wa-float .ic { width: 26px; height: 26px; color: #fff; }
.wa-float span {
  max-width: 0; opacity: 0; white-space: nowrap;
  transition: max-width .22s cubic-bezier(.2,.7,.3,1), opacity .16s;
}
.wa-float:hover, .wa-float:focus-visible { background: var(--wa-dark); gap: 10px; padding-right: 20px; }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 190px; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float span { transition: background .16s; }
}


/* ==========================================================================
   Cart drawer
   ========================================================================== */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 190; background: rgba(10, 17, 19, .5);
  opacity: 0; transition: opacity .24s ease; backdrop-filter: blur(2px);
}
.drawer-scrim.is-open { opacity: 1; }
.drawer-scrim[hidden] { display: none; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(420px, 100vw); background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -18px 0 50px rgba(10, 17, 19, .22);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.22, .7, .28, 1);
}
.drawer.is-open { transform: none; }
.drawer[hidden] { display: none; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer-head h2 {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -.022em;
}
.drawer-count {
  min-width: 23px; height: 23px; padding: 0 7px; border-radius: 12px;
  background: var(--red); color: #fff; font-family: var(--font);
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.drawer-close {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
}
.drawer-close:hover { border-color: var(--red); color: var(--red); }
.drawer-close .ic { width: 17px; height: 17px; }

.drawer-ship {
  flex: none; padding: 11px 20px; font-size: 12.5px; line-height: 1.5;
  background: #fbf6ec; color: #8a5c07; border-bottom: 1px solid #f1e4cb;
}
.drawer-ship.is-free { background: #edf8f1; color: #0d6b3d; border-bottom-color: #cbe8d8; }
.drawer-ship strong { font-weight: 700; }
.drawer-ship[hidden] { display: none; }

.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px; }
.drawer-loading { padding: 34px 0; text-align: center; color: var(--muted); font-size: 14px; }

.drawer-empty { padding: 44px 8px; text-align: center; }
.drawer-empty .ic { width: 42px; height: 42px; color: #d8dedd; margin: 0 auto 14px; }
.drawer-empty h3 { font-size: 17px; margin-bottom: 6px; }
.drawer-empty p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }

.dline {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 13px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft); align-items: start;
}
.dline:last-child { border-bottom: 0; }
.dline-img {
  width: 62px; height: 62px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  display: grid; place-items: center; padding: 4px; background: #fff;
}
.dline-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dline-brand {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.dline-name {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--ink);
  line-height: 1.4; margin: 3px 0 9px;
}
.dline-name:hover { color: var(--red); }
.dline-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dline-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.dline-qty button {
  width: 30px; height: 30px; border: 0; background: none; color: var(--ink);
  font-size: 16px; line-height: 1; cursor: pointer;
}
.dline-qty button:hover { background: var(--bg-alt); }
.dline-qty span { min-width: 30px; text-align: center; font-size: 13.5px; font-weight: 600; }
.dline-remove {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12.5px; color: var(--muted); text-decoration: underline;
}
.dline-remove:hover { color: var(--red); }
.dline-price { text-align: right; font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.dline-each { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.dline.is-busy { opacity: .45; pointer-events: none; }

.drawer-foot { flex: none; padding: 16px 20px 18px; border-top: 1px solid var(--line); background: #fff; }
.drawer-foot[hidden] { display: none; }
.drawer-foot .sum-row { padding: 5px 0; }
.drawer-foot .sum-total { margin-top: 6px; padding-top: 12px; margin-bottom: 14px; }
.drawer-foot .btn + .btn { margin-top: 9px; }
.drawer-keep {
  display: block; width: 100%; margin-top: 12px; padding: 4px; border: 0; background: none;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.drawer-keep:hover { color: var(--red); }

body.drawer-open { overflow: hidden; }

@media (max-width: 480px) {
  .drawer { width: 100vw; }
  .dline { grid-template-columns: 54px 1fr auto; gap: 11px; }
  .dline-img { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-scrim { transition: none; }
}

/* ---------- breadcrumbs + page head ---------- */
.crumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.crumbs .wrap { padding-top: 11px; padding-bottom: 11px; color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 6px; opacity: .6; }
.crumbs strong { color: var(--ink); font-weight: 600; }

.page-head { padding-top: 34px; padding-bottom: 8px; }
.page-head h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -.028em; margin-bottom: 5px; }
.page-head p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- listing ---------- */
.listing { padding-top: 26px; padding-bottom: 60px; }
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.listing-head h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3.1vw, 39px); letter-spacing: -.028em; margin-bottom: 3px; }
.listing-meta { font-size: 13.5px; color: var(--muted); margin: 0; }
.listing-sub { font-size: 14px; margin: 6px 0 0; max-width: 60ch; }
.listing-sort { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.listing-sort label { color: var(--muted); }
.listing-sort select {
  height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-size: 13.5px;
}

.subcat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.subcat-chips a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 20px; font-size: 13px; background: #fff; color: var(--ink-2);
}
.subcat-chips a:hover { border-color: var(--red); color: var(--red); }
.subcat-chips span { font-size: 11px; color: var(--muted); }

.listing-body { display: grid; grid-template-columns: 236px 1fr; gap: 28px; align-items: start; }

.filters { position: sticky; top: 92px; }
.filter-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: #fff; }
.filter-block h3 { font-size: 13.5px; font-weight: 600; margin-bottom: 12px; color: var(--ink); }
.filter-range { display: flex; align-items: center; gap: 8px; }
.filter-range input {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 13px;
}
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin-bottom: 9px; cursor: pointer; }
.check input { accent-color: var(--red); width: 16px; height: 16px; }
.filter-clear { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.filter-clear:hover { color: var(--red); }
.filter-help { background: var(--red-soft); border-color: #f3d9da; }
.filter-help p { font-size: 13px; }

.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h2 { font-size: 22px; }
.empty p { max-width: 46ch; margin: 0 auto 20px; }
.empty-wide { grid-column: 1 / -1; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager a {
  min-width: 38px; height: 38px; padding: 0 12px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px;
  font-weight: 600; color: var(--ink-2); background: #fff;
}
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager a.is-current { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 46px; padding: 32px 18px 10px; align-items: start; }
.pdp-main {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 26px; aspect-ratio: 1; display: grid; place-items: center;
}
.pdp-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb {
  width: 68px; height: 68px; padding: 5px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
}
.pdp-thumb.is-active { border-color: var(--red); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }

.pdp-brand { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); }
.pdp-info h1 { font-size: 28px; line-height: 1.25; margin: 6px 0 12px; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pdp-meta strong { color: var(--ink-2); }
.pdp-meta a { color: var(--red); }
.stock { font-weight: 600; }
.stock-in_stock { color: var(--green); }
.stock-on_order { color: var(--amber); }
.stock-out_of_stock { color: var(--red); }

.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 18px 0; }
.pdp-price .price-now { font-size: 34px; }
.pdp-price .price-was { font-size: 17px; }
.price-save { font-size: 12.5px; font-weight: 700; color: var(--green); background: #e9f7ef; padding: 3px 9px; border-radius: 4px; }

.pdp-short { font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.pdp-short h2 { font-size: 15px; margin-bottom: 8px; }
.pdp-short ul { padding-left: 18px; }
.pdp-short li { margin-bottom: 5px; line-height: 1.6; }
/* Imported copy carries inline feature badges (TRUE WDR, IP67, 1080P). The
   global `img { display: block }` stacked them into a column - keep them in a row. */
.pdp-short img, .rich p img, .rich li img {
  display: inline-block; vertical-align: middle;
  max-height: 42px; width: auto; margin: 6px 8px 0 0;
}

.pdp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.pdp-add { display: flex; gap: 12px; margin: 0; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty button {
  width: 38px; height: 44px; border: 0; background: var(--bg-alt); color: var(--ink);
  font-size: 18px; cursor: pointer;
}
.qty button:hover { background: var(--line); }
.qty input {
  width: 50px; height: 44px; border: 0; text-align: center; font-size: 15px; font-weight: 600;
  color: var(--ink); -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-usp { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); }
.pdp-usp li { display: flex; gap: 11px; font-size: 13.5px; margin-bottom: 11px; align-items: flex-start; }
.pdp-usp .ic { width: 18px; height: 18px; color: var(--red); margin-top: 2px; }
.pdp-usp a { color: var(--red); font-weight: 600; }

.pdp-tabs { border-top: 1px solid var(--line); margin-top: 34px; padding: 30px 0 50px; }
.pdp-tabs h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.3vw, 29px); letter-spacing: -.024em; margin-bottom: 18px; }
.pdp-desc { font-size: 14px; max-width: 900px; }
.rich ul { padding-left: 18px; }
.rich li { margin-bottom: 6px; line-height: 1.65; }
.rich h2, .rich h3 { font-size: 16px; margin: 20px 0 8px; }
.rich table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; }
.rich th { background: var(--bg-alt); }
.rich img { margin: 12px 0; border-radius: var(--radius-sm); max-width: 100%; }

/* Imported spec sheets ship as semantic ULs - render them as a spec table. */
.rich .tech-specs-items-description {
  list-style: none; padding: 0; margin: 0 0 22px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.rich .tech-specs-items-description-list {
  display: grid; grid-template-columns: 220px 1fr; gap: 4px 20px;
  padding: 9px 16px; margin: 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px;
}
.rich .tech-specs-items-description-list:last-child { border-bottom: 0; }
.rich .tech-specs-items-description-list:nth-child(odd) { background: #fbfbfc; }
.rich .tech-specs-items-description__title { color: var(--muted); }
.rich .tech-specs-items-description__title-details { color: var(--ink-2); }

/* A section header row - the only child is the heading span. */
.rich .tech-specs-items-description-list:has(.tech-specs-items-description__title--heading) {
  display: block; background: var(--ink); padding: 10px 16px; border-bottom: 0;
}
.rich .tech-specs-items-description__title--heading {
  color: #fff; font-family: var(--font-head); font-size: 17px;
  text-transform: uppercase; letter-spacing: .7px;
}

@media (max-width: 640px) {
  .rich .tech-specs-items-description-list { grid-template-columns: 1fr; gap: 2px; }
  .rich .tech-specs-items-description__title { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
}

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding-top: 18px; padding-bottom: 60px; }
.cart-items { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cart-row {
  display: grid; grid-template-columns: 90px 1fr auto auto 40px; gap: 16px; align-items: center;
  padding: 16px; border-bottom: 1px solid var(--line-soft);
}
.cart-row:last-of-type { border-bottom: 0; }
.cart-img img { width: 90px; height: 90px; object-fit: contain; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.cart-detail { min-width: 0; }
.cart-brand { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.cart-name { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.4; margin: 3px 0; }
.cart-name:hover { color: var(--red); }
.cart-unit { font-size: 13px; color: var(--muted); }
.cart-warn { display: block; font-size: 12px; color: var(--amber); margin-top: 3px; }
.cart-qty { display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 0; }
.cart-qty .qty button { height: 36px; width: 32px; }
.cart-qty .qty input { height: 36px; width: 44px; }
.cart-update { background: none; border: 0; font-size: 11.5px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.cart-update:hover { color: var(--red); }
.cart-line { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cart-remove { margin: 0; }
.cart-remove button { width: 34px; height: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.cart-remove button:hover { background: var(--red-soft); color: var(--red); }
.cart-continue { display: inline-block; padding: 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cart-continue:hover { color: var(--red); }

.cart-summary, .checkout-summary {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff;
  position: sticky; top: 92px;
}
.cart-summary h2, .checkout-summary h2 { font-size: 19px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; }
.sum-row strong { color: var(--ink); }
.sum-note { font-size: 12.5px; color: var(--amber); background: #fdf6e9; padding: 8px 11px; border-radius: var(--radius-sm); margin: 8px 0; }
.sum-total {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; margin-bottom: 16px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.sum-total strong { font-size: 23px; color: var(--red); }
.cart-summary .btn + .btn, .checkout-summary .btn + .btn { margin-top: 10px; }
.sum-fine { font-size: 12px; color: var(--muted); margin: 14px 0 0; line-height: 1.6; }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding-top: 18px; padding-bottom: 60px; }
.cbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; margin-bottom: 18px; }
.cbox h2 { font-size: 19px; margin-bottom: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; }
.field-full { grid-column: 1 / -1; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field em { color: var(--red); font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(198,26,33,.1); }
.field textarea { resize: vertical; }

.pay-option {
  display: flex; gap: 13px; align-items: flex-start; padding: 16px;
  border: 1.5px solid var(--red); border-radius: var(--radius); background: var(--red-soft); cursor: pointer;
}
.pay-option input { accent-color: var(--red); margin-top: 3px; width: 17px; height: 17px; }
.pay-copy strong { display: block; color: var(--ink); font-size: 14.5px; }
.pay-copy span { font-size: 13px; }
.pay-alt { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.pay-alt a { color: var(--red); font-weight: 600; }

.co-items { list-style: none; padding: 0; margin: 0 0 14px; }
.co-items li { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.co-items img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line-soft); border-radius: 4px; flex: none; }
.co-name { flex: 1; color: var(--ink-2); line-height: 1.4; }
.co-name em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.co-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.form-fine { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* ---------- thank you ---------- */
.thanks { max-width: 640px; text-align: center; padding: 50px 18px 70px; }
.thanks-mark {
  width: 68px; height: 68px; border-radius: 50%; background: #e9f7ef; color: var(--green);
  display: grid; place-items: center; margin: 0 auto 20px;
}
.thanks-mark svg { width: 34px; height: 34px; fill: currentColor; }
.thanks h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(27px, 3.1vw, 39px); letter-spacing: -.028em; }
.thanks-lead { font-size: 15.5px; }
.thanks-no {
  display: inline-block; padding: 12px 26px; background: var(--red-soft);
  border: 1px dashed #edc4c6; border-radius: var(--radius); margin: 8px 0 24px;
}
.thanks-no span { display: block; font-size: 12.5px; color: var(--muted); }
.thanks-no strong { font-size: 22px; color: var(--red); font-weight: 800; }
.thanks-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: left; background: #fff; }
.thanks-addr { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-size: 13.5px; }
.thanks-addr strong { display: block; color: var(--ink); margin-bottom: 3px; }
.thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 16px; }
.thanks-fine { font-size: 13px; color: var(--muted); }
.thanks-fine a { color: var(--red); font-weight: 600; }

/* ---------- track ---------- */
.track-layout { max-width: 760px; padding-top: 18px; padding-bottom: 60px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.track-result { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 20px; background: #fff; }
.track-head { display: flex; gap: 32px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.track-head span { display: block; font-size: 12.5px; color: var(--muted); }
.track-head strong { font-size: 17px; color: var(--ink); }
.track-steps { list-style: none; display: flex; padding: 0; margin: 0 0 26px; }
.track-steps li { flex: 1; position: relative; text-align: center; font-size: 12.5px; color: var(--muted); }
.track-steps li::before { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.track-steps li:first-child::before { display: none; }
.track-steps .dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--line); margin: 0 auto 8px; position: relative; z-index: 1; }
.track-steps .is-done .dot, .track-steps .is-current .dot { border-color: var(--red); background: var(--red); }
.track-steps .is-done::before, .track-steps .is-current::before { background: var(--red); }
.track-steps .is-current .track-label, .track-steps .is-done .track-label { color: var(--ink); font-weight: 600; }

/* ---------- prose pages ---------- */
.prose-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; padding-top: 22px; padding-bottom: 64px; }
.prose { max-width: 74ch; font-size: 15px; line-height: 1.8; }
.prose .lead { font-size: 17.5px; color: var(--ink-2); line-height: 1.7; }
.prose h2 { font-family: var(--font-head); font-weight: 700; font-size: 25px; letter-spacing: -.024em; margin: 34px 0 12px; }
.prose li { margin-bottom: 8px; }
.about-brands { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 18px 0 8px; }
.about-brands img { height: 32px; width: auto; }

.prose-side, .contact-side { display: grid; gap: 16px; position: sticky; top: 92px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.side-card h3 { font-size: 16px; margin-bottom: 14px; }
.side-phone { display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.side-phone:hover { border-color: var(--red); background: var(--red-soft); }
.side-phone strong { display: block; color: var(--ink); font-size: 16px; }
.side-phone span { font-size: 12px; color: var(--muted); }
.side-card .btn + .btn { margin-top: 9px; }
.side-addr { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.side-hours { font-size: 13.5px; }
.side-map { padding: 0; overflow: hidden; }
.side-map h3 { padding: 20px 20px 14px; margin: 0; }
.side-map iframe { width: 100%; height: 250px; border: 0; display: block; filter: saturate(.92); }
.map-foot { padding: 16px 20px 20px; }
.map-addr { font-weight: 600; color: var(--ink); margin: 0 0 3px; font-size: 14px; }
.map-plus {
  font-family: var(--font-osd); font-size: 12px; color: var(--muted);
  margin: 0 0 14px; letter-spacing: .01em;
}
.map-foot .btn + .btn { margin-top: 9px; }
.fdirections { font-size: 12.5px; color: var(--red) !important; font-weight: 600; }
.contact-about {
  font-size: 13.5px; background: var(--red-soft); border: 1px solid #f3dcdd;
  border-radius: var(--radius-sm); padding: 11px 14px; margin: -4px 0 18px;
}
.contact-about strong { color: var(--ink); }
.contact-about a { color: var(--red); font-weight: 600; margin-left: 6px; }
.pdp-ask {
  font-size: 13.5px; color: var(--muted); margin: 0 0 20px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.pdp-ask a { color: var(--red); font-weight: 600; }
a.topbar-item:hover { color: #fff; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; padding: 18px 0 20px; }
.svc { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; transition: border-color .16s, box-shadow .16s; }
.svc:hover { border-color: var(--red); box-shadow: var(--shadow); }
.svc .ic { width: 32px; height: 32px; color: var(--red); margin-bottom: 14px; }
.svc h2 { font-size: 18px; margin-bottom: 8px; }
.svc p { font-size: 14px; margin: 0; }

.pkg-wrap { padding-bottom: 8px; }
.pkg-note { max-width: 70ch; font-size: 14px; margin-bottom: 22px; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.pkg { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; }
.pkg-featured { border-color: var(--red); box-shadow: var(--shadow); }
.pkg-flag {
  position: absolute; top: -11px; left: 24px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 4px;
}
.pkg h3 { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -.022em; margin-bottom: 14px; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.pkg li { position: relative; padding-left: 22px; font-size: 14px; margin-bottom: 9px; }
.pkg li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; padding-top: 18px; padding-bottom: 64px; }
.contact-form h2 { margin-bottom: 18px; }

/* ---------- 404 ---------- */
.notfound { max-width: 560px; text-align: center; padding: 70px 18px 90px; }
.nf-code { font-family: var(--font-head); font-size: 96px; font-weight: 700; color: var(--red); line-height: 1; display: block; letter-spacing: -.04em; }
.notfound h1 { font-family: var(--font-head); font-weight: 700; font-size: 32px; letter-spacing: -.026em; }
.nf-search { display: flex; gap: 10px; margin: 24px 0 18px; }
.nf-search input { flex: 1; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.nf-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 46px; padding-bottom: 50px; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .listing-body { grid-template-columns: 200px 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .cart-layout, .checkout-layout, .contact-layout, .prose-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary, .filters, .prose-side, .contact-side { position: static; }
  .trustbar-grid { grid-template-columns: 1fr 1fr; }
  .topbar-hours, .topbar-sep { display: none; }
}

@media (max-width: 860px) {
  /* The search wraps onto its own row here, so the bar must grow with it. */
  .header-inner { height: auto; min-height: 66px; padding-top: 10px; gap: 12px; flex-wrap: wrap; }
  .burger { display: flex; order: 1; }
  .brand { order: 2; margin-right: auto; }
  .brand img { height: 36px; }
  .header-actions { order: 3; }
  .hact-wa span { display: none; }
  .search { order: 4; flex-basis: 100%; max-width: none; margin-bottom: 10px; }
  .header { position: static; }
  .filters, .cart-summary, .checkout-summary { top: auto; }

  .mainnav { display: none; }
  .mainnav.is-open { display: block; }
  .mainnav-inner { flex-direction: column; align-items: stretch; padding-top: 6px; padding-bottom: 10px; }
  .navitem { flex-direction: column; }
  .navlink { height: 44px; border-bottom: 1px solid rgba(255,255,255,.07); justify-content: space-between; }
  .navlink-all { border-radius: var(--radius-sm); margin-bottom: 6px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-radius: 0; background: rgba(255,255,255,.04); padding: 0 0 6px; display: none;
  }
  .navitem.is-open .submenu { display: block; }
  .submenu a { color: #c3c9d1; padding-left: 28px; }
  .submenu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .submenu a span { background: rgba(255,255,255,.1); color: #9aa1ab; }

  .listing-body { grid-template-columns: 1fr; }
  .filters { order: 2; }
  .listing-main { order: 1; }
}

@media (max-width: 720px) {
  .announce .wrap { font-size: 12px; padding: 7px 14px; }
  .topbar-item { display: none; }
  .topbar-right { margin: 0 auto; gap: 14px; }
  .section { padding: 38px 0; }
  .section-head h2, .listing-head h1, .page-head h1 { font-size: 26px; }
  .hero h1 { font-size: 34px; }
  .hero-copy > p { font-size: 15px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .rail { grid-auto-columns: minmax(168px, 1fr); }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .card-name { font-size: 12.5px; }
  .price-now { font-size: 15px; }
  .field-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 64px 1fr 40px; grid-template-areas: 'img detail remove' 'qty qty line'; row-gap: 12px; }
  .cart-img { grid-area: img; }
  .cart-img img { width: 64px; height: 64px; }
  .cart-detail { grid-area: detail; }
  .cart-remove { grid-area: remove; }
  .cart-qty { grid-area: qty; flex-direction: row; align-items: center; gap: 12px; }
  .cart-line { grid-area: line; text-align: right; }
  .track-form { grid-template-columns: 1fr; }
  .track-steps { flex-direction: column; gap: 14px; align-items: flex-start; text-align: left; }
  .track-steps li { display: flex; align-items: center; gap: 12px; }
  .track-steps li::before { display: none; }
  .track-steps .dot { margin: 0; }
  .pdp-info h1 { font-size: 22px; }
  .pdp-price .price-now { font-size: 27px; }
  .pdp-actions, .pdp-add { flex-direction: column; align-items: stretch; }
  .pdp-add .btn { width: 100%; }
  .qty { align-self: flex-start; }
  .thanks h1, .notfound h1 { font-size: 27px; }
  .cta-strip h2 { font-size: 24px; }
  .toast-stack { right: 12px; left: 12px; bottom: 84px; }
  .toast { max-width: none; }
}

@media (max-width: 520px) {
  .trustbar-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .hero-contacts { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
}

@media print {
  .topbar, .announce, .mainnav, .header-actions, .wa-float, .footer, .trustbar, .toast-stack { display: none !important; }
}
