/* ═══════════════════════════════════════════════════════════
   DeskiTop — Design System v3
   Aesthetic: Editorial Tech Magazine · Warm Graphite + Ember
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;800;900&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:        #0e0d0b;
  --bg-2:      #141210;
  --bg-3:      #1a1714;
  --panel:     rgba(26, 23, 20, 0.92);
  --panel-2:   rgba(20, 18, 16, 0.97);

  /* Text */
  --text:      #f2ede8;
  --text-2:    #c4b8aa;
  --muted:     #8a7d70;

  /* Brand — Ember / Amber */
  --brand:     #e8813a;
  --brand-glow:rgba(232, 129, 58, 0.18);
  --brand-dim: rgba(232, 129, 58, 0.08);
  --brand-2:   #f5a623;
  --rgb-cyan:  #30d5ff;
  --rgb-violet:#8b5cf6;
  --rgb-pink:  #ff4ecd;
  --rgb-cyan-glow: rgba(48, 213, 255, 0.18);
  --rgb-violet-glow: rgba(139, 92, 246, 0.18);

  /* Structural */
  --line:      rgba(242, 237, 232, 0.09);
  --line-warm: rgba(232, 129, 58, 0.18);
  --danger:    #e05c4b;
  --success:   #5cb87a;
  --accent:    #f5a623;

  /* Geometry */
  --shadow-sm: 0 4px 16px rgba(0,0,0,.28);
  --shadow:    0 16px 48px rgba(0,0,0,.42);
  --shadow-lg: 0 32px 80px rgba(0,0,0,.55);
  --radius:    20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --max:       1180px;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Heebo', system-ui, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 78% 52% at 70% -14%, rgba(232,129,58,.11), transparent 62%),
    radial-gradient(ellipse 70% 46% at -6% 56%, rgba(232,129,58,.06), transparent 58%),
    radial-gradient(circle at 12% 20%, rgba(139,92,246,.10), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(48,213,255,.08), transparent 22%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: clamp(14px, 3vw, 38px);
  right: clamp(14px, 3vw, 38px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,78,205,.92), rgba(232,129,58,.9) 24%, rgba(245,166,35,.9) 44%, rgba(101,233,88,.82) 66%, rgba(48,213,255,.92));
  opacity: .92;
  box-shadow: 0 0 16px rgba(255,78,205,.16), 0 0 18px rgba(48,213,255,.14);
  z-index: 60;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 26%, rgba(48,213,255,.10), transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(255,78,205,.09), transparent 20%),
    radial-gradient(circle at 50% 0%, rgba(139,92,246,.07), transparent 28%),
    linear-gradient(180deg, rgba(12,11,10,.06), transparent 24%);
  opacity: 1;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Layout ──────────────────────────────────────────────── */
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section       { padding: 80px 0; }
.section-tight { padding: 44px 0; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: linear-gradient(160deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232,129,58,.04) 0%, transparent 60%);
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  inset: auto 24px 0 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(48,213,255,0), rgba(48,213,255,.08), rgba(255,78,205,.08), rgba(48,213,255,0));
  opacity: .55;
  pointer-events: none;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease;
  letter-spacing: .01em;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
  box-shadow: 0 4px 20px rgba(232,129,58,.3);
  font-weight: 800;
}
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(232,129,58,.45); }

.btn-secondary {
  background: rgba(255,255,255,.05);
  border-color: var(--line-warm);
  color: var(--text-2);
}
.btn-secondary:hover { background: rgba(255,255,255,.09); border-color: rgba(232,129,58,.4); color: var(--text); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--line-warm); color: var(--text-2); }

.btn-small { min-height: 38px; padding: 0 16px; font-size: 13px; }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(232, 129, 58, 0.12);
  color: var(--brand-2);
  border: 1px solid rgba(232, 129, 58, 0.28);
}
.badge-outline {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(14, 13, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.navbar-inner {
  direction: ltr;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  height: 56px;
  overflow: hidden;
}

.logo,
.nav-links,
.nav-actions,
.nav-toggle {
  direction: rtl;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--text);
  flex-shrink: 0;
  margin-inline-start: auto;
  direction: rtl;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(232,129,58,.22), rgba(245,166,35,.14));
  border: 1px solid rgba(232,129,58,.28);
  font-size: 20px;
}
.logo em { color: var(--brand); font-style: normal; }

.nav-links { flex: 1; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: nowrap; min-width: 0; overflow: hidden; direction: rtl; }
.nav-links a {
  white-space: nowrap;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex-shrink: 0; direction: rtl; padding-inline-start: 4px; }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-warm);
  background: rgba(255,255,255,.04);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu-shell {
  display: none;
  padding-bottom: 12px;
}
.mobile-menu {
  background: linear-gradient(160deg, rgba(26,23,20,.98) 0%, rgba(20,18,16,.99) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.mobile-menu-links,
.mobile-menu-actions {
  display: grid;
  gap: 10px;
}
.mobile-menu-links a,
.mobile-menu-actions a {
  min-height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mobile-menu-links a {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}
.mobile-menu-actions {
  margin-top: 12px;
}
body.menu-open { overflow: hidden; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }

.hero-copy { padding: 48px; }
.hero-copy::after {
  content: '';
  position: absolute;
  top: 0;
  right: 36px;
  left: 36px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,78,205,0), rgba(255,78,205,.72), rgba(48,213,255,.88), rgba(255,78,205,0));
  opacity: .7;
}
.hero-copy::before {
  content: '';
  position: absolute;
  inset: auto auto -120px -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48,213,255,.12), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}
.hero-side::after {
  content: '';
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.14), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
  opacity: .85;
}

.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
}
/* Highlight the last word with a warm underline */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > .container > .hero-grid > .hero-copy > p {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.75;
  max-width: 58ch;
  margin: 0;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Mini feature points */
.hero-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 32px; }
.hero-point {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  transition: border-color .2s;
}
.hero-point:hover { border-color: var(--line-warm); }
.hero-point strong { display: block; margin-bottom: 5px; font-size: 14px; color: var(--text); font-weight: 700; }
.hero-point .muted { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Hero sidebar */
.hero-side { padding: 28px; display: grid; gap: 14px; }
.side-box {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.side-box h2 { color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.side-box ul { padding-right: 18px; list-style: disc; }
.side-box li { color: var(--text-2); font-size: 14px; line-height: 1.7; margin-bottom: 4px; }
.side-box p { color: var(--text-2); font-size: 14px; line-height: 1.65; }

/* ── Section Head ────────────────────────────────────────── */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--text);
}
.section-head p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 64ch;
  margin-top: 8px;
}

/* ── Grids ───────────────────────────────────────────────── */
.grid-cats     { display: grid; gap: 16px; grid-template-columns: repeat(4,1fr); }
.grid-3        { grid-template-columns: repeat(3,1fr); }
.grid-products { display: grid; gap: 20px; grid-template-columns: repeat(3,1fr); }
.grid-steps    { display: grid; gap: 16px; grid-template-columns: repeat(3,1fr); }
.grid-legal    { display: grid; gap: 16px; grid-template-columns: repeat(3,1fr); }

/* ── Category Card ───────────────────────────────────────── */
.cat-card { padding: 24px; transition: border-color .2s, transform .2s; }
.cat-card:hover { border-color: var(--line-warm); transform: translateY(-3px); }
.cat-card h3 { margin: 14px 0 8px; font-size: 17px; font-weight: 800; color: var(--text); }
.cat-card p  { color: var(--muted); font-size: 14px; line-height: 1.65; }

.icon-circle {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--brand-dim);
  border: 1px solid var(--line-warm);
  font-size: 26px;
}

/* ── Product Card ────────────────────────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(18,16,14,.98) 0%, rgba(10,9,8,.98) 100%);
  transition: border-color .22s, transform .22s, box-shadow .22s;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,78,205,0), rgba(255,78,205,.72), rgba(48,213,255,.84), rgba(255,78,205,0));
  opacity: .45;
  pointer-events: none;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: auto -12% -35% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rgb-violet-glow) 0%, transparent 70%);
  opacity: .34;
  pointer-events: none;
  filter: blur(12px);
}
.product-card:hover {
  border-color: rgba(232,129,58,.32);
  box-shadow: 0 18px 42px rgba(0,0,0,.42), 0 0 0 1px rgba(48,213,255,.08), 0 0 28px rgba(139,92,246,.12);
  transform: translateY(-4px);
}

/* Body section with category + title + desc */
.product-card-body { display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; min-height: 186px; }

/* Category row */
.product-card-category {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cat-emoji { font-size: 14px; line-height: 1; }
.cat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-2);
  text-decoration: none;
  opacity: .95;
  transition: opacity .15s, color .15s;
}
.cat-label:hover { opacity: 1; }

/* Title */
.product-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
  min-height: calc(1.45em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Description */
.product-card p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  min-height: calc(1.65em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats pills */
.product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 52px;
  align-items: center;
  align-content: center;
}
.stat-pill {
  font-size: 11.5px;
  color: #efe8ff;
  background: linear-gradient(135deg, rgba(46,57,93,.72), rgba(20,26,50,.78));
  border: 1px solid rgba(122,170,255,.20);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(139,92,246,.04);
}

/* Discount badge overlaid on image */
.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: #0e0d0b;
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1.5;
  z-index: 1;
}

.product-thumb {
  display: block;
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(26,23,20,.9), rgba(32,28,24,.8));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 16px;
  color: var(--text-2);
  background: radial-gradient(circle at top, rgba(232,129,58,.09), transparent 50%), var(--bg-2);
}

.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.price-row .product-actions { justify-self: start; order: 1; }
.price-row .product-disclaimer { grid-column: 1 / -1; margin-top: 6px; font-size: 11px; color: #998a7b; line-height: 1.5; }
.price-row > .small.muted { grid-column: 1 / -1; text-align: right; margin-top: -4px; }
.price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  align-items: flex-end;
  text-align: right;
  justify-content: flex-end;
  order: 2;
}
.price-block.compact { gap: 4px; }
.old-price {
  font-size: 12px;
  color: #988779;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price {
  font-size: 26px;
  font-weight: 900;
  color: #fff7ef;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255,255,255,.05), 0 0 18px rgba(232,129,58,.08);
}
.price-amount { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price-currency {
  font-size: .48em;
  line-height: 1;
  transform: translateY(-2px);
  color: #d8c8bb;
}
.product-page-price .price {
  font-size: clamp(36px, 5vw, 52px);
}
.product-page-price .price-currency { font-size: .62em; }

.category-products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}
.product-actions .btn { flex: 0 0 auto; min-width: 0; white-space: nowrap; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.product-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.product-page-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
  margin: 6px 0 0;
}
.product-page-image {
  width: 100%;
  max-height: 420px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
  padding: 10px;
}

/* ── Step / Legal Cards ──────────────────────────────────── */
.step-card  { padding: 24px; }
.legal-card { padding: 24px; }
.step-card h3, .legal-card h3 { margin-bottom: 10px; font-size: 17px; font-weight: 800; color: var(--text); }
.step-card p,  .legal-card p  { color: var(--text-2); font-size: 15px; line-height: 1.7; }

/* ── Filters ─────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding: 9px 16px;
  font: 600 13px/1 'Heebo', sans-serif;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.filter-chip:hover  { background: rgba(232,129,58,.08); border-color: var(--line-warm); color: var(--text-2); }
.filter-chip.active { background: rgba(232,129,58,.14); border-color: rgba(232,129,58,.4); color: var(--text); }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--text-2); }
.breadcrumbs .sep { opacity: .4; }

/* ── Notice ──────────────────────────────────────────────── */
.notice {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(232,129,58,.08);
  border: 1px solid rgba(232,129,58,.22);
  color: #f0c88a;
  font-size: 14px;
  line-height: 1.65;
}
.notice a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }

/* ── CTA Band ────────────────────────────────────────────── */
.cta-band {
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(232,129,58,.07) 0%, rgba(14,13,11,0) 60%), var(--bg-3);
  border-color: var(--line-warm);
}
.cta-band h2 { margin: 10px 0 8px; font-size: clamp(20px,2.8vw,26px); letter-spacing: -.02em; color: var(--text); }
.cta-band p  { color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr .85fr .85fr; gap: 32px; }
.footer h3   { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer ul   { display: flex; flex-direction: column; gap: 8px; }
.footer li a { color: var(--text-2); font-size: 14px; transition: color .15s; }
.footer li a:hover { color: var(--text); }
.footer > .container > div:first-child p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 12px; }

/* ── Page / Article Cards ────────────────────────────────── */
.page-card    { padding: 40px 44px; line-height: 1.85; }
.article-card { padding: 44px 48px; }

.page-card h1, .article-card h1 {
  margin: 14px 0 20px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--text);
}
.page-card h2, .article-card h2 {
  margin: 32px 0 12px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.page-card h3, .article-card h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.page-card p, .article-card p { color: var(--text-2); margin-bottom: 16px; line-height: 1.8; }
.page-card a, .article-card a { color: var(--brand-2); }
.page-card a:hover, .article-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-card ul, .article-card ul {
  padding-right: 22px;
  list-style: disc;
  margin-bottom: 16px;
}
.page-card li, .article-card li {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 8px;
  font-size: 15px;
}
.page-card li strong, .article-card li strong { color: var(--text); }

.lead { font-size: 18px; line-height: 1.8; color: var(--text-2); margin-bottom: 28px !important; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list .faq-item + .faq-item {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}
.faq-item h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.faq-item p { color: var(--text-2); font-size: 15px; line-height: 1.75; }

/* ── Misc ────────────────────────────────────────────────── */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  transition: color .15s;
}
.text-link:hover { color: var(--brand-2); }

.content-list { padding-right: 22px; list-style: disc; margin: 10px 0 0; }
.content-list li { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: 8px; }

.muted  { color: var(--muted); }
.small  { font-size: 13px; }
code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--brand-2);
}

/* ── Contact / Guides grid ───────────────────────────────── */
.contact-grid { grid-template-columns: 1.1fr .9fr; }
.guides-grid  { grid-template-columns: repeat(3,1fr); }

/* ── Admin ───────────────────────────────────────────────── */
.admin-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-card  { width: min(960px, 100%); padding: 32px; }
.admin-card h1 { font-size: clamp(24px,3vw,36px); letter-spacing: -.02em; }

.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  transition: border-color .15s;
}
.input:focus, .textarea:focus { outline: none; border-color: rgba(232,129,58,.5); }
.textarea { min-height: 140px; padding: 14px; resize: vertical; }

.file-box {
  border: 1px dashed rgba(232,129,58,.3);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  background: var(--brand-dim);
  transition: border-color .2s, background .2s;
}
.file-box:hover { border-color: rgba(232,129,58,.55); background: rgba(232,129,58,.12); }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; min-width: 900px; }
.table th { padding: 12px 14px; background: rgba(232,129,58,.08); color: var(--brand-2); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-align: right; position: sticky; top: 0; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 14px; text-align: right; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,.02); }

/* ── Product page specifics ──────────────────────────────── */
.product-page-card { padding: 36px; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1260px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .nav-actions .btn { padding-inline: 12px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .grid-cats { grid-template-columns: repeat(2,1fr); }
  .grid-products, .category-products-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 980px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle, .mobile-menu-shell { display: block; }
  .nav-toggle { display: inline-flex; }
  .navbar-inner { height: 60px; max-height: 60px; }
  .hero-grid, .footer-grid, .grid-steps, .grid-legal, .form-grid { grid-template-columns: 1fr; }
  .hero-copy, .hero-side { padding: 28px; }
  .hero-points { grid-template-columns: 1fr; }
  .contact-grid, .guides-grid { grid-template-columns: 1fr; }
  .page-card, .article-card, .product-page-card { padding: 28px; }
  .cta-band { padding: 24px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-copy { gap: 16px; }
}

@media (max-width: 768px) {
  .grid-cats,
  .grid-products,
  .grid-3,
  .category-products-grid,
  .guides-grid,
  .grid-steps,
  .grid-legal {
    grid-template-columns: 1fr !important;
  }
  .cat-card,
  .product-card { padding: 18px; }
  .cat-card h3 { font-size: 20px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  .logo { font-size: 18px; }
  .logo-mark { width: 36px; height: 36px; font-size: 18px; }
  .mobile-menu { padding: 12px; }
  .section { padding: 56px 0; }
  .hero-copy, .hero-side, .page-card, .article-card, .product-page-card { padding: 22px; }
  .price-row { grid-template-columns: 1fr; align-items: stretch; }
  .price-row .price-block { justify-self: stretch; align-items: flex-end; width: 100%; }
  .price-row > div:last-child,
  .product-actions { width: 100%; }
  .price-row > div:last-child .btn,
  .product-actions .btn {
    width: 100%;
    flex: 1 1 100%;
  }
  .product-thumb { aspect-ratio: 4/3; }
  .product-page-image { max-height: 300px; }
  .product-page-price .price { font-size: 34px; }
}

/* ── Subtle entrance animation ───────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: cardIn .35s cubic-bezier(.22,1,.36,1) both;
  }
  @keyframes cardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero h1 { animation: fadeUp .5s .05s cubic-bezier(.22,1,.36,1) both; }
  .hero p  { animation: fadeUp .5s .15s cubic-bezier(.22,1,.36,1) both; }
  .hero-actions { animation: fadeUp .5s .22s cubic-bezier(.22,1,.36,1) both; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ═══════════════════════════════════════════════════════════
   Catalog — Category Sections & Compact Widgets
   ═══════════════════════════════════════════════════════════ */

.cat-section {
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
}
.cat-section:first-child { border-top: none; padding-top: 0; }

.cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.cat-header-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cat-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-dim);
  border: 1px solid var(--line-warm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cat-header h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
}
.cat-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Widget grid */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

/* Compact widget card */
.widget-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.widget-card:hover {
  border-color: var(--line-warm);
  transform: translateY(-3px);
}
.widget-img-wrap {
  width: 148px;
  height: 148px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  display: grid;
  place-items: center;
  transition: transform .2s;
  flex-shrink: 0;
}
.widget-card:hover .widget-img-wrap { transform: scale(1.03); }
.widget-img-wrap img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}
.widget-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}
.widget-rating {
  font-size: 13px;
  color: var(--brand-2);
  font-weight: 700;
}
.widget-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.widget-disclaimer {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* Category CTA */
.cat-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: rgba(232,129,58,.06);
  border: 1px solid var(--line-warm);
  margin-bottom: 48px;
  font-size: 14px;
  color: var(--text-2);
}
.cat-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Loading */
.loading-msg {
  text-align: center;
  padding: 60px;
  color: var(--muted);
  font-size: 16px;
}

/* Catalog jump nav */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.cat-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.cat-nav a:hover {
  color: var(--text);
  background: var(--brand-dim);
  border-color: var(--line-warm);
}

@media (max-width: 780px) {
  .widget-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .widget-grid { grid-template-columns: 1fr; }
  .cat-cta { flex-direction: column; align-items: flex-start; }
}

.footer-tagline { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.5; }


.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.tools-grid .cat-card { display: flex; flex-direction: column; }
.tools-grid .cat-card .btn { margin-top: auto; }

.price-row .price-block.compact { justify-self: end; }
.price-row .price-block.compact .price { align-self: flex-end; }


.faq-stack{display:grid;gap:12px}
.faq-item{border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px 16px;background:rgba(255,255,255,.02)}
.faq-item summary{cursor:pointer;font-weight:800;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item p{margin:12px 0 0;color:var(--text-2);line-height:1.8}
.inline-links a{font-weight:700}
.dynamic-count{font-weight:800}

/* tools page overrides */
.icon-logo{padding:0;overflow:hidden;background:#fff}
.icon-logo img{width:100%;height:100%;object-fit:cover;display:block;border-radius:999px}
.tools-grid .cat-card p{min-height:44px}

/* structural layout — replaces repeated inline style= attributes */
.breadcrumbs{margin-bottom:24px}
.footer .logo{margin-bottom:14px}
.cat-card .small.muted{margin-bottom:14px}

/* product page — replaces inline style= on all 391 product pages */
.product-page-title .title-en{font-size:.6em;margin-top:6px;font-weight:500;color:var(--text-2)}
.product-copy>p{color:var(--text-2);font-size:16px;line-height:1.8}
.product-copy .content-list{margin:0 0 4px}
.product-actions+.small.muted{margin-top:12px}
.product-actions+.small.muted+.small.muted{margin-top:4px}
#related-products{margin-top:20px}
#related-products h2{font-size:18px;margin-top:0}
#related-products>p{margin-top:12px}

/* title typography — moved from injectProductTitleStyles() in common.js */
.title-en{display:block;direction:ltr;text-align:left;font-size:inherit;line-height:1.35;font-weight:800;unicode-bidi:plaintext}
.title-he{display:block;margin-top:8px;color:var(--text-2);font-size:.82em;line-height:1.5;font-weight:600}
.product-copy .title-he{font-size:.58em}

/* category page hero and structural layout */
.section-head{margin-bottom:28px}
#category-hero{margin-bottom:28px;min-height:160px;padding:32px 42px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;isolation:isolate;overflow:hidden;background:linear-gradient(135deg, rgba(18,16,14,.98), rgba(10,9,8,.95));}
#category-hero>*{position:relative;z-index:1;width:min(860px,100%);margin-inline:auto}
#category-hero::after{content:'';position:absolute;left:-40px;top:8px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle, rgba(48,213,255,.18) 0%, rgba(48,213,255,.05) 34%, transparent 72%);filter:blur(12px);opacity:.95;pointer-events:none}
#category-hero::before{content:'';position:absolute;right:-30px;bottom:-90px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle, rgba(139,92,246,.20) 0%, rgba(255,78,205,.08) 42%, transparent 76%);filter:blur(18px);opacity:.9;pointer-events:none}
#category-hero .badge, #category-hero .category-hero-badge{background:rgba(255,255,255,.05);border-color:rgba(232,129,58,.28)}
#category-hero .category-hero-badge{align-self:center;display:inline-flex;justify-content:center;margin-bottom:12px;padding-inline:16px;width:auto}
#category-hero .category-hero-badge::before{content:'';position:absolute;top:-26px;left:50%;transform:translateX(-50%);width:min(340px,72vw);height:2px;border-radius:999px;background:linear-gradient(90deg, rgba(255,78,205,0), rgba(255,78,205,.82), rgba(48,213,255,.92), rgba(255,78,205,0));box-shadow:0 0 16px rgba(255,78,205,.16), 0 0 18px rgba(48,213,255,.16);opacity:.9}
#category-hero h1{margin:8px 0 10px;font-size:clamp(24px,2.8vw,38px);font-weight:900;letter-spacing:-.03em;line-height:1.1;text-wrap:balance}
.category-hero-desc{color:var(--text-2);font-size:15px;line-height:1.7;max-width:52ch;margin-inline:auto}
.category-intro{color:var(--text-2);font-size:15px;line-height:1.8;max-width:680px;margin:16px auto 0;padding:16px 20px;background:rgba(255,255,255,.04);border-radius:10px;border:1px solid rgba(255,255,255,.07);text-align:right}
#category-hero .muted, #category-hero .category-hero-count{margin-top:12px;font-size:13px;color:#d8cec3}
#category-hero .category-hero-count{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);align-self:center;width:auto}
#category-seo-content{margin-top:28px}
.inline-links{margin-top:20px}
article .notice{margin-top:28px}
.product-actions+.small.muted+.small.muted+.small.muted{margin-top:8px}

.cat-card:hover, .icon-circle { box-shadow: 0 0 0 rgba(0,0,0,0); }
.cat-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.36), 0 0 26px rgba(48,213,255,.08); }
.icon-circle { box-shadow: 0 0 26px rgba(139,92,246,.10); }
.category-related-guides { margin-top: 28px; }
.category-related-guides h2 { margin-bottom: 10px; }
.category-related-guides p { max-width: 70ch; }
.category-products-grid .product-title a { color: inherit; }
.category-products-grid .product-title a:hover { color: var(--brand-2); }
@media (max-width: 980px) {
  #category-hero { min-height: 0; padding: 30px 22px; }
  #category-hero::after { left: -120px; top: -60px; width: 220px; height: 220px; opacity: .7; }
  #category-hero::before { right: -60px; bottom: -110px; width: 200px; height: 200px; opacity: .6; }
  #category-hero .category-hero-count { min-width: 0; width: min(100%, 420px); }
}
@media (max-width: 640px) {
  .product-card { padding: 16px; gap: 12px; }
  .product-card-body { min-height: auto; }
  .old-price { font-size: 12px; padding: 4px 9px; }
  .price { font-size: 26px; }
  .product-stats { gap: 8px; min-height: 0; }
  .stat-pill { font-size: 11px; padding: 5px 10px; }
  .price-row .product-actions .btn { width: 100%; justify-content: center; min-width: 0; }
  #category-hero h1 { font-size: clamp(28px, 9vw, 42px); }
  .category-hero-desc { font-size: 15px; line-height: 1.8; }
}


/* Guide tables */
.article-card .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  margin: 18px 0 22px;
}
.article-card .table-wrap table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}
.article-card .table-wrap th,
.article-card .table-wrap td {
  padding: 16px 18px;
  text-align: right;
  vertical-align: top;
  line-height: 1.75;
  white-space: normal;
  word-break: break-word;
}
.article-card .table-wrap th {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  background: rgba(232,129,58,.08);
  border-bottom: 1px solid var(--line);
}
.article-card .table-wrap td {
  color: var(--text-2);
  font-size: .98rem;
  border-bottom: 1px solid var(--line);
}
.article-card .table-wrap tr:last-child td {
  border-bottom: none;
}
.article-card .table-wrap th:nth-child(1),
.article-card .table-wrap td:nth-child(1) { width: 20%; }
.article-card .table-wrap th:nth-child(2),
.article-card .table-wrap td:nth-child(2) { width: 40%; }
.article-card .table-wrap th:nth-child(3),
.article-card .table-wrap td:nth-child(3) { width: 40%; }

@media (max-width: 768px) {
  .article-card .table-wrap table { min-width: 640px; }
  .article-card .table-wrap th,
  .article-card .table-wrap td {
    padding: 14px 14px;
    font-size: .95rem;
  }
}
