/* ============================================================
   SPECIALS — page-specific tweaks (loaded AFTER css/styles.css).
   Reuses the shared body.sheet shell + .mini-card look; adds a
   3x3 deal grid with a big "Deal of the Week" hero tile and flare
   (ribbon, orange glow, shine, save badges, price contrast).
   Single-screen target: 1366x768 → 1440x900, no desktop scroll.
   ============================================================ */

/* "Coming soon" state (shown until real deals are added) */
.deal-grid.is-soon { display: block; }
.coming-soon {
  max-width: 520px; margin: auto; padding: clamp(1.6rem, 4vh, 2.6rem); text-align: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px;
}
.coming-soon-badge { font-size: 2.6rem; margin-bottom: 0.4rem; }
.coming-soon h2 { color: #fff; margin: 0 0 0.5rem; }
.coming-soon p { color: rgba(255, 255, 255, 0.72); margin: 0 0 1.4rem; }

/* Left column extras */
.sheet-left .btn-primary { align-self: flex-start; }
.deals-note {
  margin: 0.85rem 0 0;
  font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: 0.8px; font-size: 0.68rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- The deal grid: 3 cols; hero deal is a 2x2 tile ---- */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.2vh, 1rem);
  width: 100%;
  align-content: center;
}
/* auto-placement then yields:  F F A / F F B / C D E  */
.deal-grid .deal-card.is-featured { grid-column: 1 / 3; grid-row: 1 / 3; }

/* ---- Deal card = mini-card + clickable whole-card + flare ---- */
.deal-card { position: relative; }

/* stretched link covers the whole tile (whole card is clickable) */
.deal-link {
  position: absolute; inset: 0; z-index: 4;
  border-radius: inherit;
}

/* media: full-width top image (fuller than the default centered slab).
   Height is viewport-driven and kept small so 3 rows clear 1366x768. */
.deal-card .mini-media {
  width: 100%;
  height: clamp(72px, 10.5vh, 140px);
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

/* bolder, gradient save badge */
.deal-card .mini-badge {
  font-size: 0.68rem; padding: 4px 9px; letter-spacing: 0.6px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  box-shadow: 0 6px 14px rgba(255, 122, 31, 0.4);
}

/* body: tag pill (regular) + title + strong price + meta + cta.
   Kept tight so the compact tiles fit three to a column. */
.deal-card .mini-body {
  padding: 0.4rem 0.6rem 0.5rem;
  gap: 0.16rem;
}
.deal-tag {
  align-self: flex-start;
  font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: 0.8px; font-size: 0.58rem; font-weight: 600; color: #9fc8ff;
  background: rgba(23, 134, 255, 0.2); border: 1px solid rgba(23, 134, 255, 0.32);
  padding: 2px 8px; border-radius: 999px;
}
.deal-card .mini-title { font-size: 0.8rem; }
.deal-card .mini-price { font-size: 1.15rem; display: flex; align-items: baseline; gap: 7px; }
.deal-card .mini-price .price-was { margin-left: 0; }

/* slim "grab the deal" affordance, pinned to the bottom of the body */
.deal-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: 0.7px; font-weight: 600; font-size: 0.62rem; color: var(--orange);
}
.deal-cta span { transition: transform 0.2s ease; }
.deal-card:hover .deal-cta { color: var(--orange-2); }
.deal-card:hover .deal-cta span { transform: translateX(4px); }

/* ============================================================
   FEATURED — "Deal of the Week" hero tile (big, glowing, shiny)
   ============================================================ */
.deal-card.is-featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange) inset, 0 0 28px rgba(255, 122, 31, 0.4), 0 18px 44px rgba(0, 0, 0, 0.45);
  animation: dealPulse 2.8s ease-in-out infinite;
}
/* let the media grow to fill the tall 2-row tile */
.deal-card.is-featured .mini-media {
  height: auto; flex: 1 1 auto; min-height: 130px;
}
.deal-card.is-featured .mini-body { padding: 0.7rem 0.85rem 0.8rem; gap: 0.3rem; }
.deal-card.is-featured .mini-title { font-size: 1.15rem; }
.deal-card.is-featured .mini-price { font-size: 1.9rem; }
.deal-card.is-featured .mini-price .price-was { font-size: 0.95rem; }
.deal-card.is-featured .mini-meta { font-size: 0.8rem; }
.deal-card.is-featured .deal-cta { font-size: 0.74rem; color: var(--orange-2); }
.deal-card.is-featured .mini-badge { font-size: 0.82rem; top: 10px; left: 10px; padding: 5px 11px; }

/* corner ribbon */
.deal-ribbon {
  position: absolute; top: 15px; right: -36px; z-index: 3;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff; font-family: "Oswald", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; font-size: 0.58rem;
  padding: 5px 44px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* sweeping shine across the featured media */
.deal-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.38) 50%, transparent 60%);
  background-size: 250% 250%;
  animation: dealShine 3.8s ease-in-out infinite;
}

@keyframes dealPulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--orange) inset, 0 0 22px rgba(255, 122, 31, 0.35), 0 18px 44px rgba(0, 0, 0, 0.45); }
  50%      { box-shadow: 0 0 0 1px var(--orange) inset, 0 0 42px rgba(255, 122, 31, 0.65), 0 18px 44px rgba(0, 0, 0, 0.45); }
}
@keyframes dealShine {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 100%; }
}

/* ============================================================
   Mobile: stack the split (shell handles the column collapse);
   reflow the deal grid so the hero goes full-width, and give the
   media real height for touch screens.
   ============================================================ */
@media (max-width: 900px) {
  .deal-grid { grid-template-columns: repeat(2, 1fr); align-content: start; }
  .deal-grid .deal-card.is-featured { grid-column: 1 / 3; grid-row: auto; }
  .deal-card .mini-media { height: clamp(150px, 34vw, 210px); }
  .deal-card.is-featured .mini-media { height: clamp(190px, 46vw, 280px); flex: none; }
}
@media (max-width: 480px) {
  .deal-grid { grid-template-columns: 1fr; }
  .deal-grid .deal-card.is-featured { grid-column: 1 / 2; }
}

/* Respect reduced-motion: kill the pulse + shine, keep a static glow */
@media (prefers-reduced-motion: reduce) {
  .deal-card.is-featured { animation: none; }
  .deal-shine { animation: none; display: none; }
}
