/* ==========================================================================
   7Compare — "Premium" theme layer (12 Nov 2026)
   Loaded AFTER the main stylesheet. Only restyles: no layout logic, no
   content, no links change. Remove this file's <link> to roll back.
   Calm palette: white / soft grey surfaces, near-black actions, one deep-blue
   accent used sparingly, green only for savings. No gradients, no glow.
   ========================================================================== */

:root {
  --bg: #f6f7f9;
  --bg-deep: #eef0f3;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --surface-3: #f3f4f6;
  --glass: rgba(255, 255, 255, .92);
  --glass-strong: #ffffff;
  --ink: #111318;
  --ink-2: #474c57;
  --ink-3: #7b818d;
  --ink-4: #a7acb6;
  --line: #e7e8ec;
  --line-2: #d9dbe1;
  --line-soft: rgba(17, 19, 24, .06);
  --act: #111318;
  --act-hover: #2b2f38;
  --act-ring: rgba(17, 19, 24, .14);

  /* accent: deep blue, used for links, focus and small highlights only */
  --brand-50: #f1f4fd;
  --brand-100: #e2e8fb;
  --brand-200: #c5d1f6;
  --brand-300: #9fb2ee;
  --brand-400: #6c86de;
  --brand: #2443b8;
  --brand-600: #1d3796;
  --brand-700: #172c76;
  --brand-ink: #0f1d4e;

  --spec-1: #111318;
  --spec-2: #111318;
  --spec-3: #111318;
  /* the base stylesheet paints CTAs and accents with these: make them solid */
  --grad-brand: linear-gradient(var(--act), var(--act));
  --grad-brand-soft: linear-gradient(var(--surface-3), var(--surface-3));

  --save: #0b7a4b;
  --save-600: #08603b;
  --save-bg: #ecf7f1;
  --save-line: #c7e8d6;
  --drop: #c4321c;
  --drop-bg: #fcefec;

  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;

  --sh-1: 0 1px 2px rgba(17, 19, 24, .04);
  --sh-2: 0 1px 2px rgba(17, 19, 24, .04), 0 6px 16px -8px rgba(17, 19, 24, .10);
  --sh-3: 0 2px 4px rgba(17, 19, 24, .04), 0 16px 32px -16px rgba(17, 19, 24, .16);
  --sh-brand: 0 1px 2px rgba(17, 19, 24, .10);
  --sh-ink: 0 1px 2px rgba(17, 19, 24, .12);
}

body { background: var(--bg); }
::selection { background: var(--brand-100); }

/* ---------- header ---------- */
.header {
  background: rgba(255, 255, 255, .96) !important;
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.hnav { border-radius: var(--r-md); transition: background .15s, color .15s; }
.hnav:hover { background: var(--surface-3); color: var(--ink); }
.hnav[aria-current="page"], .hnav.on, .hnav.active { background: var(--surface-3); color: var(--ink); }
.cat-trigger {
  background: var(--act) !important; color: #fff !important; border: 0 !important;
  box-shadow: none !important; border-radius: var(--r-md) !important;
}

/* ---------- search bars ---------- */
.searchbar-field {
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--line-2) !important;
  background: #fff !important;
  box-shadow: var(--sh-1) !important;
  transition: border-color .15s, box-shadow .15s;
}
.searchbar-field:focus-within {
  border-color: var(--ink) !important;
  box-shadow: 0 0 0 3px var(--act-ring) !important;
}
.searchbar-go {
  background: var(--act) !important; color: #fff !important;
  border-radius: var(--r-md) !important; box-shadow: none !important;
  transition: background .15s;
}
.searchbar-go:hover { background: var(--act-hover) !important; }

/* ---------- hero ---------- */
.hero, .hero-glow { background: transparent !important; }
.hero-glow::before, .hero-glow::after { display: none !important; }
.hero-eyebrow {
  background: #fff !important; border: 1px solid var(--line) !important;
  box-shadow: none !important; color: var(--ink-2) !important;
}
.hero-grad {
  background: none !important; -webkit-text-fill-color: currentColor !important;
  color: var(--brand) !important;
}
.hero-copy h1 { letter-spacing: -.035em; }
.pick {
  border-radius: var(--r-md) !important; border: 1px solid var(--line) !important;
  background: #fff !important; box-shadow: none !important;
  transition: border-color .15s;
}
.pick:hover { border-color: var(--ink-4) !important; }
.stage-card { border-radius: var(--r-xl) !important; box-shadow: var(--sh-3) !important; border: 1px solid var(--line) !important; background: #fff !important; }
.float { border-radius: var(--r-lg) !important; box-shadow: var(--sh-2) !important; border: 1px solid var(--line) !important; }

/* ---------- buttons: solid, quiet ---------- */
.btn { border-radius: var(--r-md) !important; transition: background .15s, border-color .15s, color .15s; }
.btn-brand, .btn-primary, .buyacts-go {
  background: var(--act) !important; color: #fff !important; border: 0 !important; box-shadow: none !important;
}
.btn-brand:hover, .btn-primary:hover, .buyacts-go:hover { background: var(--act-hover) !important; }
.btn-ghost, .buyacts-see {
  background: #fff !important; border: 1px solid var(--line-2) !important; color: var(--ink) !important;
}
.btn-ghost:hover, .buyacts-see:hover { border-color: var(--ink-4) !important; background: var(--surface-2) !important; }

/* ---------- cards ---------- */
.prow, .pcard, .deal, .ccard, .lens, .promo-card {
  border-radius: var(--r-xl) !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.prow:hover, .pcard:hover, .deal:hover, .ccard:hover, .lens:hover, .promo-card:hover {
  border-color: var(--line-2) !important; box-shadow: var(--sh-2) !important;
}
.promo-art, .promo-card-app .promo-art, .promo-card-ext .promo-art, .promo-card-tg .promo-art {
  background: var(--surface-3) !important;
}
.product-img { border-radius: var(--r-lg) !important; background: var(--surface-3); }
.prow-title, .pcard-title { letter-spacing: -.01em; color: var(--ink); }
.prow-brand, .pcard-brand, .stage-brand {
  color: var(--ink-3) !important; letter-spacing: .08em; font-weight: 700;
}
.prow-now, .pcard-now { letter-spacing: -.03em; color: var(--ink); }

/* price ladder: best store in quiet green */
.ladder-row.is-best .ladder-bar, .ladder-row.is-best .ladder-bar > * { background: var(--save) !important; }
.ladder-row.is-best { background: var(--save-bg); border-radius: var(--r-sm); }

/* chips, badges, discounts */
.chip, .badge, .smart-chip, .rating-pill { border-radius: var(--r-pill) !important; }
.discount {
  background: var(--drop-bg) !important; color: var(--drop) !important; border: 0 !important;
  border-radius: var(--r-sm) !important; font-weight: 700;
}
.badge-brand { background: var(--surface-3) !important; color: var(--ink-2) !important; }
.store-mark { border-radius: 8px !important; box-shadow: 0 0 0 2px #fff; }

/* ---------- search results page ---------- */
.live-strip {
  background: #fff !important; border: 1px solid var(--line) !important;
  border-radius: var(--r-xl) !important; box-shadow: none !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.live-badge {
  background: var(--save-bg) !important; color: var(--save) !important;
  border: 1px solid var(--save-line) !important; border-radius: var(--r-pill) !important;
}
.results-head h1 { letter-spacing: -.03em; }
.results-cheapest {
  background: var(--save-bg) !important; border: 1px solid var(--save-line) !important;
  border-radius: var(--r-md) !important;
}
.results-filters-inner, .filters {
  border-radius: var(--r-xl) !important; background: #fff !important;
  border: 1px solid var(--line) !important; box-shadow: none !important;
}
.segmented { border-radius: var(--r-md) !important; background: var(--surface-3) !important; }
.segmented .on, .segmented [aria-selected="true"] {
  background: #fff !important; color: var(--ink) !important;
  border-radius: 8px !important; box-shadow: var(--sh-2) !important;
}

/* ---------- sections ---------- */
.section-head h2, .shelf-titles h2, .catshelf-titles h2, .discover-head h2, .promo-head h2 { letter-spacing: -.03em; }
.shelf-eyebrow, .eyebrow, .discover-eyebrow, .promo-head-t .eyebrow {
  background: none !important; -webkit-text-fill-color: currentColor !important;
  color: var(--ink-3) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
}
.ccard-icon { border-radius: var(--r-md) !important; background: var(--surface-3) !important; }
a.link, .link { color: var(--brand) !important; }

/* ---------- footer ---------- */
.footer { background: #0f1115 !important; color: #a9aeb8 !important; border-top: 0 !important; }
.footer a { color: #d7dae0 !important; }
.footer a:hover { color: #fff !important; }
.footer h2, .footer h3, .footer h4, .footer strong { color: #fff !important; }

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--brand) !important; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .prow, .pcard, .deal, .ccard, .lens, .promo-card, .pick, .btn, .searchbar-go { transition: none !important; }
}

/* ---------- "See all on the store" row (store-jump.js) ---------- */
.store-jump {
  margin: 14px 0 18px;
  padding: 16px 18px;
  border-radius: var(--r-xl);
  background: var(--grad-brand-soft);
  border: 1px solid var(--brand-100);
  box-shadow: var(--sh-1);
}
.store-jump-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.store-jump-head strong { font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.store-jump-head span { font-size: 13px; color: var(--ink-2); }
.store-jump-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .store-jump-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .store-jump-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.store-jump-btn {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 8px 12px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-weight: 700; font-size: 13.5px; text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.store-jump-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--sj, var(--brand-300)); }
.sj-mark {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font-size: 11px; font-weight: 800; color: #fff; background: var(--sj, var(--brand));
}
.sj-label { flex: 1; min-width: 0; line-height: 1.2; display: flex; flex-direction: column; }
.sj-label b { font-weight: 800; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sj-label small { font-weight: 600; font-size: 11px; color: var(--ink-3); }
.sj-arrow { flex: none; color: var(--ink-3); font-size: 15px; }
.store-jump-btn:hover .sj-arrow { color: var(--sj, var(--brand)); }
.sj-shopsy   { --sj: #8b2fd6; }
.sj-meesho   { --sj: #9f2089; }
.sj-amazon   { --sj: #e47911; }
.sj-flipkart { --sj: #2874f0; }
.sj-nykaa    { --sj: #e80071; }
.sj-myntra   { --sj: #ff3f6c; }
.sj-ajio     { --sj: #2c4152; }
.sj-croma    { --sj: #12a19a; }
.sj-decathlon{ --sj: #0082c3; }
.sj-moglix   { --sj: #d9232d; }
.store-jump-note { margin: 10px 2px 0; font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 760px) {
  .store-jump { padding: 14px; }
  .store-jump-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .store-jump-btn { font-size: 13px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .store-jump-btn { transition: none; } .store-jump-btn:hover { transform: none; } }

/* ---------- store-style product grid on results pages ---------- */
.results-main .pgrid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 14px !important;
}
.results-main .pgrid .pcard { border-radius: var(--r-lg) !important; }
.results-main .pgrid .pcard-body { padding: 10px 12px 12px !important; gap: 6px; }
.results-main .pgrid .pcard-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px !important; line-height: 1.3 !important; min-height: 2.6em;
}
.results-main .pgrid .pcard-now { font-size: 19px !important; }
.results-main .pgrid .pcard-media { aspect-ratio: 1 / 1; }
.results-main .pgrid .pcard-media .product-img { width: 100%; height: 100%; object-fit: contain; }
.results-main .pgrid .ladder-row { padding-top: 4px !important; padding-bottom: 4px !important; }
.results-main .pgrid .ladder-row:nth-child(n+3) { display: none; }   /* best 2 stores; Quick look shows all */
.results-main .pgrid .buyacts .btn, .results-main .pgrid .buyacts-go, .results-main .pgrid .buyacts-see {
  min-height: 36px !important; padding-top: 6px !important; padding-bottom: 6px !important; font-size: 13px !important;
}
@media (max-width: 760px) {
  .results-main .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .results-main .pgrid .pcard-body { padding: 8px 9px 10px !important; }
  .results-main .pgrid .pcard-title { font-size: 12.5px !important; }
  .results-main .pgrid .pcard-now { font-size: 16px !important; }
  .results-main .pgrid .buyacts-see { display: none !important; }
  .results-main .pgrid .ladder-row:nth-child(n+2) { display: none; }   /* phone: cheapest store only */
  .results-main .pgrid .ladder-row { font-size: 11.5px; }
  .results-main .pgrid .pcard-tools .icon-btn { width: 30px; height: 30px; }
}

/* ---------- premium tune for the store row + grid ---------- */
.store-jump { background: #fff !important; border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: var(--r-xl) !important; }
.store-jump-btn { border-radius: var(--r-md) !important; transition: border-color .15s, background .15s !important; }
.store-jump-btn:hover { transform: none !important; box-shadow: none !important; border-color: var(--ink-4) !important; background: var(--surface-2) !important; }
.sj-mark { background: var(--surface-3) !important; color: var(--sj, var(--ink)) !important; border: 1px solid var(--line); border-radius: 8px !important; }
.store-jump-btn:hover .sj-arrow { color: var(--ink) !important; }
.results-main .pgrid .pcard:hover { transform: none !important; }

/* ---------- remove the base design's colour washes and glows ---------- */
body::before, body::after { background: none !important; }
.cta::before, .cta::after { display: none !important; }
.cta { background: var(--act) !important; }
.lowest-cta { background: #fff !important; }
.pcard-flag, .flag-brand { background: var(--act) !important; color: #fff !important; box-shadow: none !important; }
.live-deepening { background: var(--surface-3) !important; color: var(--ink-2) !important; border-color: var(--line) !important; }

/* ---------- Shopsy tile: first card of the results (store-jump.js) ---------- */
.sj-tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.sj-tile:hover { border-color: var(--ink-4); box-shadow: var(--sh-2); }
.sj-tile-art {
  display: grid; place-items: center; aspect-ratio: 1 / 1;
  background: var(--surface-3); border-bottom: 1px solid var(--line);
}
.sj-tile-logo { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: #7b2cbf; }
.sj-tile-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.sj-tile-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sj-tile-title { font-size: 14px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.sj-tile-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.sj-tile-cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 36px;
  border-radius: var(--r-md); background: var(--act); color: #fff; font-size: 13px; font-weight: 700;
}
.sj-tile:hover .sj-tile-cta { background: var(--act-hover); }
/* list view: a slim horizontal row above the products */
.sj-tile-list { flex-direction: row; align-items: stretch; margin-bottom: 12px; }
.sj-tile-list .sj-tile-art { aspect-ratio: auto; width: 140px; border-bottom: 0; border-right: 1px solid var(--line); }
.sj-tile-list .sj-tile-cta { align-self: flex-start; padding: 0 16px; }
@media (max-width: 760px) {
  .sj-tile-body { padding: 9px; gap: 5px; }
  .sj-tile-logo { font-size: 20px; }
  .sj-tile-title { font-size: 12.5px; }
  .sj-tile-text { font-size: 11.5px; }
  .sj-tile-list .sj-tile-art { width: 96px; }
}

/* ---------- "+N more styles at <store>" (folded same-title listings) ---------- */
.sj-styles {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  margin: 2px 0 2px; padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--surface-3); border: 1px solid var(--line);
  color: var(--ink-2) !important; font-size: 12px; font-weight: 600; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.sj-styles::after { content: "\2197"; font-size: 11px; color: var(--ink-3); }
.sj-styles:hover { border-color: var(--ink-4); color: var(--ink) !important; }
@media (max-width: 760px) { .sj-styles { font-size: 11px; padding: 2px 8px; } }
