/* ============================================================
   THE BATH & BODY SPOT — Promotional Banner System
   6 distinct banner types (all horizontal image/styled)
   ============================================================ */

/* ═══════════════════════════════════════════════════
   BANNER 1: Hero Slider — handled in hero.css
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   BANNER 2: Announcement Bar — handled in nav.css
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   BANNER 3: Full-Width Horizontal Promo Image Banner
   (Placed between homepage sections, image uploaded by admin)
   ═══════════════════════════════════════════════════ */
.promo-image-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--blush-light);
}

.promo-image-banner--tall   { height: clamp(160px, 28vw, 320px); }
.promo-image-banner--medium { height: clamp(120px, 20vw, 240px); }
.promo-image-banner--short  { height: clamp(90px, 14vw, 180px); }

.promo-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease-silk);
  display: block;
}

.promo-image-banner:hover .promo-banner-img {
  transform: scale(1.025);
}

/* Clickable banner link wrapper */
.promo-image-banner a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Admin placeholder when no image is uploaded */
.promo-banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--grad-blush);
  gap: var(--sp-3);
}

.promo-banner-placeholder-icon {
  font-size: 32px;
  opacity: 0.5;
}

.promo-banner-placeholder-text {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  color: var(--text-light);
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════
   BANNER 4: Double / Side-by-Side Split Banner
   ═══════════════════════════════════════════════════ */
.split-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  padding: 0 var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}

.split-banner-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(180px, 25vw, 300px);
  background: var(--blush-light);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--ease-med);
}

.split-banner-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.split-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-silk);
}

.split-banner-item:hover img {
  transform: scale(1.06);
}

/* ═══════════════════════════════════════════════════
   BANNER 5: Triple Grid Banner
   ═══════════════════════════════════════════════════ */
.triple-banner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding: 0 var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}

.triple-banner-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--blush-light);
  cursor: pointer;
  transition: all var(--ease-med);
}

.triple-banner-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.triple-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-silk);
}

.triple-banner-item:hover img {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════
   BANNER 6: Hero + Sidebar (Big+Small) Layout
   ═══════════════════════════════════════════════════ */
.asymmetric-banner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-4);
  height: clamp(280px, 38vw, 480px);
  padding: 0 var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}

.asymmetric-banner__main {
  grid-row: 1 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blush-light);
  position: relative;
  cursor: pointer;
  transition: all var(--ease-med);
}

.asymmetric-banner__main:hover {
  box-shadow: var(--shadow-xl);
}

.asymmetric-banner__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-silk);
}

.asymmetric-banner__main:hover img {
  transform: scale(1.04);
}

.asymmetric-banner__sub {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blush-light);
  position: relative;
  cursor: pointer;
  transition: all var(--ease-med);
}

.asymmetric-banner__sub:hover {
  box-shadow: var(--shadow-md);
}

.asymmetric-banner__sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-silk);
}

.asymmetric-banner__sub:hover img {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════
   BANNER 7: Popup Offer (Lightbox)
   ═══════════════════════════════════════════════════ */
#popup-offer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-med);
}

#popup-offer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.popup-offer-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 800px;
  width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-xl);
  animation: scaleUp 0.45s var(--ease-bounce) both;
  position: relative;
}

.popup-offer-img {
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  background: var(--blush-light);
}

.popup-offer-content {
  padding: var(--sp-10) var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.popup-offer-eyebrow {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: var(--sp-3);
}

.popup-offer-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  font-style: italic;
  color: var(--pink-vibrant);
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}

.popup-offer-subtitle {
  font-size: var(--text-sm);
  color: var(--text-mid);
  margin-bottom: var(--sp-6);
  line-height: var(--leading-relaxed);
}

.popup-offer-input-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.popup-offer-skip {
  margin-top: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--text-placeholder);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease-fast);
}

.popup-offer-skip:hover { color: var(--text-light); }

.popup-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--ease-fast);
  font-size: 18px;
  z-index: 1;
}

.popup-close:hover {
  background: var(--blush-mid);
  color: var(--text-dark);
}

/* ═══════════════════════════════════════════════════
   BANNER 8: Category Promo Card (Inside Shop, Inline)
   ═══════════════════════════════════════════════════ */
.shop-inline-banner {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(100px, 16vw, 180px);
  position: relative;
  cursor: pointer;
  background: var(--blush-light);
  transition: all var(--ease-med);
}

.shop-inline-banner:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}

.shop-inline-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-silk);
}

.shop-inline-banner:hover img {
  transform: scale(1.04);
}

/* ═══════════════════════════════════════════════════
   BANNER 9: Cart Upsell Strip (Inside Cart Drawer)
   ═══════════════════════════════════════════════════ */
.cart-upsell-banner {
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--cream) 100%);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
}

.cart-upsell-banner.achieved {
  background: linear-gradient(135deg, #D4EDDA 0%, #E8F5E9 100%);
  border-color: rgba(76, 175, 135, 0.3);
}

.cart-upsell-icon { font-size: 22px; flex-shrink: 0; }

.cart-upsell-text {
  flex: 1;
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dark);
}

.cart-upsell-text span {
  color: var(--pink-vibrant);
  font-weight: 700;
}

/* Delivery progress bar */
.delivery-progress-track {
  width: 100%;
  height: 4px;
  background: var(--blush-mid);
  border-radius: var(--radius-full);
  margin-top: var(--sp-2);
  overflow: hidden;
}

.delivery-progress-fill {
  height: 100%;
  background: var(--grad-pink);
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease-silk);
}

/* ═══════════════════════════════════════════════════
   BANNER SECTION WRAPPERS
   ═══════════════════════════════════════════════════ */
.banner-section {
  padding: var(--sp-4) 0;
}

.banner-section--spacious {
  padding: var(--sp-10) 0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .split-banner {
    grid-template-columns: 1fr;
  }

  .triple-banner {
    grid-template-columns: 1fr 1fr;
  }

  .asymmetric-banner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .asymmetric-banner__main {
    grid-row: auto;
    height: clamp(200px, 40vw, 320px);
  }

  .popup-offer-card {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .popup-offer-img {
    min-height: 180px;
    max-height: 200px;
  }
}

@media (max-width: 600px) {
  .triple-banner {
    grid-template-columns: 1fr;
  }

  .shop-inline-banner {
    height: clamp(80px, 30vw, 140px);
  }
}
