/* ============ FLATKART v2 — Professional Design System ============ */
:root {
  --primary: #1a73e8;
  --primary-dark: #1359b4;
  --accent: #ff6b1a;
  --accent-soft: #fff3ec;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-glow: #eef4ff;
  --green: #059669;
  --red: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 6px 16px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.05);
  --shadow-lg: 0 20px 40px rgba(15,23,42,.12);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); line-height: 1.6; background: var(--bg); font-size: 16px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul, ol { list-style-position: inside; }
::selection { background: #cfe0ff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #94a3b8; font-size: 12.5px; padding: 6px 0; }
.topbar .wrap-inner { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.topbar a { color: #cbd5e1; }

/* ---------- Header ---------- */
.header { background: #fff; position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.7px; display: flex; align-items: center; gap: 8px; }
.logo .logo-box { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #ff9040); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.logo em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a.active { color: var(--primary); background: var(--bg-glow); }
.nav-cta { background: var(--accent) !important; color: #fff !important; padding: 9px 16px !important; border-radius: 9px !important; }

/* ---------- Search ---------- */
.search-bar { display: flex; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; flex: 1; max-width: 320px; }
.search-bar input { border: none; background: transparent; padding: 9px 8px; font-size: 14.5px; width: 100%; outline: none; color: var(--ink); }
.search-bar .icon { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1000px 400px at 20% -10%, #16366e 0%, var(--ink) 55%); color: #fff; overflow: hidden; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 64px 20px 56px; position: relative; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; max-width: 640px; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: #7ab2ff; }
.hero p { font-size: 17.5px; color: #a9bad2; max-width: 560px; margin-bottom: 26px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 7px 14px; border-radius: 999px; font-size: 13px; color: #d5dfef; }
.hero-stats { display: flex; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.hero-stat b { font-size: 22px; font-weight: 800; color: #fff; display: block; }
.hero-stat span { font-size: 13px; color: #8fa3c0; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff !important; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 15.5px; border: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #e55a0d; }
.btn.ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff !important; }
.btn.ghost:hover { background: rgba(255,255,255,.18); }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.section { padding: 44px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.section-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.section-head .sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.section-head .more { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s, border-color .2s; display: flex; flex-direction: column; position: relative; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #c7d5f0; }
.card-img-wrap { position: relative; background: var(--bg-soft); aspect-ratio: 1 / 1; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 18px; }
.card-img-wrap img { width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s; }
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.card-badge.green { background: var(--green); }
.card-badge.blue { background: var(--primary); }
.card-badge.dark { background: var(--ink); }
.discount-fab { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--green); color: #fff; font-weight: 800; font-size: 13.5px; padding: 4px 9px; border-radius: 8px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--primary); margin-bottom: 5px; }
.card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--primary); }
.rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 13px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.price { font-weight: 800; color: var(--ink); font-size: 20px; letter-spacing: -0.4px; }
.price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.strike { color: var(--muted); text-decoration: line-through; font-size: 13.5px; }
.save { color: var(--green); font-weight: 700; font-size: 12.5px; background: #e7f6ee; padding: 2px 8px; border-radius: 6px; }
.card-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.card-foot { margin-top: auto; display: flex; gap: 8px; padding-top: 14px; }
.btn-sm { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: #fff !important; padding: 10px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; flex: 1; transition: background .15s; }
.btn-sm:hover { background: var(--primary-dark); }
.btn-sm.outline { background: #fff; color: var(--primary) !important; border: 1.5px solid var(--primary); flex: 0 0 auto; }
.btn-sm.outline:hover { background: var(--bg-glow); }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; background: #fff; transition: box-shadow .2s, transform .2s; display: block; color: var(--ink); }
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--ink); }
.cat-icon { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 13px; background: var(--bg-glow); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.cat-card h3 { font-size: 15.5px; font-weight: 700; }
.cat-card p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cat-card:hover .cat-icon { background: var(--accent-soft); }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 44px 20px 64px; }
.article h1 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.6px; line-height: 1.22; margin-bottom: 12px; font-weight: 800; }
.article .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.article .meta .pill { background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.article h2 { font-size: 23px; margin: 40px 0 12px; letter-spacing: -0.3px; font-weight: 800; }
.article h3 { font-size: 19px; margin: 28px 0 10px; font-weight: 700; }
.article p { margin: 14px 0; color: var(--ink-2); }
.article ul, .article ol { margin: 14px 0; padding-left: 6px; }
.article li { margin: 7px 0; color: var(--ink-2); }
.article .toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 20px 0 30px; }
.article .toc h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 10px; }
.article .toc ol { margin: 0; }
.article .toc li { margin: 4px 0; }
.article .toc a { color: var(--primary); font-weight: 500; font-size: 14.5px; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.article table th, .article table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article table th { background: var(--bg-soft); font-weight: 700; }
.article img { border-radius: 10px; }
blockquote { border-left: 4px solid var(--primary); background: var(--bg-soft); padding: 12px 18px; margin: 18px 0; border-radius: 0 10px 10px 0; color: var(--ink-2); }

/* ---------- CTA / Disclosure ---------- */
.cta-box { background: linear-gradient(135deg, var(--bg-soft), var(--bg-glow)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 28px 0; }
.cta-box p { margin: 0 0 12px; }
.cta-box .btn-sm, .cta-box .btn { margin-bottom: 8px; }
.disclosure-note { font-size: 12.5px; color: var(--muted); background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 22px 0; }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; overflow: hidden; }
.faq-q { padding: 14px 18px; font-weight: 700; font-size: 15.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.faq-q::after { content: "＋"; color: var(--muted); font-weight: 400; }
.faq-item.open .faq-q::after { content: "－"; }
.faq-a { padding: 0 18px 16px; color: var(--ink-2); font-size: 14.5px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ---------- Trust strip ---------- */
.trust { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { max-width: 1200px; margin: 0 auto; padding: 22px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.trust-item .t-ico { width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 17px; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(135deg, var(--ink), #1e2f52); border-radius: var(--radius); padding: 34px; margin: 40px 0; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.newsletter h3 { font-size: 20px; margin-bottom: 6px; }
.newsletter p { color: #a9bad2; font-size: 14px; }
.newsletter .nl-form { display: flex; gap: 8px; flex: 1; max-width: 400px; min-width: 0; }
.newsletter input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 9px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 14.5px; outline: none; }
.newsletter input::placeholder { color: #8fa3c0; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; position: relative; }
.step .num { position: absolute; top: 16px; right: 18px; font-size: 34px; font-weight: 800; color: var(--bg-soft); letter-spacing: -1px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }
.step .s-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }

/* ---------- Deals list band ---------- */
.band { background: linear-gradient(90deg, var(--accent-soft), var(--bg-glow)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.band .flame { font-size: 26px; }
.band b { font-size: 16px; }
.band span { font-size: 14px; color: var(--ink-2); }
.band .spacer { flex: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cbd5e1; margin-top: 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 700; }
.footer a { color: #94a3b8; font-size: 14px; display: block; margin: 7px 0; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer .desc { font-size: 13.5px; color: #94a3b8; max-width: 220px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); max-width: 1200px; margin: 0 auto; padding: 18px 20px; font-size: 12.5px; color: #64748b; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Deal page hero price card ---------- */
.price-card { display: grid; grid-template-columns: 200px 1fr auto; gap: 22px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 26px; flex-wrap: wrap; }
.price-card img { width: 200px; }
.price-card .info h2 { font-size: 20px; margin-bottom: 8px; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.new-price { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; }
.you-save { color: var(--green); font-weight: 700; background: #e7f6ee; display: inline-block; padding: 4px 10px; border-radius: 7px; margin-top: 6px; font-size: 13px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; padding: 10px 16px; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; gap: 2px; }
  .nav a { font-size: 14px; padding: 7px 10px; }
  .search-bar { max-width: none; order: 2; }
  .hero-inner { padding: 44px 16px 40px; }
  .price-card { grid-template-columns: 1fr; text-align: center; }
  .price-card img { margin: 0 auto; }
  .footer-inner { gap: 22px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 14px; }
  .price { font-size: 17px; }
  .btn-sm { padding: 9px 12px; font-size: 13px; }
  .section { padding: 30px 0; }
  .hero-stats { gap: 18px; }
  .newsletter { padding: 22px 18px; }
  .newsletter .nl-form { flex-direction: column; align-items: stretch; }
  .newsletter .nl-form .btn { width: 100%; justify-content: center; }
  .btn { padding: 11px 18px; font-size: 14.5px; }
}
html, body { overflow-x: clip; }