/*
 * ================================================================
 * styles-home.css  — HOME PAGE ONLY
 * ================================================================
 * Phạm vi:  index.html  (body.site-home)
 * Load sau: styles.css
 *
 * MỤC LỤC
 * ─────────────────────────────────────────────────────────────────
 * 1.  HOME TOKENS (override CSS variables cho theme home)
 * 2.  TOPNAV (header home riêng — .topnav, .nav-inner…)
 * 3.  NOTICE STRIP
 * 4.  SUBNAV / CATEGORY BAR
 * 5.  HERO section
 * 6.  PROMO BANNER + COUNTDOWN
 * 7.  BRAND RAIL (store filter)
 * 8.  DEAL GRID / FEATURED RAIL
 *     – .d-feat (horizontal scroll)
 *     – .d-grid (4-col grid)
 *     – .deal-card   .ci .cb2 .ct .pn …
 * 9.  EMPTY STATE
 * 10. LOAD MORE
 * 11. FOOTER OVERRIDES (home uses .dh-footer / .footer-shell)
 * 12. MODALS home (alertModal, expiredModal, cookie)
 * 13. RESPONSIVE
 * ================================================================
 */


/* ================================================================
   1. HOME TOKENS
   ================================================================ */
body.site-home {
  --home-bg:         #0d0d0d;
  --home-panel:      #111111;
  --home-border:     rgba(255,255,255,.07);
  --home-accent:     #f97316;
  --home-accent-2:   #ffb45f;
  --home-text:       #f4e7d8;
  --home-muted:      #a79279;
  --home-shadow:     0 18px 40px rgba(0,0,0,.26);

  /* override base tokens */
  --bg:        var(--home-bg);
  --panel:     var(--home-panel);
  --text:      var(--home-text);
  --muted:     var(--home-muted);
  --line:      var(--home-border);
  --accent:    var(--home-accent);
  --accent-2:  var(--home-accent-2);

  background:
    radial-gradient(1400px 420px at 50% -10%, rgba(249,115,22,.08), transparent),
    linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
  color: var(--home-text);
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* Safari / iOS control reset for homepage UI */
body.site-home button,
body.site-home input,
body.site-home select,
body.site-home textarea {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  font: inherit;
}
body.site-home button {
  font-family: inherit;
  line-height: 1.1;
  margin: 0;
  box-shadow: none;
}



/* ================================================================
   2. TOPNAV  (home — different markup from deal.html)
   .topnav → .nav-inner → .nav-logo | .nsw (search) | .nav-right
   ================================================================ */
body.site-home .topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0d0d0d;
  border-bottom: 1px solid var(--home-border);
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
}

body.site-home .nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo */
body.site-home .nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
body.site-home .nav-logo-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--home-border);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
body.site-home .nav-logo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.site-home .nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
}
body.site-home .nav-logo-text span { color: var(--home-accent); }

/* Search */
body.site-home .nsw {
  position: relative;
  flex: 1 1 auto;
  max-width: 520px;
  display: flex; align-items: center;
}
body.site-home .si {
  position: absolute; left: 12px;
  pointer-events: none; font-size: 14px;
}
body.site-home .ns-inp {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #f4e7d8;
  border-radius: 999px;
  padding: 10px 36px 10px 36px;
  font: 500 13px 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s;
}
body.site-home .ns-inp:focus { border-color: rgba(249,115,22,.4); }
body.site-home .ns-inp::placeholder { color: #7d6d5b; }
body.site-home .sc {
  position: absolute; right: 10px;
  background: none; border: none;
  color: #a79279; cursor: pointer; font-size: 14px;
}
body.site-home .sdrop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  z-index: 80;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
}

/* Nav right */
body.site-home .nav-right {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
body.site-home .lang-toggle { display: flex; gap: 4px; }
body.site-home .lang-btn {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: #d8c8b3;
  border-radius: 999px;
  padding: 8px 12px;
  font: 700 12px 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background .18s;
}
body.site-home .lang-btn:hover { background: rgba(249,115,22,.14); color: var(--home-accent-2); }

body.site-home .btn-alert {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.22);
  color: var(--home-accent-2);
  font: 700 13px 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}
body.site-home .btn-alert:hover { background: rgba(249,115,22,.2); border-color: rgba(249,115,22,.4); }
body.site-home .bell { font-size: 15px; }

body.site-home .nav-auth-btn.btn-ln {
  display: inline-flex; align-items: center;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: #d8c8b3;
  font: 700 12px 'DM Sans', sans-serif;
  text-decoration: none;
  transition: background .18s;
}
body.site-home .nav-auth-btn.btn-ln:hover { background: rgba(255,255,255,.08); }


/* ================================================================
   3. NOTICE STRIP
   ================================================================ */
body.site-home .notice-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 28px 0;
}
body.site-home .notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 920px);
  border: 1px solid rgba(249,115,22,.12);
  background: rgba(249,115,22,.05);
  color: #c9ab8c;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  line-height: 1.45;
}


/* ================================================================
   4. SUBNAV / CATEGORY BAR + SORT FILTER
   ================================================================ */
body.site-home .subnav {
  position: sticky;
  top: 76px;
  z-index: 105;
  background: rgba(8,8,9,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--home-border);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
body.site-home .subnav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
body.site-home .cat-scroll,
body.site-home .filter-scroll,
body.site-home .quick-chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body.site-home .cat-scroll::-webkit-scrollbar,
body.site-home .filter-scroll::-webkit-scrollbar,
body.site-home .quick-chip-row::-webkit-scrollbar,
body.site-home .brand-row::-webkit-scrollbar,
body.site-home .hot-list::-webkit-scrollbar { display: none; }
body.site-home .cat-scroll {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  padding-right: 18px;
  border-right: 1px solid var(--home-border);
}
body.site-home .filter-scroll {
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: fit-content;
  padding-left: 0;
}
body.site-home .filter-bundle { display:flex; align-items:center; gap:10px; min-width:0; }
body.site-home .filter-bundle-sort { justify-content:flex-end; }
body.site-home .fl {
  font-size: 10px;
  font-weight: 900;
  color: #9f876d;
  text-transform: uppercase;
  letter-spacing: .11em;
  white-space: nowrap;
}
body.site-home .cat-tab,
body.site-home .chip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: #101113;
  color: #d8c8b3;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
body.site-home .cat-tab:hover,
body.site-home .chip:hover {
  border-color: rgba(249,115,22,.35);
  color: #fff;
  background: #141517;
}
body.site-home .cat-tab.on,
body.site-home .chip.on {
  background: linear-gradient(135deg,var(--home-accent-2),var(--home-accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(249,115,22,.18);
}
body.site-home .hidden-selects { display:none !important; }


/* ================================================================
   5. HERO SECTION
   ================================================================ */
body.site-home .home-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

body.site-home .hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 24px;
  align-items: center;
  background: linear-gradient(180deg, #161616 0%, #111111 100%);
  border: 1px solid var(--home-border);
  border-radius: 28px;
  padding: 28px 30px;
  box-shadow: var(--home-shadow);
}
body.site-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 560px at 30% 42%, rgba(10,36,84,.58), transparent 62%),
    radial-gradient(760px 260px at 86% 8%, rgba(249,115,22,.10), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 0;
}
body.site-home .hero > * { position: relative; z-index: 1; }
body.site-home .hero > div:first-child {
  min-height: 630px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.site-home .hero-ey {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(249,115,22,.18);
  background: rgba(249,115,22,.08);
  font: 800 11px 'Syne', sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--home-accent-2);
  margin-bottom: 18px;
}
body.site-home .hero-h1 {
  margin: 0 0 14px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(56px, 6.2vw, 86px);
  line-height: .95;
  color: #fff;
  letter-spacing: -.04em;
  max-width: 760px;
}
body.site-home .hero-h1 em { font-style: italic; color: var(--home-accent); }
body.site-home .hero-sub {
  margin: 0 0 26px;
  color: #c8b29a;
  font-size: 14px;
  line-height: 1.8;
  max-width: 600px;
}

body.site-home .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
body.site-home .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font: 800 13px 'DM Sans', sans-serif;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.10);
  text-decoration: none;
  background: rgba(255,255,255,.04);
  color: var(--home-text);
  transition: background .18s, border-color .18s, filter .18s;
}
body.site-home .hero-cta.primary {
  background: linear-gradient(135deg, var(--home-accent), var(--home-accent-2));
  border-color: transparent;
  color: #fff;
}
body.site-home .hero-cta:hover { filter: brightness(1.08); }

body.site-home .hero-stats { display:flex; gap:30px; flex-wrap:wrap; }
body.site-home .sn {
  font-family: 'Syne', sans-serif;
  font-size: clamp(44px, 4vw, 58px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1;
}
body.site-home .sl { font-size: 13px; color: var(--home-muted); margin-top: 6px; }

/* Popular aside */
body.site-home .hero-hot-card {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--home-border);
  border-radius: 22px;
  padding: 18px;
  min-width: 0;
}
body.site-home .hot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
body.site-home .hot-tag  { font-size: 11px; font-weight: 800; color: var(--home-accent); text-transform: uppercase; letter-spacing: .08em; }
body.site-home .hot-title { font: 800 16px 'DM Sans', sans-serif; color: #fff; margin-top: 4px; }
body.site-home .hot-badge { padding: 5px 10px; border-radius: 999px; background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.2); color: var(--home-accent-2); font-size: 10px; font-weight: 900; white-space: nowrap; }

body.site-home .hot-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:324px;
  overflow-y:auto;
  padding-right:4px;
}

body.site-home .hot-item{
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:8px;
  border-radius:12px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  text-decoration:none;
  transition:background .18s, border-color .18s, box-shadow .18s;
}
body.site-home .hot-item:hover{
  background:rgba(255,255,255,.06);
}
body.site-home .hot-item.is-expired{
  opacity:1;
  border-color:rgba(255,92,92,.20);
}

body.site-home .hot-thumb-wrap{
  position:relative;
  width:56px;
  height:56px;
  flex-shrink:0;
}
body.site-home .hot-thumb{
  position:relative;
  display:block;
  width:56px;
  height:56px;
  border-radius:10px;
  overflow:hidden;
  background:#1a1a1a;
}
body.site-home .hot-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
body.site-home .hot-item.is-expired .hot-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(8,8,10,.02), rgba(8,8,10,.18) 45%, rgba(8,8,10,.42));
  z-index:2;
  pointer-events:none;
}

body.site-home .hot-copy{
  min-width:0;
}
body.site-home .hot-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:4px;
}
body.site-home .hot-meta{
  font-size:10px;
  color:var(--home-muted);
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.site-home .hot-name{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:12px;
  font-weight:700;
  color:#f4e7d8;
  line-height:1.3;
  text-decoration:none;
  margin-bottom:4px;
}
body.site-home .hot-name:hover{
  color:var(--home-accent-2);
}
body.site-home .hot-price{
  font:800 13px 'Syne', sans-serif;
  color:#ff7a18;
  line-height:1;
}
body.site-home .hot-price span{
  font-size:11px;
  color:var(--home-muted);
  text-decoration:line-through;
  font-weight:500;
  margin-left:4px;
}

body.site-home .expired-neon,
body.site-home .expired-chip-inline{
  -webkit-appearance:none;
  appearance:none;
  border:1px solid rgba(255,82,82,.46);
  background:linear-gradient(180deg, rgba(55,0,0,.82), rgba(20,0,0,.94));
  color:#fff3f3;
  font:900 10px/1 'Syne', sans-serif;
  letter-spacing:.16em;
  text-transform:uppercase;
  border-radius:999px;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  text-shadow:0 0 12px rgba(255,118,118,.88), 0 0 2px rgba(255,255,255,.9);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 10px rgba(255,68,68,.30),
    0 0 24px rgba(255,68,68,.16);
  cursor:pointer;
}
body.site-home .expired-neon{
  position:absolute;
  left:8px;
  bottom:8px;
  z-index:4;
  padding:6px 10px;
}
body.site-home .expired-neon-card{
  left:12px;
  bottom:12px;
}
body.site-home .expired-neon-pop{
  left:6px;
  bottom:6px;
  padding:5px 8px;
  font-size:9px;
  letter-spacing:.14em;
}
body.site-home .expired-chip-inline{
  padding:5px 9px;
  font-size:9px;
  flex:0 0 auto;
}
body.site-home .expired-vignette{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(10,10,12,.04), rgba(10,10,12,.24) 52%, rgba(10,10,12,.54));
}


/* ================================================================
   6. PROMO BANNER + COUNTDOWN
   ================================================================ */
body.site-home .promo-wrap {
  margin-top: 18px;
}
body.site-home .promo-banner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #1a120e 0%, #141414 100%);
  border: 1px solid rgba(249,115,22,.18);
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
}
body.site-home .p-tag {
  font: 800 11px 'Syne', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin-bottom: 8px;
}
body.site-home .p-h     { font-family: 'DM Serif Display', serif; font-size: 28px; color: #fff; line-height: 1.12; }
body.site-home .p-h em  { font-style: italic; color: var(--home-accent-2); }
body.site-home .p-sub   { margin-top: 6px; font-size: 13px; color: #b9a793; line-height: 1.6; max-width: 600px; }

body.site-home .p-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
body.site-home .countdown { display: flex; gap: 8px; }
body.site-home .cdb {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 11px 14px;
  text-align: center;
  min-width: 56px;
}
body.site-home .cdn { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1; }
body.site-home .cdl { font-size: 9px; color: var(--home-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
body.site-home .p-btn {
  background: var(--home-accent-2);
  color: #1a120d;
  padding: 12px 22px;
  border-radius: 999px;
  font: 800 13px 'DM Sans', sans-serif;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: filter .18s;
}
body.site-home .p-btn:hover { filter: brightness(1.08); }


/* ================================================================
   7. BRAND RAIL (store filter)
   ================================================================ */
body.site-home .deals-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

body.site-home .sec-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0 14px;
  flex-wrap: wrap;
}
body.site-home .sec-h { font-family: 'DM Serif Display', serif; font-size: 30px; letter-spacing: -.02em; color: #fff; margin: 0; }
body.site-home .sec-h span { color: var(--home-accent); }
body.site-home .section-copy { color: var(--home-muted); font-size: 13px; line-height: 1.6; margin-top: 6px; }
body.site-home .deal-count-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--home-border);
  font-size: 12px; font-weight: 800; color: #f6e8d6;
}
body.site-home .brand-head { padding-top: 10px; }
body.site-home .brand-clear {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--home-border);
  background: rgba(255,255,255,.03);
  color: #f6e8d6; font-weight: 700; cursor: pointer;
  transition: background .18s;
}
body.site-home .brand-clear:hover { background: rgba(255,255,255,.07); }
body.site-home .brand-row {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(249,115,22,.35) rgba(255,255,255,.04);
}
body.site-home .brand-card {
  flex-shrink: 0;
  background: #111111;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  min-width: 184px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  color: #fff;
  text-decoration: none;
}
body.site-home .brand-card:hover,
body.site-home .brand-card.active {
  border-color: rgba(249,115,22,.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
body.site-home .bi   { font-size: 22px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.04); border-radius: 12px; flex-shrink: 0; }
body.site-home .bname { font-weight: 800; font-size: 14px; color: #fff; }
body.site-home .bcnt  { font-size: 11px; color: var(--home-muted); margin-top: 2px; }


/* ================================================================
   8. DEAL GRID / FEATURED RAIL
   ================================================================ */

/* ── Featured: horizontal scroll ── */
body.site-home .d-feat-wrap { margin-bottom: 8px; }
body.site-home .d-feat {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 14px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(249,115,22,.4) rgba(255,255,255,.04);
  cursor: grab;
}
body.site-home .d-feat:active { cursor: grabbing; }
body.site-home .d-feat::-webkit-scrollbar { height: 9px; }
body.site-home .d-feat::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 999px; }
body.site-home .d-feat::-webkit-scrollbar-thumb { background: rgba(249,115,22,.4); border-radius: 999px; }

body.site-home .d-feat .deal-card { height: 100%; align-self: stretch; }

/* ── All-deals grid ── */
body.site-home .d-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

/* ── Deal card ── */
body.site-home .deal-card {
  background: #111111;
  border: 1px solid var(--home-border);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  min-height: 100%;
}
body.site-home .deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
body.site-home .deal-card.hl {
  background: linear-gradient(180deg,#1a120e 0%,#111111 100%);
  border-color: rgba(249,115,22,.18);
}

/* Card image area — 16:9 smart-media */
body.site-home .ci {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;    /* always 16:9 */
  width: 100%;
}
body.site-home .cii {
  width: 100%; height: 100%;
  display: block; position: relative; overflow: hidden; background: #191919;
}
body.site-home .cii img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* default cover — JS switches to smart-fit-contain if image is tall */
  object-fit: cover;
  object-position: center center;
  transition: transform .35s ease, object-fit .0s;
}
body.site-home .deal-card:hover .cii img { transform: scale(1.04); }

/* smart-fit overrides (set by JS) */
body.site-home .cii img.smart-fit-cover   { object-fit: cover;   padding: 0; }
body.site-home .cii img.smart-fit-contain { object-fit: contain; padding: 10px; background: #1a1a1a; }

/* Card badges */
body.site-home .cbadges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 3; }
body.site-home .cb { padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; backdrop-filter: blur(8px); }
body.site-home .b-hot  { background: var(--home-accent); color: #fff; }
body.site-home .b-new  { background: #0f766e; color: #fff; }
body.site-home .b-lim  { background: var(--home-accent-2); color: #24160d; }
body.site-home .b-disc { background: rgba(249,115,22,.14); color: var(--home-accent-2); border: 1px solid rgba(249,115,22,.2); }
body.site-home .b-exp  { background: rgba(239,68,68,.14); color: #fca5a5; border: 1px solid rgba(239,68,68,.2); }

body.site-home .cs {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(16,16,16,.88); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; border: 1px solid rgba(255,255,255,.08);
  z-index: 3; cursor: pointer; text-decoration: none;
  transition: background .2s;
}
body.site-home .ctimer {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(10,10,10,.76); backdrop-filter: blur(8px);
  padding: 4px 9px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; color: #fff; z-index: 3;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
body.site-home .td { width: 6px; height: 6px; border-radius: 50%; background: var(--home-accent); animation: blink 1s infinite; flex-shrink: 0; }

/* Card body */
body.site-home .cb2 { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
body.site-home .cstore { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
body.site-home .sic    { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; background: rgba(255,255,255,.04); }
body.site-home .snm    { font-size: 11px; font-weight: 800; color: var(--home-muted); text-transform: uppercase; letter-spacing: .06em; }
body.site-home .ct     {
  font-family: 'DM Serif Display', serif;
  font-size: 18px; line-height: 1.25;
  color: #fff; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em;
}
body.site-home .cd     { font-size: 12px; color: var(--home-muted); line-height: 1.6; flex: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2em; }
body.site-home .cpr    { margin-top: 14px; display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; min-height: 32px; }
body.site-home .po     { font-size: 12px; color: #7d6d5b; text-decoration: line-through; line-height: 1; }
body.site-home .pn     { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: #ff7a18; letter-spacing: -.03em; line-height: 1; }
body.site-home .pd     { background: rgba(249,115,22,.12); color: var(--home-accent); padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; margin-left: auto; }
body.site-home .cm     { margin-top: 10px; display: flex; gap: 10px; align-items: center; min-height: 22px; }
body.site-home .mc     { font-size: 11px; color: var(--home-muted); }
body.site-home .ca     { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 14px; }

body.site-home .deal-note-highlight{
  margin:8px 0 0;
  padding:9px 11px;
  border-radius:12px;
  border:1px solid rgba(249,115,22,.18);
  background:rgba(249,115,22,.07);
  color:var(--home-accent-2);
  font-size:12px;
  line-height:1.4;
  font-weight:700;
  min-height:52px;
}

@keyframes expiredNeonPulse{
  0%,100%{
    transform:scale(1);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.03) inset,
      0 0 10px rgba(255,68,68,.30),
      0 0 24px rgba(255,68,68,.16);
  }
  50%{
    transform:scale(1.04);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.06) inset,
      0 0 16px rgba(255,68,68,.48),
      0 0 34px rgba(255,68,68,.30);
  }
}
@keyframes expiredNoteFlash{
  0%,100%{
    border-color:rgba(249,115,22,.18);
    box-shadow:none;
  }
  50%{
    border-color:rgba(255,82,82,.58);
    box-shadow:0 0 0 1px rgba(255,82,82,.20) inset, 0 0 22px rgba(255,82,82,.18);
  }
}
body.site-home .expired-neon.is-flashing,
body.site-home .expired-chip-inline.is-flashing{
  animation:expiredNeonPulse .95s ease 1;
}
body.site-home .deal-note-highlight.expired-flash{
  animation:expiredNoteFlash .95s ease 1;
}

/* CTA buttons on card */
body.site-home .bg  {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 11px 16px; border-radius: 999px;
  font: 800 12px 'DM Sans', sans-serif;
  background: linear-gradient(135deg, var(--home-accent-2), var(--home-accent));
  color: #fff; border: none; cursor: pointer; text-decoration: none;
  transition: filter .18s;
}
body.site-home .bg:hover { filter: brightness(1.08); }
body.site-home .bco {
  background: rgba(255,255,255,.04);
  color: #f2e5d5;
  border: 1px dashed rgba(255,255,255,.12);
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  padding: 10px 14px; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: background .2s;
}
body.site-home .report-expired-link {
  margin-top: 10px; align-self: flex-start;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.16);
  color: #fca5a5; font-weight: 700; cursor: pointer;
}

/* note highlight on card */
body.site-home .deal-note-highlight {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(249,115,22,.18);
  background: rgba(249,115,22,.07);
  color: var(--home-accent-2);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  min-height: 52px;
}

/* Card size variants */
body.site-home .csm .cb2 { padding: 12px 14px 14px; }
body.site-home .csm .ct  { font-size: 15px; }
body.site-home .csm .pn  { font-size: 20px; }


/* ================================================================
   9. EMPTY STATE
   ================================================================ */
body.site-home .empty-st { text-align: center; padding: 80px 40px; color: var(--home-muted); }
body.site-home .empty-st .ei { font-size: 48px; margin-bottom: 16px; }
body.site-home .empty-st h3  { font-family: 'DM Serif Display', serif; font-size: 24px; color: #fff; margin-bottom: 8px; }
body.site-home .empty-st p   { font-size: 14px; }


/* ================================================================
   10. LOAD MORE
   ================================================================ */
body.site-home .load-more-row { display: flex; justify-content: center; padding: 28px 0 8px; }
body.site-home .load-more-btn {
  padding: 12px 26px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--home-accent-2), var(--home-accent));
  color: #fff; font: 800 13px 'DM Sans', sans-serif; cursor: pointer;
  box-shadow: 0 10px 26px rgba(249,115,22,.2);
  transition: filter .18s;
}
body.site-home .load-more-btn:hover   { filter: brightness(1.08); }
body.site-home .load-more-btn:disabled { opacity: .5; cursor: not-allowed; }


/* ================================================================
   11. FOOTER OVERRIDES (home uses .dh-footer / .footer-shell)
   ================================================================ */
body.site-home .dh-footer {
  margin-top: 40px;
  background: #0d0d0d;
  border-top: 1px solid var(--home-border);
}
body.site-home .footer-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 28px 34px;
}
body.site-home .footer-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
}
body.site-home .footer-brandline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.site-home .f-logo           { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
body.site-home .f-logo span      { color: var(--home-accent); }
body.site-home .footer-copy      { font-size: 12px; color: var(--home-muted); }
body.site-home .footer-links-inline   { display: flex; gap: 14px; flex-wrap: wrap; }
body.site-home .footer-links-inline a { font-size: 12px; color: #c9bba8; text-decoration: none; }
body.site-home .footer-links-inline a:hover { color: #fff; }
body.site-home .footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  padding-top: 22px;
}
body.site-home .footer-group {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
}
body.site-home .footer-group-title { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--home-accent-2); margin-bottom: 10px; }
body.site-home .footer-links     { display: grid; gap: 8px; }
body.site-home .footer-links a   { font-size: 13px; color: #d8c8b3; text-decoration: none; padding-left: 0; }
body.site-home .footer-links a::before { display: none; }
body.site-home .footer-links a:hover { color: #fff; transform: none; }
body.site-home .footer-highlights { display: grid; gap: 10px; padding-top: 18px; }
body.site-home .footer-highlight  { font-size: 12px; line-height: 1.7; color: var(--home-muted); border: none; background: none; padding: 0; border-radius: 0; }

/* shared site-footer also used by home if footer-grid is in markup */
body.site-home .site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--home-border);
  background: #0d0d0d;
}


/* ================================================================
   12. MODALS home
   ================================================================ */
body.site-home #alertModal .modal-card,
body.site-home #expiredModal .modal-card {
  background: #121212;
  border: 1px solid rgba(249,115,22,.18);
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,.4);
}
body.site-home .cookie-banner {
  background: #121212;
  border: 1px solid rgba(249,115,22,.18);
  border-radius: 18px 18px 0 0;
  color: #f4e5d4;
}
body.site-home .cookie-banner a { color: var(--home-accent-2); }


/* ================================================================
   13. RESPONSIVE  (home only)
   ================================================================ */
@media (max-width: 1280px) {
  body.site-home .hero {
    min-height: 620px;
    grid-template-columns: minmax(0,1fr) 330px;
  }
  body.site-home .hero > div:first-child { min-height: 560px; }
  body.site-home .hero-h1 { font-size: clamp(48px, 5.4vw, 74px); }
  body.site-home .d-feat { grid-auto-columns: minmax(280px, 72vw); }
  body.site-home .d-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1100px) {
  body.site-home .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  body.site-home .hero > div:first-child {
    min-height: 0;
    justify-content: flex-start;
  }
  body.site-home .hero-hot-card {
    max-height: none;
  }
}
@media (max-width: 980px) {
  body.site-home .nav-inner,
  body.site-home .subnav-inner,
  body.site-home .home-main,
  body.site-home .notice-wrap,
  body.site-home .deals-shell,
  body.site-home .footer-shell { padding-left: 18px; padding-right: 18px; }
  body.site-home .nav-inner { flex-wrap: wrap; }
  body.site-home .nsw { order: 3; max-width: none; width: 100%; }
  body.site-home .nav-right { margin-left: auto; }
  body.site-home .subnav {
    top: 0;
    position: relative;
  }
  body.site-home .subnav-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  body.site-home .cat-scroll {
    flex: 1 1 100%;
    border-right: 0;
    padding-right: 0;
    padding-bottom: 2px;
  }
  body.site-home .filter-scroll {
    flex: 1 1 100%;
    justify-content: flex-start;
    min-width: 0;
  }
  body.site-home .d-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.site-home .footer-columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.site-home .topnav { height: auto; }
  body.site-home .nav-inner { padding: 14px 18px; gap: 12px; }
  body.site-home .nav-logo-text { font-size: 18px; }
  body.site-home .nav-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  body.site-home .notice { border-radius: 16px; }
  body.site-home .hero {
    padding: 22px 20px;
    border-radius: 24px;
  }
  body.site-home .hero-h1 {
    font-size: clamp(38px, 12vw, 56px);
    line-height: .98;
  }
  body.site-home .hero-stats { gap: 18px; }
  body.site-home .hot-list { max-height: 328px; }
  body.site-home .promo-banner { grid-template-columns: 1fr; padding: 20px; }
  body.site-home .p-right { justify-content: flex-start; }
  body.site-home .sec-row { align-items: flex-start; flex-direction: column; }
  body.site-home .d-feat { grid-auto-columns: minmax(84vw, 84vw); }
}
@media (max-width: 540px) {
  body.site-home .cat-tab,
  body.site-home .chip {
    min-height: 34px;
    padding: 0 14px;
    font-size: 11px;
  }
  body.site-home .hot-item {
    grid-template-columns: 68px minmax(0,1fr);
    padding: 10px;
  }
  body.site-home .hot-thumb {
    width: 68px;
    height: 68px;
  }
  body.site-home .hot-list {
    max-height: 304px;
  }
  body.site-home .d-grid { grid-template-columns: 1fr; }
  body.site-home .ca { grid-template-columns: 1fr; }
  body.site-home .brand-card { min-width: 160px; }
}

/* ================================================================
   HOME HERO + POPULAR DEALS COMPACT TUNEUP
   Fix: right panel not overly tall, only ~3 deals visible, hero less bulky
   ================================================================ */
body.site-home .hero {
  margin-top: 14px;
  min-height: auto;
  grid-template-columns: minmax(0,1fr) 310px;
  gap: 18px;
  align-items: start;
  border-radius: 24px;
  padding: 22px 24px;
}

body.site-home .hero > div:first-child {
  min-height: 420px;
  justify-content: flex-end;
}

body.site-home .hero-ey {
  margin-bottom: 14px;
}

body.site-home .hero-h1 {
  font-size: clamp(44px, 5vw, 68px);
  line-height: .96;
  max-width: 640px;
  margin-bottom: 12px;
}

body.site-home .hero-sub {
  margin-bottom: 20px;
  max-width: 520px;
}

body.site-home .hero-actions {
  margin-bottom: 22px;
}

body.site-home .hero-stats {
  gap: 22px;
}

body.site-home .sn {
  font-size: clamp(34px, 3.2vw, 48px);
}

body.site-home .sl {
  font-size: 12px;
}

body.site-home .hero-hot-card {
  align-self: start;
  height: auto;
  padding: 16px;
  border-radius: 22px;
}

body.site-home .hot-head {
  margin-bottom: 12px;
}

body.site-home .hot-title {
  font-size: 18px;
  line-height: 1.08;
  margin-top: 10px;
}

body.site-home .hot-badge {
  padding: 7px 11px;
  font-size: 10px;
}

body.site-home .hot-list  {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 318px;
  overflow-y: auto;
  padding-right: 4px;
}

body.site-home .hot-item {
  grid-template-columns: 68px minmax(0,1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
}

body.site-home .hot-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
}

body.site-home .hot-name {
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.3;
}

body.site-home .hot-meta {
  font-size: 11px;
  margin-bottom: 6px;
}

body.site-home .hot-price {
  font-size: 14px;
}

body.site-home .hot-price span {
  font-size: 10px;
}

@media (max-width: 1280px) {
  body.site-home .hero {
    grid-template-columns: minmax(0,1fr) 296px;
  }

  body.site-home .hero > div:first-child {
    min-height: 390px;
  }

  body.site-home .hero-h1 {
    font-size: clamp(40px, 4.8vw, 60px);
  }
}

@media (max-width: 1100px) {
  body.site-home .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.site-home .hero > div:first-child {
    min-height: 0;
  }

  body.site-home .hero-hot-card {
    width: 100%;
  }

  body.site-home .hot-list {
    max-height: 304px;
  }
}

@media (max-width: 760px) {
  body.site-home .hero {
    padding: 20px 18px;
    border-radius: 22px;
  }

  body.site-home .hero-h1 {
    font-size: clamp(34px, 11vw, 50px);
  }

  body.site-home .hero-stats {
    gap: 16px;
  }
}
