/* =====================================================================
   DEALS HUB + SINGLE DEAL — deals.css
   Scoped: .dh-* (hub) · .ds-* (single)
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --dh-amazon:    #FF9900;
  --dh-flipkart:  #2874F0;
  --dh-meesho:    #9B2FB5;
  --dh-generic:   #444;
  --dh-accent:    #E8001D;
  --dh-text:      #1A1A1A;
  --dh-muted:     #6B6B6B;
  --dh-border:    #E5E5E5;
  --dh-bg:        #F7F5F0;
  --dh-card:      #FFFFFF;
  --dh-radius:    12px;
  --dh-shadow:    0 2px 12px rgba(0,0,0,.08);
  --dh-shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* ---------- Shared Utilities ---------- */
.gcm-container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* =====================================================================
   DEALS HERO
   ===================================================================== */

.dh-hero {
  background: var(--dh-text);
  color: #fff;
  padding: 56px 0 48px;
}

.dh-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.dh-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dh-amazon);
  margin-bottom: 12px;
}

.dh-hero__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}

.dh-hero__title em {
  font-style: normal;
  color: var(--dh-amazon);
}

.dh-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  margin: 0;
}

.dh-hero__stats {
  display: flex;
  gap: 28px;
}

.dh-stat {
  text-align: center;
  padding: 16px 20px;
  background: rgba(255,255,255,.08);
  border-radius: var(--dh-radius);
  min-width: 80px;
}

.dh-stat__num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.dh-stat__label {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* =====================================================================
   FILTER TABS
   ===================================================================== */

.dh-filters {
  padding: 20px 20px 0;
  max-width: 1180px;
  margin-inline: auto;
}

.dh-filters__networks {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.dh-filters__networks::-webkit-scrollbar { display: none; }

.dh-network-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 40px;
  background: var(--dh-card);
  border: 2px solid var(--dh-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--dh-text);
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}

.dh-network-tab:hover {
  border-color: var(--dh-text);
  background: var(--dh-text);
  color: #fff;
}

.dh-network-tab--active {
  background: var(--dh-text);
  border-color: var(--dh-text);
  color: #fff;
}

.dh-network-tab[data-network="amazon"].dh-network-tab--active  { background: var(--dh-amazon);   border-color: var(--dh-amazon);   }
.dh-network-tab[data-network="flipkart"].dh-network-tab--active { background: var(--dh-flipkart); border-color: var(--dh-flipkart); }
.dh-network-tab[data-network="meesho"].dh-network-tab--active   { background: var(--dh-meesho);  border-color: var(--dh-meesho);   }

.dh-filters__categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.dh-filters__categories::-webkit-scrollbar { display: none; }

.dh-cat-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--dh-bg);
  border: 1px solid var(--dh-border);
  font-size: 13px;
  color: var(--dh-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s;
}

.dh-cat-chip:hover,
.dh-cat-chip--active {
  background: var(--dh-text);
  color: #fff;
  border-color: var(--dh-text);
}

/* =====================================================================
   NETWORK BADGES (shared)
   ===================================================================== */

.dh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}

.dh-badge--amazon   { background: var(--dh-amazon);   color: #000; }
.dh-badge--flipkart { background: var(--dh-flipkart); }
.dh-badge--meesho   { background: var(--dh-meesho);   }
.dh-badge--generic  { background: var(--dh-generic);  }
.dh-badge--sm       { font-size: 10px; padding: 3px 7px; }

/* =====================================================================
   SPOTLIGHT (Featured Deal)
   ===================================================================== */

.dh-spotlight {
  padding: 32px 20px;
}

.dh-spotlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--dh-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--dh-shadow-lg);
}

.dh-spotlight__image {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.dh-spotlight__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dh-spotlight__no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: var(--dh-bg);
  height: 100%;
  min-height: 320px;
}

.dh-spotlight__discount-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--dh-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.1;
}

.dh-spotlight__content {
  padding: 32px 32px 32px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.dh-spotlight__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dh-spotlight__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dh-accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dh-spotlight__expiry {
  font-size: 12px;
  color: var(--dh-muted);
}

.dh-spotlight__brand {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dh-muted);
  margin: 0;
}

.dh-spotlight__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.dh-spotlight__title a { color: var(--dh-text); text-decoration: none; }
.dh-spotlight__title a:hover { color: var(--dh-accent); }

.dh-spotlight__excerpt {
  font-size: 15px;
  color: var(--dh-muted);
  margin: 0;
  line-height: 1.6;
}

.dh-spotlight__pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* =====================================================================
   PRICE ATOMS (shared)
   ===================================================================== */

.dh-price--sale {
  font-size: 28px;
  font-weight: 800;
  color: var(--dh-text);
}

.dh-price--original {
  font-size: 16px;
  color: var(--dh-muted);
  text-decoration: line-through;
}

/* =====================================================================
   BUTTONS (shared)
   ===================================================================== */

.dh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.dh-btn--primary {
  background: var(--dh-text);
  color: #fff;
}
.dh-btn--primary:hover { background: #333; color: #fff; transform: translateY(-1px); }

.dh-btn--card {
  background: var(--dh-text);
  color: #fff;
  padding: 9px 16px;
  font-size: 13px;
}
.dh-btn--card:hover { background: var(--dh-accent); color: #fff; }

.dh-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--dh-border);
  color: var(--dh-muted);
  padding: 9px 16px;
  font-size: 13px;
}
.dh-btn--ghost:hover { border-color: var(--dh-text); color: var(--dh-text); }

.dh-affiliate-notice {
  font-size: 11px;
  color: var(--dh-muted);
  margin: 4px 0 0;
  font-style: italic;
}

/* =====================================================================
   DEAL GRID
   ===================================================================== */

.dh-grid-section {
  padding: 16px 20px 48px;
}

.dh-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.dh-section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.dh-section-sort select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--dh-border);
  font-size: 13px;
  color: var(--dh-text);
  background: var(--dh-card);
  cursor: pointer;
}

.dh-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* =====================================================================
   DEAL CARD
   ===================================================================== */

.dh-card {
  background: var(--dh-card);
  border-radius: var(--dh-radius);
  overflow: hidden;
  box-shadow: var(--dh-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.dh-card:hover {
  box-shadow: var(--dh-shadow-lg);
  transform: translateY(-3px);
}

.dh-card__image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dh-bg);
}

.dh-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.dh-card:hover .dh-card__image-wrap img {
  transform: scale(1.04);
}

.dh-card__no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 52px;
  background: var(--dh-bg);
}

.dh-card__discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--dh-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.2;
  text-transform: uppercase;
}

.dh-card__network {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 11px;
  padding: 3px 8px;
}

.dh-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.dh-card__brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dh-muted);
  margin: 0;
}

.dh-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dh-card__title a { color: var(--dh-text); text-decoration: none; }
.dh-card__title a:hover { color: var(--dh-accent); }

.dh-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dh-card__pricing .dh-price--sale  { font-size: 20px; }
.dh-card__pricing .dh-price--original { font-size: 13px; }

.dh-card__expiry {
  font-size: 11px;
  color: var(--dh-accent);
  font-weight: 600;
  margin: 0;
}

.dh-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

/* =====================================================================
   EMPTY STATE
   ===================================================================== */

.dh-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--dh-muted);
}

.dh-empty__icon { font-size: 56px; display: block; margin-bottom: 12px; }
.dh-empty h3 { font-size: 20px; color: var(--dh-text); margin: 0 0 8px; }
.dh-empty p { margin: 0 0 20px; }

/* =====================================================================
   PAGINATION
   ===================================================================== */

.dh-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.dh-pagination .page-numbers {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--dh-border);
  color: var(--dh-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
}

.dh-pagination .page-numbers.current,
.dh-pagination .page-numbers:hover {
  background: var(--dh-text);
  border-color: var(--dh-text);
  color: #fff;
}

/* =====================================================================
   DISCLOSURE BANNER
   ===================================================================== */

.dh-disclosure {
  padding: 16px 20px;
  margin-bottom: 24px;
}

.dh-disclosure p {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #6D4C00;
  margin: 0;
  line-height: 1.5;
}

/* =====================================================================
   SINGLE DEAL PAGE — .ds-*
   ===================================================================== */

.ds-wrap {
  padding: 24px 20px 48px;
}

.ds-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--dh-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.ds-breadcrumb a { color: var(--dh-muted); text-decoration: none; }
.ds-breadcrumb a:hover { color: var(--dh-text); }

.ds-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ds-image-col {
  position: sticky;
  top: 80px;
}

.ds-main-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--dh-bg);
}

.ds-main-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.ds-main-image--fallback {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-main-image--fallback img {
  width: 100%;
  max-width: 380px;
  object-fit: contain;
  padding: 24px;
}

.ds-discount-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--dh-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
}

.ds-social-proof {
  text-align: center;
  font-size: 13px;
  color: var(--dh-muted);
  margin: 12px 0 0;
}

.ds-deal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ds-category-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--dh-bg);
  border: 1px solid var(--dh-border);
  color: var(--dh-muted);
}

.ds-brand {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dh-muted);
  margin: 0;
}

.ds-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin: 8px 0 16px;
  color: var(--dh-text);
}

.ds-pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ds-pricing .dh-price--sale { font-size: 36px; }
.ds-pricing .dh-price--original { font-size: 18px; }

.ds-price--sale {
  font-size: 36px;
  font-weight: 900;
  color: var(--dh-accent);
  line-height: 1;
}

.ds-price--original {
  font-size: 18px;
  font-weight: 700;
  color: #B00020;
  text-decoration: line-through;
  text-decoration-color: #E8001D;
  text-decoration-thickness: 2px;
}

.ds-price--savings {
  font-size: 14px;
  font-weight: 700;
  color: #2E7D32;
  background: #E8F5E9;
  padding: 4px 10px;
  border-radius: 6px;
}

.ds-expiry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF3E0;
  border: 1px solid #FFB74D;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #E65100;
  font-weight: 600;
  margin-bottom: 16px;
}

.ds-countdown-display {
  font-size: 13px;
  font-weight: 700;
}

.ds-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: var(--dh-text);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s;
  margin-bottom: 8px;
}

.ds-cta-btn:hover { background: var(--dh-accent); color: #fff; transform: translateY(-2px); }

.ds-cta-note {
  text-align: center;
  font-size: 12px;
  color: var(--dh-muted);
  margin: 0 0 16px;
}

.ds-disclosure {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #6D4C00;
  margin-bottom: 20px;
  line-height: 1.5;
}

.ds-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ds-share span {
  font-size: 13px;
  color: var(--dh-muted);
}

.ds-share-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}

.ds-share-btn--wa { background: #25D366; color: #fff; }
.ds-share-btn--wa:hover { background: #128C7E; color: #fff; }
.ds-share-btn--tw { background: #1DA1F2; color: #fff; }
.ds-share-btn--tw:hover { background: #0d8ecf; color: #fff; }

.ds-description {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--dh-border);
}

.ds-description h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
}

.ds-description__content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--dh-text);
}

/* Related Deals */
.ds-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--dh-border);
}

.ds-related__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 20px;
}

.ds-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.ds-related-card {
  background: var(--dh-card);
  border-radius: var(--dh-radius);
  overflow: hidden;
  box-shadow: var(--dh-shadow);
  transition: box-shadow .2s, transform .2s;
}

.ds-related-card:hover {
  box-shadow: var(--dh-shadow-lg);
  transform: translateY(-2px);
}

.ds-related-card__img {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dh-bg);
}

.ds-related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.ds-related-card:hover .ds-related-card__img img { transform: scale(1.05); }

.ds-related-card__no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  width: 100%;
  height: 100%;
}

.ds-related-card__discount {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--dh-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 4px;
}

.ds-related-card__body {
  padding: 10px 12px 12px;
}

.ds-related-card__body h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ds-related-card__body h4 a { color: var(--dh-text); text-decoration: none; }
.ds-related-card__body h4 a:hover { color: var(--dh-accent); }

.ds-related-card__btn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  background: var(--dh-text);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}

.ds-related-card__btn:hover { background: var(--dh-accent); color: #fff; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 900px) {
  .dh-spotlight__inner { grid-template-columns: 1fr; }
  .dh-spotlight__content { padding: 24px; }
  .dh-spotlight__image { min-height: 240px; }

  .ds-inner { grid-template-columns: 1fr; }
  .ds-image-col { position: static; }
}

@media (max-width: 600px) {
  .dh-hero { padding: 36px 0 32px; }
  .dh-hero__inner { flex-direction: column; }
  .dh-hero__stats { justify-content: center; }
  .dh-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ds-pricing .dh-price--sale { font-size: 28px; }
}

@media (max-width: 420px) {
  .dh-cards-grid { grid-template-columns: 1fr; }
}
