@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@600;700;800&display=swap');

:root {
  /* Dark Theme Colors (Default) */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(20, 30, 54, 0.85);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(51, 65, 85, 0.6);
  --border-hover: rgba(16, 185, 129, 0.4);
  --glow-color: rgba(16, 185, 129, 0.15);
  --glow-active: rgba(16, 185, 129, 0.3);
  
  /* Brand Gradients */
  --grad-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-accent: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #6366f1 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --grad-silver: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  --grad-bronze: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
  --grad-card-glow: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(16, 185, 129, 0.08), transparent 40%);

  /* Functional Colors */
  --emerald: #10b981;
  --teal: #14b8a6;
  --shopee: #ee4d2d;
  --shopee-grad: linear-gradient(135deg, #ff6b35 0%, #ee4d2d 100%);
  --lazada: #101540;
  --lazada-grad: linear-gradient(135deg, #3f5efb 0%, #fc466b 100%);
  
  /* Fonts */
  --font-display: "Noto Sans Thai", "Inter", sans-serif;
  --font-body: "IBM Plex Sans Thai", "Inter", sans-serif;
  
  /* Spacing & Sizing */
  --shell: 1280px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --glass-blur: blur(16px);
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease-in-out;
}

/* Light Theme Overrides */
body.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: rgba(226, 232, 240, 0.8);
  --border-hover: rgba(16, 185, 129, 0.5);
  --glow-color: rgba(16, 185, 129, 0.08);
  --glow-active: rgba(16, 185, 129, 0.18);
  --grad-card-glow: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(16, 185, 129, 0.04), transparent 40%);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 800px;
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 72% 0%, rgba(16, 185, 129, 0.1) 0%, rgba(20, 184, 166, 0.03) 42%, rgba(9, 13, 22, 0) 72%);
  z-index: -1;
  pointer-events: none;
}

body.light-mode::before {
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.06) 0%, rgba(20, 184, 166, 0.02) 40%, rgba(248, 250, 252, 0) 70%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input {
  font-family: var(--font-body);
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Layout Shell */
.tdh-shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

/* Header & Navigation */
.tdh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.tdh-header {
  background-color: rgba(9, 13, 22, 0.75);
}
body.light-mode .tdh-header {
  background-color: rgba(248, 250, 252, 0.75);
}

.tdh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.tdh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tdh-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--glow-color);
  transition: var(--transition-smooth);
}

.tdh-brand:hover .tdh-brand__mark {
  transform: rotate(6deg) scale(1.05);
  box-shadow: 0 6px 16px var(--glow-active);
}

.tdh-brand span {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tdh-brand strong {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tdh-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 550;
  font-size: 0.95rem;
}

.tdh-nav a {
  color: var(--text-secondary);
  position: relative;
  padding: 8px 4px;
}

.tdh-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.tdh-nav a:hover {
  color: var(--text-primary);
}

.tdh-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.tdh-header__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.5s ease;
}

.theme-toggle-btn:hover svg {
  transform: rotate(45deg);
}

.tdh-header__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px var(--glow-color);
  transition: var(--transition-smooth);
}

.tdh-header__action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--glow-active);
}

.tdh-header__action svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Hero Section */
.tdh-hero {
  padding-block: 60px 40px;
}

.tdh-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.tdh-hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px 0;
  letter-spacing: -0.04em;
}

.tdh-hero__copy h1 span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tdh-hero__copy p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 0 35px 0;
  text-wrap: pretty;
}

/* Search Bar styling */
.tdh-search {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.tdh-search:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px var(--glow-color), var(--shadow-lg);
  background: var(--bg-card-hover);
}

.tdh-search svg {
  position: absolute;
  left: 24px;
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  stroke-width: 2.2;
  fill: none;
  pointer-events: none;
  transition: var(--transition-fast);
}

.tdh-search:focus-within svg {
  stroke: var(--emerald);
}

.tdh-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 12px 34px;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.05rem;
  border-radius: 40px;
}

.tdh-search input::placeholder {
  color: var(--text-muted);
}

.tdh-search button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  padding: 0 28px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 10px var(--glow-color);
  transition: var(--transition-smooth);
}

.tdh-search button:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 14px var(--glow-active);
}

.tdh-disclosure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  color: #c7d2cc;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.14);
  border-radius: 999px;
}

.tdh-disclosure-note svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Hero Ranking Widget */
.tdh-ranking {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.78), rgba(12, 34, 37, 0.66));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.tdh-ranking::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grad-card-glow);
  pointer-events: none;
}

.tdh-ranking__tape {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #10b981 58%, #14b8a6 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.tdh-ranking__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tdh-rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

body.light-mode .tdh-rank-row {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.tdh-rank-row:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.tdh-rank-row__number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.tdh-rank-row:nth-child(1) .tdh-rank-row__number {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tdh-rank-row:nth-child(2) .tdh-rank-row__number {
  background: var(--grad-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tdh-rank-row:nth-child(3) .tdh-rank-row__number {
  background: var(--grad-bronze);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tdh-rank-row__media {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tdh-rank-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tdh-rank-row__media svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  fill: none;
}

.tdh-rank-row__body {
  flex-grow: 1;
  min-width: 0;
}

.tdh-rank-row__body h3 {
  margin: 0 0 4px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tdh-rank-row__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald);
  margin-right: 8px;
}

.tdh-rank-row__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tdh-promo-note {
  display: inline-block;
  font-size: 0.7rem;
  padding: 1px 6px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 4px;
  margin-left: 6px;
}

/* Stats Facts Bar */
.tdh-facts {
  padding-block: 26px 20px;
}

.tdh-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tdh-fact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.tdh-fact:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.tdh-fact svg {
  width: 32px;
  height: 32px;
  stroke: var(--emerald);
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
}

.tdh-fact div {
  display: flex;
  flex-direction: column;
}

.tdh-fact strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tdh-fact span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Main Section Heads */
.tdh-section {
  padding-block: 50px;
}

.tdh-categories,
.tdh-budget {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(251, 191, 36, 0.028));
}

.tdh-deals {
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.035), transparent 260px),
    radial-gradient(circle at 90% 5%, rgba(16, 185, 129, 0.08), transparent 340px);
}

.tdh-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.tdh-section-head h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.tdh-section-head h2 span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tdh-section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tdh-section-head a, .tdh-section-head time {
  font-size: 0.9rem;
  color: var(--emerald);
  font-weight: 600;
}

.tdh-section-head time {
  color: var(--text-muted);
  font-weight: 400;
}

/* Categories cards */
.tdh-category-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.tdh-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(15, 23, 42, 0.62));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.tdh-category-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 10px 20px var(--glow-color);
}

.tdh-category-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  margin-bottom: 16px;
  color: var(--emerald);
  transition: var(--transition-smooth);
}

.tdh-category-card:hover .tdh-category-card__icon {
  background: var(--grad-primary);
  color: #fff;
  transform: rotate(8deg);
}

.tdh-category-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.tdh-category-card span strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tdh-category-card span small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tdh-category-card__arrow {
  display: none;
}

/* Budget Deals Section (Under ฿299) */
.tdh-budget-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tdh-budget-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.tdh-budget-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.tdh-budget-card__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: var(--grad-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tdh-budget-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tdh-budget-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.tdh-budget-card:hover .tdh-budget-card__media img {
  transform: scale(1.05);
}

.tdh-budget-card__media svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-muted);
  stroke-width: 1.6;
  fill: none;
}

.tdh-budget-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tdh-budget-card__body h3 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.tdh-budget-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--emerald);
  margin-top: auto;
}

.tdh-budget-card__sold, .tdh-budget-card__shop {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tdh-budget-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald);
  margin-top: 12px;
  transition: var(--transition-fast);
}

.tdh-budget-card:hover .tdh-budget-card__cta {
  gap: 10px;
}

/* Controls (Filters / Search) */
.tdh-deal-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.tdh-search--inline {
  max-width: 100%;
}

.tdh-search--inline input {
  padding: 10px 10px 10px 34px;
  font-size: 0.95rem;
}

.tdh-filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tdh-filter {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 550;
  font-size: 0.85rem;
  border-radius: 30px;
  transition: var(--transition-smooth);
}

.tdh-filter:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.tdh-filter.is-active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--glow-active);
}

/* Main Deals Grid */
.tdh-deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.tdh-deal-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.tdh-deal-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.tdh-deal-card__sold {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tdh-deal-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tdh-deal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.tdh-deal-card:hover .tdh-deal-card__media img {
  transform: scale(1.04);
}

.tdh-deal-card__media svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-muted);
  stroke-width: 1.6;
  fill: none;
}

.tdh-deal-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tdh-deal-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.tdh-deal-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.tdh-deal-card__shop {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tdh-deal-card__extras {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}

.tdh-deal-card__extras del {
  color: var(--text-muted);
}

.tdh-deal-card__extras span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.tdh-deal-card__extras span:last-child {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
}

.tdh-deal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.tdh-deal-card__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--emerald);
}

.tdh-deal-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.tdh-deal-card:hover .tdh-deal-card__cta {
  color: var(--emerald);
  transform: translateX(4px);
}

.tdh-media {
  position: relative;
}

.tdh-media::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tdh-media--shopee::before {
  content: "Shopee";
  background: var(--shopee-grad);
}
.tdh-media--lazada::before {
  content: "Lazada";
  background: var(--lazada-grad);
}

.tdh-deal-card.platform-shopee .tdh-deal-card__media::before {
  content: "Shopee";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--shopee-grad);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tdh-deal-card.platform-lazada .tdh-deal-card__media::before {
  content: "Lazada";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--lazada-grad);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tdh-deal-card.is-featured {
  grid-column: span 2;
  flex-direction: row;
}

.tdh-deal-card.is-featured .tdh-deal-card__media {
  width: 45%;
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px solid var(--border-color);
}

.tdh-deal-card.is-featured .tdh-deal-card__body {
  width: 55%;
}

.tdh-deal-card.is-featured h3 {
  font-size: 1.3rem;
  -webkit-line-clamp: 3;
  height: 4.2em;
}

/* Methodology / How it works */
.tdh-method {
  padding-block: 60px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.tdh-method__intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.tdh-method__intro h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 12px 0;
}

.tdh-method__intro h2 span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tdh-method__intro p {
  color: var(--text-secondary);
}

.tdh-method__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tdh-method__steps li {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px 28px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.tdh-method__steps li:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.tdh-method__number {
  position: absolute;
  top: -20px;
  left: 28px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}

.tdh-method__steps svg {
  width: 44px;
  height: 44px;
  stroke: var(--emerald);
  stroke-width: 1.6;
  fill: none;
  margin-bottom: 20px;
}

.tdh-method__steps h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-primary);
}

.tdh-method__steps p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Disclosure Banner */
.tdh-disclosure-band {
  padding-block: 40px;
}

.tdh-disclosure-band__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.tdh-disclosure-band svg {
  width: 48px;
  height: 48px;
  stroke: var(--emerald);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

.tdh-disclosure-band div {
  flex-grow: 1;
}

.tdh-disclosure-band h2 {
  font-size: 1.1rem;
  font-weight: 650;
  margin: 0 0 4px 0;
}

.tdh-disclosure-band p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tdh-disclosure-band a {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.tdh-disclosure-band a:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* Footer Section */
.tdh-footer {
  background: #050810;
  color: #94a3b8;
  padding-block: 70px 40px;
  border-top: 1px solid var(--border-color);
}

body.light-mode .tdh-footer {
  background: #f1f5f9;
  color: #475569;
}

.tdh-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.tdh-footer__brand .tdh-brand {
  margin-bottom: 16px;
}

.tdh-footer__brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.tdh-footer h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
}

.tdh-footer a, .tdh-footer span {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.tdh-footer a:hover {
  color: var(--emerald);
  transform: translateX(2px);
}

.tdh-footer__bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  margin: 0;
}

body.light-mode .tdh-footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Shimmer Loading placeholders */
.tdh-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}
body.light-mode .tdh-shimmer {
  background: linear-gradient(90deg, rgba(0,0,0,0.02) 25%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.02) 75%);
  background-size: 200% 100%;
}
@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tdh-empty, .tdh-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

.tdh-error {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.03);
}

/* Static SEO/detail pages generated from the feed */
.seo-main {
  min-height: 60vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.06), transparent 320px),
    radial-gradient(circle at 92% 10%, rgba(16, 185, 129, 0.08), transparent 360px);
}

.seo-breadcrumb,
.seo-detail,
.seo-section,
.seo-collection {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.seo-breadcrumb a {
  color: var(--emerald);
  font-weight: 700;
}

.seo-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-block: 42px 34px;
  border-bottom: 1px solid var(--border-color);
}

.seo-detail__media .seo-media {
  min-height: 380px;
}

.seo-media {
  display: grid;
  place-items: center;
  min-height: 170px;
  overflow: hidden;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.seo-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.seo-media--fallback {
  font-size: 4rem;
}

.seo-kicker {
  margin: 0 0 10px;
  color: var(--emerald);
  font-weight: 800;
}

.seo-detail h1,
.seo-collection h1,
.seo-static h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.seo-price {
  margin: 18px 0 4px;
  color: var(--emerald);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
}

.seo-muted,
.seo-lead {
  color: var(--text-secondary);
}

.seo-note,
.seo-warning,
.seo-disclosure {
  max-width: 680px;
  margin: 16px 0 0;
  padding: 12px 14px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.seo-warning {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.26);
}

.seo-disclosure {
  font-size: 0.88rem;
}

.seo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 20px;
  padding: 0 20px;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 999px;
  box-shadow: 0 4px 14px var(--glow-color);
  font-weight: 800;
}

.seo-section {
  padding-block: 32px;
  border-bottom: 1px solid var(--border-color);
}

.seo-section h2,
.seo-collection h1 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.seo-facts,
.seo-info-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.seo-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-facts div,
.seo-info-table div {
  padding: 12px 14px;
  border-right: 1px solid var(--border-color);
}

.seo-facts div:last-child,
.seo-info-table div:last-child {
  border-right: 0;
}

.seo-facts dt,
.seo-info-table dt {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.seo-facts dd,
.seo-info-table dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--text-primary);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-collection {
  padding-block: 42px 56px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.seo-card {
  display: grid;
  grid-template-rows: 180px minmax(0, 1fr);
  min-width: 0;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.seo-card:hover,
.seo-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  outline: 0;
}

.seo-card .seo-media {
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.seo-card__body {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.seo-card__body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.seo-card__body small {
  color: var(--text-muted);
}

.seo-card__body span {
  color: var(--emerald);
  font-weight: 800;
}

.seo-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.seo-panel,
.seo-editor-note {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.seo-panel {
  padding: 20px;
}

.seo-reasons ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.seo-reasons li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
}

.seo-reasons li::before {
  position: absolute;
  left: 0;
  top: 0.15em;
  color: #f59e0b;
  content: "✓";
  font-weight: 800;
}

.seo-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.seo-share a,
.seo-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  color: #fff;
  background: var(--grad-primary);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.seo-share button {
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.seo-editor-note {
  padding: 22px;
}

.seo-section-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.seo-section-headline h2 {
  margin: 0;
}

.seo-section-headline p,
.seo-section-headline a {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.seo-section-headline a {
  color: var(--emerald);
  font-weight: 800;
}

.seo-flow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-flow li {
  min-height: 120px;
  padding: 18px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.seo-flow strong,
.seo-flow span {
  display: block;
}

.seo-flow strong {
  color: var(--text-primary);
}

.seo-flow span {
  margin-top: 6px;
  color: var(--text-muted);
}

.seo-static {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding-block: 54px;
}

.seo-static p,
.seo-static li {
  color: var(--text-secondary);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .tdh-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tdh-budget-rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .tdh-method__steps {
    grid-template-columns: 1fr;
  }
  .tdh-method__steps li {
    padding-top: 40px;
  }
  .tdh-deal-card.is-featured {
    grid-column: span 1;
    flex-direction: column;
  }
  .tdh-deal-card.is-featured .tdh-deal-card__media {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .tdh-deal-card.is-featured .tdh-deal-card__body {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .tdh-header__inner {
    height: 70px;
  }
  .tdh-brand {
    gap: 8px;
    font-size: 1.02rem;
  }
  .tdh-brand > span:last-child {
    white-space: nowrap;
  }
  .tdh-brand__mark {
    width: 38px;
    height: 38px;
  }
  .tdh-nav {
    display: none;
  }
  .tdh-header__controls {
    gap: 8px;
  }
  .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }
  .tdh-header__action--desktop {
    display: none;
  }
  .tdh-facts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tdh-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .seo-detail,
  .seo-grid,
  .seo-facts,
  .seo-insight-grid,
  .seo-info-table,
  .seo-flow ol {
    grid-template-columns: 1fr;
  }
  .seo-detail__media .seo-media {
    min-height: 260px;
  }
  .seo-section-headline {
    display: block;
  }
  .seo-facts div,
  .seo-info-table div {
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }
  .seo-facts div:last-child,
  .seo-info-table div:last-child {
    border-bottom: 0;
  }
  .tdh-disclosure-band__inner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .tdh-disclosure-band a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tdh-facts__grid {
    grid-template-columns: 1fr;
  }
  .tdh-budget-rail {
    grid-template-columns: 1fr;
  }
  .tdh-category-rail {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══ Back to Top Button ═══ */
.tdh-btt {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}

.tdh-btt[hidden] {
  display: none;
}

.tdh-btt.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tdh-btt:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px var(--glow-active);
}

.tdh-btt svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .tdh-btt {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .tdh-btt svg {
    width: 18px;
    height: 18px;
  }
}

/* ═══ Staggered Card Animation ═══ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tdh-deal-card {
  opacity: 0;
}

.tdh-deal-card.is-visible {
  animation: fadeSlideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* ═══ Price Range Filter Pills ═══ */
.tdh-price-rail {
  margin-top: 10px;
  gap: 8px;
}

.tdh-price-rail::before {
  content: "฿";
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.tdh-price-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tdh-price-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.tdh-price-pill.is-active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--glow-active);
}

/* ═══ SVG Platform Badge (replaces text ::before) ═══ */
.tdh-platform-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tdh-platform-badge--shopee {
  background: var(--shopee-grad);
}

.tdh-platform-badge--lazada {
  background: var(--lazada-grad);
}

.tdh-platform-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-family: var(--font-display);
}

.tdh-media::before,
.tdh-media--shopee::before,
.tdh-media--lazada::before,
.tdh-deal-card .tdh-deal-card__media::before,
.tdh-deal-card.platform-shopee .tdh-deal-card__media::before,
.tdh-deal-card.platform-lazada .tdh-deal-card__media::before {
  content: none !important;
}

/* ═══ Hamburger Button ═══ */
.tdh-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tdh-hamburger:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.tdh-hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.tdh-hamburger.is-active .tdh-hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tdh-hamburger.is-active .tdh-hamburger__line:nth-child(2) {
  opacity: 0;
}

.tdh-hamburger.is-active .tdh-hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══ Slide-out Drawer ═══ */
.tdh-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.tdh-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tdh-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: min(280px, 80vw);
  height: 100dvh;
  background: var(--bg-body);
  border-left: 1px solid var(--border-color);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tdh-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.tdh-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 90px 24px 32px;
  gap: 4px;
}

.tdh-drawer__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.tdh-drawer__nav a:hover {
  background: var(--bg-card-hover);
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .tdh-hamburger {
    display: flex;
  }
  .tdh-header__action--desktop {
    display: none;
  }
}

@media (min-width: 769px) {
  .tdh-drawer,
  .tdh-drawer-overlay {
    display: none !important;
  }
}
