/* ==========================================================================
   TORIVO — Design System v2
   "Sharp European retail": rectangular geometry, dense trustworthy hierarchy,
   navy ink + brand gradient (from the logo) for CTAs, red strictly for urgency.
   Type: Archivo (display/UI) + Source Sans 3 (body), 18px base for 40–60.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy: #0a1130;
  --navy-soft: #16204a;
  --blue: #0b63f6;
  --blue-dark: #084ec4;
  --cyan: #2eb8ff;
  --grad-brand: linear-gradient(135deg, #2eb8ff 0%, #0b63f6 58%, #0a4fd6 100%);
  --grad-deep: linear-gradient(150deg, #10254f 0%, #0a1130 70%);

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --bg-blue-tint: #e9f1fe;
  --border: #dbe3ee;
  --border-strong: #b9c6d9;

  /* Text */
  --ink: #0a1130;
  --ink-2: #38415e;
  --ink-3: #5b6580;
  --on-dark: #ffffff;
  --on-dark-2: #aab7d6;

  /* Signals */
  --sale: #d92632;
  --sale-dark: #b51f2a;
  --sale-bg: #fdeced;
  --ok: #157347;
  --ok-bg: #e3f5ec;
  --star: #f29d12;

  /* Type */
  --font-display: "Archivo", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  /* Shape & depth — rectangular, confident */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 17, 48, 0.08);
  --shadow-md: 0 8px 22px -8px rgba(10, 30, 80, 0.18);
  --shadow-lg: 0 20px 48px -16px rgba(9, 40, 110, 0.28);
  --shadow-blue: 0 6px 18px -5px rgba(11, 99, 246, 0.5);

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --header-h: 86px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

::selection { background: var(--cyan); color: var(--navy); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------- Kicker (section eyebrow) ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 22px; height: 3px;
  background: var(--grad-brand);
  vertical-align: middle;
  margin-right: 10px;
  translate: 0 -1px;
}

/* ---------- Buttons — rectangular, decisive ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease),
              background-color 0.15s var(--ease), color 0.15s var(--ease),
              border-color 0.15s var(--ease), filter 0.15s var(--ease);
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }

.btn-buy {
  background: var(--sale);
  color: #fff;
  box-shadow: 0 6px 18px -5px rgba(217, 38, 50, 0.45);
}
.btn-buy:hover { background: var(--sale-dark); color: #fff; }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); color: #fff; }

.btn-outline {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { color: var(--blue-dark); box-shadow: var(--shadow-md); }

.btn-lg { min-height: 60px; padding: 16px 36px; font-size: 1.13rem; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* ---------- Badges — flags, not pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-sale {
  background: var(--sale);
  color: #fff;
  transform: skewX(-6deg);
  box-shadow: 2px 2px 0 rgba(10, 17, 48, 0.18);
}
.badge-sale > * { transform: skewX(6deg); }
.badge-new { background: var(--cyan); color: var(--navy); }
.badge-best { background: var(--navy); color: #fff; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--on-dark);
  font-size: 0.92rem;
  font-weight: 600;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
}
.topbar-msg { display: flex; align-items: center; gap: 9px; min-width: 0; }
.topbar-msg .dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  flex: none;
  border-radius: 50%;
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 184, 255, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(46, 184, 255, 0); }
}
.topbar-msg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-msg strong { color: var(--cyan); }
.topbar-right { display: flex; align-items: center; gap: 20px; flex: none; }
.topbar-right a { color: #fff; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.topbar-right a:hover { color: var(--cyan); }
.topbar .swap { animation: msg-in 0.45s var(--ease); }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(10, 17, 48, 0.02);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 44px; width: auto; }

.header-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 560px;
}
.header-search input {
  width: 100%;
  min-height: 52px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 10px 118px 10px 18px;
  font: inherit;
  font-size: 1.02rem;
  background: #fff;
  transition: border-color 0.15s var(--ease);
}
.header-search input:focus { outline: none; border-color: var(--blue); }
.header-search button {
  position: absolute;
  right: 4px; top: 4px; bottom: 4px;
  border: 0;
  border-radius: var(--r-xs);
  background: var(--navy);
  color: #fff;
  padding: 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.header-search button:hover { background: var(--blue); }

.header-support {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--ink);
}
.header-support svg { color: var(--blue); flex: none; }
.header-support small { display: block; color: var(--ink-3); font-size: 0.8rem; line-height: 1.2; }
.header-support b { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; white-space: nowrap; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 20px;
  border-radius: var(--r-sm);
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex: none;
  box-shadow: var(--shadow-blue);
  transition: filter 0.15s var(--ease);
}
.cart-btn:hover { filter: brightness(1.08); color: #fff; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 25px; height: 25px;
  padding-inline: 6px;
  border-radius: var(--r-xs);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.cart-count.bump { animation: bump 0.45s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.menu-toggle { display: none; }

/* ---------- Category strip ---------- */
.cat-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.cat-strip-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-strip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
  padding: 13px 15px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.cat-strip a:hover { color: var(--blue); border-bottom-color: var(--border-strong); }
.cat-strip a.hot { color: var(--sale); font-weight: 800; }
.cat-strip a.hot:hover { border-bottom-color: var(--sale); }
.cat-strip a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-brand);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: linear-gradient(115deg, transparent 40%, #000 80%);
  -webkit-mask-image: linear-gradient(115deg, transparent 40%, #000 80%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  right: -240px; top: -320px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-block: 64px 76px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--navy);
  border-radius: var(--r-xs);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 24px;
  box-shadow: 3px 3px 0 rgba(10, 17, 48, 0.25);
}
.hero-kicker .stars { font-size: 0.85rem; }
.hero h1 { color: #fff; margin-bottom: 18px; max-width: 14ch; }
.hero h1 em {
  font-style: normal;
  background: var(--navy);
  padding: 0 0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.94);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-proof {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.hero-proof div b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.15;
}
.hero-proof div span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }
.hero-media { position: relative; }
.hero-media .hero-photo {
  border-radius: var(--r-md);
  box-shadow: 0 30px 60px -18px rgba(7, 25, 70, 0.55);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  width: 100%;
}
.hero-card {
  position: absolute;
  left: -28px; bottom: 28px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-sm);
  border-left: 5px solid var(--sale);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: float-in 0.9s var(--ease) 0.35s backwards;
}
.hero-card .big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--sale);
  line-height: 1;
}
.hero-card small { color: var(--ink-2); font-size: 0.9rem; line-height: 1.35; display: block; }
.hero-card small b { color: var(--ink); }
@keyframes float-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: rise 0.7s var(--ease) backwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.13s; }
.hero-content > *:nth-child(3) { animation-delay: 0.21s; }
.hero-content > *:nth-child(4) { animation-delay: 0.29s; }
.hero-content > *:nth-child(5) { animation-delay: 0.37s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 22px;
}
.trust-grid .trust-item + .trust-item { border-left: 1px solid var(--border); padding-left: 22px; }
.trust-item { display: flex; align-items: center; gap: 14px; padding-right: 18px; }
.trust-icon {
  flex: none;
  width: 50px; height: 50px;
  border-radius: var(--r-sm);
  background: var(--bg-blue-tint);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { display: block; flex: none; }
.trust-item > div > b { font-family: var(--font-display); font-size: 0.99rem; display: block; line-height: 1.3; }
.trust-item > div > span { color: var(--ink-3); font-size: 0.9rem; line-height: 1.35; display: block; }

/* ---------- Sections ---------- */
.section { padding-block: 60px; }
.section-soft { background: var(--bg-soft); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-head h2 { margin: 0; }
.section-head .sub { color: var(--ink-3); margin: 8px 0 0; }
.section-link {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  transition: gap 0.18s var(--ease);
}
.section-link:hover { gap: 11px; }

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.category-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  border: 1px solid var(--border);
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.category-card:hover img { transform: scale(1.06); }
.category-card .cat-label {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, rgba(10, 17, 48, 0.88) 38%);
  color: #fff;
  padding: 38px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.category-card .cat-label .arrow {
  color: var(--cyan);
  transition: transform 0.2s var(--ease);
}
.category-card:hover .cat-label .arrow { transform: translateX(4px); }
.category-card .cat-count {
  position: absolute;
  top: 12px; left: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--r-xs);
  padding: 3px 10px;
  box-shadow: var(--shadow-sm);
}
.category-card.cat-all {
  background: var(--grad-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-card.cat-all .cat-label {
  position: static;
  background: none;
  padding: 0;
  font-size: 1.18rem;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pc-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  overflow: hidden;
}
.pc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.pc-low {
  position: absolute;
  right: 0; bottom: 0;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-top-left-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pc-low .dot-red {
  width: 7px; height: 7px;
  background: var(--sale);
  border-radius: 50%;
  animation: pulse-red 1.4s infinite;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 38, 50, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(217, 38, 50, 0); }
}
.pc-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.pc-cat {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  line-height: 1.32;
  margin: 0;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.64em;
}
.pc-title a { color: var(--ink); }
.pc-title a:hover { color: var(--blue); }
.pc-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  color: var(--ink-3);
}
.stars { color: var(--star); letter-spacing: 1.5px; font-size: 0.95rem; }
.stars .dim { color: var(--border-strong); }
.pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: auto;
  flex-wrap: wrap;
}
.pc-price-row .pc-save { flex-basis: 100%; }
.price-now {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.38rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.price-now.on-sale { color: var(--sale); }
.price-old {
  color: var(--ink-3);
  text-decoration: line-through;
  font-size: 0.96rem;
}
.pc-save {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ok);
}
.pc-add {
  margin-top: 10px;
  min-height: 48px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pc-add:hover { background: var(--blue); box-shadow: var(--shadow-blue); }

/* ---------- Deal banner ---------- */
.deal-banner {
  position: relative;
  background: var(--grad-deep);
  color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  border: 1px solid var(--navy-soft);
}
.deal-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(46, 184, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: linear-gradient(245deg, transparent 45%, #000 85%);
  -webkit-mask-image: linear-gradient(245deg, transparent 45%, #000 85%);
}
.deal-copy { position: relative; padding: 44px 14px 44px 46px; }
.deal-copy .badge-sale { margin-bottom: 18px; }
.deal-copy h2 { color: #fff; margin-bottom: 10px; }
.deal-copy p { color: var(--on-dark-2); max-width: 44ch; }
.deal-price { display: flex; align-items: baseline; gap: 14px; margin: 14px 0 22px; }
.deal-price .price-now { color: #fff; font-size: 2.4rem; }
.deal-price .price-old { color: var(--on-dark-2); font-size: 1.15rem; }
.deal-price .save-chip { background: var(--sale); color: #fff; }
.deal-media { position: relative; align-self: stretch; min-height: 330px; }
.deal-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(95deg, transparent 0%, #000 28%);
  -webkit-mask-image: linear-gradient(95deg, transparent 0%, #000 28%);
}
.deal-stock { margin: 0 0 22px; max-width: 340px; }
.deal-stock .msg { font-size: 0.92rem; font-weight: 700; color: #ffb3b9; margin-bottom: 8px; display: block; }
.countdown { display: flex; gap: 10px; margin-bottom: 26px; }
.count-unit {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  min-width: 74px;
  padding: 11px 10px 8px;
  text-align: center;
}
.count-unit b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.count-unit span {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

/* ---------- Stock bar (urgency) ---------- */
.stock-bar { height: 9px; background: rgba(127, 137, 161, 0.25); border-radius: var(--r-xs); overflow: hidden; }
.stock-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sale), #ff7a45);
  border-radius: var(--r-xs);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--r-md);
  padding: 26px;
}
.testimonial-card .stars { margin-bottom: 12px; display: block; }
.testimonial-card blockquote { margin: 0 0 18px; font-size: 1.03rem; color: var(--ink-2); }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--grad-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 800;
  flex: none;
}
.t-author b { font-family: var(--font-display); display: block; line-height: 1.25; }
.t-author span { color: var(--ink-3); font-size: 0.88rem; }
.t-verified { margin-left: auto; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--grad-deep);
  border-radius: var(--r-lg);
  color: #fff;
  padding: 48px 52px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(46, 184, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: linear-gradient(115deg, transparent 45%, #000 85%);
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 85%);
  pointer-events: none;
}
.newsletter h2 { color: #fff; margin-bottom: 8px; }
.newsletter p { color: var(--on-dark-2); margin: 0; }
.newsletter-form { display: flex; gap: 10px; position: relative; }
.newsletter-form input {
  flex: 1;
  min-height: 56px;
  border: 0;
  border-radius: var(--r-sm);
  padding: 14px 20px;
  font: inherit;
  font-size: 1.02rem;
}
.newsletter-form input:focus { outline: 3px solid var(--cyan); }
.newsletter-note { font-size: 0.86rem; color: var(--on-dark-2); margin-top: 12px !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-2);
  margin-top: 72px;
}
.footer-guarantee {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-guarantee .trust-grid { padding-block: 26px; }
.footer-guarantee .trust-item + .trust-item { border-left-color: rgba(255, 255, 255, 0.1); }
.footer-guarantee .trust-icon { background: rgba(46, 184, 255, 0.12); color: var(--cyan); }
.footer-guarantee b { color: #fff; }
.footer-guarantee span { color: var(--on-dark-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: 52px 40px;
}
.footer-brand img { height: 54px; width: auto; margin-bottom: 16px; border-radius: var(--r-sm); }
.footer-brand p { font-size: 0.96rem; max-width: 34ch; }
.site-footer h4 {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a { color: var(--on-dark-2); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 0.96rem; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { flex: none; color: var(--cyan); margin-top: 3px; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.payment-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-chips span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-xs);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

/* ---------- Page head (inner pages) ---------- */
.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding-block: 26px 30px;
}
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { color: var(--border-strong); }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }

/* ---------- Shop layout ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: 34px;
  align-items: start;
  padding-block: 38px 64px;
}
.filters {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 28px;
}
.filter-group h3 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.cat-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  padding: 11px 12px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.cat-list button:hover { background: var(--bg-soft); color: var(--blue); }
.cat-list button.active {
  background: var(--bg-blue-tint);
  color: var(--blue);
  font-weight: 700;
  border-left-color: var(--blue);
}
.cat-list .count {
  font-size: 0.84rem;
  color: var(--ink-3);
  background: var(--bg-soft);
  border-radius: var(--r-xs);
  padding: 1px 8px;
}
.cat-list button.active .count { background: #fff; color: var(--blue); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.result-count { color: var(--ink-3); font-size: 0.97rem; margin: 0; }
.result-count b { color: var(--ink); }
.sort-select {
  min-height: 48px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--blue); }

.shop-grid { grid-template-columns: repeat(3, 1fr); }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.empty-state .glyph { font-size: 3rem; margin-bottom: 10px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-3); margin-bottom: 22px; }

/* ---------- Product detail ---------- */
.pd-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 32px;
  padding-block: 22px 20px;
  align-items: start;
}
.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pd-main-img {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  position: relative;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-main-img .pc-badges { top: 16px; left: 16px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button {
  width: 84px; height: 84px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--bg-soft);
  transition: border-color 0.15s var(--ease);
}
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--blue); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .pc-cat { margin-bottom: 8px; display: block; }
.pd-info h1 { font-size: clamp(1.55rem, 2.7vw, 2.1rem); margin-bottom: 12px; font-weight: 800; }
.pd-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--ink-3); flex-wrap: wrap; }
.pd-short { font-size: 1.07rem; color: var(--ink-2); margin-bottom: 18px; }
.pd-price-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 5px solid var(--sale);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pd-price-box .price-now { font-size: 2.3rem; }
.pd-price-box .price-old { font-size: 1.15rem; }
.save-chip {
  background: var(--sale);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  border-radius: var(--r-xs);
  padding: 5px 12px;
  font-size: 0.9rem;
}

/* Urgency block on product page */
.urgency-box {
  border: 1px solid #f3c9cc;
  background: #fffafa;
  border-radius: var(--r-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: grid;
  gap: 10px;
}
.urgency-box .u-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--ink-2);
}
.urgency-box .u-row b { color: var(--sale); font-variant-numeric: tabular-nums; }
.urgency-box .u-row .dot-red {
  width: 8px; height: 8px;
  background: var(--sale);
  border-radius: 50%;
  flex: none;
  animation: pulse-red 1.4s infinite;
}
.urgency-box .stock-bar { background: #f3dcdd; }

.stock-line { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ok); margin-bottom: 18px; }
.stock-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }

.delivery-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--ink-2);
  margin: -6px 0 18px;
}
.delivery-line svg { color: var(--blue); flex: none; }
.delivery-line b { color: var(--ink); }

.pd-features { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.pd-features li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); }
.pd-features svg { flex: none; color: var(--ok); margin-top: 4px; }

.pd-buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 16px; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
  flex: none;
}
.qty-stepper button {
  width: 50px;
  align-self: stretch;
  min-height: 54px;
  border: 0;
  background: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  transition: background-color 0.15s;
  line-height: 1;
}
.qty-stepper button:hover { background: var(--bg-blue-tint); }
.qty-stepper input {
  width: 54px;
  border: 0;
  text-align: center;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }

.reassure-box {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  display: grid;
  gap: 11px;
  margin-top: 6px;
}
.reassure-box div { display: flex; gap: 12px; align-items: center; font-size: 0.96rem; color: var(--ink-2); }
.reassure-box svg { flex: none; color: var(--blue); }
.reassure-box b { color: var(--ink); }

/* ---------- Sticky add-to-cart (product page) ---------- */
.sticky-atc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 28px -10px rgba(10, 17, 48, 0.25);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.sticky-atc.show { transform: none; }
.sticky-atc-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 12px;
}
.sticky-atc .btn { white-space: nowrap; }
.sticky-atc img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  flex: none;
}
.sticky-atc .s-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.99rem;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticky-atc .s-price { display: flex; align-items: baseline; gap: 8px; flex: none; }
.sticky-atc .price-now { font-size: 1.3rem; }
.sticky-atc .btn { flex: none; }

/* ---------- Tabs ---------- */
.pd-tabs-wrap { padding-block: 24px 10px; }
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { display: none; max-width: 820px; animation: rise 0.35s var(--ease); }
.tab-panel.active { display: block; }
.tab-panel p { color: var(--ink-2); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; border: 1px solid var(--border); }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.spec-table th { width: 38%; color: var(--ink-3); font-weight: 600; background: var(--bg-soft); }

.review { border-bottom: 1px solid var(--border); padding-block: 20px; }
.review:first-child { padding-top: 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.review-head b { font-family: var(--font-display); }
.review-head time { color: var(--ink-3); font-size: 0.88rem; }
.review p { margin: 0; color: var(--ink-2); }
.verified {
  color: var(--ok);
  background: var(--ok-bg);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--r-xs);
  padding: 2px 10px;
}

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 392px;
  gap: 34px;
  align-items: start;
  padding-block: 38px 64px;
}
.cart-items { display: grid; gap: 14px; }
.cart-row {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.cart-row img {
  width: 108px; height: 108px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
}
.cart-row .pc-title { font-size: 1.07rem; margin-bottom: 4px; }
.cart-row .unit-price { color: var(--ink-3); font-size: 0.93rem; margin: 0 0 6px; }
.cart-row-right { display: grid; justify-items: end; gap: 10px; }
.cart-row .qty-stepper button { min-height: 44px; width: 44px; font-size: 1.3rem; }
.cart-row .qty-stepper input { width: 46px; font-size: 1.05rem; }
.line-total { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.remove-btn {
  background: none;
  border: 0;
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: var(--r-xs);
  transition: color 0.15s, background-color 0.15s;
}
.remove-btn:hover { color: var(--sale); background: var(--sale-bg); }

.cart-reserved {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sale-bg);
  border: 1px solid #f3c9cc;
  color: var(--sale-dark);
  border-radius: var(--r-sm);
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.cart-reserved b { font-variant-numeric: tabular-nums; }

.summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.summary-card h3 { margin-bottom: 18px; }
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-block: 8px;
  color: var(--ink-2);
}
.sum-row b { color: var(--ink); }
.sum-row.total {
  border-top: 2px solid var(--ink);
  margin-top: 12px;
  padding-top: 16px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
}
.sum-row .free { color: var(--ok); font-weight: 700; }

.ship-progress { margin: 14px 0 20px; }
.ship-progress .msg { font-size: 0.94rem; margin-bottom: 9px; color: var(--ink-2); }
.ship-progress .msg b { color: var(--blue); }
.ship-progress .msg.done { color: var(--ok); font-weight: 600; }
.progress-track {
  height: 10px;
  background: var(--bg-soft);
  border-radius: var(--r-xs);
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  background: var(--grad-brand);
  transition: width 0.5s var(--ease);
}
.progress-fill.done { background: var(--ok); }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.87rem;
  color: var(--ink-3);
}

/* Sticky mobile checkout bar (cart) */
.sticky-checkout {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 28px -10px rgba(10, 17, 48, 0.25);
  padding: 10px var(--gutter) 14px;
  align-items: center;
  gap: 14px;
}
.sticky-checkout .sc-total { line-height: 1.2; }
.sticky-checkout .sc-total small { display: block; color: var(--ink-3); font-size: 0.8rem; }
.sticky-checkout .sc-total b { font-family: var(--font-display); font-size: 1.25rem; }
.sticky-checkout .btn { flex: 1; }

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 38px;
  align-items: start;
  padding-block: 38px 64px;
}
.checkout-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  margin-bottom: 22px;
}
.checkout-section h2 {
  font-size: 1.28rem;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.step-num {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  flex: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.96rem; }
.field label .req { color: var(--sale); }
.field input, .field select, .field textarea {
  min-height: 52px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font: inherit;
  font-size: 1.02rem;
  background: #fff;
  width: 100%;
  transition: border-color 0.15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--bg-blue-tint);
}
.field .err {
  color: var(--sale);
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}
.field.show-err .err { display: block; }
.field.show-err input { border-color: var(--sale); background: #fffafa; }
.field .hint { color: var(--ink-3); font-size: 0.88rem; }

.pay-options { display: grid; gap: 12px; }
.pay-option {
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  padding: 17px 19px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.pay-option:hover { border-color: var(--border-strong); }
.pay-option.selected { border-color: var(--blue); background: var(--bg-blue-tint); }
.pay-option input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--blue); flex: none; }
.pay-option b { font-family: var(--font-display); display: block; font-size: 1.04rem; }
.pay-option span { color: var(--ink-3); font-size: 0.94rem; }
.pay-option .badge-ok { margin-left: auto; flex: none; }

.card-fields {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
}
.card-fields.open { display: grid; gap: 18px; }

.reserve-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sale-bg);
  border: 1px solid #f3c9cc;
  color: var(--sale-dark);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.reserve-timer b { font-variant-numeric: tabular-nums; font-family: var(--font-display); }

.mini-items { display: grid; gap: 13px; margin-bottom: 16px; max-height: 320px; overflow: auto; padding-right: 4px; }
.mini-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 13px; align-items: center; }
.mini-item img { width: 62px; height: 62px; border-radius: var(--r-xs); object-fit: cover; background: var(--bg-soft); border: 1px solid var(--border); }
.mini-item .name { font-weight: 600; font-size: 0.94rem; line-height: 1.35; }
.mini-item .meta { color: var(--ink-3); font-size: 0.87rem; }
.mini-item .amount { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

.guarantee-box {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--ok-bg);
  border: 1px solid #bfe5d2;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.guarantee-box svg { color: var(--ok); flex: none; margin-top: 2px; }
.guarantee-box b { color: var(--ink); }

/* ---------- Order success ---------- */
.order-success {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
  padding-block: 70px 30px;
}
.success-ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  animation: pop 0.55s var(--ease);
}
@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
.order-success .order-no {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  padding: 10px 24px;
  margin: 14px 0 22px;
  letter-spacing: 0.04em;
}
.order-success p { color: var(--ink-2); }

/* ---------- Toast (cart feedback) ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: var(--navy);
  color: #fff;
  border-left: 4px solid var(--cyan);
  border-radius: var(--r-sm);
  padding: 15px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.99rem;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.4s var(--ease);
  max-width: min(92vw, 460px);
}
.toast.show { transform: none; }
.toast svg { color: var(--cyan); flex: none; }
.toast a { color: var(--cyan); font-weight: 700; white-space: nowrap; }

/* ---------- Social-proof toast (recent purchases) ---------- */
.sp-toast {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 150;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 38px 12px 12px;
  max-width: min(88vw, 380px);
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.sp-toast.show { transform: none; opacity: 1; }
.sp-toast img {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  flex: none;
}
.sp-toast .sp-text { font-size: 0.89rem; line-height: 1.4; color: var(--ink-2); }
.sp-toast .sp-text b { color: var(--ink); }
.sp-toast .sp-text a { font-weight: 700; }
.sp-toast .sp-time { display: block; color: var(--ink-3); font-size: 0.8rem; margin-top: 2px; }
.sp-close {
  position: absolute;
  top: 4px; right: 4px;
  width: 28px; height: 28px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--r-xs);
}
.sp-close:hover { background: var(--bg-soft); color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .header-support { display: none; }
}

@media (max-width: 880px) {
  :root { --header-h: 70px; }
  body { font-size: 17px; }
  .topbar-right { display: none; }
  .topbar-inner { justify-content: center; }
  /* Compact single-row header on mobile (search hidden to maximize product view) */
  .header-inner { gap: 10px; flex-wrap: nowrap; padding-top: 0; }
  .header-search { display: none; }
  .logo { margin-right: auto; }
  .logo img { height: 34px; }
  .cart-btn .cart-label { display: none; }
  .cart-btn { padding: 8px 14px; min-height: 44px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border: 2px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    flex: none;
  }
  .main-nav {
    position: fixed;
    inset: 0 18% 0 0;
    z-index: 90;
    background: #fff;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 22px;
    gap: 4px;
    display: none;
    margin: 0;
    overflow: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--ink);
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(10, 17, 48, 0.5);
    display: none;
  }
  .nav-overlay.open { display: block; }

  .hero-inner { grid-template-columns: 1fr; padding-block: 44px 56px; gap: 36px; }
  .hero h1 { max-width: none; }
  .hero-card { left: 10px; bottom: 14px; }
  .hero-proof { gap: 18px; flex-wrap: wrap; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust-grid .trust-item + .trust-item { border-left: 0; padding-left: 0; }
  .product-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .deal-banner { grid-template-columns: 1fr; }
  .deal-media { min-height: 230px; order: -1; }
  .deal-media img { mask-image: linear-gradient(180deg, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .deal-copy { padding: 6px 26px 38px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 34px 24px; }
  .newsletter-form { flex-direction: column; }
  .pd-layout { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .cat-list button { width: auto; border: 2px solid var(--border-strong); border-radius: var(--r-sm); padding: 9px 14px; }
  .cat-list button.active { border-color: var(--blue); }
  .form-grid { grid-template-columns: 1fr; }
  .sticky-checkout { display: flex; }
  .cart-layout { padding-bottom: 110px; }
  .sticky-atc-inner { gap: 12px; }
  .sticky-atc .s-name { display: none; }
  .sticky-atc .btn { flex: 1; padding: 12px 16px; }
  .checkout-layout aside.summary-card { order: -1; }
}

@media (max-width: 560px) {
  .product-grid, .shop-grid { grid-template-columns: 1fr 1fr; }
  .pc-body { padding: 10px 11px 12px; gap: 5px; }
  .pc-cat { display: none; }
  .pc-title { font-size: 0.93rem; line-height: 1.3; min-height: 2.6em; }
  .pc-rating { font-size: 0.8rem; gap: 5px; }
  .pc-rating .stars { font-size: 0.82rem; letter-spacing: 1px; }
  .price-now { font-size: 1.12rem; }
  .price-old { font-size: 0.85rem; }
  .pc-save { font-size: 0.78rem; }
  .pc-add { font-size: 0.86rem; min-height: 42px; margin-top: 8px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cart-row { grid-template-columns: 84px 1fr; }
  .cart-row img { width: 84px; height: 84px; }
  .cart-row-right { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; width: 100%; align-items: center; }
  .pd-buy-row { flex-direction: column; }
  .qty-stepper { justify-content: center; }
  .countdown { flex-wrap: wrap; }
  .hero-kicker { font-size: 0.82rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .pc-add svg { display: none; }
  .sp-toast { left: 12px; bottom: 12px; }
  .toast { right: 12px; bottom: 12px; }

  /* Ljepljiva CTA traka na malim ekranima */
  .sticky-atc-inner { gap: 10px; padding-block: 10px; }
  .sticky-atc img { width: 46px; height: 46px; }
  .sticky-atc .price-old { display: none; }
  .sticky-atc .price-now { font-size: 1.12rem; }
  .sticky-atc .btn { min-height: 52px; font-size: 0.98rem; }
  .sticky-atc .btn svg { display: none; }
  .sticky-checkout .btn { min-height: 52px; }
}

@media (max-width: 380px) {
  .sticky-atc img { display: none; }
}

/* ---------- Theme supplements (WordPress generic templates) ---------- */
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 9999;
  width: auto; height: auto; clip: auto; clip-path: none;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.page-content, .entry-content { max-width: 820px; }
.entry-content { font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.post-list { display: grid; gap: 22px; }
.post-item { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.pagination { margin-top: 32px; }
.pagination .page-numbers {
  display: inline-block; padding: 8px 14px; margin-right: 6px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--ink);
}
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ========================================================================
   WooCommerce single product integration (Torivo)
   ======================================================================== */

/* Buy row: WooCommerce add-to-cart form becomes the qty + CTA row */
.pd-buy-row { align-items: stretch; }
.pd-buy-row form.cart {
  display: flex; gap: 12px; align-items: stretch; width: 100%; margin: 0;
}
.pd-buy-row .quantity { margin: 0; display: flex; }
.pd-buy-row .quantity label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pd-buy-row .single_add_to_cart_button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; font-size: 1.18rem;
}
.pd-buy-row .single_add_to_cart_button svg { width: 22px; height: 22px; }
/* Larger stepper for older users */
.qty-stepper button { min-width: 52px; font-size: 1.5rem; }
.qty-stepper input { width: 64px; font-size: 1.15rem; }

/* WooCommerce price markup inside the Torivo price box */
.pd-price-box .woocommerce-Price-amount { font: inherit; color: inherit; }
.price-old .woocommerce-Price-amount { text-decoration: line-through; }

/* Description tab: full width with alternating feature blocks */
#tab-opis { max-width: none; }
.pd-description { font-size: 1.06rem; color: var(--ink-2); }
.pd-description h2, .pd-description h3 { color: var(--ink); }
.pd-description > p:first-child { margin-top: 0; }
.pf-intro { font-size: 1.12rem; color: var(--ink-2); max-width: 820px; margin-bottom: 8px; }
.pf-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  align-items: center; margin: 30px 0; padding: 8px 0;
}
.pf-block:nth-child(even) .pf-media { order: 2; }
.pf-media img {
  width: 100%; border-radius: var(--r-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.pf-text h3 { font-size: 1.35rem; margin-bottom: 10px; }
.pf-text p { margin: 0; font-size: 1.06rem; }
.pf-specs { margin-top: 30px; }
.pf-specs h3 { font-size: 1.35rem; margin-bottom: 14px; }

/* Reviews tab (WooCommerce comments) */
#tab-recenzije .woocommerce-Reviews-title { font-size: 1.3rem; margin-bottom: 16px; }
#tab-recenzije .commentlist { list-style: none; margin: 0 0 28px; padding: 0; }
#tab-recenzije .commentlist li { border-bottom: 1px solid var(--border); padding-block: 20px; }
#tab-recenzije .comment_container { display: flex; gap: 14px; align-items: flex-start; }
#tab-recenzije .comment_container img.avatar {
  width: 48px; height: 48px; border-radius: 50%; margin: 0;
}
#tab-recenzije .meta { margin-bottom: 6px; color: var(--ink-3); font-size: 0.92rem; }
#tab-recenzije .star-rating { color: var(--star); margin-bottom: 6px; }
#tab-recenzije .comment-form { display: grid; gap: 14px; max-width: 640px; }
#tab-recenzije .comment-form input[type=text],
#tab-recenzije .comment-form input[type=email],
#tab-recenzije .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); font: inherit;
}
#tab-recenzije .comment-form .stars a { color: var(--star); font-size: 1.4rem; }

/* WooCommerce notices in Torivo style */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none; padding: 14px 18px; border-radius: var(--r-sm);
  margin: 0 0 20px; border: 1px solid var(--border);
}
.woocommerce-message { background: var(--ok-bg); border-color: #bfe6cf; color: var(--ok); }
.woocommerce-info { background: var(--bg-blue-tint); border-color: #bcd9fb; }
.woocommerce-error { background: var(--sale-bg); border-color: #f3c9cc; color: var(--sale-dark); }

@media (max-width: 760px) {
  .pf-block { grid-template-columns: 1fr; gap: 16px; margin: 22px 0; }
  .pf-block:nth-child(even) .pf-media { order: 0; }
}

/* ========================================================================
   Product gallery arrows + reviews + mobile fixes (Torivo)
   ======================================================================== */

/* Gallery prev/next arrows over the main image */
.pd-main-img { position: relative; }
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); color: var(--navy);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  cursor: pointer; z-index: 3; transition: background 0.15s var(--ease);
}
.pd-nav:hover { background: #fff; }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }

/* Reviews tab */
.reviews-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--ink-2); flex-wrap: wrap; }
.reviews-summary .stars { color: var(--star); font-size: 1.2rem; }
.review-video { margin: 0 0 26px; max-width: 420px; }
.review-video video {
  width: 100%; border-radius: var(--r-md); border: 1px solid var(--border);
  background: #000; display: block; aspect-ratio: 9 / 16; object-fit: cover;
}
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card {
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
}
.rc-media { aspect-ratio: 4 / 3; background: var(--bg-soft); }
.rc-media img { width: 100%; height: 100%; object-fit: cover; }
.rc-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.rc-body .stars { color: var(--star); }
.rc-text { margin: 0; color: var(--ink-2); }
.rc-author { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.92rem; color: var(--ink-3); margin-top: auto; }
.rc-author b { font-family: var(--font-display); color: var(--ink); }
.rc-author .verified { color: var(--ok); font-weight: 600; }

/* Mobile gallery fixes */
@media (max-width: 760px) {
  .pd-layout { gap: 18px; padding-block: 10px 14px; }
  .pd-gallery { position: static; max-width: 100%; }
  .pd-main-img { aspect-ratio: 1 / 1; max-width: 100%; }
  .pd-main-img img { width: 100%; height: 100%; }
  .pd-thumbs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .pd-thumbs button { width: 60px; height: 60px; flex: 0 0 auto; }
  .pd-nav { width: 40px; height: 40px; }
  /* Reviews 2-per-row on mobile too */
  .review-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .review-card { border-radius: var(--r-sm); }
  .rc-body { padding: 11px 12px; gap: 6px; }
  .rc-text { font-size: 0.92rem; }
  .rc-author { font-size: 0.82rem; }
  .review-video { max-width: 100%; }
}

/* Reduce side spacing on mobile so content uses full width */
@media (max-width: 560px) {
  .container { padding-inline: 12px; }
  .pd-info { padding-inline: 0; }
}

/* Safety: never allow horizontal page overflow */
html, body { overflow-x: hidden; }
