/* ============================================
   WEED TO GO — DEALS PAGE STYLES
   ============================================ */

/* Nav deals link */
.nav-deals { color: var(--gold) !important; font-weight: 700; }

/* Deals section header has no heading beneath the "On Sale Now" pill, so the
   base .section-header 3rem gap (sized for a heading below it) is too much here.
   The pill itself also carries its own 1rem margin-bottom (.section-label,
   display:inline-block so it doesn't collapse with the parent) — zero both out
   for a tight gap instead of stacking them. */
#deals-section .section-header { margin-bottom: 0.5rem; }
#deals-section .section-header .section-label { margin-bottom: 0; }

/* ── Deal Hero ─────────────────────────────── */
.deal-hero {
  position: relative;
  padding: 1.5rem 0 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f2faf2 0%, #ffffff 55%, #fafff8 100%);
  text-align: center;
}
.deal-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(74,222,128,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(245,158,11,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.deal-hero__label {
  display: inline-block;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 16px; border-radius: 100px;
  margin-bottom: 1rem;
  animation: pulse-gold 2s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
}
.deal-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; color: var(--text-primary);
  margin-bottom: 0.6rem; line-height: 1.15;
}
.deal-hero__sub {
  color: var(--text-secondary);
  font-size: 1.05rem; max-width: 520px; margin: 0 auto;
}

/* Countdown timer */
.deal-countdown {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
}
.countdown-block {
  display: flex; flex-direction: column; align-items: center;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  min-width: 72px;
  box-shadow: var(--shadow-card);
}
.countdown-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 800;
  color: var(--gold-dark); line-height: 1;
}
.countdown-lbl {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.countdown-sep {
  font-size: 2rem; font-weight: 700;
  color: var(--gold-dark);
  padding-bottom: 0.6rem;
}

/* Inactive notice */
.deal-inactive-notice { padding: 5rem 0; text-align: center; }
.deal-inactive-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem; display: inline-block;
  max-width: 440px;
}
.deal-inactive-icon { font-size: 3rem; margin-bottom: 1rem; }
.deal-inactive-box h2 { font-family: 'Space Grotesk', sans-serif; margin-bottom: 0.5rem; }
.deal-inactive-box p  { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Deal Sections ─────────────────────────── */
.deal-section { padding: 4rem 0; }
#deals-section { padding-top: 0; }
.deal-section--alt { background: var(--bg-secondary); }

/* ── Featured Deal Card ────────────────────── */
.featured-deal-wrap {
  display: flex; justify-content: center;
}
.featured-deal-card {
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; gap: 0;
  max-width: 780px; width: 100%;
  box-shadow: 0 8px 40px rgba(245,158,11,0.15), var(--shadow-hover);
  position: relative;
}
.featured-deal-card__img {
  width: 300px; flex-shrink: 0;
  position: relative; overflow: hidden;
  background: var(--bg-secondary);
}
.featured-deal-card__img img {
  width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box;
  display: block;
}
.featured-deal-card__discount-badge {
  position: absolute; top: 14px; right: 14px;
  background: #ef4444; color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 900;
  padding: 8px 14px; border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(239,68,68,0.4);
}
.featured-deal-card__body {
  padding: 2rem; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.featured-deal-card__cat {
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--green-600); margin-bottom: 0.4rem;
}
.featured-deal-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem; font-weight: 800;
  color: var(--text-primary); margin-bottom: 0.35rem;
  line-height: 1.2;
}
.featured-deal-card__thc {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem;
}
.featured-deal-card__desc {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 1.25rem;
}
.featured-deal-card__price-row {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.featured-deal-card__sale-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 900;
  color: var(--green-600);
}
.featured-deal-card__original-price {
  font-size: 1.1rem; color: var(--text-muted);
  text-decoration: line-through;
}
.featured-deal-card__saving {
  font-size: 0.82rem; font-weight: 700;
  color: var(--gold); background: rgba(245,158,11,0.1);
  padding: 3px 10px; border-radius: 100px;
}
.featured-deal-card__variants {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem;
}
.featured-deal-card__variants .variant-btn {
  border-color: var(--border-default);
  background: transparent;
}
.featured-deal-card__variants .variant-btn__label,
.featured-deal-card__variants .variant-btn__price { color: var(--text-secondary); }
.featured-deal-card__variants .variant-btn:hover { border-color: var(--green-600); }
.featured-deal-card__variants .variant-btn.active {
  background: var(--green-600); border-color: var(--green-600);
}
.featured-deal-card__variants .variant-btn.active .variant-btn__label,
.featured-deal-card__variants .variant-btn.active .variant-btn__price { color: #fff; }
.featured-deal-card__add {
  width: 100%; padding: 0.85rem;
  font-size: 1rem; font-weight: 700;
}

/* Grade badge in featured card */
.featured-deal-card__grade { margin-bottom: 0.5rem; }

/* ── Homepage deal teaser ──────────────────── */
.deal-teaser {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin: 0 0 2rem;
  position: relative; overflow: hidden;
}
.deal-teaser::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(245,158,11,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.deal-teaser__text { position: relative; z-index: 1; }
.deal-teaser__eyebrow {
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 0.4rem;
}
.deal-teaser__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  line-height: 1.2; margin-bottom: 0.35rem;
}
.deal-teaser__sub { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.deal-teaser__cta { position: relative; z-index: 1; flex-shrink: 0; }
.btn-gold {
  background: var(--gold); color: #1a1a1a;
  font-weight: 800;
}
.btn-gold:hover { background: var(--gold-dark); color: #1a1a1a; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 700px) {
  .deal-hero { padding: 1.25rem 0 1rem; }
  .countdown-block { min-width: 58px; padding: 0.6rem 0.8rem; }
  .countdown-val { font-size: 1.6rem; }

  .featured-deal-card { flex-direction: column; }
  .featured-deal-card__img { width: 100%; height: 220px; }
  .featured-deal-card__body { padding: 1.25rem; }
  .featured-deal-card__name { font-size: 1.3rem; }
  .featured-deal-card__sale-price { font-size: 1.55rem; }

  .deal-teaser { flex-direction: column; text-align: center; }
}

/* ── Deals filter + sort controls ──────────────────────────── */
.deals-controls {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  max-width: 1200px; margin: 0 auto 2rem; padding: 0 0.25rem;
}
.deals-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.deals-filter-btn {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-default, #d1d5db);
  color: var(--text-secondary, #4b5563);
  font-size: 0.85rem; font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 100px;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.deals-filter-btn:hover { border-color: var(--green-600, #16a34a); color: var(--green-600, #16a34a); }
.deals-filter-btn.active {
  background: var(--green-600, #16a34a); border-color: var(--green-600, #16a34a); color: #fff;
}
.deals-sort-wrap { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.deals-sort-wrap label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted, #6b7280); }
.deals-sort {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-default, #d1d5db);
  color: var(--text-primary, #111827);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.5rem 2rem 0.5rem 0.9rem; border-radius: 8px;
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}
@media (max-width: 700px) {
  .deals-controls { justify-content: flex-start; }
  .deals-filters {
    width: 100%; overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch; padding-bottom: 4px;
  }
  .deals-sort-wrap { width: 100%; }
  .deals-sort { flex: 1; }
}

/* Per-deal countdown badge on product cards */
.deal-card-cd {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(220, 38, 38, 0.1); color: #dc2626;
  font-weight: 700; font-size: 0.8rem;
  padding: 4px 10px; border-radius: 100px;
  margin: 2px 0 6px;
  font-variant-numeric: tabular-nums;
}
