/* Concept 4 — Conversion Marketplace
   Dense, fast, deal-driven layout in the style of large Indian marketplaces.
   Grey canvas with white cards, red for buying actions, yellow for deals. */
:root {
  --red: #e4332d;
  --red-dark: #c4241f;
  --yellow: #ffd60a;
  --navy: #172042;
  --ink: #212121;
  --muted: #6b6f7b;
  --line: #e4e6eb;
  --canvas: #f1f3f6;
  --green: #138a3e;
  --r: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--canvas); font-size: 15px; line-height: 1.45; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
.wrap { width: min(1360px, 100% - 24px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #000; color: #fff; padding: 8px; z-index: 99; }
:focus-visible { outline: 2px solid #2962ff; outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 6px; border: 0; font-weight: 700; white-space: nowrap; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--green { background: var(--green); color: #fff; }
.card { background: #fff; border-radius: var(--r); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }

.util { background: var(--navy); color: #c9cde0; font-size: .8rem; }
.util__row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.util nav { display: flex; gap: 18px; }
.util a:hover { color: #fff; }

.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
.header__row { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand img { height: 60px; }
.hamb { display: none; background: none; border: 0; padding: 6px; }
.hamb svg, .act svg, .pin svg, .search button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pin { display: flex; align-items: center; gap: 6px; background: none; border: 0; text-align: left; padding: 4px 6px; border-radius: 6px; }
.pin:hover { background: var(--canvas); }
.pin small, .act small { display: block; font-size: .72rem; color: var(--muted); }
.pin strong, .act strong { font-size: .88rem; }
.search { flex: 1; display: flex; height: 46px; border: 2px solid var(--red); border-radius: 8px; overflow: hidden; }
.search select { border: 0; background: var(--canvas); padding: 0 10px; font-size: .85rem; border-right: 1px solid var(--line); }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; outline: none; }
.search button { width: 56px; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; }
.acts { display: flex; align-items: center; gap: 18px; }
.act { position: relative; display: flex; align-items: center; gap: 8px; }
.act b { position: absolute; top: -6px; left: 14px; background: var(--red); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
.act b:empty { display: none; }
.act__lbl { font-size: .85rem; font-weight: 600; }

.megabar { border-top: 1px solid var(--line); }
.megabar ul { list-style: none; display: flex; gap: 2px; padding: 0; margin: 0 auto; }
.megabar li > a, .megabar li > button { display: block; padding: 11px 14px; font-weight: 600; font-size: .9rem; background: none; border: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.megabar li:hover > a, .megabar li:hover > button { border-color: var(--red); color: var(--red); }
.hot { color: var(--red); }
.has-mega { position: relative; }
.mega { position: absolute; top: 100%; left: 0; background: #fff; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 16px 32px rgba(0, 0, 0, .14); padding: 20px; min-width: 640px; display: none; z-index: 10; }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; }
.mega__grid a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; font-size: .9rem; }
.mega__grid a:hover { background: var(--canvas); }
.mega__grid img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.mega__cols { display: grid; grid-template-columns: repeat(3, 1fr) 180px; gap: 24px; }
.mega__cols h4 { font-size: .8rem; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mega__cols a { display: block; padding: 5px 0; font-size: .9rem; }
.mega__cols a:hover { color: var(--red); }
.mega__promo { background: #fff4d1; border-radius: var(--r); padding: 14px; text-align: center; }
.mega__promo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin: 0 auto 8px; }
.mega__promo span { display: block; color: var(--red); font-weight: 700; }

.page { padding: 14px 0 40px; display: grid; gap: 14px; }
.page > *, .top > *, .two > * { min-width: 0; }

.top { display: grid; grid-template-columns: 220px 1fr 300px; gap: 14px; }
.side { background: #fff; border-radius: var(--r); padding: 14px 8px; }
.side h2 { font-size: .8rem; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; font-size: .9rem; font-weight: 500; }
.side a:hover { background: var(--canvas); color: var(--red); }
.side img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.side a::after { content: '›'; margin-left: auto; color: var(--muted); }

.slider { position: relative; border-radius: var(--r); overflow: hidden; min-height: 380px; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 40%; align-items: center; padding: 40px 56px; color: #fff; }
.slide > div { position: relative; z-index: 1; }
.slide[hidden] { display: none; }
.slide--1 { background: linear-gradient(110deg, #e4332d, #ff7a45); }
.slide--2 { background: linear-gradient(110deg, #3b2a8f, #6a4fd0); }
.slide--3 { background: linear-gradient(110deg, #0f6b5c, #19a68a); }
.slide h1, .slide h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 800; margin: 12px 0 10px; letter-spacing: -.02em; }
.slide p { margin-bottom: 22px; opacity: .92; }
.slide img { position: absolute; top: 0; right: 0; width: 52%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.tag { display: inline-block; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); padding: 4px 10px; border-radius: 4px; font-size: .8rem; font-weight: 700; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 64px; border: 0; background: rgba(255, 255, 255, .9); font-size: 1.6rem; color: var(--ink); }
.slider__nav--prev { left: 0; border-radius: 0 8px 8px 0; }
.slider__nav--next { right: 0; border-radius: 8px 0 0 8px; }
.slider__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.slider__dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .5); padding: 0; transition: width .2s; }
.slider__dots button[aria-selected="true"] { width: 24px; background: #fff; }

.right { display: grid; gap: 14px; align-content: start; }
.finder { padding: 18px; display: grid; gap: 6px; }
.finder h2 { font-size: 1.05rem; margin-bottom: 6px; }
.finder label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.finder select { height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: #fff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 6px 0 8px; }
.seg button { border: 0; background: #fff; padding: 9px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.mini { display: flex; align-items: center; gap: 12px; padding: 14px; }
.mini img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.mini small { display: block; color: var(--muted); }

.usp { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r); }
.usp > div { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-right: 1px solid var(--line); }
.usp > div:last-child { border: 0; }
.usp b { width: 40px; height: 40px; border-radius: 50%; background: #fff0ef; color: var(--red); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.usp span { font-size: .82rem; color: var(--muted); }
.usp strong { display: block; color: var(--ink); font-size: .92rem; }

.block { background: #fff; border-radius: var(--r); padding: 18px 20px; }
.block__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.block__head h2 { font-size: 1.3rem; font-weight: 800; }
.view { margin-left: auto; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700; padding: 8px 14px; border-radius: 6px; }
.timer { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.timer span { background: var(--red); color: #fff; font-weight: 700; padding: 4px 10px; border-radius: 6px; font-variant-numeric: tabular-nums; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pc { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 4px; background: #fff; transition: box-shadow .2s; }
.pc:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.pc__img { aspect-ratio: 1; background: #f7f8fa; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.pc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pc:hover .pc__img img { transform: scale(1.05); }
.pc__off { position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
.pc__wish { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); color: #bbb; font-size: 1rem; }
.pc__wish[aria-pressed="true"] { color: var(--red); }
.pc h3 { font-size: .88rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.pc small { color: var(--muted); font-size: .74rem; }
.pc__rate { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.pc__rate b { background: var(--green); color: #fff; padding: 1px 6px; border-radius: 4px; font-size: .72rem; }
.pc__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc__price strong { font-size: 1.05rem; }
.pc__price s { color: var(--muted); font-size: .8rem; }
.pc__price em { color: var(--green); font-style: normal; font-weight: 700; font-size: .8rem; }
.pc__stock { font-size: .74rem; color: var(--red); font-weight: 600; }
.pc__bar { height: 4px; background: #fde2e1; border-radius: 2px; overflow: hidden; }
.pc__bar i { display: block; height: 100%; background: var(--red); }
.pc .btn { min-height: 36px; font-size: .85rem; margin-top: 6px; width: 100%; }

.schools { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.sch { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--r); font-size: .8rem; font-weight: 600; background: #fff; }
.sch:hover { border-color: var(--red); }
.sch img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.sch small { color: var(--muted); font-weight: 500; }

.stores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.store { border-radius: var(--r); padding: 22px; color: #fff; display: grid; gap: 2px; min-height: 130px; align-content: center; transition: transform .2s; }
.store:hover { transform: translateY(-3px); }
.store small { font-weight: 600; opacity: .9; }
.store strong { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.store--a { background: #e4332d; }
.store--b { background: #4b3a8c; }
.store--c { background: #0f6b5c; }
.store--d { background: #d9772e; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; }
.pills button[aria-pressed="true"] { background: #fff0ef; border-color: var(--red); color: var(--red); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }

.banks { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff8dc; border: 1px dashed #e6c650; border-radius: var(--r); padding: 12px 18px; font-size: .88rem; }
.banks span { background: #fff; border-radius: 6px; padding: 6px 12px; }

.kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kit { display: grid; grid-template-columns: 110px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; align-items: center; }
.kit__img { aspect-ratio: 1; background: #fff4e5; border-radius: 8px; overflow: hidden; }
.kit__img img { width: 100%; height: 100%; object-fit: cover; }
.kit h3 { font-size: 1rem; }
.kit p { color: var(--muted); font-size: .82rem; margin: 2px 0 6px; }
.kit .save { display: inline-block; background: #e6f6ec; color: var(--green); font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 4px; }
.kit .btn { min-height: 36px; font-size: .85rem; margin-top: 8px; }

.two { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.score { font-weight: 800; color: var(--green); }
.score small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rv { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; font-size: .88rem; display: grid; gap: 8px; align-content: start; }
.rv b { background: var(--green); color: #fff; padding: 1px 6px; border-radius: 4px; font-size: .75rem; justify-self: start; }
.rv small { color: var(--muted); }
.creators ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.creators li { display: flex; gap: 12px; align-items: center; }
.av { width: 44px; height: 44px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.creators small { display: block; color: var(--muted); }

.wa { background: #e8f7ee; border-radius: var(--r); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wa h2 { font-size: 1.2rem; }
.wa p { color: var(--muted); font-size: .88rem; }
.wa form { display: flex; align-items: center; background: #fff; border: 1px solid #bfe3cc; border-radius: 8px; overflow: hidden; }
.wa form span { padding: 0 10px; font-weight: 700; }
.wa input { border: 0; outline: none; height: 44px; width: 220px; }
.wa .btn { border-radius: 0; }

.footer { background: var(--navy); color: #b8bdd4; font-size: .88rem; }
.back { display: block; text-align: center; background: #232d57; color: #fff; padding: 12px; font-weight: 600; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 24px; padding: 40px 0; }
.footer h3 { color: #fff; font-size: .9rem; margin-bottom: 10px; }
.footer__grid a { display: block; padding: 3px 0; }
.footer__grid a:hover { color: #fff; }
.contact { margin-top: 10px; }
.footer__brand span { display: inline-block; background: #fff; border-radius: 10px; padding: 6px 12px; margin-bottom: 14px; }
.footer__brand img { height: 64px; }
.pay { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pay i { font-style: normal; background: #fff; color: var(--navy); font-weight: 800; font-size: .72rem; padding: 4px 8px; border-radius: 4px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #2c3662; padding: 16px 0 24px; font-size: .8rem; }

.tabbar { display: none; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 160%); background: #222; color: #fff; padding: 12px 20px; border-radius: 8px; font-weight: 600; transition: transform .3s; z-index: 70; }
.toast:empty { visibility: hidden; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1200px) {
  .top { grid-template-columns: 1fr 300px; }
  .side { display: none; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .schools { grid-template-columns: repeat(4, 1fr); }
  .act--login span, .pin span small { display: none; }
}
@media (max-width: 860px) {
  .util { display: none; }
  .header__row { flex-wrap: wrap; height: auto; padding: 8px 0; gap: 10px; }
  .hamb { display: block; }
  .brand img { height: 46px; }
  .pin { order: 4; flex-basis: 100%; background: #fff5f4; font-size: .82rem; }
  .pin span small { display: inline; margin-right: 4px; }
  .pin span { display: flex; align-items: baseline; }
  .search { order: 3; flex-basis: 100%; height: 42px; }
  .search select { display: none; }
  .acts { margin-left: auto; gap: 14px; }
  .act__lbl, .act--login { display: none; }
  .megabar { display: none; }
  .megabar.is-open { display: block; }
  .megabar.is-open ul { flex-direction: column; }
  .mega { position: static; min-width: 0; box-shadow: none; padding: 8px 14px; }
  .mega__cols { grid-template-columns: 1fr 1fr; }
  .top { grid-template-columns: 1fr; }
  .slider { min-height: 250px; }
  .slide { grid-template-columns: 1fr 30%; padding: 24px; }
  .slide img { width: 58%; }
  .slide h1, .slide h2 { font-size: 1.5rem; }
  .slide p { font-size: .85rem; margin-bottom: 14px; }
  .slider__nav { display: none; }
  .right { grid-template-columns: 1fr; }
  .usp { grid-template-columns: 1fr 1fr; }
  .usp > div:nth-child(2) { border-right: 0; }
  .usp > div { border-bottom: 1px solid var(--line); padding: 12px; }
  .block { padding: 14px 12px; border-radius: 0; }
  .rail { grid-auto-columns: 46%; }
  .schools { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .sch { font-size: .7rem; padding: 8px 4px; }
  .sch small { display: none; }
  .stores { grid-template-columns: 1fr 1fr; gap: 10px; }
  .store { min-height: 100px; padding: 16px; }
  .store strong { font-size: 1.7rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kits, .two, .reviews { grid-template-columns: 1fr; }
  .wa form { width: 100%; }
  .wa input { flex: 1; width: auto; min-width: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .page { gap: 10px; padding-top: 10px; }
  body { padding-bottom: 62px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 60; }
  .tabbar a { display: grid; justify-items: center; padding: 8px 0 10px; font-size: 1.1rem; }
  .tabbar span { font-size: .68rem; font-weight: 600; color: var(--muted); }
  .tabbar a[aria-current] span { color: var(--red); }
  .toast { bottom: 80px; }
}
