/* =====================================================
   ChayanKart Design System
   "India's Product Decision Engine"
   Editorial + Data + Warmth + Indian sensibility
   ===================================================== */

/* ---------- TYPOGRAPHY IMPORTS (Google Fonts) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800;9..144,900&family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Surface + ink — Palette C (Bold Indian) */
  --surface: #fff9f0;
  --surface-elev: #ffffff;
  --surface-sunken: #f3eddf;
  --ink: #0f1530;
  --ink-muted: #4b5060;
  --ink-soft: #8a8f9f;

  /* Brand — Indigo primary */
  --brand: #1a2447;
  --brand-deep: #0f1530;
  --brand-soft: #c5cce0;
  --brand-bg: #dde0ec;

  /* Accent + signals */
  --accent: #ff8c42;          /* Saffron */
  --accent-soft: #fde2cf;
  --accent-deep: #b54a14;
  --winner: #6b1d3a;           /* Wine */
  --winner-soft: #ebe1e5;
  --success: #2d9d57;          /* Green = savings (V4 locked) */
  --success-soft: #d5ecdd;
  --success-deep: #1e6e3a;
  --reject: #c1463c;
  --reject-soft: #f5dcd9;

  /* Lines + shadow */
  --border: #e0d8c5;
  --border-strong: #c4b89f;
  --shadow-sm: 0 1px 2px rgba(26, 29, 46, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 29, 46, 0.06);
  --shadow-lg: 0 12px 32px rgba(26, 29, 46, 0.1);
  --shadow-hover: 0 8px 24px rgba(13, 110, 110, 0.12);

  /* Type scale */
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-data: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 760px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

a { color: var(--brand); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-deep); }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- TYPOGRAPHY ---------- */
.font-serif { font-family: var(--font-serif); }
.font-data { font-family: var(--font-data); font-feature-settings: 'tnum'; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
h4 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; }

p { color: var(--ink-muted); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-3);
}

.tagline {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- LAYOUT ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-5); }
.container.narrow { max-width: var(--max-w-narrow); }

.section { padding: var(--s-9) 0; }
.section.tight { padding: var(--s-7) 0; }
.section.loose { padding: var(--s-10) 0; }

/* ---------- TOP NAVIGATION ---------- */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.topnav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.brand-mark {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.brand-mark .ck-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--brand);
  color: var(--surface);
  border-radius: 8px;
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
}
.brand-mark .kart { color: var(--ink); }

.nav-links {
  display: flex;
  gap: var(--s-5);
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: var(--s-2) 0;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions { display: flex; gap: var(--s-3); align-items: center; }

.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--s-2) var(--s-4);
  min-width: 240px;
  transition: border 0.15s;
}
.search-bar:focus-within { border-color: var(--brand); background: var(--surface-elev); }
.search-bar input {
  border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 14px; flex: 1; color: var(--ink);
}
.search-bar input::placeholder { color: var(--ink-soft); }
.search-bar .search-ico { color: var(--ink-soft); margin-right: var(--s-2); font-size: 14px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  background: var(--brand);
  color: var(--surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.15s;
}
.cta:hover { background: var(--brand-deep); color: var(--surface); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.cta.ghost:hover { border-color: var(--ink); background: var(--surface-elev); }
.cta.accent { background: var(--accent); color: var(--ink); }
.cta.accent:hover { background: #e69510; }

/* ---------- HERO ---------- */
.hero {
  padding: var(--s-10) 0 var(--s-9);
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(13, 110, 110, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(245, 166, 35, 0.06) 0%, transparent 50%);
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto var(--s-5);
}
.hero h1 .em-pick { color: var(--brand); font-style: italic; }
.hero h1 .em-honest { color: var(--winner); }

.hero .lead {
  max-width: 600px;
  margin: 0 auto var(--s-7);
}

.hero-actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

.trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-7);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  color: var(--ink-muted);
}
.trust-strip .trust-item .ico {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-size: 16px;
}

/* ---------- TIME TOGGLE ---------- */
.time-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
  gap: var(--s-4);
}

.time-pills {
  display: inline-flex;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.time-pill {
  padding: var(--s-2) var(--s-5);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: var(--radius-full);
  transition: all 0.15s;
  white-space: nowrap;
}
.time-pill:hover { color: var(--ink); }
.time-pill.active {
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.category-chips {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding-bottom: var(--s-2);
  scrollbar-width: thin;
}
.category-chip {
  padding: var(--s-2) var(--s-4);
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
}
.category-chip:hover { border-color: var(--brand); color: var(--brand); }
.category-chip.active { background: var(--brand); border-color: var(--brand); color: var(--surface); }

/* ---------- PRODUCT CARDS / RANKING GRID ---------- */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-5);
}
/* Featured row variant — top-3 editorial cascade. Bigger cards, exactly 3 cols
   on desktop, dropping cleanly. Detail cards get more presence vs compact below. */
.ranking-grid.featured-row {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
@media (max-width: 980px) {
  .ranking-grid.featured-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ranking-grid.featured-row { grid-template-columns: 1fr; }
}

/* Divider between featured row and compact catalog */
.row-divider {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-5) 0 var(--s-4);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.row-divider::before, .row-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.product-card {
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--brand-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card .rank-num {
  position: absolute;
  top: var(--s-4); left: var(--s-4);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 40px;
  color: var(--surface-sunken);
  line-height: 1;
  letter-spacing: -0.04em;
  z-index: 1;
}
.product-card.top-pick .rank-num { color: var(--accent-soft); }
.product-card.top-pick {
  background: linear-gradient(180deg, #fefbf4 0%, var(--surface-elev) 60%);
  border-color: var(--accent-soft);
}

.product-card .editors-choice {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  background: var(--winner);
  color: var(--surface);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--radius-full);
  z-index: 2;
}

.product-card .product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 12px;
  position: relative;
  z-index: 0;
}

.product-card .product-name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2);
  color: var(--ink);
  line-height: 1.3;
}

.product-card .product-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  font-size: 12px;
  color: var(--ink-muted);
}

.product-card .verdict {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: var(--s-4);
}

/* ---------- CHAYAN SCORE BADGE ---------- */
.chayan-score {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.chayan-score .score-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent) 0%, var(--winner) var(--pct, 87%), var(--border) var(--pct, 87%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.chayan-score .score-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--surface-elev);
  border-radius: 50%;
}
.chayan-score .score-num {
  position: relative;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.chayan-score .score-num small {
  font-size: 10px;
  color: var(--ink-soft);
  margin-left: 1px;
  font-weight: 500;
}
.chayan-score .score-info { display: flex; flex-direction: column; }
.chayan-score .score-label {
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.chayan-score .score-grade {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-top: 2px;
}
/* All scores use the same gradient — V4 locked. No grade variants. */
.chayan-score .score-grade { display: none; }
.chayan-score.high .score-ring,
.chayan-score.mid .score-ring,
.chayan-score.low .score-ring {
  background: conic-gradient(from 0deg, var(--accent) 0%, var(--winner) var(--pct, 87%), var(--border) var(--pct, 87%) 100%);
}

/* ---------- MULTI-MARKETPLACE PRICE STRIP ---------- */
.marketplace-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  border-top: 1px solid var(--border);
  padding-top: var(--s-4);
}
.marketplace-strip .mp {
  display: flex;
  flex-direction: column;
  padding: var(--s-2);
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  text-align: center;
  position: relative;
}
.marketplace-strip .mp .mp-name {
  font-family: var(--font-data);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.marketplace-strip .mp .mp-price {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}
.marketplace-strip .mp.lowest {
  background: var(--success-soft);
  border: 1px solid var(--success);
}
.marketplace-strip .mp.lowest .mp-price { color: var(--success); }
.marketplace-strip .mp.lowest::after {
  content: 'Lowest';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: var(--surface);
  font-family: var(--font-data);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* All-5-platforms strip variant — fits 5 columns on a card */
.marketplace-strip.mp5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.marketplace-strip.mp5 .mp { padding: 6px 4px; }
.marketplace-strip.mp5 .mp .mp-name { font-size: 8px; }
.marketplace-strip.mp5 .mp .mp-price { font-size: 12px; }
.marketplace-strip.mp5 .mp.lowest::after { font-size: 7px; padding: 1px 5px; top: -7px; }

/* Grayed-out cell: marketplace not yet captured */
.marketplace-strip .mp.grayed {
  background: transparent;
  border: 1px dashed var(--border-strong);
  opacity: 0.55;
}
.marketplace-strip .mp.grayed .mp-name,
.marketplace-strip .mp.grayed .mp-price { color: var(--ink-soft); font-weight: 400; }
.marketplace-strip .mp .mp-empty { color: var(--ink-soft); }

/* Has price but no affiliate link yet — show price, hint link is pending */
.marketplace-strip .mp.nolink { opacity: 0.85; }
.marketplace-strip .mp.nolink::before {
  content: '◌';
  position: absolute;
  top: 2px; right: 4px;
  font-size: 8px;
  color: var(--accent);
  opacity: 0.8;
}

.product-card .card-foot {
  display: flex; gap: var(--s-2); margin-top: auto;
}
.product-card .btn-read {
  flex: 1;
  text-align: center;
  padding: var(--s-3);
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}
.product-card .btn-read:hover { background: var(--brand); color: var(--surface); }
.product-card .btn-compare {
  padding: var(--s-3) var(--s-4);
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
}
.product-card .btn-compare:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- METHODOLOGY TEASER ---------- */
.method-teaser {
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.method-teaser h2 { color: var(--surface); }
.method-teaser p { color: rgba(250, 247, 242, 0.75); }
.method-teaser .score-formula {
  font-family: var(--font-data);
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  padding: var(--s-5);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}
.method-teaser .score-formula .var { color: var(--accent); font-weight: 700; }
.method-teaser .cta { background: var(--accent); color: var(--ink); }
.method-teaser .cta:hover { background: #ffba3a; }

/* ---------- REJECTION TEASER ---------- */
.reject-teaser {
  background: var(--reject-soft);
  border-left: 6px solid var(--reject);
  border-radius: var(--radius-md);
  padding: var(--s-7);
  display: flex;
  gap: var(--s-7);
  align-items: center;
}
.reject-teaser .big-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 96px;
  line-height: 1;
  color: var(--reject);
  letter-spacing: -0.04em;
}
.reject-teaser .content { flex: 1; }
.reject-teaser h2 { margin-bottom: var(--s-3); }
.reject-teaser .cta { background: var(--reject); color: var(--surface); }
.reject-teaser .cta:hover { background: #a93a31; }

/* ---------- CATEGORY GRID (homepage browse) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-3);
}
.cat-tile {
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: all 0.15s;
  cursor: pointer;
}
.cat-tile:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-tile .cat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--brand);
  margin-bottom: var(--s-2);
}
.cat-tile .cat-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cat-tile .cat-count {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- NEWSLETTER CTA ---------- */
.newsletter-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-7);
  text-align: center;
}
.newsletter-card h2 { color: var(--surface); margin-bottom: var(--s-3); }
.newsletter-card p { color: rgba(250,247,242,0.85); margin-bottom: var(--s-6); }
.newsletter-form {
  display: flex;
  gap: var(--s-3);
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  background: var(--surface);
  border: none;
  padding: var(--s-4) var(--s-5);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius-full);
}
.newsletter-form input:focus { outline: 2px solid var(--accent); }
.newsletter-form button {
  padding: var(--s-4) var(--s-6);
  background: var(--accent);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-full);
  transition: all 0.15s;
}
.newsletter-form button:hover { background: #ffba3a; transform: translateY(-1px); }

/* ---------- FOOTER ---------- */
footer.site-foot {
  background: var(--ink);
  color: rgba(250,247,242,0.7);
  padding: var(--s-9) 0 var(--s-5);
  margin-top: var(--s-9);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.foot-grid h5 {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: var(--s-4);
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: var(--s-2); font-size: 14px; }
.foot-grid a { color: rgba(250,247,242,0.7); }
.foot-grid a:hover { color: var(--accent); }
.foot-grid .brand-section .brand-mark { color: var(--surface); margin-bottom: var(--s-3); }
.foot-grid .brand-section .brand-mark .kart { color: var(--accent); }
.foot-grid .brand-section p { color: rgba(250,247,242,0.65); font-size: 14px; max-width: 320px; }

.foot-disclosure {
  font-size: 12px;
  color: rgba(250,247,242,0.5);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.foot-disclosure strong { color: var(--accent); }
.foot-bottom {
  text-align: center;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(250,247,242,0.5);
}

/* ---------- PULL QUOTE / EDITORIAL CALLOUT ---------- */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding: var(--s-4) var(--s-6);
  margin: var(--s-7) 0;
  max-width: 700px;
}

/* ---------- AUTHOR BYLINE CARD ---------- */
.byline {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--ink-muted);
}
.byline .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
}
.byline .author-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.byline .author-role {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- BADGES / PILLS ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 3px var(--s-3);
  border-radius: var(--radius-full);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge.brand { background: var(--brand-bg); color: var(--brand); }
.badge.accent { background: var(--accent-soft); color: #8b5a00; }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.winner { background: var(--winner-soft); color: var(--winner); }
.badge.reject { background: var(--reject-soft); color: var(--reject); }

.updated-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 3px var(--s-3);
  background: var(--surface-sunken);
  border-radius: var(--radius-full);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}
.updated-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.section-header h2 { margin: 0; }
.section-header .section-meta { color: var(--ink-muted); font-size: 14px; }
.section-header a.see-all {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.05em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .search-bar { min-width: 160px; }
  .method-teaser { grid-template-columns: 1fr; padding: var(--s-6); }
  .reject-teaser { flex-direction: column; text-align: center; padding: var(--s-5); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: var(--s-7) 0; }
  .marketplace-strip { grid-template-columns: repeat(2, 1fr); }
  .marketplace-strip.mp5 { grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .marketplace-strip.mp5 .mp { padding: 4px 2px; }
  .marketplace-strip.mp5 .mp .mp-name { font-size: 7px; }
  .marketplace-strip.mp5 .mp .mp-price { font-size: 10px; }
  .hero { padding: var(--s-7) 0; }
}

@media (max-width: 540px) {
  .ranking-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .topnav-inner { gap: var(--s-3); }
  .brand-mark { font-size: 22px; }
}

/* =====================================================
   Hover-rotating image gallery
   Used on homepage product cards, capture-tool cards,
   article hero blocks. Behavior:
     · Default: shows first image only (static, no motion)
     · Hover: soft auto-rotate through all images (1 → 2 → ...)
     · Mouseleave: snaps back to first image
     · Arrows (left/right) on hover for manual nav
     · Dot indicators at bottom
   ===================================================== */
.ck-rotating {
  position: relative;
  overflow: hidden;
  background: white;
  cursor: pointer;
}
.ck-rotating > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ck-rotating > img.is-active {
  opacity: 1;
}
.ck-rotating .dots {
  position: absolute;
  bottom: 6px;
  left: 0; right: 0;
  display: flex;
  gap: 4px;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ck-rotating:hover .dots {
  opacity: 1;
}
.ck-rotating .dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(15, 21, 48, 0.3);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  pointer-events: auto;
}
.ck-rotating .dots span:hover {
  background: rgba(15, 21, 48, 0.55);
}
.ck-rotating .dots span.is-active {
  background: var(--accent);
  transform: scale(1.4);
}

/* Prev / Next arrows — show on hover only */
.ck-rotating .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 32px;
  border: none;
  background: rgba(15, 21, 48, 0.78);
  color: #fff9f0;
  font-family: -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.2s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ck-rotating .nav:hover {
  background: var(--accent);
  color: var(--ink);
}
.ck-rotating .nav span {
  line-height: 1;
  margin-top: -2px;
}
.ck-rotating .nav.prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}
.ck-rotating .nav.next {
  right: 0;
  border-radius: 4px 0 0 4px;
}
.ck-rotating:hover .nav {
  opacity: 1;
}
/* Image count indicator — top right, only visible when 2+ images */
.ck-rotating[data-count]:not([data-count="1"])::after {
  content: attr(data-count) " photos";
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  background: rgba(15, 21, 48, 0.65);
  color: #fff9f0;
  font-family: ui-monospace, "Space Grotesk", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  pointer-events: none;
}
.ck-rotating[data-count="0"]::after,
.ck-rotating[data-single="1"]::after {
  display: none;
}

/* Single-image variant — no controls, no count badge, no hover state */
.ck-rotating[data-single="1"] { cursor: default; }
.ck-rotating[data-single="1"] .dots,
.ck-rotating[data-single="1"] .nav { display: none; }

/* The gallery sometimes lives in a flex/grid cell with no intrinsic
   height — give it a usable default when used in card thumbs */
.product-img .ck-rotating { width: 100%; height: 100%; min-height: 180px; }

/* =====================================================
   COMPACT CARD — denser layout for catalog contexts.
   Used on category pages, search results, homepage #4+,
   anywhere we list >6 products.

   Design rules (locked Jun 2026):
   · Image is a square (1:1) at the top
   · Title clamps to 2 lines
   · Single full-width "Chayan Now" CTA = primary conversion
   · 5-platform price strip is collapsed by default; expand on
     click to show all marketplaces
   · Stamp (sm) overlaid bottom-right corner of the image
   ===================================================== */
.ranking-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
}
@media (max-width: 980px) {
  .ranking-grid.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 540px) {
  .ranking-grid.compact { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
}
@media (max-width: 380px) {
  .ranking-grid.compact { grid-template-columns: 1fr; }
}

.product-card.compact {
  padding: 0;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-card.compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.product-card.compact .rank-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 21, 48, 0.78);
  color: var(--surface);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 3;
  letter-spacing: 0.05em;
}
.product-card.compact .editors-choice {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

/* Square image with stamp overlay */
.product-card.compact .product-img {
  aspect-ratio: 1 / 1;
  background: white;
  position: relative;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.product-card.compact .product-img .ck-rotating { min-height: 0; }
/* Stamp overlay — works for any product card, not just compact.
   Overlaid on bottom-right of the image. */
.stamp-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  filter: drop-shadow(0 3px 8px rgba(15, 21, 48, 0.28));
  pointer-events: none;
  line-height: 0;
}

/* Editorial-boost pill — transparent disclosure of a category-level score boost.
   Lives next to the stamp on cards / spotlight / article hero. Click toggles a
   tooltip with the rationale (linked to methodology page). */
.boost-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--winner) 100%);
  color: var(--surface);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(107, 29, 58, 0.25);
  cursor: help;
  position: relative;
}
.boost-pill::before {
  content: '+';
  font-size: 12px;
  font-weight: 800;
  margin-right: 1px;
}
.boost-pill[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: normal;
  width: 220px;
  text-align: left;
  line-height: 1.4;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  pointer-events: none;
}

/* When the pill is inline (default — sits next to category pill in card body),
   it uses its natural inline-flex display + brand gradient. */
.boost-pill.is-inline {
  margin-left: 4px;
}

/* When the pill goes on the image (overlay), give it a high-contrast white outline
   so it stays legible against busy product photography (book covers, etc.) */
.product-img .boost-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgba(15, 21, 48, 0.45);
}
.stamp-overlay svg { display: block; }
/* Ensure .product-img is a positioning context for the overlay */
.product-card .product-img { position: relative; }

/* =====================================================
   Chayan Score stamp — block layout
   Loading-bar progress ring + straight text above/below
   (rewritten Jun 2026: replaced curved-text seal with
   clear hierarchical block)
   ===================================================== */
.ck-stamp-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-family: var(--font-sans);
}
.ck-stamp-block .ck-stamp-label {
  font-family: var(--font-data);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.1;
  margin-bottom: 4px;
}
.ck-stamp-block .ck-stamp-footer {
  font-family: var(--font-data);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  line-height: 1.1;
  margin-top: 4px;
}
.ck-stamp-block-md .ck-stamp-label { margin-bottom: 6px; }
.ck-stamp-block-md .ck-stamp-footer { margin-top: 6px; }
.ck-stamp-block-lg .ck-stamp-label { color: var(--ink); margin-bottom: 8px; }
.ck-stamp-block-lg .ck-stamp-footer { margin-top: 8px; }
/* Drop shadow on the ring SVG for depth */
.ck-stamp-ring { display: block; }

/* =====================================================
   Hero split layout — Amazon Prime Video style
   Left: brand copy. Right: rotating top-5 spotlight.
   ===================================================== */
.hero.hero-split {
  padding: var(--s-5) 0 var(--s-5);
  background: var(--surface);
}
.hero-split-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--s-6);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
@media (max-width: 920px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

.hero-copy { display: flex; flex-direction: column; gap: var(--s-3); }
.hero-copy .eyebrow { color: var(--accent-deep); }
.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.hero-copy h1 .em-pick { color: var(--accent); font-style: italic; }
.hero-copy .lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}
.hero-copy .lead em { color: var(--ink); font-style: normal; font-weight: 600; }
.hero-copy .em-honest { color: var(--ink); font-weight: 600; font-size: 14px; }
.hero-copy .em-honest strong { color: var(--accent-deep); }
.hero-copy .hero-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }

/* === The right-side spotlight rotator === */
.hero-spotlight {
  position: relative;
  background: linear-gradient(165deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  color: var(--surface);
  min-height: 360px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-spotlight .spot-eyebrow {
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-spotlight .spot-eyebrow .pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(255,140,66,0.25);
  animation: ck-pulse 1.8s ease-out infinite;
}
@keyframes ck-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,140,66,0.55); }
  100% { box-shadow: 0 0 0 12px rgba(255,140,66,0); }
}

/* The slides are absolutely positioned in the same container; opacity-cross-fade */
.hero-spotlight .slides {
  position: relative;
  min-height: 260px;
  margin-top: var(--s-3);
}
.hero-spotlight .slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-4);
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(6px);
  pointer-events: none;
}
.hero-spotlight .slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-spotlight .slide .slide-img {
  width: 140px; height: 140px;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.hero-spotlight .slide .slide-img .ck-rotating { width: 100%; height: 100%; }
.hero-spotlight .slide .slide-img .stamp-overlay { bottom: 6px; right: 6px; }

.hero-spotlight .slide .slide-meta { min-width: 0; }
.hero-spotlight .slide .slide-rank {
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.hero-spotlight .slide .slide-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--surface);
  margin: 0 0 var(--s-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-spotlight .slide .slide-why {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-spotlight .slide .slide-why li {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,249,240,0.88);
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}
.hero-spotlight .slide .slide-why li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
}
.hero-spotlight .slide .slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.hero-spotlight .slide .slide-cta:hover { background: #ff7a2a; }

/* Bottom dots for manual selection */
.hero-spotlight .dots {
  position: absolute;
  bottom: var(--s-4);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-spotlight .dots button {
  width: 28px; height: 4px;
  background: rgba(255,249,240,0.25);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.hero-spotlight .dots button:hover { background: rgba(255,249,240,0.45); }
.hero-spotlight .dots button.is-active { background: var(--accent); }

/* Side nav arrows on spotlight */
.hero-spotlight .arrow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(255,249,240,0.1);
  color: var(--surface);
  border: 1px solid rgba(255,249,240,0.18);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
  z-index: 4;
}
.hero-spotlight .arrow-nav:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hero-spotlight .arrow-nav.prev { left: var(--s-3); }
.hero-spotlight .arrow-nav.next { right: var(--s-3); }

@media (max-width: 720px) {
  .hero.hero-split { padding: var(--s-4) 0; }
  .hero-spotlight { padding: var(--s-4); min-height: 320px; }
  .hero-spotlight .slides { min-height: 220px; }
  .hero-spotlight .slide .slide-img { width: 110px; height: 110px; }
  .hero-spotlight .slide .slide-name { font-size: 16px; }
  .hero-spotlight .slide .slide-why li { font-size: 12px; }
  .hero-spotlight .arrow-nav { width: 30px; height: 30px; font-size: 15px; }
  .hero-copy h1 { font-size: clamp(24px, 7vw, 32px); }
  .hero-copy .lead { font-size: 14px; }
}
@media (max-width: 480px) {
  .hero-spotlight .slide { grid-template-columns: 90px 1fr; gap: var(--s-3); }
  .hero-spotlight .slide .slide-img { width: 90px; height: 90px; }
  .hero-spotlight .slide .slide-cta { padding: 7px 12px; font-size: 12px; }
  .hero-spotlight .dots button { width: 18px; }
}

/* === Compact card mobile polish === */
@media (max-width: 540px) {
  .product-card.compact .name { font-size: 13px; min-height: 34px; }
  .product-card.compact .chayan-now { padding: 8px 10px; font-size: 12px; }
  .product-card.compact .chayan-now .price { font-size: 13px; }
  .product-card.compact .chayan-now .platform-tag { font-size: 8px; padding: 2px 5px; }
  .product-card.compact .cat-pill { font-size: 8px; padding: 2px 6px; }
}
@media (max-width: 380px) {
  /* On phones, swap to flex column for the CTA so price wraps under label */
  .product-card.compact .chayan-now {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .product-card.compact .chayan-now .label { width: 100%; justify-content: center; }
}

/* === Stamp sizing on mobile (sm overlay should shrink) === */
@media (max-width: 540px) {
  .product-card.compact .stamp-overlay svg { width: 48px; height: 48px; }
  .product-card.compact .stamp-overlay { bottom: 4px; right: 4px; }
}

/* Card body */
.product-card.compact .card-body {
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card.compact .cat-pill {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-bg);
  padding: 2px 7px;
  border-radius: 999px;
  align-self: flex-start;
}
.product-card.compact .name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.product-card.compact .meta-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--ink-muted);
}
.product-card.compact .meta-row .rating { color: var(--ink); font-weight: 700; }
.product-card.compact .meta-row .reviews { color: var(--ink-soft); }

/* === The CHAYAN NOW CTA — primary conversion === */
.product-card.compact .chayan-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  background: var(--accent);
  color: var(--ink);
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  margin-top: auto;
  width: 100%;
  text-align: left;
}
.product-card.compact .chayan-now:hover {
  background: #ff7a2a;
}
.product-card.compact .chayan-now:active {
  transform: scale(0.99);
}
.product-card.compact .chayan-now .label {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-card.compact .chayan-now .label::before {
  content: '⚡';
  font-size: 14px;
  line-height: 1;
}
.product-card.compact .chayan-now .price {
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.product-card.compact .chayan-now .platform-tag {
  font-family: var(--font-data);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(15, 21, 48, 0.15);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 999px;
}
.product-card.compact .chayan-now.disabled {
  background: var(--surface-sunken);
  color: var(--ink-soft);
  cursor: not-allowed;
  pointer-events: none;
}
.product-card.compact .chayan-now.disabled .label::before { content: '◌'; opacity: 0.5; }

/* === Price strip = collapsed by default, expand on click === */
.product-card.compact .price-strip-toggle {
  background: transparent;
  border: none;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 0 0;
  text-align: center;
  width: 100%;
  transition: color 0.15s ease;
}
.product-card.compact .price-strip-toggle:hover { color: var(--ink); }
.product-card.compact .price-strip-toggle::after { content: ' ↓'; transition: transform 0.15s ease; display: inline-block; }
.product-card.compact[data-strip-open="1"] .price-strip-toggle::after { transform: rotate(180deg); }
.product-card.compact .marketplace-strip.mp5 {
  display: none;
  margin: var(--s-3) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.product-card.compact[data-strip-open="1"] .marketplace-strip.mp5 { display: grid; }

/* =====================================================
   GRID / LIST view toggle for catalog pages
   ===================================================== */
.view-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.view-toggle button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: 0.1s;
}
.view-toggle button.active {
  background: var(--ink);
  color: var(--surface);
}
.view-toggle button:not(.active):hover { color: var(--ink); }

/* List view = single column compact rows */
.ranking-grid.list { grid-template-columns: 1fr; }
.ranking-grid.list .product-card.compact {
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3);
}
.ranking-grid.list .product-card.compact .product-img {
  aspect-ratio: 1 / 1;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.ranking-grid.list .product-card.compact .card-body { padding: 0; }
.ranking-grid.list .product-card.compact .name { min-height: 0; -webkit-line-clamp: 2; }
.ranking-grid.list .product-card.compact .chayan-now { margin-top: 0; }
@media (max-width: 700px) {
  .ranking-grid.list .product-card.compact {
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
  }
  .ranking-grid.list .product-card.compact .product-img { width: 100px; height: 100px; }
  .ranking-grid.list .product-card.compact .chayan-now-wrap { grid-column: 1 / -1; }
}
