/* ============================================================
   GoGiftings V26 UI Fixes
   Fix 1: Promises below image on flower product page
   Fix 2: All CTA buttons same pink-purple gradient
   Fix 3: Hide BNPL/extra on cake & personalised
   Fix 4: Events hero compact with image
   ============================================================ */

/* ── FIX 1: Promises row below the main product image (flowers) ── */
body.gg-category-flowers.gg-unified-product .product-page {
  grid-template-columns: 86px minmax(300px, 500px) minmax(270px, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: start !important;
}
body.gg-category-flowers.gg-unified-product .gallery-rail {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
}
body.gg-category-flowers.gg-unified-product .main-visual {
  grid-column: 2 !important;
  grid-row: 1 !important;
}
body.gg-category-flowers.gg-unified-product .flower-promises-row {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin-top: 14px !important;
}
body.gg-category-flowers.gg-unified-product .product-summary {
  grid-column: 3 !important;
  grid-row: 1 / 3 !important;
}
/* On flower page hide the promises inside product-summary (moved below image) */
body.gg-category-flowers.gg-unified-product .product-summary .premium-product-promises {
  display: none !important;
}

/* Promises below image — 2×2 grid style */
.flower-promises-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
.flower-promises-row span {
  background: #fff7fb !important;
  border: 1px solid rgba(246,39,128,.12) !important;
  border-radius: 14px !important;
  padding: 11px 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #3d3040 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
}

/* Responsive: collapse to single column below image on tablet */
@media (max-width: 900px) {
  body.gg-category-flowers.gg-unified-product .product-page {
    display: flex !important;
    flex-direction: column !important;
  }
  body.gg-category-flowers.gg-unified-product .gallery-rail {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    width: 100% !important;
  }
  body.gg-category-flowers.gg-unified-product .flower-promises-row {
    margin-top: 10px !important;
  }
}

/* ── FIX 2: All CTA buttons — unified pink-purple gradient ── */
.add-cart-premium-btn,
.buy-now-theme-btn,
.final-premium-cta,
.whatsapp-order-btn {
  background: linear-gradient(135deg, #f62780, #5a1a93) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 16px 40px rgba(246,39,128,.22) !important;
  border-radius: 18px !important;
  min-height: 56px !important;
}
.add-cart-premium-btn:hover,
.buy-now-theme-btn:hover,
.final-premium-cta:hover,
.whatsapp-order-btn:hover {
  background: linear-gradient(135deg, #e01f72, #4a1480) !important;
  transform: translateY(-2px) scale(1.012) !important;
  box-shadow: 0 22px 52px rgba(246,39,128,.30) !important;
}
/* Remove green from whatsapp override in styles.css */
.whatsapp-order-btn {
  background: linear-gradient(135deg, #f62780, #5a1a93) !important;
}
.whatsapp-order-btn .wa-glow { display: none !important; }
/* Ensure inner text stays white */
.whatsapp-order-btn strong,
.whatsapp-order-btn em,
.buy-now-theme-btn strong,
.buy-now-theme-btn em,
.cta-ico,
.wa-icon {
  color: #fff !important;
  opacity: 1 !important;
}
.cta-ico, .wa-icon {
  background: rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
}
.buy-now-theme-btn em,
.whatsapp-order-btn em {
  opacity: .84 !important;
  font-size: 11px !important;
  font-style: normal !important;
}

/* ── FIX 3: Hide BNPL and "About" box on cake & personalised ── */
body.gg-category-cakes .gg-product-bnpl,
body.gg-category-personalized .gg-product-bnpl,
body.gg-category-cakes .gg-product-info-box,
body.gg-category-personalized .gg-product-info-box {
  display: none !important;
}
/* Also hide the delivery/BNPL from static flower product.html when shown as cake/personalised */
body.gg-category-cakes [class*="bnpl"],
body.gg-category-personalized [class*="bnpl"] {
  display: none !important;
}

/* ── FIX 3b: Card "Add to Cart" button — always full width, vertically aligned ── */
.product-card .gg-card-actions {
  margin-top: auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1.3fr !important;
  gap: 7px !important;
  align-items: stretch !important;
}
.product-card .gg-card-actions .quick-add,
.product-card .gg-card-actions .gg-add-btn {
  height: 38px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f62780, #5a1a93) !important;
  color: #fff !important;
  border: 0 !important;
  cursor: pointer !important;
}
.product-card .gg-card-actions .gg-view-btn {
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: #fff0f6 !important;
  color: #f62780 !important;
  border: 1px solid #fad4e8 !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

/* ── FIX 4: Events hero — compact, centered, with background image ── */
.events-hero.gg-events-main-hero {
  padding: 60px 0 50px !important;
  position: relative !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, rgba(30,8,28,.72) 0%, rgba(90,26,147,.6) 60%, rgba(246,39,128,.45) 100%),
    url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1600&q=82')
    center/cover no-repeat !important;
}

/* Tighter container — max 900px for hero content */
.events-hero.gg-events-main-hero .events-container.events-hero-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 32px !important;
  align-items: center !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* Hero copy — white text over dark image */
.events-hero.gg-events-main-hero .events-hero-copy {
  color: #fff !important;
}
.events-hero.gg-events-main-hero .events-kicker {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  display: inline-block !important;
  margin-bottom: 16px !important;
}
.events-hero.gg-events-main-hero h1 {
  font-size: clamp(26px, 3.8vw, 46px) !important;
  line-height: 1.08 !important;
  color: #fff !important;
  letter-spacing: -.03em !important;
  margin: 0 0 14px !important;
}
.events-hero.gg-events-main-hero p {
  color: rgba(255,255,255,.84) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 0 22px !important;
}
.events-hero.gg-events-main-hero .events-cta-row {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.events-hero.gg-events-main-hero .gg-btn-primary {
  background: linear-gradient(135deg, #f62780, #5a1a93) !important;
  color: #fff !important;
  border: 0 !important;
  padding: 13px 24px !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  font-size: 14px !important;
}
.events-hero.gg-events-main-hero .gg-btn-soft {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  padding: 13px 22px !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

/* Hero media panel — overlapping image cards (compact) */
.events-hero.gg-events-main-hero .hero-media {
  position: relative !important;
  min-height: 300px !important;
  height: 300px !important;
}
.events-hero.gg-events-main-hero .floating-quote {
  background: rgba(255,255,255,.95) !important;
  color: #3a1a2e !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  position: absolute !important;
  top: -12px !important;
  left: 16px !important;
  z-index: 6 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
  letter-spacing: .03em !important;
}
.events-hero.gg-events-main-hero .hero-card {
  position: absolute !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 4px solid rgba(255,255,255,.9) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.28) !important;
}
.events-hero.gg-events-main-hero .hero-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.events-hero.gg-events-main-hero .hero-card.one {
  width: 75% !important;
  height: 190px !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 3 !important;
}
.events-hero.gg-events-main-hero .hero-card.two {
  width: 55% !important;
  height: 155px !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 4 !important;
}
.events-hero.gg-events-main-hero .hero-card.three {
  width: 36% !important;
  height: 110px !important;
  bottom: 12px !important;
  right: 0 !important;
  z-index: 5 !important;
}

/* Mobile events hero */
@media (max-width: 768px) {
  .events-hero.gg-events-main-hero .events-container.events-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .events-hero.gg-events-main-hero .hero-media {
    min-height: 220px !important;
    height: 220px !important;
  }
  .events-hero.gg-events-main-hero h1 {
    font-size: clamp(24px, 6vw, 36px) !important;
  }
}
