/*
Theme Name: DealsCommunity
Theme URI: https://dealscommunity.com/
Author: Paul
Description: Price-comparison deals theme. Product pages with multi-store offers, price history and deal verdicts; archive pages for products, categories, stores and brands with configurable filters. Works on its own (manual offers) or with the Content Egg plugin (offers read from Content Egg, or its shortcode rendered in place).
Version: 2.2.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: lbfd
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0F172A;
	--ink-2: #334155;
	--muted: #475569;
	--faint: #64748B;
	--line: #E2E8F0;
	--line-2: #CBD5E1;
	--ground: #F4F6F9;
	--card: #FFFFFF;
	--placeholder: #EEF2F7;
	--accent: #C2410C;
	--accent-soft: #FFEDD5;
	--accent-ink: #9A3412;
	--good: #15803D;
	--good-soft: #F0FDF4;
	--good-line: #BBF7D0;
	--good-ink: #14532D;
	--warn-soft: #FFF7ED;
	--warn-line: #FED7AA;
	--warn-ink: #7C2D12;
	--link: #1D4ED8;
	--radius: 16px;
	--display: 'Archivo', system-ui, sans-serif;
	--body: 'Public Sans', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: #1E3A8A; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.5px; }
h2 { font-size: 24px; }
h3 { font-size: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 28px; }
.stack > * { min-width: 0; } /* lets wide tables scroll inside their box instead of widening the page */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-tight { padding: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.price { font-family: var(--display); font-weight: 800; }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.row-head a { font-size: 14px; font-weight: 600; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 300px; min-width: 0; }
.col-half { flex: 1 1 420px; min-width: 0; }
.placeholder { background: var(--placeholder); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12px; }

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9A3412; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1E293B; color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline[aria-pressed="true"] { background: var(--good-soft); border-color: var(--good); color: var(--good-ink); }
.btn-lg { min-height: 52px; font-size: 17px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #F1F5F9; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { background: #E2E8F0; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge-good { background: #DCFCE7; color: var(--good-ink); }
.badge-plain { background: #F1F5F9; color: var(--ink-2); font-weight: 600; }
.badge-best { background: var(--good); color: #fff; font-size: 11px; padding: 3px 7px; vertical-align: middle; margin-left: 8px; }

/* ---------- Header / footer ---------- */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.logo:hover { color: #fff; }
.logo .hl { color: #FB923C; }
.search-form { flex: 1 1 320px; display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; min-width: 0; height: 44px; border-radius: 8px; border: 0; padding: 0 14px; font: inherit; font-size: 15px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.main-nav a { color: #E2E8F0; text-decoration: none; }
.main-nav a:hover { color: #fff; text-decoration: underline; }
.site-main { padding: 20px 0 64px; }
.site-footer { background: var(--ink); color: #CBD5E1; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
.site-footer a { color: #E2E8F0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-about { max-width: 460px; line-height: 1.6; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Product hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 32px; }
.hero-media { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.hero-media .main-img { aspect-ratio: 1 / 1; background: var(--placeholder); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media .main-img img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.thumbs img, .thumbs span { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; background: var(--placeholder); border-radius: 8px; }
.hero-info { flex: 1 1 460px; display: flex; flex-direction: column; gap: 16px; }
.meta-line { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.price-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.price-big { font-size: 52px; line-height: 1; }
.price-was { font-size: 15px; color: var(--faint); text-decoration: line-through; }
.price-save { font-size: 15px; font-weight: 700; color: var(--good); }
.verdict { border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.verdict-great, .verdict-good { background: var(--good-soft); border: 1px solid var(--good-line); color: var(--good-ink); }
.verdict-average { background: #F8FAFC; border: 1px solid var(--line); color: var(--ink-2); }
.verdict-wait { background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.variants a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.variants a[aria-current="page"] { border: 2px solid var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn-primary { flex: 1 1 240px; }
.stats-line { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.stats-line strong { color: var(--ink); }

/* ---------- Offers ---------- */
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.offers { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.offers th { background: #F8FAFC; text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; }
.offers td { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.offers td.store { font-weight: 700; color: var(--ink); }
.offers td.amount { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); }
.offers td.go { text-align: right; padding: 10px 16px; }
.offers .btn { min-height: 40px; font-weight: 600; white-space: nowrap; }
.offers tr.oos td { color: var(--faint); }
.ce-output { margin-top: 8px; }

/* ---------- Price history ---------- */
.range-tabs { display: flex; gap: 6px; }
.range-tabs button { min-height: 40px; min-width: 56px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.range-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chart svg { width: 100%; height: auto; display: block; }
.chart[hidden] { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: #F8FAFC; border-radius: 10px; padding: 12px; }
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value { font-family: var(--display); font-weight: 800; font-size: 20px; }
.buy-panel { background: var(--ink); color: #F8FAFC; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.buy-panel h2 { font-size: 22px; }
.buy-panel ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: #CBD5E1; }
.buy-panel .verdict-word { color: #FDBA74; }

/* ---------- Editorial / specs ---------- */
.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pros { border: 1px solid var(--good-line); background: var(--good-soft); color: var(--good-ink); border-radius: 10px; padding: 14px; }
.cons { border: 1px solid var(--warn-line); background: var(--warn-soft); color: var(--warn-ink); border-radius: 10px; padding: 14px; }
.pros ul, .cons ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; font-size: 14px; }
.specs dt { color: var(--faint); }
.specs dd { margin: 0; font-weight: 600; }
.entry-content { font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); position: relative; }
.p-card:hover { border-color: var(--line-2); box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06); color: var(--ink); }
.p-card .img { position: relative; aspect-ratio: 1 / 1; background: var(--placeholder); border-radius: 10px; overflow: hidden; }
.p-card .img img { width: 100%; height: 100%; object-fit: contain; }
.p-card .off { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.p-card .store { font-size: 12px; color: var(--muted); }
.p-card .name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.p-card .prices { display: flex; gap: 8px; align-items: baseline; }
.p-card .now { font-family: var(--display); font-weight: 800; font-size: 19px; }
.p-card .clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .was { font-size: 13px; color: var(--faint); text-decoration: line-through; }
.p-card .heat { font-size: 12px; color: var(--accent-ink); font-weight: 600; }
.list-rows a { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #F1F5F9; text-decoration: none; color: var(--ink); }
.list-rows .thumb { flex: none; width: 56px; height: 56px; background: var(--placeholder); border-radius: 8px; overflow: hidden; }
.list-rows .thumb img { width: 100%; height: 100%; object-fit: contain; }
.list-rows .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.store-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.store-links a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; min-height: 28px; }
.faq p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Archive + filters ---------- */
.archive-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.archive-head .logo-box { width: 96px; height: 96px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px; }
.archive-head .intro { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.archive-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.filters { flex: 1 1 260px; max-width: 100%; }
.results { flex: 999 1 600px; min-width: 0; }
.filters > details > summary { list-style: none; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.filter-group details > summary { cursor: pointer; color: var(--link); padding: 4px 0; } /* "Show N more" inside a filter */
.filters > details > summary::-webkit-details-marker { display: none; }
.filter-group { border-top: 1px solid var(--line); padding: 14px 0; }
.filter-group legend, .filter-group .flabel { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.filter-group fieldset { border: 0; margin: 0; padding: 0; }
.filter-group label { display: flex; gap: 8px; align-items: center; font-size: 14px; min-height: 32px; cursor: pointer; }
.filter-group label .count { color: var(--faint); margin-left: auto; font-size: 12px; }
.filter-group select, .sort-bar select { width: 100%; min-height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; }
.range-inputs { display: flex; gap: 8px; align-items: center; }
.range-inputs input { width: 100%; min-height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; }
.filter-actions { display: flex; gap: 10px; padding-top: 14px; }
.sort-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sort-bar form { display: flex; gap: 8px; align-items: center; }
.sort-bar select { width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-filters a { display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); padding: 0 10px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 40px; text-align: center; }

/* ---------- Term directory ---------- */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.az a { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.term-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--ink); }
.term-card .logo-box { width: 100%; height: 72px; display: flex; align-items: center; justify-content: center; }
.term-card .logo-box img { max-height: 64px; width: auto; }
.term-card .initial { width: 56px; height: 56px; border-radius: 12px; background: var(--placeholder); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 24px; }

/* ---------- Home ---------- */
.home-hero { background: var(--ink); color: #fff; border-radius: 20px; padding: 48px 32px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.home-hero h1 { font-size: clamp(30px, 4.5vw, 48px); max-width: 760px; }
.home-hero p { margin: 0; color: #CBD5E1; max-width: 640px; }
.home-hero .search-form { width: 100%; max-width: 720px; flex: none; }
.home-hero .search-form input[type="search"] { height: 54px; font-size: 17px; }
.home-hero .search-form .btn { min-height: 54px; }

/* ---------- Header on phones ----------
 * Row 1: logo (shortened with …) + account buttons; row 2: full-width search;
 * row 3: menu links, scrolling sideways if they don't fit.
 */
@media (max-width: 720px) {
	.site-header .wrap { gap: 10px 12px; padding-top: 10px; padding-bottom: 12px; }
	.site-header .logo, .site-header .custom-logo-link { order: 1; flex: 1 1 0; min-width: 0; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.site-header .custom-logo-link img { display: block; max-height: 36px; width: auto; max-width: 100%; }
	.site-header .lbfup-hdr { order: 2; flex: none; margin-left: 0; gap: 8px; }
	.site-header .lbfup-hdr-btn { padding: 7px 12px; font-size: 13px; box-shadow: none; }
	.site-header .lbfup-hdr-menu summary img { width: 30px; height: 30px; }
	.site-header .search-form { order: 3; flex: 1 1 100%; min-width: 0; max-width: 100%; gap: 6px; }
	.site-header .search-form input[type="search"] { width: 0; }
	.site-header .search-form input[type="search"] { height: 42px; font-size: 16px; }
	.site-header .search-form .btn { min-height: 42px; padding: 0 16px; }
	.site-header .main-nav { order: 4; flex: 1 1 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: -2px 0 0; }
	.site-header .main-nav::-webkit-scrollbar { display: none; }
	.site-header .main-nav ul { flex-wrap: nowrap; white-space: nowrap; gap: 18px; font-size: 13px; }
	.site-header .main-nav a { display: inline-block; padding: 2px 0; }
}
@media (max-width: 360px) {
	.site-header .logo { font-size: 16px; }
	.site-header .lbfup-hdr-btn { padding: 7px 10px; font-size: 12px; }
}

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 720px) {
	.wrap { padding: 0 16px; }
	.card { padding: 20px; }
	.price-big { font-size: 40px; }
	.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pros-cons, .store-links { grid-template-columns: minmax(0, 1fr); }
	.sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px 14px; gap: 10px; align-items: center; box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08); }
	.sticky-cta .btn-primary { flex: 1; }
	body.single-lbfd_product { padding-bottom: 80px; }
	.filters > details:not([open]) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 721px) {
	.filters > details > summary { pointer-events: none; } /* Only the panel header — "Show N more" stays clickable. */
	.filters > details > summary .toggle-hint { display: none; }
}

/* ---------- Home (v2) ---------- */
.lbfd-home { margin-top: -20px; }
body.home .site-header .search-form { display: none; } /* the hero has the search box */
.h-hero { background: var(--ink); color: #fff; padding: 56px 0 0; border-bottom: 4px solid var(--accent); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.h-eyebrow { margin: 0 0 14px; display: inline-flex; gap: 8px; align-items: center; background: rgba(251, 146, 60, 0.14); color: #FDBA74; border: 1px solid rgba(251, 146, 60, 0.35); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.h-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -1px; max-width: 760px; }
.h-lede { margin: 16px 0 24px; color: #CBD5E1; font-size: 18px; max-width: 620px; }
.h-hero .search-form { max-width: 680px; }
.h-hero .search-form input[type="search"] { height: 56px; font-size: 17px; border-radius: 12px; padding: 0 18px; }
.h-hero .search-form .btn { min-height: 56px; border-radius: 12px; padding: 0 26px; }
.h-popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; color: #94A3B8; }
.h-popular a { color: #E2E8F0; text-decoration: none; border: 1px solid #334155; border-radius: 999px; padding: 6px 12px; min-height: 36px; display: inline-flex; align-items: center; }
.h-popular a:hover { border-color: #FB923C; color: #fff; }
.h-feature { background: #fff; color: var(--ink); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); transform: rotate(1deg); transition: transform .2s ease; }
.h-feature:hover { transform: rotate(0deg) translateY(-2px); color: var(--ink); }
.h-feature-tag { align-self: flex-start; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.h-feature-img { aspect-ratio: 4 / 3; background: var(--placeholder); border-radius: 14px; overflow: hidden; display: block; }
.h-feature-img img { width: 100%; height: 100%; object-fit: contain; }
.h-feature-name { font-weight: 700; font-size: 17px; line-height: 1.3; }
.h-feature-price { display: flex; gap: 10px; align-items: baseline; }
.h-feature-price .price { font-size: 30px; }
.h-feature-price .was { color: var(--faint); text-decoration: line-through; }
.h-feature-price .off { background: #DCFCE7; color: var(--good-ink); font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 6px; }
.h-feature-store { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--accent-ink); font-weight: 600; }
.h-stats { list-style: none; margin: 44px 0 0; padding: 18px 0; border-top: 1px solid #1E293B; display: flex; flex-wrap: wrap; gap: 10px 40px; font-size: 14px; color: #94A3B8; }
.h-stats strong { color: #fff; font-family: var(--display); font-size: 18px; margin-right: 4px; }
.h-body { padding-top: 40px; gap: 44px; }
.h-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.h-cat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.h-cat:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.h-cat-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.h-cat-name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.h-cat-meta { font-size: 13px; color: var(--muted); }
.h-trust { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.h-trust h2 { margin-bottom: 20px; }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.h-steps li { display: flex; flex-direction: column; gap: 8px; }
.h-steps h3 { font-size: 18px; }
.h-steps p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.h-step-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #FDBA74; display: flex; align-items: center; justify-content: center; }
.h-budget { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.h-budget a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.h-budget a:hover { border-color: var(--accent); color: var(--ink); }
.h-budget span { font-size: 13px; color: var(--muted); }
.h-budget strong { font-family: var(--display); font-size: 26px; }
.h-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.h-logos a { background: #fff; border: 1px solid var(--line); border-radius: 14px; min-height: 84px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--ink); }
.h-logos a:hover { border-color: var(--line-2); box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06); color: var(--ink); }
.h-logos strong { font-family: var(--display); font-size: 18px; }
.h-logos span { font-size: 12px; color: var(--muted); }
.h-guides { list-style: none; margin: 0; padding: 0; }
.h-guides li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.h-guides a { font-weight: 600; text-decoration: none; }
.h-seo { max-width: 900px; }
@media (max-width: 900px) {
	.h-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.h-feature { transform: none; }
}
@media (max-width: 720px) {
	.h-hero { padding-top: 32px; }
	.h-lede { font-size: 16px; }
	.h-hero .search-form { flex-wrap: wrap; }
	.h-hero .search-form .btn { width: 100%; }
	.h-stats { gap: 8px 24px; margin-top: 28px; }
	.h-trust { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.h-feature, .h-cat { transition: none; }
}

/* ---------- Load more (listings) ---------- */
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 28px 0 8px; text-align: center; }
.load-more .btn { min-width: 260px; }
.load-more .btn[disabled] { opacity: .65; cursor: progress; }

/* Coupons (1.4.1) */
.coupon-cell { margin-top: 6px; }
.coupon-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--body); color: var(--ink); background: #fff7e6; border: 1.5px dashed #e8a317; border-radius: 8px; padding: 5px 8px; cursor: pointer; white-space: nowrap; }
.coupon-chip code { font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; background: none; padding: 0; color: #8a4b00; }
.coupon-chip .coupon-label { text-transform: uppercase; font-size: 10px; letter-spacing: .06em; color: #8a4b00; opacity: .8; }
.coupon-chip .coupon-copy { font-size: 11px; color: var(--muted, #667); border-left: 1px solid #f0c66e; padding-left: 6px; }
.coupon-chip:hover { background: #ffefcc; }
.coupon-chip.is-copied { border-style: solid; border-color: var(--good); background: #e9f8ef; }
.coupon-chip.is-copied .coupon-copy { color: var(--good); font-weight: 700; }
.coupon-chip.coupon-note { cursor: default; white-space: normal; }
.coupon-chip-lg { font-size: 13px; padding: 8px 12px; }
.coupon-chip-lg code { font-size: 16px; }
.hero-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; flex: 1 1 100%; margin: -2px 0 2px; }
@media (max-width: 640px) { .cta-row .btn-primary { order: 0; } .cta-row .hero-coupon { order: 1; margin: -4px 0 4px; } .cta-row [data-lbfd-watch] { order: 2; } }

/* ==========================================================================
   1.5.0 — Directory pages, Latest deals, Events
   ========================================================================== */

/* Shared page hero */
.lx-hero { position: relative; overflow: hidden; border-radius: 20px; background: radial-gradient(1200px 400px at 85% -20%, rgba(251, 146, 60, .28), transparent 60%), var(--ink); color: #fff; padding: 40px 36px; }
.lx-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .04); pointer-events: none; }
.lx-hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 760px; }
.lx-hero h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -1px; line-height: 1.05; }
.lx-eyebrow { display: inline-flex; gap: 8px; align-items: center; background: rgba(251, 146, 60, .14); color: #FDBA74; border: 1px solid rgba(251, 146, 60, .35); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.lx-lede { margin: 0; color: #CBD5E1; font-size: 17px; max-width: 640px; }
.lx-lede p { margin: 0 0 8px; }
.lx-lede a { color: #FDBA74; }
.lx-pulse { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: lx-pulse 1.8s infinite; display: inline-block; flex: none; }
@keyframes lx-pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .lx-pulse { animation: none; } }
.lx-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lx-stats a { display: flex; flex-direction: column; min-width: 112px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.lx-stats a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lx-stats strong { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.lx-stats span { font-size: 13px; color: #94A3B8; white-space: nowrap; }

/* Directory search */
.dir-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; background: #fff; border-radius: 14px; padding: 0 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); margin-top: 6px; }
.dir-search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 54px; font: inherit; font-size: 17px; color: var(--ink); background: transparent; }
.dir-search input::-webkit-search-cancel-button { cursor: pointer; }
.dir-search:focus-within { box-shadow: 0 0 0 3px #F59E0B, 0 10px 30px rgba(0, 0, 0, .25); }

/* Logos / initials */
.dir-logo { width: 48px; height: 48px; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dir-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.dir-initial { border: 0; font-family: var(--display); font-weight: 800; font-size: 20px; }
.dir-logo-lg { width: 72px; height: 72px; border-radius: 16px; font-size: 28px; }
.dir-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.dir-off { color: var(--good-ink); background: var(--good-soft); border: 1px solid var(--good-line); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s, border-color .15s; }
.cat-card:hover { box-shadow: 0 12px 30px rgba(15, 23, 42, .08); transform: translateY(-2px); border-color: var(--line-2); }
.cat-top { display: flex; gap: 14px; align-items: center; padding: 18px; text-decoration: none; color: var(--ink); }
.cat-icon { width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.cat-icon img { max-width: 70%; max-height: 70%; object-fit: contain; }
.cat-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cat-txt strong { font-family: var(--display); font-size: 18px; line-height: 1.2; }
.cat-go { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #F1F5F9; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-2); transition: background .15s, color .15s; }
.cat-card:hover .cat-go { background: var(--accent); color: #fff; }
.cat-kids { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 18px; margin-top: -4px; }
.cat-kids a { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; padding: 0 11px; border-radius: 999px; background: #F8FAFC; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; }
.cat-kids a span { color: var(--faint); font-size: 12px; }
.cat-kids a:hover { border-color: var(--ink); color: var(--ink); }
.cat-kids .cat-more { background: transparent; border-style: dashed; }

/* Stores / brands: top row, A–Z, cards */
.dir-top h2, .az-letter { font-size: 20px; margin-bottom: 12px; }
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.top-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.top-card:hover { box-shadow: 0 12px 30px rgba(15, 23, 42, .08); transform: translateY(-2px); color: var(--ink); }
.top-card strong { font-family: var(--display); font-size: 16px; }
.top-card .dir-meta { justify-content: center; }
.az-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px; background: rgba(244, 246, 249, .92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; }
.az-bar::-webkit-scrollbar { display: none; }
.az-bar a { flex: none; min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }
.az-bar a:hover { background: var(--ink); color: #fff; }
.az-bar a.is-off { opacity: .3; pointer-events: none; }
.az-group { scroll-margin-top: 70px; margin-bottom: 26px; }
.az-letter { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.az-letter::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dir-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.dir-card:hover { border-color: var(--ink); box-shadow: 0 6px 18px rgba(15, 23, 42, .06); color: var(--ink); }
.dir-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dir-txt strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-dir-item][hidden], [data-dir-group][hidden] { display: none !important; }

/* Time tabs (Latest deals, events) */
.time-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding: 2px; }
.time-tabs::-webkit-scrollbar { display: none; }
.time-tabs a { flex: none; display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.time-tabs a span { font-size: 12px; font-weight: 700; color: var(--muted); background: #F1F5F9; border-radius: 999px; padding: 1px 8px; }
.time-tabs a:hover { border-color: var(--ink); color: var(--ink); }
.time-tabs a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.time-tabs a.is-on span { background: rgba(255, 255, 255, .16); color: #fff; }
.time-tabs a.is-empty { color: var(--faint); }

/* Event page hero */
.ev-hero { --ev: #C2410C; --ev-dark: #57200a; border-radius: 22px; overflow: hidden; color: #fff; background: radial-gradient(900px 380px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--ev) 0%, var(--ev-dark) 100%); box-shadow: 0 20px 50px -20px var(--ev); }
.ev-hero-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 36px; }
.ev-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ev-hero h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -1.2px; line-height: 1; text-shadow: 0 2px 20px rgba(0, 0, 0, .15); }
.ev-sub { margin: 0; font-size: 18px; color: rgba(255, 255, 255, .88); max-width: 620px; }
.ev-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ev-dates { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .14); }
.ev-countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ev-cd-label { font-weight: 700; font-size: 14px; margin-right: 4px; color: rgba(255, 255, 255, .85); }
.ev-cd { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 8px 6px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .18); }
.ev-cd b { font-family: var(--display); font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.ev-cd small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-top: 4px; }
.ev-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.ev-stats strong { font-family: var(--display); font-size: 20px; color: #fff; }
.ev-art { flex: 0 1 340px; min-width: 0; }
.ev-art img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.ev-foot { background: rgba(0, 0, 0, .18); padding: 18px 36px; display: flex; flex-direction: column; gap: 12px; }
.ev-body { color: rgba(255, 255, 255, .92); max-width: 860px; }
.ev-body p { margin: 0 0 8px; }
.ev-body a { color: #fff; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chips a { display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.ev-chips a span { opacity: .75; font-size: 12px; }
.ev-chips a:hover { background: #fff; color: var(--ev-dark); }
.ev-ended { filter: saturate(.55); }
.ev-note { background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-top: -12px; }
.ev-empty .btn { margin-top: 6px; }

/* Events list */
.evc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.evc { --ev: #C2410C; --ev-dark: #57200a; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.evc:hover { box-shadow: 0 16px 36px -12px rgba(15, 23, 42, .25); transform: translateY(-3px); color: var(--ink); }
.evc-top { position: relative; min-height: 150px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 18px; color: #fff; background: radial-gradient(500px 200px at 100% 0%, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(135deg, var(--ev), var(--ev-dark)); }
.evc-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
.evc-top > * { position: relative; }
.evc-title { font-family: var(--display); font-size: 26px; line-height: 1.05; letter-spacing: -.5px; }
.evc-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.evc-sub { color: var(--ink-2); font-size: 15px; }
.evc-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.evc-cd { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.evc-cd b { font-family: var(--display); font-variant-numeric: tabular-nums; color: var(--ev-dark); }
.evc-go { margin-top: auto; font-weight: 700; color: var(--ev-dark); }
.evc-ended .evc-top { filter: grayscale(.6); }
.evc-grid-past { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.evc-grid-past .evc-top { min-height: 110px; }
.evc-grid-past .evc-title { font-size: 20px; }

@media (max-width: 720px) {
	.lx-hero { padding: 28px 20px; border-radius: 16px; }
	.lx-lede { font-size: 15px; }
	.lx-stats a { min-width: 0; flex: 1 1 0; padding: 10px 12px; }
	.lx-stats strong { font-size: 22px; }
	.cat-grid, .evc-grid, .evc-grid-past { grid-template-columns: minmax(0, 1fr); }
	.top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.dir-grid { grid-template-columns: minmax(0, 1fr); }
	.ev-hero { border-radius: 16px; }
	.ev-hero-in { padding: 24px 20px; }
	.ev-foot { padding: 16px 20px; }
	.ev-cd { min-width: 0; flex: 1 1 0; }
	.ev-cd b { font-size: 22px; }
	.ev-cd-label { flex: 1 1 100%; }
	.ev-art { flex-basis: 100%; }
}

/* ==========================================================================
   1.6.0 — Price comparison table
   ========================================================================== */
.cmp-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cmp-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); background: #F8FAFC; }
.cmp-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; }
.cmp-search:focus-within { border-color: var(--ink); }
.cmp-search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 42px; font: inherit; font-size: 15px; background: transparent; }
.cmp-tools select { min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; max-width: 100%; }
.cmp-check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; min-height: 44px; cursor: pointer; }
.cmp-count { margin-left: auto; }
.cmp-scroll { overflow: auto; max-height: 78vh; -webkit-overflow-scrolling: touch; }
table.cmp { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
table.cmp th, table.cmp td { border-bottom: 1px solid var(--line); border-right: 1px solid #EEF2F7; padding: 0 12px; height: 40px; white-space: nowrap; text-align: left; vertical-align: middle; background: #fff; }
table.cmp thead th { position: sticky; top: 0; z-index: 3; background: #F1F5F9; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); border-bottom: 2px solid var(--line-2); padding: 0; }
table.cmp thead th button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; height: 44px; padding: 0 12px; cursor: pointer; font-weight: 800; }
table.cmp thead th button::after { content: "↕"; opacity: .35; font-size: 12px; }
table.cmp thead th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; }
table.cmp thead th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; }
table.cmp thead th button:focus-visible { outline: 3px solid #F59E0B; outline-offset: -3px; }
table.cmp .cmp-cat { position: sticky; left: 0; z-index: 2; min-width: 130px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
table.cmp .cmp-prod { position: sticky; left: 130px; z-index: 2; min-width: 280px; max-width: 360px; white-space: normal; font-weight: 600; box-shadow: 6px 0 8px -6px rgba(15, 23, 42, .18); line-height: 1.3; padding-top: 8px; padding-bottom: 8px; }
table.cmp thead .cmp-cat, table.cmp thead .cmp-prod { z-index: 4; background: #F1F5F9; }
table.cmp .cmp-prod a { color: var(--ink); text-decoration: none; }
table.cmp .cmp-prod a:hover { color: var(--link); text-decoration: underline; }
table.cmp .cmp-cat-m { display: none; }
table.cmp .cmp-store { min-width: 112px; }
table.cmp td.cmp-p { font-variant-numeric: tabular-nums; }
table.cmp td.cmp-p a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
table.cmp td.cmp-p .cmp-at { display: block; font-size: 11px; color: var(--faint); line-height: 1.1; }
table.cmp td.cmp-p .cmp-mk { margin-left: 4px; font-size: 11px; }
table.cmp td.cmp-none { color: #CBD5E1; }
table.cmp td.is-best { background: #ECFDF3; box-shadow: inset 3px 0 0 var(--good); }
table.cmp td.is-best a { color: var(--good-ink); font-weight: 800; }
table.cmp td.is-oos a { color: var(--faint); text-decoration: line-through; font-weight: 500; }
table.cmp tbody tr:hover td, table.cmp tbody tr:hover th { background: #F8FAFC; }
table.cmp tbody tr:hover td.is-best { background: #DCFCE7; }
table.cmp tbody tr[hidden] { display: none; }
.cmp-none-msg { padding: 30px; text-align: center; color: var(--muted); }
.cmp-foot { padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; border-top: 1px solid var(--line); }
.cmp-legend { text-align: center; margin: 0; max-width: 900px; }
.cmp-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #ECFDF3; box-shadow: inset 3px 0 0 var(--good); border: 1px solid var(--good-line); vertical-align: -1px; }
@media (max-width: 720px) {
	.cmp-card { border-radius: 14px; margin: 0 -4px; }
	.cmp-tools select { flex: 1 1 45%; }
	.cmp-count { margin-left: 0; flex: 1 1 auto; }
	table.cmp { font-size: 13px; }
	table.cmp .cmp-cat { display: none; }
	table.cmp .cmp-prod { left: 0; min-width: 170px; max-width: 190px; font-size: 13px; }
	table.cmp .cmp-cat-m { display: block; font-size: 11px; color: var(--faint); font-weight: 500; margin-top: 2px; }
	table.cmp .cmp-store { min-width: 92px; }
	.cmp-scroll { max-height: 72vh; }
}

/* Price table: no selecting / copying / printing */
.cmp-card .cmp-scroll, .cmp-card .cmp-legend { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cmp-card a { -webkit-user-drag: none; }
@media print { .cmp-page .cmp-card { display: none !important; } .cmp-page::after { content: "Prices are available on dealscommunity.com"; display: block; padding: 20px; } }

/* ==========================================================================
   1.7.0 — Coupon deals page
   ========================================================================== */
.lx-hero-coupons { background: radial-gradient(900px 380px at 90% -10%, rgba(250, 204, 21, .25), transparent 60%), linear-gradient(135deg, #7C2D12 0%, #0F172A 70%); }
.cpn-stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cpn-stores a { display: inline-flex; gap: 6px; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(253, 186, 116, .55); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.cpn-stores a span { font-size: 12px; color: #FDBA74; }
.cpn-stores a:hover, .cpn-stores a.is-on { background: #FDBA74; color: #431407; border-style: solid; }
.cpn-stores a:hover span, .cpn-stores a.is-on span { color: #7C2D12; }
.cpn-ticket { position: absolute; right: 40px; top: 50%; transform: translateY(-50%) rotate(-8deg); z-index: 1; width: 170px; height: 100px; border-radius: 14px; background: #FDBA74; color: #431407; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); border: 2px dashed #7C2D12; outline: 6px solid #FDBA74; }
.cpn-ticket span { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; }
.cpn-ticket b { letter-spacing: .3em; font-size: 12px; }
.p-card .heat { overflow-wrap: anywhere; }
@media (max-width: 960px) { .cpn-ticket { display: none; } }

/* ==========================================================================
   1.7.3 — Coupon deals in mixed lists: dashed ticket border + scissors mark
   ========================================================================== */
.p-card.is-coupon { border: 2px dashed #E8A317; padding: 13px; }
.p-card.is-coupon:hover { border-color: #C2410C; box-shadow: 0 6px 18px rgba(232, 163, 23, .18); }
.p-card .cpn-mark { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: #FFF7E6; border: 1.5px dashed #E8A317; display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; box-shadow: 0 2px 6px rgba(15, 23, 42, .08); }
.p-card.is-coupon:hover .cpn-mark { transform: rotate(-15deg); transition: transform .15s; }
@media (prefers-reduced-motion: reduce) { .p-card.is-coupon:hover .cpn-mark { transform: none; } }

/* 1.7.4 — Row prices (People are watching) + compact sticky deal bar */
.list-rows .row-prices { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.list-rows .row-now { font-size: 17px; line-height: 1.15; }
.list-rows .row-was { font-size: 12px; color: var(--faint); text-decoration: line-through; }
@media (max-width: 720px) {
	.sticky-cta { justify-content: space-between; gap: 12px; padding: 8px 16px 12px; }
	.sticky-cta .btn-primary.sc-btn { flex: none; min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
}
.sc-info { display: flex; flex-direction: column; min-width: 0; }
.sc-prices { display: flex; align-items: baseline; gap: 8px; }
.sc-now { font-size: 20px; line-height: 1.15; }
.sc-was { font-size: 13px; color: var(--faint); text-decoration: line-through; }
.sc-save { color: var(--good-ink); font-weight: 700; }

/* ==========================================================================
   1.8.0 — WhatsApp community "Join" button
   ========================================================================== */
:root { --cm: #1FA855; --cm-dark: #0B7A3B; --cm-soft: #E8F8EE; --cm-line: #BFEBD0; }
.cm-pill-d { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--cm-line); background: var(--cm-soft); color: var(--cm-dark); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; margin: 2px 0 10px; }
.cm-pill-d:hover { background: var(--cm); color: #fff; border-color: var(--cm); }
.cm-pill { display: none; }
.cm-back { position: fixed; inset: 0; z-index: 90; background: transparent; opacity: 0; transition: opacity .18s; }
.cm-back.is-in { opacity: 1; }
.cm-panel { position: fixed; z-index: 91; right: 24px; top: 110px; width: 340px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--cm-line); border-radius: 18px; padding: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); opacity: 0; transform: translateX(16px); transition: opacity .18s, transform .18s; }
.cm-panel.is-in { opacity: 1; transform: none; }
.cm-grab { display: none; }
.cm-head { display: flex; align-items: center; gap: 12px; }
.cm-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--cm); color: #fff; display: flex; align-items: center; justify-content: center; }
.cm-tt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cm-tt strong { font-family: var(--display); font-size: 17px; }
.cm-tt span { font-size: 13px; color: var(--muted); }
.cm-x { margin-left: auto; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: #F1F5F9; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.cm-x:hover { background: #E2E8F0; }
.cm-perks { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.cm-join { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; background: var(--cm); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; }
.cm-join:hover { background: var(--cm-dark); color: #fff; }
.cm-note { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--faint); }
@media (max-width: 720px) {
	.cm-pill-d { display: none; }
	.cm-back { background: rgba(15, 23, 42, .45); }
	.cm-pill { display: inline-flex; position: absolute; right: 16px; bottom: calc(100% + 10px); align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 11px; border-radius: 999px; border: 0; background: var(--cm); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(31, 168, 85, .35); }
	.cm-dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: #FACC15; border: 2px solid #fff; }
	.cm-dot[hidden] { display: none; }
	.cm-panel { left: 0; right: 0; top: auto; bottom: var(--cm-bar, 0px); width: auto; max-width: none; border-radius: 20px 20px 0 0; border: 0; padding: 10px 18px 18px; transform: translateY(24px); box-shadow: 0 -12px 36px rgba(0, 0, 0, .25); }
	.cm-panel.is-in { transform: none; }
	.cm-grab { display: block; width: 42px; height: 4px; border-radius: 4px; background: #CBD5E1; margin: 0 auto 12px; }
	html.cm-open .sticky-cta { z-index: 92; }
	html.cm-open .sticky-cta .cm-pill { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .cm-panel, .cm-back { transition: none; } }
.cm-deal { display: flex; gap: 10px; align-items: center; background: #F8FAFC; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-bottom: 12px; }
.cm-deal-img { width: 44px; height: 44px; flex: none; border-radius: 8px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cm-deal-img img { width: 100%; height: 100%; object-fit: contain; }
.cm-deal-img:empty { display: none; }
.cm-deal-t { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.cm-deal-t strong { color: var(--ink); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 1.9.1 — Coupon chip: clip-scissors + code only */
.coupon-chip { gap: 8px; padding: 6px 10px; }
.coupon-chip .cpn-ic { width: 15px; height: 15px; flex: none; color: #B45309; }
.coupon-chip .cpn-ok { display: none; color: var(--good); }
.coupon-chip.is-copied .cpn-cut { display: none; }
.coupon-chip.is-copied .cpn-ok { display: block; }
.coupon-chip:hover .cpn-cut { transform: rotate(-12deg); transition: transform .15s; }
.coupon-chip-lg { padding: 8px 14px; }
.coupon-chip-lg .cpn-ic { width: 18px; height: 18px; }

/* ==========================================================================
   2.0.0 — SEO blocks under listings (buying guide + FAQ), listing stats
   ========================================================================== */
.listing-stats .ls-off { color: var(--good-ink); }
.seo-blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.seo-blocks:has(.seo-guide):has(.seo-faq) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.seo-guide h2, .seo-faq h2 { font-size: 22px; margin-bottom: 12px; }
.seo-guide .entry-content { color: var(--ink-2); line-height: 1.7; }
.seo-q { border-top: 1px solid var(--line); padding: 14px 0; }
.seo-q:first-of-type { border-top: 0; padding-top: 4px; }
.seo-q h3 { font-size: 16px; margin: 0 0 6px; }
.seo-q p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .seo-blocks:has(.seo-guide):has(.seo-faq) { grid-template-columns: minmax(0, 1fr); } }

/* 2.0.1 — Latest deals under small events */
.ev-more { border-top: 1px solid var(--line); padding-top: 24px; }
.ev-more .row-head h2 { font-size: 24px; }
.ev-more-cta { text-align: center; margin: 20px 0 0; }
.archive-layout-full .results { flex-basis: 100%; }
.archive-layout-full .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.fill-more .fill-line { margin: -6px 0 14px; }

/* 2.0.6 — Phone deal bar appears only after the top "Get deal" button scrolls away */
@media (max-width: 720px) {
	.sticky-cta { transform: translateY(110%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
	.sticky-cta.is-on { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; }
	.cm-pill-d { display: inline-flex; } /* Join pill above the top Get deal button on phones too */
}
@media (prefers-reduced-motion: reduce) { .sticky-cta, .sticky-cta.is-on { transition: none; } }

/* 2.1.1 — Desktop deal bar: title, price, coupon and button stick to the top once the top "Get deal" button scrolls away */
.deal-bar { display: none; }
@media (min-width: 721px) {
	.deal-bar { display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 60; background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .18); transform: translateY(-110%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
	.deal-bar.is-on { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; }
	body.admin-bar .deal-bar { top: 32px; }
	.deal-bar-in { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
	.db-img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; flex: none; }
	.db-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
	.db-title strong { font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.db-store { font-size: 12px; color: #CBD5E1; }
	.db-buy { display: flex; align-items: center; gap: 10px; flex: none; }
	.db-now { font-size: 20px; font-weight: 800; }
	.db-was { font-size: 13px; color: #94A3B8; }
	.db-off { font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 6px; }
	.deal-bar .coupon-chip { background: #fff; }
	.deal-bar .db-btn { min-height: 42px; padding: 0 18px; white-space: nowrap; }
}
@media (min-width: 721px) and (max-width: 960px) { .db-was, .db-off { display: none; } }
@media (min-width: 721px) and (max-width: 782px) { body.admin-bar .deal-bar { top: 46px; } }
@media (prefers-reduced-motion: reduce) { .deal-bar, .deal-bar.is-on { transition: none; } }

/* ==========================================================================
   2.1.1 — Forum (bbPress): discussion under each deal topic + bbPress pages
   ========================================================================== */
.lbfd-discussion .row-head h2 .muted { font-weight: 600; font-size: .8em; }
.disc-sub a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; background: #fff; }
.disc-sub a:hover { border-color: var(--ink); }
.disc-note, .disc-empty { color: var(--muted); margin: 4px 0 18px; }
.lbfd-replies { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 18px; }
.lbfd-reply { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.lbfd-reply:target { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); border-radius: 12px; padding-left: 10px; padding-right: 10px; }
.lbfd-reply.is-child { margin-left: 32px; }
.lbfd-reply .r-av img { width: 44px; height: 44px; border-radius: 50%; display: block; background: var(--placeholder); }
.r-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.r-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.r-name:hover { text-decoration: underline; }
.r-tag { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; }
.r-tag-op { background: var(--accent-soft); color: var(--accent-ink); }
.r-tag-staff { background: #E0E7FF; color: #3730A3; }
.r-time { font-size: 13px; color: var(--faint); text-decoration: none; }
.r-time:hover { text-decoration: underline; }
.r-text { line-height: 1.6; overflow-wrap: anywhere; }
.r-text p { margin: 0 0 10px; }
.r-text p:last-child { margin-bottom: 0; }
.r-text blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--line-2, #CBD5E1); background: var(--ground); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 14px; }
.r-text img { max-width: 100%; height: auto; border-radius: 10px; }
.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.r-act, .r-actions .bbp-reply-to-link { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none; }
.r-act:hover, .r-actions .bbp-reply-to-link:hover { color: var(--ink); }
.r-admin, .r-admin a { color: var(--faint); font-size: 12px; }
.lbfd-reply.is-op { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.disc-pages { margin: 0 0 18px; }
.disc-pages .page-numbers { display: inline-flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; margin-right: 6px; text-decoration: none; color: var(--ink); }
.disc-pages .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.disc-login { margin: 0; }
/* Reply form */
.rf-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.rf-av img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.rf-box { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.rf-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 23, 42, .08); }
.rf textarea { display: block; width: 100%; min-height: 96px; border: 0; border-radius: 14px 14px 0 0; padding: 12px 14px; font: inherit; resize: vertical; background: transparent; }
.rf textarea:focus { outline: none; }
.rf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px 10px 14px; border-top: 1px solid var(--line); }
.rf-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-right: auto; }
.rf-foot .btn { min-height: 40px; padding: 0 18px; }
.rf #bbp-cancel-reply-to-link { font-size: 13px; }
.lbfd-discussion .bbp-template-notice { background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.lbfd-discussion .bbp-template-notice ul { margin: 0; padding-left: 18px; }
@media (max-width: 720px) {
	.lbfd-reply { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
	.lbfd-reply .r-av img { width: 36px; height: 36px; }
	.lbfd-reply.is-child { margin-left: 16px; }
	.rf-row { grid-template-columns: minmax(0, 1fr); }
	.rf-av { display: none; }
}

/* bbPress pages (profiles, edit reply/topic, search) shown inside the theme */
#bbpress-forums { font-size: 15px; }
#bbpress-forums .bbp-breadcrumb { font-size: 13px; color: var(--faint); margin-bottom: 14px; }
#bbpress-forums .bbp-breadcrumb a { color: var(--muted); }
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; margin: 0 0 20px; }
#bbpress-forums fieldset.bbp-form legend { font-family: var(--display); font-weight: 700; font-size: 18px; padding: 0 6px; }
#bbpress-forums input[type="text"], #bbpress-forums input[type="email"], #bbpress-forums input[type="url"], #bbpress-forums input[type="password"], #bbpress-forums textarea, #bbpress-forums select { width: 100%; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }
#bbpress-forums textarea { min-height: 160px; }
#bbpress-forums button.submit, #bbpress-forums .bbp-submit-wrapper button { background: var(--accent); color: #fff; border: 0; border-radius: 10px; min-height: 42px; padding: 0 20px; font-weight: 700; cursor: pointer; }
#bbpress-forums .bbp-template-notice { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
#bbpress-forums .bbp-template-notice ul { margin: 0; padding-left: 18px; }
#bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-topic-content { line-height: 1.6; }
#bbpress-forums #bbp-user-wrapper { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
#bbpress-forums #bbp-single-user-details img.avatar { border-radius: 50%; }
#bbpress-forums #bbp-user-navigation ul { list-style: none; padding: 0; }
#bbpress-forums #bbp-user-navigation li a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
#bbpress-forums #bbp-user-navigation li.current a { background: var(--ground); font-weight: 700; }
@media (max-width: 720px) { #bbpress-forums #bbp-user-wrapper { grid-template-columns: minmax(0, 1fr); } }
.p-card .t-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--faint); margin-top: 2px; }
.p-card .t-replies.has { color: var(--ink); font-weight: 600; }
.disc-pending { background: var(--good-soft); border: 1px solid var(--good-line); color: var(--good-ink); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }

/* Classic forum pages (bbPress stylesheet + modern touches) */
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: var(--ground); border: 0; border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; }
#bbpress-forums li.bbp-footer { border-top: 1px solid var(--line); border-bottom: 0; }
#bbpress-forums ul.bbp-topics li.bbp-body ul.topic, #bbpress-forums ul.bbp-forums li.bbp-body ul.forum { border-top: 1px solid var(--line); padding: 12px 14px; }
#bbpress-forums ul.bbp-topics li.bbp-body ul.topic:first-child { border-top: 0; }
#bbpress-forums .odd, #bbpress-forums .even { background: #fff; }
#bbpress-forums ul.topic:hover { background: var(--ground); }
#bbpress-forums a.bbp-topic-permalink, #bbpress-forums a.bbp-forum-title { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
#bbpress-forums a.bbp-topic-permalink:hover { text-decoration: underline; }
#bbpress-forums p.bbp-topic-meta { font-size: 12px; color: var(--faint); }
#bbpress-forums p.bbp-topic-meta img.avatar, #bbpress-forums p.bbp-topic-meta .bbp-author-avatar img { border-radius: 50%; }
#bbpress-forums .bbp-pagination-links a, #bbpress-forums .bbp-pagination-links span.current { border-radius: 8px; padding: 3px 9px; }
#bbpress-forums .bbp-search-form input[type="text"] { width: auto; }
@media (max-width: 720px) {
	.bbp-page { padding: 16px; }
	#bbpress-forums li.bbp-topic-voice-count, #bbpress-forums li.bbp-topic-reply-count,
	#bbpress-forums li.bbp-forum-topic-count, #bbpress-forums li.bbp-forum-reply-count { display: none; }
	#bbpress-forums li.bbp-topic-title, #bbpress-forums li.bbp-forum-info { width: 64%; }
	#bbpress-forums li.bbp-topic-freshness, #bbpress-forums li.bbp-forum-freshness { width: 36%; font-size: 12px; }
	#bbpress-forums ul.bbp-topics li.bbp-body ul.topic { padding: 10px 12px; }
}

/* Classic forum: toolbar (search + sort) and the topic list columns */
.lbfd-forum-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; clear: both; width: 100%; padding-top: 8px; }
.lbfd-forum-bar .f-search { display: flex; gap: 8px; flex: 1 1 260px; min-width: 0; max-width: 100%; }
.lbfd-forum-bar .f-search .btn { flex: none; padding: 0 16px; }
#bbpress-forums .lbfd-forum-bar .f-search input[type="search"], .lbfd-forum-bar .f-search input[type="search"] { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; min-height: 42px; font: inherit; }
.lbfd-forum-bar .f-search .btn { min-height: 42px; }
.lbfd-forum-bar .f-sorts { display: flex; flex-wrap: wrap; gap: 6px; }
.lbfd-forum-bar .f-sorts a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; }
.lbfd-forum-bar .f-sorts a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
#bbpress-forums .lbfd-topics li.bbp-topic-title { width: 52%; }
#bbpress-forums .lbfd-topics li.t-col { float: left; width: 9%; text-align: center; font-variant-numeric: tabular-nums; }
#bbpress-forums .lbfd-topics li.bbp-topic-freshness { width: 21%; }
#bbpress-forums .lbfd-topics li.t-votes.is-hot { color: var(--accent); font-weight: 700; }
#bbpress-forums .lbfd-topics li.t-votes.is-cold { color: #2563EB; font-weight: 700; }
.lbfd-topics .t-main { display: flex; gap: 12px; align-items: flex-start; }
.lbfd-topics .t-thumb { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--placeholder); flex: none; }
.lbfd-topics .t-text { min-width: 0; }
.lbfd-topics .t-deal { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 4px; font-size: 13px; }
.lbfd-topics .t-deal strong { font-size: 14px; }
.lbfd-topics .t-off { background: var(--accent); color: #fff; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.lbfd-topics .t-store { color: var(--muted); }
.lbfd-topics .t-cpn { color: var(--accent-ink); font-weight: 600; }
.lbfd-topics .t-mobile-stats { display: none; }
@media (max-width: 720px) {
	#bbpress-forums .lbfd-topics li.t-col { display: none; }
	#bbpress-forums .lbfd-topics li.bbp-topic-title { width: 66%; }
	#bbpress-forums .lbfd-topics li.bbp-topic-freshness { width: 34%; }
	.lbfd-topics .t-thumb { width: 40px; height: 40px; }
	.lbfd-topics .t-mobile-stats { display: block; margin-top: 4px; color: var(--muted); }
}

/* 2.1.2 — Forum topic table (Category · Deal · Rating · Started · Replies · Views · Last post) */
.lbfd-ft { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; margin: 0 0 20px; }
.lbfd-ft .ft-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 92px 150px 72px 80px 150px; align-items: center; border-top: 1px solid var(--line); }
.lbfd-ft .ft-row:first-child { border-top: 0; }
.lbfd-ft .ft-row:not(.ft-head):hover { background: #F8FAFC; }
.lbfd-ft .ft-head { background: var(--ground); position: sticky; top: 0; z-index: 2; }
.lbfd-ft .ft-th { padding: 10px 12px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lbfd-ft .ft-th a { color: var(--muted); text-decoration: none; }
.lbfd-ft .ft-th a:hover, .lbfd-ft .ft-th a.on { color: var(--ink); }
.lbfd-ft .ft-td { padding: 12px; min-width: 0; font-size: 13px; }
.lbfd-ft .c-num, .lbfd-ft .c-rate, .lbfd-ft .ft-th.c-num, .lbfd-ft .ft-th.c-rate { text-align: center; }
.lbfd-ft .c-last, .lbfd-ft .ft-th.c-last { text-align: right; }
.lbfd-ft .ft-cat { display: inline-block; max-width: 100%; padding: 3px 9px; border-radius: 999px; background: var(--ground); color: var(--ink-2); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbfd-ft .ft-cat:hover { background: var(--accent-soft); color: var(--accent-ink); }
.lbfd-ft .ft-cat.is-none { background: none; color: var(--faint); }
.lbfd-ft .c-deal { display: flex; gap: 12px; align-items: center; }
.lbfd-ft .ft-thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--placeholder); overflow: hidden; display: block; }
.lbfd-ft .ft-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.lbfd-ft .ft-deal { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lbfd-ft .ft-title { font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.lbfd-ft .ft-title:hover { color: var(--link); text-decoration: underline; }
.lbfd-ft .ft-title:visited { color: #5B21B6; }
.lbfd-ft .ft-flag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: #FEF3C7; color: #92400E; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.lbfd-ft .ft-flag.is-closed { background: var(--ground); color: var(--muted); }
.lbfd-ft .is-sticky { background: #FFFBEB; }
.lbfd-ft .ft-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.lbfd-ft .ft-price { font-size: 14px; color: var(--ink); }
.lbfd-ft .ft-was { color: var(--faint); }
.lbfd-ft .ft-off { background: var(--accent); color: #fff; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.lbfd-ft .ft-store { color: var(--muted); }
.lbfd-ft .ft-cpn { color: var(--accent-ink); font-weight: 600; }
.lbfd-ft .ft-cat-m, .lbfd-ft .ft-mobile { display: none; }
.lbfd-ft .ft-rate { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 4px 8px; border-radius: 999px; background: var(--ground); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lbfd-ft .ft-rate.is-warm { background: var(--accent-soft); color: var(--accent-ink); }
.lbfd-ft .ft-rate.is-hot { background: var(--accent); color: #fff; }
.lbfd-ft .ft-rate.is-cold { background: #DBEAFE; color: #1D4ED8; }
.lbfd-ft .c-start, .lbfd-ft .c-last { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.lbfd-ft .c-last { align-items: flex-end; }
.lbfd-ft .ft-date { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.lbfd-ft a.ft-date:hover { text-decoration: underline; }
.lbfd-ft .ft-user { color: var(--link); font-size: 12px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lbfd-ft span.ft-user { color: var(--faint); }
.lbfd-ft .ft-num { font-size: 15px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; text-decoration: none; }
.lbfd-ft a.ft-num.has { color: var(--link); }
.lbfd-ft a.ft-num.has:hover { text-decoration: underline; }
.lbfd-ft .bbp-row-actions, .lbfd-ft .bbp-topic-row-actions { font-size: 12px; }
@media (min-width: 901px) { .bbp-page .lbfd-forum-bar .f-sorts { display: none; } } /* Headers sort on desktop. */
@media (max-width: 1100px) {
	.lbfd-ft .ft-row { grid-template-columns: minmax(0, 1fr) 86px 130px 64px 70px 130px; }
	.lbfd-ft .c-cat { display: none; }
	.lbfd-ft .ft-cat-m { display: inline; color: var(--faint); text-decoration: none; }
}
@media (max-width: 900px) {
	.lbfd-ft .ft-head { display: none; }
	.lbfd-ft .ft-row { grid-template-columns: minmax(0, 1fr); }
	.lbfd-ft .ft-row > .ft-td:not(.c-deal) { display: none; }
	.lbfd-ft .c-deal { align-items: flex-start; }
	.lbfd-ft .ft-mobile { display: block; font-size: 12px; color: var(--muted); }
	.lbfd-ft .ft-title { font-size: 14px; }
}
.bbp-page .entry-content, .bbp-page #bbpress-forums { max-width: none; }
.lbfd-ft .ft-rate { white-space: nowrap; }
.lbfd-ft .ft-match { display: block; font-size: 12px; color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbfd-ft .ft-match span { color: var(--ink-2); }
.lbfd-ft .ft-match:hover { text-decoration: underline; }
.lbfd-discussion .disc-link { color: inherit; text-decoration: none; }
.lbfd-discussion .disc-link:hover { color: var(--link); text-decoration: underline; }
.disc-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.disc-forum { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; background: #fff; }
.disc-forum:hover { border-color: var(--ink); }
.lbfd-discussion .row-head h2 a.disc-link { font: inherit; color: inherit; }
.r-report[disabled] { color: var(--faint); cursor: default; }
.r-tag-wait { background: #FEF3C7; color: #92400E; }
.lbfd-post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 4px; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 14px; background: var(--ground); font-weight: 600; }

/* 2.2.0 — Home page: 6 categories in one row, 12 price drops, stores in two full rows */
.h-cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.h-grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.h-logos { grid-template-columns: repeat(var(--st-cols, 8), minmax(0, 1fr)); } /* Two even rows on wide screens. */
@media (max-width: 1100px) {
	.h-cat-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
	.h-cat-grid > * { scroll-snap-align: start; }
	.h-grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.h-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.h-logos > :nth-child(n+13) { display: none; }
}
@media (max-width: 820px) {
	.h-grid-12 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.h-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.h-logos > :nth-child(n+9) { display: none; }
}
@media (max-width: 560px) {
	.h-cat-grid { grid-auto-columns: 150px; }
	.h-grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.h-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.h-logos > :nth-child(n+7) { display: none; }
	.h-logos a { min-height: 70px; padding: 10px; }
	.h-logos strong { font-size: 15px; }
}
