/* Seya.lk design system. Light theme. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --border: #e6e8f0;
  --border-strong: #d5d9e5;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --accent: #f59e0b;
  --accent-50: #fffbeb;
  --green: #059669;
  --green-50: #ecfdf5;
  --red: #dc2626;
  --red-50: #fef2f2;
  --amber-50: #fffbeb;
  --blue: #2563eb;
  --blue-50: #eff6ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 20px rgba(15, 23, 42, .05);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .12);
  --font: "Inter", "Noto Sans Sinhala", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--text-2); }
.small { font-size: .85rem; }
.xs { font-size: .75rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.text-right { text-align: right; } .text-center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.logo { font-weight: 850; font-size: 1.45rem; letter-spacing: -.03em; color: var(--text); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo .dot { color: var(--primary); }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; display: grid; place-items: center; font-size: 1rem; font-weight: 800; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 9px; font-weight: 550; color: var(--text-2); font-size: .93rem; }
.main-nav a:hover, .main-nav a.active { background: var(--surface-2); color: var(--text); }
.header-search { flex: 1; max-width: 460px; margin-left: auto; position: relative; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); padding: 7px 10px; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 150px; display: none; }
.lang-switch.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
.lang-menu a:hover, .lang-menu a.active { background: var(--primary-50); color: var(--primary); }
.menu-toggle { display: none; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; width: 40px; height: 40px; align-items: center; justify-content: center; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 16px; border-bottom: 1px solid var(--border); font-weight: 550; }

/* Search */
.search-box { position: relative; }
.search-box input { width: 100%; height: 42px; border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 12px; padding: 0 42px 0 40px; outline: none; transition: .15s; font-size: .93rem; }
.search-box input:focus { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.search-box .s-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-box.lg input { height: 56px; font-size: 1.02rem; border-radius: 16px; padding-left: 50px; padding-right: 120px; background: var(--surface); box-shadow: var(--shadow); }
.search-box.lg .s-icon { left: 18px; }
.search-box.lg .s-btn { position: absolute; right: 7px; top: 7px; bottom: 7px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; display: none; max-height: 70vh; overflow-y: auto; }
.suggest.open { display: block; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.hl { background: var(--primary-50); color: var(--text); }
.suggest .thumb { width: 38px; height: 46px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.suggest .thumb img { width: 100%; height: 100%; object-fit: contain; }
.suggest .thumb svg { width: 34px; height: 44px; }
.suggest .s-name { font-weight: 600; font-size: .93rem; }
.suggest .s-meta { font-size: .8rem; color: var(--text-2); }
.suggest .s-type { margin-left: auto; font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.suggest .s-all { justify-content: center; color: var(--primary); font-weight: 600; font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; font-weight: 600; font-size: .93rem; white-space: nowrap; transition: .15s; background: var(--surface); color: var(--text); }
.btn:hover { color: inherit; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-outline { border-color: var(--border-strong); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft { background: var(--primary-50); color: var(--primary); }
.btn-soft:hover { background: var(--primary-100); color: var(--primary-600); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #047857; color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Badges / chips */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.badge-gray { background: var(--surface-2); color: var(--text-2); }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-amber { background: var(--amber-50); color: #b45309; }
.badge-blue { background: var(--blue-50); color: var(--blue); }
.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-featured { background: linear-gradient(135deg, #fde68a, #fbbf24); color: #78350f; }
.badge-ec { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.verified { display: inline-flex; color: #1d9bf0; vertical-align: -2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .88rem; font-weight: 550; color: var(--text-2); }
.chip:hover, .chip.active { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.section { margin: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head .link { color: var(--primary); font-weight: 600; font-size: .92rem; white-space: nowrap; }

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.p-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; transition: .18s; height: 100%; }
.p-card:hover { border-color: var(--primary-100); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.p-card .p-img { aspect-ratio: 1 / 1.05; background: linear-gradient(180deg, #f8f9fd, #f1f3f9); border-radius: 11px; display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; }
.p-card .p-img img { width: 82%; height: 88%; object-fit: contain; }
.p-card .p-img .ph-svg { width: 70%; height: 80%; }
.p-card .p-brand { font-size: .75rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.p-card .p-name { font-weight: 700; font-size: .98rem; margin: 2px 0 6px; line-height: 1.3; }
.p-card .p-specs { font-size: .78rem; color: var(--text-2); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .p-price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.p-card .p-price .from { font-size: .72rem; color: var(--text-3); display: block; }
.p-card .p-price strong { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.p-card .p-price .tba { font-size: .85rem; color: var(--text-3); font-weight: 600; }
.p-card .p-offers { font-size: .75rem; color: var(--green); font-weight: 600; }
.p-card .p-badges { position: absolute; top: 20px; left: 20px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; }
.p-card .p-score { position: absolute; top: 20px; right: 20px; background: var(--text); color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 8px; border-radius: 8px; z-index: 2; }

.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.h-scroll > * { scroll-snap-align: start; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 10% -10%, #e0e7ff 0%, transparent 60%), radial-gradient(900px 400px at 100% 0%, #fae8ff 0%, transparent 55%), var(--bg); padding: 44px 0 28px; }
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.9rem); max-width: 760px; margin-bottom: 10px; letter-spacing: -.025em; }
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--text-2); max-width: 640px; margin-bottom: 22px; }
.hero .search-wrap { max-width: 680px; }
.hero .quick { margin-top: 16px; }
.stats-strip { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; color: var(--text-2); font-size: .9rem; }
.stats-strip b { color: var(--text); font-size: 1.15rem; display: block; }

.budget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.budget-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; font-weight: 700; display: flex; flex-direction: column; gap: 4px; transition: .15s; }
.budget-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.budget-card span { font-size: .8rem; color: var(--text-2); font-weight: 500; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; text-align: center; transition: .15s; }
.brand-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.brand-tile img { max-height: 34px; max-width: 110px; object-fit: contain; }
.brand-tile .bt-name { font-weight: 750; font-size: 1.02rem; }
.brand-tile .bt-count { font-size: .78rem; color: var(--text-3); }

.cta-band { background: linear-gradient(135deg, #312e81, #4f46e5 55%, #7c3aed); color: #fff; border-radius: 20px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #e0e7ff; margin: 0; max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--primary-600); }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--text-3); padding: 14px 0 4px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { color: var(--border-strong); }

/* Product page */
.pd-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; margin: 10px 0 24px; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.gallery .main { background: linear-gradient(180deg, #fafbff, #f1f3f9); border: 1px solid var(--border); border-radius: 18px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; position: relative; }
.gallery .main img { width: 86%; height: 86%; object-fit: contain; }
.gallery .main .ph-svg { width: 62%; height: 74%; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery .thumbs button { flex: 0 0 68px; height: 68px; border-radius: 11px; border: 2px solid var(--border); background: var(--surface); padding: 4px; }
.gallery .thumbs button.active { border-color: var(--primary); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.9); display: grid; place-items: center; }
.gallery .nav.prev { left: 10px; } .gallery .nav.next { right: 10px; }

.pd-info .brand-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--primary); font-size: .9rem; }
.pd-info h1 { margin: 6px 0 10px; }
.pd-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pd-price-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.pd-price-box .label { font-size: .8rem; color: var(--text-2); font-weight: 600; }
.pd-price-box .big { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 850; letter-spacing: -.02em; }
.pd-price-box .range { color: var(--text-2); font-size: .9rem; }
.pd-price-box .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.keyspecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.keyspec { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; display: flex; gap: 10px; align-items: flex-start; }
.keyspec .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.keyspec .k { font-size: .72rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.keyspec .v { font-size: .88rem; font-weight: 650; line-height: 1.3; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border: 1px solid var(--border); border-radius: 999px; font-size: .82rem; background: var(--surface); }
.swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: inline-block; }
.variant-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.variant-pills span { padding: 5px 11px; border-radius: 9px; background: var(--surface-2); font-size: .82rem; font-weight: 600; color: var(--text-2); }

.pd-tabs { position: sticky; top: var(--header-h); z-index: 30; background: rgba(246,247,251,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); margin: 0 -16px 20px; padding: 0 16px; }
.pd-tabs .inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pd-tabs a { padding: 13px 14px; font-weight: 600; font-size: .9rem; color: var(--text-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.pd-tabs a.active, .pd-tabs a:hover { color: var(--primary); border-color: var(--primary); }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.pd-section { margin-bottom: 22px; scroll-margin-top: calc(var(--header-h) + 60px); }
.pd-section > .card { padding: 22px; }
.pd-section h2 { display: flex; align-items: center; gap: 10px; }

/* Offers */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; position: relative; }
.offer.featured { border-color: #fcd34d; background: linear-gradient(180deg, #fffdf5, #fff); box-shadow: 0 0 0 3px #fef3c7; }
.offer.official { border-color: var(--primary-100); background: linear-gradient(180deg, #f8f9ff, #fff); box-shadow: 0 0 0 3px var(--primary-50); }
.offer .o-seller { display: flex; align-items: center; gap: 12px; min-width: 0; }
.offer .o-logo { width: 44px; height: 44px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--primary); flex-shrink: 0; overflow: hidden; font-size: 1.05rem; }
.offer .o-logo img { width: 100%; height: 100%; object-fit: cover; }
.offer .o-name { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.offer .o-sub { font-size: .8rem; color: var(--text-2); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.offer .o-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.offer .o-right { display: flex; align-items: center; gap: 12px; }
.offer .o-price { text-align: right; }
.offer .o-price strong { display: block; font-size: 1.2rem; font-weight: 850; letter-spacing: -.01em; }
.offer .o-price .xs { color: var(--text-3); }
.offer .o-actions { display: flex; gap: 6px; }
.offer .o-report { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 7px; border: 0; background: transparent; color: var(--text-3); display: grid; place-items: center; }
.offer .o-report:hover { background: var(--red-50); color: var(--red); }
.offer.oos { opacity: .7; }
.offer-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.rough-price { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); }
.rough-price strong { font-size: 1.4rem; font-weight: 850; }
.channel-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--primary-50); border: 1px solid var(--primary-100); margin-bottom: 12px; flex-wrap: wrap; }

/* Ratings */
.rating-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.score-ring { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 12px; background: var(--surface); border-radius: 50%; }
.score-ring div { position: relative; text-align: center; }
.score-ring b { font-size: 2.2rem; font-weight: 850; display: block; line-height: 1; }
.score-ring span { font-size: .75rem; color: var(--text-2); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 36px; gap: 10px; align-items: center; font-size: .88rem; }
.bar-row .track { display: block; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #7c3aed); border-radius: 99px; }
.bar-row b { text-align: right; }

/* Specs */
.spec-group { border-top: 1px solid var(--border); }
.spec-group:first-child { border-top: 0; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th.g { width: 130px; text-align: left; vertical-align: top; color: var(--primary); font-weight: 750; font-size: .9rem; padding: 12px 10px 12px 0; }
.spec-table td { padding: 8px 0; vertical-align: top; font-size: .9rem; border-bottom: 1px solid var(--surface-2); }
.spec-table td.k { width: 150px; color: var(--text-2); padding-right: 12px; font-weight: 550; }
.spec-table td.v { white-space: pre-line; }
.spec-table tr:last-child td { border-bottom: 0; }

.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.highlights li { display: flex; gap: 10px; align-items: flex-start; }
.highlights li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; margin-top: 2px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pros-cons ul { margin: 0; padding-left: 18px; }
.pros-cons li { margin-bottom: 6px; }
.pros-cons .pros { background: var(--green-50); border-radius: 12px; padding: 14px 16px; }
.pros-cons .cons { background: var(--red-50); border-radius: 12px; padding: 14px 16px; }
.pros-cons h3 { font-size: .95rem; }
.prose { font-size: 1rem; line-height: 1.75; color: #1e293b; }
.prose p { margin-bottom: 1em; }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose h2, .prose h3 { margin-top: 1.2em; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; }
.video-wrap iframe, .video-wrap .yt-lite { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-lite { background-size: cover; background-position: center; display: grid; place-items: center; cursor: pointer; }
.yt-lite .play { width: 72px; height: 50px; background: rgba(220,38,38,.95); border-radius: 14px; display: grid; place-items: center; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; background: var(--surface); }
.faq summary { padding: 14px 0; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; color: var(--text-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); }
.side-sticky { position: sticky; top: calc(var(--header-h) + 64px); }
.mini-list a { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mini-list a:last-child { border-bottom: 0; }
.mini-list .mi { width: 44px; height: 52px; background: var(--surface-2); border-radius: 9px; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.mini-list .mi img { width: 100%; height: 100%; object-fit: contain; }
.mini-list .mi svg { width: 40px; height: 50px; }
.mini-list .mn { font-weight: 650; font-size: .9rem; line-height: 1.3; }
.mini-list .mp { font-size: .82rem; color: var(--text-2); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags a { font-size: .78rem; padding: 4px 10px; background: var(--surface-2); border-radius: 999px; color: var(--text-2); }

/* Listing page + filters */
.list-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters .card { padding: 16px; }
.f-group { padding: 12px 0; border-bottom: 1px solid var(--border); }
.f-group:last-child { border-bottom: 0; }
.f-group > label, .f-title { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.f-checks { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.f-checks label { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-toggle { display: none; }
.drawer-close { display: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; padding: 0 12px; }
.pager .cur { background: var(--primary); color: #fff; border-color: var(--primary); }

.page-head { padding: 8px 0 18px; }
.page-head p { color: var(--text-2); max-width: 760px; }
.brand-hero { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; margin: 10px 0 20px; }
.brand-hero .bh-logo { width: 84px; height: 84px; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; font-size: 2rem; font-weight: 850; color: var(--primary); flex-shrink: 0; overflow: hidden; }
.brand-hero .bh-logo img { width: 80%; height: 80%; object-fit: contain; }
.brand-hero h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.shop-hero { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; margin: 10px 0 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.shop-hero .sh-logo { width: 88px; height: 88px; border-radius: 20px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 2.2rem; font-weight: 850; overflow: hidden; }
.shop-hero .sh-logo img { width: 100%; height: 100%; object-fit: cover; }
.socials { display: flex; gap: 6px; flex-wrap: wrap; }
.socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); background: var(--surface); }
.socials a:hover { color: var(--primary); border-color: var(--primary); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.modal .dialog { position: relative; background: var(--surface); border-radius: 18px; padding: 22px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal .dialog h3 { margin-bottom: 14px; }
.reason-list { display: grid; gap: 8px; margin-bottom: 12px; }
.reason-list label { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; font-weight: 550; font-size: .92rem; }
.reason-list label:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; opacity: 0; transition: .25s; z-index: 200; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--text); }
.field .hint { font-size: .78rem; color: var(--text-3); margin-top: 4px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=tel], .field input[type=url], .field input[type=date], .field input[type=search], .field select, .field textarea, select.input, textarea.input {
  width: 100%; height: 42px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 0 12px; outline: none; transition: .15s; font-size: .93rem;
}
.field textarea, textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.input-group { display: flex; }
.input-group .prefix { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--border-strong); border-right: 0; border-radius: 10px 0 0 10px; color: var(--text-2); font-size: .88rem; white-space: nowrap; }
.input-group input { border-radius: 0 10px 10px 0 !important; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: .92rem; border: 1px solid; }
.alert-success { background: var(--green-50); border-color: #a7f3d0; color: #065f46; }
.alert-error { background: var(--red-50); border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--blue-50); border-color: #bfdbfe; color: #1e40af; }
.alert-warn { background: var(--amber-50); border-color: #fde68a; color: #92400e; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 650; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbff; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; position: relative; }
.plan.popular { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.plan .p-tag { position: absolute; top: -11px; left: 22px; }
.plan h3 { font-size: 1.15rem; }
.plan .price { font-size: 1.9rem; font-weight: 850; letter-spacing: -.02em; }
.plan .price small { font-size: .85rem; color: var(--text-2); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: .9rem; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan-select { cursor: pointer; }
.plan-select input { position: absolute; opacity: 0; }
.plan-select:has(input:checked) .plan { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.cycle-toggle { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.cycle-toggle label { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--text-2); }
.cycle-toggle input { display: none; }
.cycle-toggle label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.tile .t-label { font-size: .78rem; color: var(--text-2); font-weight: 600; }
.tile .t-value { font-size: 1.6rem; font-weight: 850; letter-spacing: -.02em; margin-top: 2px; }
.tile .t-sub { font-size: .78rem; color: var(--text-3); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.spark div { flex: 1; background: var(--primary-100); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.spark div:hover { background: var(--primary); }
.spark-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-3); margin-top: 6px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 48px; padding: 36px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.site-footer .bottom { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 18px; font-size: .82rem; color: var(--text-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.empty { text-align: center; padding: 48px 16px; color: var(--text-2); }
.empty .e-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 12px; color: var(--text-3); }

/* Responsive */
.search-trigger { display: none !important; }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-aside { display: none; }
}
@media (max-width: 900px) {
  .pd-top { grid-template-columns: 1fr; gap: 18px; }
  .gallery { position: static; }
  .gallery .main { aspect-ratio: 4 / 3.4; }
  .list-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.4); display: none; top: 0; }
  .filters.open { display: block; }
  .filters .card { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 90vw); border-radius: 0; overflow-y: auto; padding-bottom: 80px; }
  .filter-toggle { display: inline-flex; }
  .drawer-close { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-hero { grid-template-columns: auto 1fr; }
  .shop-hero .sh-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .site-header .bar { gap: 10px; }
  .header-search { display: none; }
  .header-search.mobile-open { display: block; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--surface); padding: 10px 16px; border-bottom: 1px solid var(--border); max-width: none; }
  .search-trigger { display: inline-flex !important; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-card { padding: 10px; }
  .p-card .p-badges { top: 14px; left: 14px; }
  .p-card .p-score { top: 14px; right: 14px; }
  .p-card .p-name { font-size: .9rem; }
  .h-scroll { grid-auto-columns: 46%; gap: 10px; }
  .keyspecs { grid-template-columns: 1fr 1fr; }
  .offer { grid-template-columns: 1fr; padding: 14px; }
  .offer .o-right { justify-content: space-between; }
  .offer .o-price { text-align: left; }
  .rating-wrap { grid-template-columns: 1fr; justify-items: center; }
  .bars { width: 100%; }
  .bar-row { grid-template-columns: 110px 1fr 32px; }
  .spec-table th.g { display: block; width: auto; padding: 14px 0 4px; }
  .spec-table, .spec-table tbody, .spec-table tr { display: block; }
  .spec-table tr { display: grid; grid-template-columns: 120px 1fr; }
  .spec-table tr.gh { display: block; }
  .spec-table td.k { width: auto; }
  .pros-cons { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 0 18px; }
  .search-box.lg input { padding-right: 16px; height: 52px; }
  .search-box.lg .s-btn { display: none; }
  .cta-band { padding: 22px; }
  .brand-hero { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { margin: 26px 0; }
  .pd-section > .card { padding: 16px; }
}
