/* Ring2Compare — price comparison UI (MySmartPrice-style structure, cleaner)

   Light is the primary theme: pale blue page, white cards, dark navy category bar.
   A dark theme is available from the header toggle and honours the OS setting. */

:root {
	--bg: #f4f8ff;
	--card: #ffffff;
	--navy: #0f2b52;
	--navy-2: #16386b;
	--brand: #e23744;
	--brand-dark: #c62b37;
	--text: #16191f;
	--muted: #667085;
	--line: #e4e9f2;
	--line-2: #d3dbe8;
	--green: #0a8f4d;
	--amazon: #b45309;
	--flipkart: #1d4ed8;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 18px rgba(16, 24, 40, 0.05);
	--shell: 1200px;
}

html[data-theme='dark'] {
	--bg: #0d1117;
	--card: #161b25;
	--navy: #0b1c33;
	--navy-2: #12294a;
	--brand: #f0525f;
	--brand-dark: #d93f4c;
	--text: #e7ecf5;
	--muted: #98a2b3;
	--line: #253044;
	--line-2: #33405a;
	--green: #34d399;
	--amazon: #fbbf24;
	--flipkart: #7ba7ff;
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	padding-bottom: 6rem;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.01em; }

svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.16em; }

.shell { width: min(var(--shell), calc(100% - 2rem)); margin: 0 auto; }
.main { padding: 1rem 0 2rem; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; padding: 0.6rem 1rem; background: var(--brand); color: #fff; z-index: 100; }
.skip:focus { left: 0; }
.linkish { border: 0; background: none; color: var(--flipkart); font: inherit; cursor: pointer; padding: 0; }
.linkish:hover { text-decoration: underline; }

/* ------------------------------------------------------------ header */

.site-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }

.head-inner { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 0; flex-wrap: wrap; }

.logo { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; font-size: 1.15rem; font-weight: 700; }
.logo-mark {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
	background: var(--brand); color: #fff; font-size: 0.82rem; font-weight: 800;
}
.logo-text b { color: var(--brand); }

.searchbar {
	display: flex; align-items: center; gap: 0.4rem; flex: 1 1 320px; min-width: 0;
	border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg);
	padding: 0.2rem 0.25rem 0.2rem 0.8rem;
}
.searchbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(226, 55, 68, 0.12); }
.searchbar-icon { color: var(--muted); display: flex; flex: 0 0 auto; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; padding: 0.5rem 0; outline: none; }
.searchbar input::placeholder { color: var(--muted); }
.searchbar-clear { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity 0.12s; }
.searchbar:has(input:not(:placeholder-shown)) .searchbar-clear { opacity: 1; }
.searchbar-go { border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; padding: 0.5rem 1.1rem; cursor: pointer; }
.searchbar-go:hover { background: var(--brand-dark); }

.head-actions { display: flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; }
.head-btn {
	position: relative; display: inline-flex; align-items: center; gap: 0.35rem;
	padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 8px;
	background: var(--card); color: var(--text); font: inherit; font-size: 0.86rem; cursor: pointer;
}
.head-btn:hover { border-color: var(--line-2); color: var(--brand); }
.head-btn.icon-only { padding: 0.45rem 0.55rem; }
.pill-count { position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.66rem; font-style: normal; font-weight: 800; line-height: 17px; text-align: center; }

.recents-pop { border-top: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.recents-head { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0 0.4rem; font-size: 0.86rem; }

.recents-list { list-style: none; margin: 0; padding: 0 0 0.6rem; display: flex; flex-direction: column; max-height: 46vh; overflow-y: auto; }
.recents-item { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--line); }
.recents-item:last-child { border-bottom: 0; }
.recents-link { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; padding: 0.6rem 0.2rem; color: var(--text); }
.recents-link:hover { color: var(--brand); }
.recents-icon { display: flex; color: var(--muted); flex: 0 0 auto; }
.recents-icon svg { width: 1.05em; height: 1.05em; }
.recents-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recents-remove { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; flex: 0 0 auto; }
.recents-remove:hover { background: var(--bg); color: var(--brand); }
.recents-empty { padding: 0.6rem 0.2rem 0.8rem; color: var(--muted); font-size: 0.84rem; }

.recents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 1.25rem; }

/* a store we hold no price row for */

.chip-store.is-check { border-style: dashed; background: var(--card); }
.chip-check { font-size: 0.76rem; color: var(--muted); }
.price-table tr.is-check { background: var(--bg); }
.tag-check { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border: 1px dashed var(--line-2); padding: 0.1rem 0.4rem; border-radius: 999px; }

/* category bar */

.catbar { background: var(--navy); color: #fff; }
.catbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.catbar-list, .catbar-sub { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.catbar-list a, .catbar-sub a { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.7rem 0.8rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
.catbar-list a:hover, .catbar-list a.is-active, .catbar-sub a:hover { background: var(--navy-2); color: #fff; }
.catbar-sub a { color: rgba(255, 255, 255, 0.72); font-size: 0.82rem; }
.catbar-list svg { width: 0.8em; height: 0.8em; }

/* ------------------------------------------------------------ cards */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; padding: 1rem 1.15rem 1.15rem; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.card-head h2 { margin: 0; font-size: 1.12rem; }
.more { color: var(--flipkart); font-size: 0.85rem; font-weight: 600; }
.muted-panel { background: var(--card); }

.crumbs { display: flex; gap: 0.4rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.9rem; }
.crumbs a { color: var(--flipkart); }
.page-title { margin: 0 0 0.6rem; font-size: 1.5rem; }

/* spotlight */

.spotlight .spot-body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.spot-media { display: grid; place-items: center; background: var(--bg); border-radius: var(--radius); padding: 1rem; }
.spot-media img { max-height: 220px; object-fit: contain; }
.spot-kicker { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(226, 55, 68, 0.1); color: var(--brand); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.spot-copy h3 { margin: 0.6rem 0 0.4rem; font-size: 1.25rem; }
.spot-price { margin: 0 0 0.3rem; font-size: 1.05rem; }
.spot-price b { font-size: 1.5rem; color: var(--brand); }
.spot-price s { color: var(--muted); }
.spot-save { margin: 0 0 0.9rem; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 0.35rem; }
.spot-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0; }

/* buttons */

.btn-primary { display: inline-block; padding: 0.5rem 1rem; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary.big { padding: 0.7rem 1.4rem; font-size: 1rem; }
.btn-primary.wide { width: 100%; text-align: center; }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.9rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 0.86rem; cursor: pointer; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* rails */

.rail { display: flex; gap: 0.8rem; list-style: none; margin: 0; padding: 0 0 0.4rem; overflow-x: auto; scrollbar-width: thin; }
.rail-card { flex: 0 0 178px; }
.rail-link { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); height: 100%; transition: border-color 0.15s, transform 0.15s; }
.rail-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.rail-name { font-size: 0.82rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.2em; }
.rail-prices { display: flex; align-items: baseline; gap: 0.4rem; }
.rail-prices b { font-size: 1rem; }
.rail-prices s { color: var(--muted); font-size: 0.78rem; }
.rail-tag { font-size: 0.72rem; color: var(--flipkart); font-weight: 600; }

.thumb { display: grid; place-items: center; background: var(--bg); border-radius: 8px; overflow: hidden; min-height: 190px; }
.thumb img { width: 100%; height: 100%; max-height: 220px; object-fit: contain; }
.thumb-sm { min-height: 108px; }
.thumb-sm img { max-height: 110px; }
.thumb-empty { color: var(--muted); font-size: 0.78rem; }

.off { font-size: 0.78rem; font-weight: 700; color: var(--green); }

/* category tiles */

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 0.6rem; }
.cat-tile { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 0.88rem; }
.cat-tile:hover { border-color: var(--brand); color: var(--brand); }
.cat-tile i { font-style: normal; color: var(--muted); font-size: 0.78rem; }

/* ------------------------------------------------------------ listing */

.list-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 1rem; align-items: start; }

.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; position: sticky; top: 130px; }
.filters h2 { margin: 0 0 0.8rem; font-size: 1rem; }
.filters fieldset { border: 0; margin: 0 0 0.9rem; padding: 0; }
.filters legend { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.35rem; }
.filters select, .filters input { width: 100%; padding: 0.45rem 0.55rem; border: 1px solid var(--line-2); border-radius: 7px; background: var(--card); color: var(--text); font: inherit; font-size: 0.88rem; }
.filters .pair { display: flex; gap: 0.4rem; }
.filters .linkish { display: block; text-align: center; margin-top: 0.6rem; font-size: 0.84rem; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.35rem; }
.list-head h1 { margin: 0; font-size: 1.35rem; }

.notice { padding: 0.6rem 0.9rem; border-left: 3px solid var(--brand); background: var(--card); border-radius: 6px; font-size: 0.86rem; }

.row { display: grid; grid-template-columns: 132px minmax(0, 1fr) 176px; gap: 1rem; padding: 1rem; margin-bottom: 0.7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.row:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.row-media { display: block; }
.row-title { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.row-title a:hover { color: var(--brand); }
.row-meta { margin: 0 0 0.55rem; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.8rem; color: var(--muted); }
.row-meta .brand { color: var(--text); font-weight: 700; }
.row-meta .rating { color: #b45309; font-weight: 600; }
.sep { color: var(--line-2); }
.row-saving { margin: 0.5rem 0 0; display: flex; align-items: center; gap: 0.35rem; color: var(--green); font-size: 0.85rem; }
.row-note { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--muted); }
.row-note a { color: var(--flipkart); font-weight: 600; }
.row-side { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; border-left: 1px dashed var(--line); padding-left: 1rem; }
.price { font-size: 1.35rem; font-weight: 700; }
.mrp { color: var(--muted); font-size: 0.85rem; }

.chips-stores { display: flex; gap: 0.45rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.chip-store { display: flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.35rem 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 0.82rem; }
.chip-store.is-best { border-color: var(--green); background: rgba(10, 143, 77, 0.07); }
.chip-name { font-weight: 700; }
.store-amazon { color: var(--amazon); }
.store-flipkart { color: var(--flipkart); }
.chip-price { font-weight: 700; }
.chip-tag { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: var(--green); padding: 0.1rem 0.4rem; border-radius: 999px; }
.chip-buy { padding: 0.18rem 0.6rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.76rem; font-weight: 700; }.chip-buy:hover { background: var(--brand-dark); color: #fff; }
/* Money coming back after the purchase. Green and worded as "back", never "off" — it is not a
   price cut and must not read like one. */
.reward { padding: 0.1rem 0.45rem; border-radius: 999px; background: rgba(10, 143, 77, 0.12); color: var(--green); font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.points-cta { margin: 0.75rem 0 0; padding: 0.6rem 0.75rem; border: 1px dashed rgba(10, 143, 77, 0.45); border-radius: 10px; background: rgba(10, 143, 77, 0.06); font-size: 0.86rem; }
.rate-table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1.5rem; font-size: 0.88rem; }
.rate-table th, .rate-table td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); }
.rate-table thead th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.rate-table .rate-head th { background: var(--bg-2, rgba(0, 0, 0, 0.03)); border-bottom: 0; }
.rate-table .rate-head th .muted { font-weight: 400; }
.rate-table td:not(:first-child), .rate-table th:not(:first-child) { white-space: nowrap; }
.plain-list { margin: 0.5rem 0 1.25rem; padding-left: 1.1rem; }
.plain-list li { margin: 0.2rem 0; }

/* ---------------- account menu in the header ---------------- */

.account { position: relative; }
.account-btn { display: inline-flex; align-items: center; gap: 0.45rem; }
.avatar {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--brand); color: #fff;
	font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1;
}
.avatar-lg { width: 40px; height: 40px; font-size: 0.92rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.35rem; flex: 0 0 auto; }
.account-balance { font-variant-numeric: tabular-nums; }
.account-panel {
	position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 40;
	min-width: 244px; padding: 0.5rem;
	background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}
.account-head { display: flex; gap: 0.6rem; align-items: center; padding: 0.4rem 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.account-head strong { display: block; font-size: 0.9rem; }
.account-head span { display: block; }
.badge-org { display: inline-block; margin-top: 0.2rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: rgba(36, 85, 184, 0.12); color: #2455b8; font-size: 0.68rem; font-weight: 700; }
.account-figures { display: flex; gap: 1.1rem; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
.account-figures strong { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; }
.account-link {
	display: flex; align-items: center; gap: 0.55rem; width: 100%;
	padding: 0.5rem; border: 0; border-radius: 8px;
	background: none; color: var(--text); font: inherit; font-size: 0.88rem; text-align: left;
	text-decoration: none; cursor: pointer;
}
.account-link:hover { background: var(--bg-2, rgba(15, 23, 42, 0.05)); }
.account-link svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--muted); }
.account-signout { margin: 0.25rem 0 0; border-top: 1px solid var(--line); padding-top: 0.25rem; }

/* ---------------- the account page ---------------- */

.section-nav { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0 0 1rem; }
.section-nav-link { padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.84rem; text-decoration: none; color: var(--text); }
.section-nav-link.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.account-card { display: flex; gap: 1rem; align-items: center; }
.account-card-body h1 { margin: 0 0 0.15rem; font-size: 1.35rem; }
.account-card-body p { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }
.stat { margin: 0; }
.stat .balance { font-size: 1.5rem; margin: 0.15rem 0; }
.stat-figure { font-size: 1.5rem; font-weight: 700; margin: 0.15rem 0; font-variant-numeric: tabular-nums; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.25rem; margin: 0.5rem 0 1.25rem; }
.detail-list div { min-width: 0; }
.detail-list dt { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; }
.detail-list dd { margin: 0.1rem 0 0; font-size: 0.92rem; overflow-wrap: anywhere; }
.signout-row { margin: 1rem 0 0; }

@media (max-width: 760px) {
	.stat-row { grid-template-columns: 1fr; }
	.detail-list { grid-template-columns: 1fr; }
	.account-card { flex-direction: column; text-align: center; }
}

/* ---------------- auth forms, when they appear inside the site layout ---------------- */

/*
 * These rules exist because the sign-in doors are rendered in two places: the account pages, which
 * carry their own compact stylesheet, and the landing page, which uses the site layout. Without
 * them the landing page's inputs sit at their default width and the button rides alongside the
 * password field instead of under it.
 */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.doors .card { margin: 0; }
.door h1, .door h2 { font-size: 1.2rem; margin: 0 0 0.35rem; }
.door label { display: block; margin: 0.75rem 0 0.2rem; font-size: 0.86rem; font-weight: 600; }
.door input[type="text"], .door input[type="email"], .door input[type="password"], .door select {
	display: block; width: 100%; padding: 0.55rem 0.65rem;
	border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 0.95rem;
	background: var(--card, #fff); color: var(--text);
}
.door button[type="submit"] {
	display: block; width: 100%; margin-top: 1rem; padding: 0.6rem 1rem;
	border: 0; border-radius: 8px; background: var(--brand); color: #fff;
	font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.door button[type="submit"]:hover { filter: brightness(0.94); }
.door .alt { margin: 0.9rem 0 0; }
.door .muted { font-size: 0.86rem; }
.door p { margin: 0.5rem 0 0; }
.door form { margin: 0; }
.btn-google { display: block; padding: 0.55rem 1rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card, #fff); color: var(--text); font-weight: 600; font-size: 0.9rem; text-align: center; text-decoration: none; }

@media (max-width: 720px) { .doors { grid-template-columns: 1fr; } }

/* ---------------- the landing page ---------------- */

.welcome { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: start; margin: 1rem 0 2rem; }
.welcome-eyebrow { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.welcome-hero h1 { margin: 0 0 0.75rem; font-size: 2.1rem; line-height: 1.15; letter-spacing: -0.01em; }
.welcome-lede { margin: 0 0 1.1rem; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.welcome-points { margin: 0 0 1.1rem; padding-left: 1.1rem; }
.welcome-points li { margin: 0.35rem 0; line-height: 1.55; }
.welcome-browse { margin: 0 0 1.25rem; padding: 0.6rem 0.8rem; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 0.9rem; }
.store-strip, .cat-strip { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.store-strip { border-top: 1px solid var(--line); padding-top: 1rem; }
.store-chip, .cat-strip li a { display: inline-block; padding: 0.22rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; text-decoration: none; }
.cat-strip li a { color: var(--text); }
.cat-strip li a:hover { border-color: var(--brand); color: var(--brand); }
.welcome-doors-title { margin: 0 0 0.1rem; font-size: 1.15rem; }
.welcome-doors > .muted { margin: 0 0 0.6rem; }
.welcome-doors .doors { grid-template-columns: 1fr; }
.welcome-doors .card { border: 1px solid var(--line); }
.welcome-cats { margin: 0 0 2.5rem; }
.welcome-cats h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }

/* Top-level sections hide when nested, so the account page can reuse the same heading styles. */
.section-nav + .card h2:first-child { margin-top: 0; }

@media (max-width: 900px) {
	.welcome { grid-template-columns: 1fr; }
	.welcome-hero h1 { font-size: 1.65rem; }
}
.chip-mini { display: inline-block; padding: 0.15rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.74rem; }

.check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; color: var(--muted); cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check svg { width: 17px; height: 17px; padding: 2px; border: 1px solid var(--line-2); border-radius: 5px; color: transparent; }
.check input:checked + svg { background: var(--brand); border-color: var(--brand); color: #fff; }
.check input:checked ~ span { color: var(--text); font-weight: 600; }
.check.inline { color: var(--text); }

.empty { padding: 2rem 1.5rem; text-align: center; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty.big { padding: 3rem 1.5rem; }
.empty h3 { margin: 0 0 0.4rem; }
.empty a { color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------ product */

.product-top { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.product-info h1 { margin: 0 0 0.5rem; font-size: 1.4rem; line-height: 1.35; }
.product-price { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin: 0.6rem 0 0.4rem; }
.product-price .price { font-size: 1.9rem; color: var(--brand); }
.product-save { margin: 0 0 0.9rem; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 0.35rem; }
.product-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0; }

.price-table, .spec-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td, .spec-table th, .spec-table td { padding: 0.7rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.price-table thead th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--bg); }
.price-table tr.is-best { background: rgba(10, 143, 77, 0.06); }
.price-cell { font-weight: 700; font-size: 1rem; }
.spec-table th { width: 200px; color: var(--muted); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.tag-best { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: var(--green); padding: 0.1rem 0.4rem; border-radius: 999px; }
.win { color: var(--green); }

/* compare */

.cmp-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 640px; }
.cmp-table th, .cmp-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table tbody th { width: 150px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.cmp-head { display: flex; flex-direction: column; gap: 0.5rem; max-width: 210px; }
.cmp-head img { height: 92px; object-fit: contain; }
.cmp-head a { font-size: 0.85rem; font-weight: 600; line-height: 1.35; }

/* prose */

.prose { max-width: 74ch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.prose h2 { margin: 1.6rem 0 0.5rem; font-size: 1.08rem; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--flipkart); font-weight: 600; }
.prose strong { color: var(--text); }
.prose code { padding: 0.1rem 0.35rem; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); font-size: 0.86em; }

/* tray */

.tray { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 60; width: min(720px, calc(100% - 2rem)); padding: 0.8rem 1rem; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.55rem; }
.tray-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; }
.tray-items { display: flex; gap: 0.5rem; overflow-x: auto; }
.tray-chip { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.55rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.78rem; white-space: nowrap; }
.tray-chip img { width: 24px; height: 24px; object-fit: contain; }
.tray-go { padding: 0.6rem 1rem; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* footer */

.site-foot { margin-top: 2rem; padding: 1.5rem 0 2rem; background: var(--card); border-top: 1px solid var(--line); }
.foot-inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.foot-brand .logo-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 0.7rem; }
.foot-brand strong { margin-left: 0.4rem; }
.foot-brand p { margin: 0.6rem 0 0; font-size: 0.82rem; }
.site-foot h3 { margin: 0 0 0.5rem; font-size: 0.86rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.84rem; }
.site-foot ul a { color: var(--muted); }
.site-foot ul a:hover { color: var(--brand); }

/* responsive */

@media (max-width: 1000px) {
	.list-layout { grid-template-columns: minmax(0, 1fr); }
	.filters { position: static; }
	.row { grid-template-columns: 110px minmax(0, 1fr); }
	.row-side { grid-column: 1 / -1; border-left: 0; border-top: 1px dashed var(--line); padding: 0.7rem 0 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
	.product-top, .spotlight .spot-body { grid-template-columns: minmax(0, 1fr); }
	.foot-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
	.logo-text, .head-btn span { display: none; }
	.searchbar { order: 3; flex: 1 1 100%; }
	.catbar-sub { display: none; }
	.row { grid-template-columns: 88px minmax(0, 1fr); }
	.thumb-sm { min-height: 88px; }
	.thumb-sm img { max-height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
