/* Compare The Deal — site layer on top of the 06-bold theme (theme.css). Only what the live pages add:
   active nav, hero stats + hottest-deal card, category counts, list bar, pager, feature pills, empty state, preview bar. */

/* Navigation: the current page is marked, not just hovered. */
.nav-links a[aria-current="page"] { background: var(--k); color: var(--y); border-radius: 10px; }

.preview-bar { background: var(--p); color: #fff; font-weight: 800; letter-spacing: .03em; text-align: center; padding: 8px 16px; border-bottom: var(--b); }

.hero .mega + .lead-b { margin-top: 18px; }

/* Hero facts: the theme's big-stat tiles, on the cream hero. */
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; max-width: 580px; }
.hero-stats .bs { border: var(--b); box-shadow: var(--sh-sm); padding: 14px 18px; }
.hero-stats .bs b { font-size: clamp(30px, 4vw, 44px); }
.hero-stats .bs span { font-size: 12px; }

/* Hottest-deal card (the theme's .flash) — real deal, no fake discount or "claimed" bar. */
.flash .flash-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.flash .heat-badge { font-weight: 800; font-size: 22px; padding: 2px 12px; border: var(--b); border-radius: 12px; background: var(--w); }
.flash .heat-badge.is-hot { background: var(--p); color: #fff; }
.flash .heat-badge.is-cold { background: #7CE3FF; }
.flash .ends { display: block; font-weight: 800; font-size: 12px; letter-spacing: .08em; margin-bottom: 6px; }
.flash .flash-title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.15; margin: 14px 0 10px; overflow-wrap: anywhere; }
.flash .flash-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 700; font-size: 14px; color: #444; margin: 8px 0 18px; }

/* Category tiles carry their real deal count. */
.section-cats { padding-top: 0; }
.cats .cat small { font-size: 12px; font-weight: 700; opacity: .75; }
.cats .cat[aria-current="page"] { box-shadow: var(--sh); transform: translate(-2px, -2px); outline: 3px solid var(--p); outline-offset: 2px; }

/* List bar: order chips + "Showing a–b of n". */
.list-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.list-bar .ctd-chip { border: var(--b); font-weight: 800; }
.list-bar .chip-clear { background: var(--y); }
.list-count { margin: 0; font-weight: 800; }

/* Deal card additions: feature pills, title wrapping, disabled link, report menu spacing. */
.deal h3 { overflow-wrap: anywhere; }
.deal .feats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; }
.deal .feats li { border: 2px solid var(--k); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 800; background: var(--cream); }
.deal .is-disabled { opacity: .5; pointer-events: none; }
.deal .ctd-report { margin-top: 10px; }

/* Pager. */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.pager .pg { min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border: var(--b); border-radius: 12px; background: var(--w); font-weight: 800; box-shadow: var(--sh-sm); transition: transform .1s, box-shadow .1s; }
.pager a.pg:hover { transform: translate(-2px, -2px); box-shadow: var(--sh); }
.pager .pg.is-current { background: var(--k); color: var(--y); }
.pager .pg-gap { font-weight: 800; padding: 0 4px; }

/* Empty state (the theme's dashed .empty), with an icon and one way forward. */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; background: var(--w); }
.empty-state .bi { font-size: 40px; }
.empty-state p { margin: 0; font-size: 20px; }

/* Sortable headers: the whole header cell is the sort button, not just its label. */
.lb th[data-sort] { padding: 0; }
.lb th[data-sort] .ctd-sort-btn { display: flex; width: 100%; box-sizing: border-box; padding: 14px 16px; }

/* Leaderboard / comparison titles are links to the deal. */
.lb td.ctd-td-main a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lb td.ctd-td-main b { white-space: normal; }

@media (max-width: 767.98px) {
  .hero-stats { margin-top: 20px; }
  .list-bar { flex-direction: column; align-items: flex-start; }
  .list-bar .ctd-chips { max-width: 100%; }
  .flash { transform: none; }
  .pager .pg-step { flex: 1 1 100%; order: 2; }
}

/* Epic 0001 UI (owner 2026-11-15): the shop badge — the template's own .sticker pill, sized for the card's top row. */
/* The theme's heat pill is absolute top-right (theme.css .heat: top/right 16px, ~125px wide): the tags row keeps clear of
   it, so a long shop name wraps beside the pill instead of sliding under it (seen in the 2026-11-15 screenshots). */
.deal .deal-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; align-self: stretch; box-sizing: border-box; padding-right: 132px; min-height: 36px; }
.sticker.s-shop { background: var(--w); font-size: 12px; padding: 3px 10px; box-shadow: 2px 2px 0 0 var(--k); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.flash .flash-meta .sticker.s-shop { font-size: 13px; }
.deal h3 .deal-link { color: inherit; text-decoration: none; }
.deal h3 .deal-link:hover, .deal h3 .deal-link:focus-visible { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.deal .is-checking { opacity: .75; cursor: default; }

/* Shop filter: the category tiles' component with a monogram, the shop name and its live count. */
.section-shops .sec-head { margin-bottom: 18px; }
.cats.shops .shop-tile { gap: 6px; min-width: 0; font: inherit; font-weight: 800; color: var(--k); cursor: pointer; }
.cats.shops .shop-mono { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: var(--b); border-radius: 50%; background: var(--w); font-size: 18px; line-height: 1; }
.cats.shops .shop-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cats.shops .shop-tile[aria-current="page"] { box-shadow: var(--sh); transform: translate(-2px, -2px); outline: 3px solid var(--p); outline-offset: 2px; }
.cats.shops .shop-all { color: var(--y); }
.cats.shops .shop-all .bi { font-size: 26px; }
.list-bar .chip-shop { background: var(--w); }
.shops-panel .shops-search { width: 100%; border: var(--b); border-radius: 12px; padding: 10px 14px; font-weight: 700; margin-bottom: 14px; }
.shops-panel .shops-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shops-panel .shops-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: var(--b); border-radius: 12px; background: var(--w); font-weight: 800; box-shadow: var(--sh-sm); }
.shops-panel .shops-list a[aria-current="page"] { background: var(--k); color: var(--y); }
.shops-panel .shops-list small { font-weight: 700; opacity: .7; }

/* Deal page: breadcrumb, the "about" column, ended state. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; margin: 0 0 10px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.deal-about { border: var(--b); border-radius: 16px; background: var(--w); box-shadow: var(--sh-sm); padding: 22px 24px; }
.deal-about p { font-size: 17px; line-height: 1.6; }
.deal-about .deal-about-title { font-size: 20px; font-weight: 800; margin: 6px 0 12px; }
.deal-about .deal-where { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-weight: 800; }
.deal-about .deal-where a { text-decoration: underline; text-underline-offset: 3px; }
.deal-about .deal-note { font-size: 15px; color: #444; margin-bottom: 8px; }
.deal-ended { display: inline-flex; gap: 8px; align-items: center; border: var(--b); border-radius: 12px; background: var(--y); padding: 10px 14px; font-weight: 800; }

@media (max-width: 767.98px) {
  .cats.shops .shop-mono { width: 32px; height: 32px; font-size: 15px; }
  .deal-about { padding: 18px; }
}

/* AI005 v2 deal page: key features list (the about panel's own type), FAQ uses the listing's accordion component. */
.deal-about .deal-highlights { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.deal-about .deal-highlights li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.deal-about .deal-highlights .bi { color: var(--p); font-size: 18px; line-height: 1.4; }
.deal-about .faq { margin-bottom: 12px; }

/* Mobile filters (owner 2026-11-16: "Add also those big filters buttons to some kind of modal that popups up on mobile as
   now it takes like 3 scrolls to see deals"). Listing.cshtml wraps the category + shop tile sections in a Bootstrap
   responsive offcanvas (.offcanvas-xl): from 1200 px up it is plain page content, below it - phones, tablets, small laptops
   (owner 2026-11-16: "any size ... equally"; the first cut used 768 and put 16 giant tiles before the deals on tablets) - a
   bottom sheet behind the FILTERS chip. Bootstrap makes .offcanvas-xl's body a flex row on wide screens; the sections
   stack, so it stays a block. */
/* Feature 0004: the deal page's SPECIFICATIONS table - the leaderboard table (.lb) as a 2-column name/value list. */
.deal-specs { margin-bottom: 1.5rem; }
.deal-specs table.lb { width: 100%; }
/* Even rows: label and value share the row's light rule (the heavy .lb header rule is for a header row, not labels). */
.deal-specs table.lb th, .deal-specs table.lb td { border-bottom: 2px solid #EEE; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.deal-specs table.lb th { width: 38%; color: var(--ctd-muted, #555); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding-top: 16px; }
.deal-specs table.lb tbody tr:last-child th, .deal-specs table.lb tbody tr:last-child td { border-bottom: 0; }
/* The theme's phone rule makes each .lb row a bordered card (leaderboard); a spec list stays one card with light rules. */
.deal-specs table.lb tbody tr { border: 0 !important; box-shadow: none; }
.deal-specs { border: var(--b, 3px solid #111); border-radius: 16px; background: var(--w, #fff); box-shadow: var(--sh-sm, 4px 4px 0 0 #111); overflow: hidden; }

@media (min-width: 1200px) {
  .filters-sheet .offcanvas-body { display: block; }
}
.chip-filters { background: var(--k) !important; color: var(--y) !important; border-color: var(--k) !important; }
.chip-filters .filters-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--p); color: #fff; font-size: 12px; font-weight: 800; }
@media (max-width: 1199.98px) {
  .filters-sheet.offcanvas-bottom { height: auto; max-height: 88vh; max-height: 88dvh; background: var(--cream); border-top: var(--b); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 0 0 rgba(17, 17, 17, .12); }
  .filters-sheet .offcanvas-header { position: relative; gap: 10px; padding: 22px 16px 14px; border-bottom: var(--b); font-weight: 800; font-size: 18px; }
  .filters-sheet .offcanvas-header::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 999px; background: rgba(17, 17, 17, .25); }
  .filters-sheet .offcanvas-header b { flex: 1; }
  .filters-sheet .offcanvas-header .sticker { padding: 4px 10px; font-size: 12px; }
  .filters-sheet .offcanvas-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .filters-sheet .section { padding: 0 0 22px; }
  .filters-sheet .container { padding: 0; }
  .filters-sheet .sec-head { margin-bottom: 12px; }
  .filters-sheet .sec-title, .filters-sheet .filters-title { font-size: 18px; margin: 0 0 12px; }
  .filters-sheet .sec-head .sec-title { margin: 0; }
  /* compact tiles inside the sheet: categories + top shops fit in about one screen, colours and order unchanged */
  .filters-sheet .cats { gap: 8px; }
  .filters-sheet .cat { gap: 4px; padding: 10px 4px; border-radius: 12px; font-size: 11px; line-height: 1.15; }
  .filters-sheet .cat .bi { font-size: 18px; }
  .filters-sheet .cats .cat small { font-size: 11px; }
  .filters-sheet .cats.shops .shop-mono { width: 26px; height: 26px; font-size: 13px; border-width: 2px; }
  .filters-sheet .cats.shops .shop-name { font-size: 11px; }
  .filters-sheet .cats.shops .shop-all .bi { font-size: 18px; }
  /* the sort + FILTERS row stays reachable while the deals scroll (the site header is sticky above it) */
  .list-bar { position: sticky; top: var(--hdr-h, 72px); z-index: 1020; margin: 0 -16px 18px; padding: 10px 16px; background: var(--cream); border-bottom: 3px solid transparent; transition: border-color .2s; }
  .list-bar.is-stuck { border-bottom-color: var(--k); }
  .list-bar .list-count { margin: 0; font-size: 14px; }
}
