/* ==========================================================================
   COSTA Marketing Visibility  Premium UI
   Design language: clean, spacious, monochrome + restrained gold accent.
   Reference: Apple Store / DJI / Peak Design / SmallRig product pages.
   ========================================================================== */

:root {
  --promo-ink: #0b0b0c;
  --promo-ink-soft: #1c1d20;
  --promo-paper: #ffffff;
  --promo-cream: #fafaf8;
  --promo-line: rgba(15, 15, 17, 0.09);
  --promo-line-soft: rgba(15, 15, 17, 0.06);
  --promo-muted: #6b6d72;
  --promo-muted-soft: #97999e;
  --promo-gold: #b8903f;
  --promo-gold-soft: #e9d9b8;
  --promo-radius-lg: 20px;
  --promo-radius-md: 14px;
  --promo-radius-sm: 10px;
  /* Layered, low-opacity shadow stacks  softer & deeper than a single box-shadow. */
  --promo-shadow-sm:
    0 1px 2px rgba(15, 15, 17, 0.04),
    0 4px 12px rgba(15, 15, 17, 0.05);
  --promo-shadow-md:
    0 1px 2px rgba(15, 15, 17, 0.04),
    0 8px 24px rgba(15, 15, 17, 0.06),
    0 24px 48px rgba(15, 15, 17, 0.05);
  --promo-shadow-lg:
    0 2px 4px rgba(15, 15, 17, 0.06),
    0 16px 40px rgba(15, 15, 17, 0.1),
    0 40px 80px rgba(15, 15, 17, 0.12);
  --promo-shadow-dark-md:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 12px 28px rgba(0, 0, 0, 0.32),
    0 32px 64px rgba(184, 144, 63, 0.08);
  --promo-shadow-dark-lg:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 48px 96px rgba(184, 144, 63, 0.14);
  --promo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --promo-font: "Plus Jakarta Sans", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.promo-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.promo-icon--sm { width: 13px; height: 13px; }
.promo-icon--lg { width: 30px; height: 30px; }

/* Light, content-safe entrance animation. Pure CSS (no JS gate) so the
   section is never left invisible if a script fails to load. */
[data-reveal] {
  animation: promoFadeUp 0.7s var(--promo-ease) both;
}
@keyframes promoFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { animation: none; opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */
.promo-announce {
  background: var(--promo-ink);
  color: #f5f4f1;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-align: center;
  padding: 8px 14px;
}
.promo-announce a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo-announce a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(-45deg);
  flex-shrink: 0;
  opacity: 0.85;
}
.promo-announce a:hover { opacity: 0.82; }
body.has-promo-announce .header-area.absolute-header { top: 30px; }

/* --------------------------------------------------------------------------
   Homepage  Promo Minggu Ini
   -------------------------------------------------------------------------- */
.promo-week {
  padding: 76px 0 64px;
  background: linear-gradient(180deg, var(--promo-cream) 0%, #ffffff 60%);
}
.promo-week__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}
.promo-week__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--promo-gold);
  margin-bottom: 10px;
}
.promo-week__title {
  font-family: var(--promo-font);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--promo-ink);
  margin: 0 0 10px;
}
.promo-week__lead {
  margin: 0 auto;
  max-width: 440px;
  color: var(--promo-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.promo-week__stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.promo-week__vouchers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Empty state */
.promo-week__empty {
  text-align: center;
  background: var(--promo-paper);
  border: 1px solid var(--promo-line);
  border-radius: var(--promo-radius-lg);
  padding: 56px 28px;
  box-shadow: var(--promo-shadow-sm);
}
.promo-week__empty .promo-icon--lg { color: var(--promo-gold); margin-bottom: 14px; }
.promo-week__empty h3 {
  font-family: var(--promo-font);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--promo-ink);
}
.promo-week__empty p {
  margin: 0 0 22px;
  color: var(--promo-muted);
}
.promo-week__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--promo-ink);
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.25s var(--promo-ease), background 0.25s var(--promo-ease);
}
.promo-week__cta:hover { background: var(--promo-ink-soft); transform: translateY(-1px); }
.promo-week__cta .promo-icon { transition: transform 0.25s var(--promo-ease); }
.promo-week__cta:hover .promo-icon { transform: translateX(2px); }

/* --------------------------------------------------------------------------
   Flash Sale hero (dark, luxury treatment)
   -------------------------------------------------------------------------- */
.flash-hero {
  position: relative;
  border-radius: var(--promo-radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, #2b271c 0%, var(--promo-ink) 55%),
    linear-gradient(165deg, #141310 0%, #050505 100%);
  color: #f4f2ec;
  overflow: hidden;
  box-shadow: var(--promo-shadow-dark-md);
  border: 1px solid rgba(233, 217, 184, 0.08);
  transition: box-shadow 0.4s var(--promo-ease), transform 0.4s var(--promo-ease);
}
.flash-hero:hover {
  box-shadow: var(--promo-shadow-dark-lg);
  transform: translateY(-3px) scale(1.005);
}
.flash-hero__glow {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 60%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(184, 144, 63, 0.35), transparent 72%);
  pointer-events: none;
}
.flash-hero__pattern {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  width: 46%;
  max-width: 300px;
  height: auto;
  opacity: 0.16;
  color: var(--promo-gold-soft);
  pointer-events: none;
  z-index: 0;
}
.flash-hero--grid .flash-hero__pattern { max-width: 220px; opacity: 0.13; }
.flash-hero__inner {
  position: relative;
  z-index: 1;
  padding: 32px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.flash-hero--hero .flash-hero__inner { padding: 44px 44px 40px; gap: 22px; }
.flash-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.flash-hero__divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(233, 217, 184, 0.24), rgba(233, 217, 184, 0.02));
  border: 0;
  margin: 2px 0;
}
.flash-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--promo-gold-soft);
  background: rgba(184, 144, 63, 0.14);
  border: 1px solid rgba(184, 144, 63, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
}
.flash-hero__name {
  font-family: var(--promo-font);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 24px rgba(184, 144, 63, 0.18);
}
.flash-hero__summary {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  letter-spacing: 0.002em;
  color: rgba(244, 242, 236, 0.66);
  max-width: 460px;
}
.flash-hero__countdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "DM Mono", "SF Mono", ui-monospace, monospace;
}
.flash-hero__countdown::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 16px;
  background: radial-gradient(closest-side, rgba(184, 144, 63, 0.16), transparent 75%);
  animation: promoCountdownPulse 2.6s ease-in-out infinite;
  z-index: -1;
}
@keyframes promoCountdownPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}
.flash-hero__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
  padding: 7px 4px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(233, 217, 184, 0.16);
  border-radius: 10px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.flash-hero__countdown:hover .flash-hero__unit {
  border-color: rgba(233, 217, 184, 0.3);
  background: rgba(255, 255, 255, 0.08);
}
.flash-hero__unit span {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.1;
}
.flash-hero__unit small {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 242, 236, 0.5);
  margin-top: 2px;
}
.flash-hero__colon { color: rgba(244, 242, 236, 0.35); font-weight: 600; }
.flash-hero.is-ended .flash-hero__countdown { opacity: 0.4; }
.flash-hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.flash-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(244, 242, 236, 0.55);
}
.flash-hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e2c07f, var(--promo-gold) 60%, #a67c34);
  color: var(--promo-ink) !important;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  overflow: hidden;
  transition: transform 0.3s var(--promo-ease), box-shadow 0.3s var(--promo-ease);
  box-shadow: 0 10px 26px rgba(184, 144, 63, 0.32);
}
.flash-hero__cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.flash-hero__cta:hover::before { left: 130%; }
.flash-hero__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(184, 144, 63, 0.42); }
.flash-hero__cta .promo-icon { position: relative; transition: transform 0.25s var(--promo-ease); }
.flash-hero__cta:hover .promo-icon { transform: translateX(3px); }

/* Flash hero used inside the promo hub grid (spans full row, slightly denser) */
.flash-hero--grid { grid-column: 1 / -1; }
.flash-hero--grid .flash-hero__inner { padding: 28px 30px 26px; gap: 16px; }

/* --------------------------------------------------------------------------
   Ticket card (voucher / cashback / bonus)
   -------------------------------------------------------------------------- */
.ticket-card {
  position: relative;
  background: var(--promo-paper);
  border: 1px solid var(--promo-line);
  border-radius: var(--promo-radius-md);
  box-shadow: var(--promo-shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: box-shadow 0.35s var(--promo-ease), transform 0.35s var(--promo-ease), border-color 0.35s var(--promo-ease);
}
.ticket-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(184, 144, 63, 0);
  transition: border-color 0.35s var(--promo-ease);
  pointer-events: none;
}
.ticket-card:hover {
  box-shadow: var(--promo-shadow-md);
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(15, 15, 17, 0.12);
}
.ticket-card:hover::after { border-color: rgba(184, 144, 63, 0.22); }
.ticket-card__body {
  padding: 22px 22px 14px;
  flex: 1;
}
.ticket-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--promo-ink);
  background: var(--promo-cream);
  border: 1px solid var(--promo-line);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 14px;
}
.ticket-card--cashback .ticket-card__badge { color: #0f6b4f; background: #eef8f3; border-color: #d3ecdf; }
.ticket-card--bonus .ticket-card__badge { color: #8a5a17; background: #fbf1e1; border-color: #f0deb9; }
.ticket-card__name {
  font-family: var(--promo-font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--promo-ink);
}
.ticket-card__summary {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--promo-muted);
  line-height: 1.55;
}
.ticket-card__terms {
  margin: 0;
  font-size: 0.8rem;
  color: var(--promo-muted-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ticket-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 22px 20px;
  border-top: 1px dashed var(--promo-line);
  position: relative;
}
.ticket-card__foot::before,
.ticket-card__foot::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--promo-cream);
  border: 1px solid var(--promo-line);
}
.ticket-card__foot::before { left: -7px; }
.ticket-card__foot::after { right: -7px; }
.ticket-card__expiry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--promo-muted-soft);
  white-space: nowrap;
}
.ticket-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--promo-ink);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  margin-left: auto;
  transition: transform 0.25s var(--promo-ease), background 0.25s var(--promo-ease), box-shadow 0.25s var(--promo-ease);
}
.ticket-card__cta:hover {
  background: var(--promo-ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 15, 17, 0.22);
}
.ticket-card__cta .promo-icon { transition: transform 0.25s var(--promo-ease); }
.ticket-card__cta:hover .promo-icon { transform: translateX(2px); }

/* Compact variant used on homepage (3-up) */
.ticket-card--compact .ticket-card__body { padding: 18px 18px 10px; }
.ticket-card--compact .ticket-card__name { font-size: 0.98rem; }
.ticket-card--compact .ticket-card__foot { padding: 12px 18px 16px; }

/* --------------------------------------------------------------------------
   Promo hub page
   -------------------------------------------------------------------------- */
.promo-hub { padding: 52px 0 88px; }
.promo-hub__head { max-width: 640px; margin-bottom: 36px; }
.promo-hub__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--promo-gold);
  margin-bottom: 10px;
}
.promo-hub__title {
  font-family: var(--promo-font);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--promo-ink);
}
.promo-hub__lead {
  color: var(--promo-muted);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 520px;
}
.promo-hub__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--promo-line);
  padding-bottom: 16px;
}
.promo-hub__tab {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--promo-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: color 0.3s var(--promo-ease), background 0.3s var(--promo-ease), box-shadow 0.3s var(--promo-ease), transform 0.3s var(--promo-ease);
}
.promo-hub__tab::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 1.5px;
  background: var(--promo-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--promo-ease);
}
.promo-hub__tab:hover { color: var(--promo-ink); background: var(--promo-cream); }
.promo-hub__tab:hover::after { transform: scaleX(1); }
.promo-hub__tab.is-active {
  color: #fff;
  background: var(--promo-ink);
  box-shadow: 0 6px 18px rgba(15, 15, 17, 0.22);
  transform: translateY(-1px);
}
.promo-hub__tab.is-active::after { transform: scaleX(0); }
.promo-hub__section { margin-bottom: 44px; }
.promo-hub__section-title {
  font-family: var(--promo-font);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--promo-ink);
}
.promo-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.promo-hub__empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--promo-cream);
  border-radius: var(--promo-radius-lg);
  border: 1px solid var(--promo-line);
}
.promo-hub__empty .promo-icon--lg { color: var(--promo-gold); margin-bottom: 12px; }
.promo-hub__empty-text { color: var(--promo-muted); margin: 0 0 20px; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Product listing badges
   -------------------------------------------------------------------------- */
.pcard__media { position: relative; }
.pcard__promo-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 62%;
  pointer-events: none;
}
.pcard__promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px) saturate(1.4);
  color: var(--promo-ink);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 2px rgba(15, 15, 17, 0.06), 0 4px 12px rgba(15, 15, 17, 0.08);
  line-height: 1.2;
  white-space: nowrap;
}
.pcard__promo-badge .promo-icon { width: 10px; height: 10px; opacity: 0.85; }

/* Priority 1  Flash Sale: highest visual weight, dark glass + gold */
.pcard__promo-badge--flash {
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(8px) saturate(1.6);
  color: var(--promo-gold-soft);
  border-color: rgba(233, 217, 184, 0.28);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(184, 144, 63, 0.18);
}
.pcard__promo-badge--flash .promo-icon { opacity: 1; color: var(--promo-gold-soft); }

/* Priority 2  Voucher: secondary, lighter glass */
.pcard__promo-badge--voucher {
  background: rgba(255, 255, 255, 0.62);
  color: #33343a;
  font-weight: 700;
}

.pcard__promo-badge--cashback {
  background: rgba(238, 248, 243, 0.82);
  color: #0f6b4f;
}

/* --------------------------------------------------------------------------
   PDP promo trigger + drawer
   -------------------------------------------------------------------------- */
.promo-berlaku {
  margin-top: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--promo-line);
  border-radius: var(--promo-radius-md);
  background: var(--promo-cream);
  padding: 17px 19px;
  cursor: pointer;
  transition: background 0.25s var(--promo-ease), border-color 0.25s var(--promo-ease), transform 0.25s var(--promo-ease), box-shadow 0.25s var(--promo-ease);
  text-align: left;
  width: 100%;
  box-shadow: var(--promo-shadow-sm);
}
.promo-berlaku:hover, .promo-berlaku:focus-visible {
  background: #f6f0e2;
  border-color: rgba(184, 144, 63, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--promo-shadow-md);
  outline: none;
}
.promo-berlaku__icons { display: flex; }
.promo-berlaku__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--promo-cream);
  color: var(--promo-ink);
  margin-left: -12px;
  box-shadow: 0 2px 6px rgba(15, 15, 17, 0.08);
  transition: transform 0.35s var(--promo-ease);
  animation: promoIconPop 0.5s var(--promo-ease) both;
}
.promo-berlaku__icon:nth-child(1) { animation-delay: 0.02s; }
.promo-berlaku__icon:nth-child(2) { animation-delay: 0.1s; }
.promo-berlaku__icon:nth-child(3) { animation-delay: 0.18s; }
@keyframes promoIconPop {
  from { opacity: 0; transform: scale(0.5) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.promo-berlaku:hover .promo-berlaku__icon { transform: translateY(-2px); }
.promo-berlaku__icon:first-child { margin-left: 0; }
.promo-berlaku__icon--flash { background: var(--promo-ink); color: var(--promo-gold-soft); }
.promo-berlaku__icon--cashback { background: #eef8f3; color: #0f6b4f; }
.promo-berlaku__icon--bonus { background: #fbf1e1; color: #8a5a17; }
.promo-berlaku__text { flex: 1; min-width: 0; }
.promo-berlaku__title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--promo-ink);
  margin-bottom: 3px;
}
.promo-berlaku__lead { display: block; font-size: 0.8rem; color: var(--promo-muted); line-height: 1.45; }
.promo-berlaku__lead strong { color: var(--promo-gold); font-weight: 700; }
.promo-berlaku__chevron {
  color: var(--promo-muted-soft);
  flex-shrink: 0;
  transition: transform 0.3s var(--promo-ease), color 0.3s var(--promo-ease);
}
.promo-berlaku:hover .promo-berlaku__chevron { transform: translateX(3px); color: var(--promo-gold); }

.promo-drawer[hidden] { display: none; }
.promo-drawer {
  position: fixed;
  inset: 0;
  z-index: 12000;
}
.promo-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.55);
  backdrop-filter: blur(4px) saturate(1.1);
  opacity: 0;
  transition: opacity 0.35s var(--promo-ease);
}
.promo-drawer.is-open .promo-drawer__backdrop { opacity: 1; }
.promo-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  background: var(--promo-paper);
  box-shadow: -16px 0 48px rgba(15, 15, 17, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--promo-ease);
}
.promo-drawer.is-open .promo-drawer__panel { transform: translateX(0); }
.promo-drawer__handle { display: none; }
.promo-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--promo-line);
  flex-shrink: 0;
}
.promo-drawer__head h3 {
  margin: 0;
  font-family: var(--promo-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--promo-ink);
}
.promo-drawer__close {
  border: 0;
  background: var(--promo-cream);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--promo-ink);
  cursor: pointer;
  transition: background 0.25s var(--promo-ease), transform 0.25s var(--promo-ease);
}
.promo-drawer__close:hover { background: #eee9dd; transform: scale(1.08) rotate(90deg); }
.promo-drawer__body {
  padding: 20px 24px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.promo-drawer__item {
  border: 1px solid var(--promo-line);
  border-radius: var(--promo-radius-md);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--promo-paper);
  box-shadow: var(--promo-shadow-sm);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--promo-ease), transform 0.4s var(--promo-ease);
}
.promo-drawer.is-open .promo-drawer__item {
  opacity: 1;
  transform: translateY(0);
}
.promo-drawer__body .promo-drawer__item:nth-child(1) { transition-delay: 0.08s; }
.promo-drawer__body .promo-drawer__item:nth-child(2) { transition-delay: 0.14s; }
.promo-drawer__body .promo-drawer__item:nth-child(3) { transition-delay: 0.2s; }
.promo-drawer__body .promo-drawer__item:nth-child(n+4) { transition-delay: 0.26s; }
.promo-drawer__item:last-child { margin-bottom: 0; }
.promo-drawer__item--flash {
  background: radial-gradient(140% 160% at 100% 0%, #221f18 0%, var(--promo-ink) 60%);
  border-color: rgba(233, 217, 184, 0.14);
  box-shadow: var(--promo-shadow-dark-md);
}
.promo-drawer__item--flash h4 { color: #fff; }
.promo-drawer__item--flash .promo-drawer__label { color: rgba(244, 242, 236, 0.45); }
.promo-drawer__item--flash p { color: rgba(244, 242, 236, 0.82); }
.promo-drawer__item--flash .promo-drawer__row-icon { color: var(--promo-gold-soft); }
.promo-drawer__item--flash .promo-drawer__divider {
  background: linear-gradient(90deg, rgba(233, 217, 184, 0.22), transparent);
}
.promo-drawer__item-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--promo-cream);
  color: var(--promo-ink);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 10px;
}
.promo-drawer__item--flash .promo-drawer__item-badge { background: var(--promo-ink); color: var(--promo-gold-soft); }
.promo-drawer__item--cashback .promo-drawer__item-badge { background: #eef8f3; color: #0f6b4f; }
.promo-drawer__item--bonus .promo-drawer__item-badge { background: #fbf1e1; color: #8a5a17; }
.promo-drawer__item h4 {
  margin: 0 0 12px;
  font-family: var(--promo-font);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--promo-ink);
}
.promo-drawer__divider {
  height: 1px;
  background: linear-gradient(90deg, var(--promo-line), transparent);
  margin: 0 0 14px;
}
.promo-drawer__grid { display: flex; flex-direction: column; gap: 14px; }
.promo-drawer__row { display: flex; gap: 12px; align-items: flex-start; }
.promo-drawer__row-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--promo-gold);
}
.promo-drawer__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--promo-muted-soft);
  margin-bottom: 3px;
}
.promo-drawer__item p {
  margin: 0;
  font-size: 0.88rem;
  color: #383a3e;
  line-height: 1.55;
}
.promo-drawer__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--promo-ink);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}
.promo-drawer__cta:hover { background: var(--promo-ink-soft); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 15, 17, 0.22); }
.promo-drawer__cta--flash {
  background: linear-gradient(135deg, #e2c07f, var(--promo-gold) 60%, #a67c34);
  color: var(--promo-ink) !important;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(184, 144, 63, 0.3);
}
.promo-drawer__cta--flash:hover { box-shadow: 0 12px 26px rgba(184, 144, 63, 0.4); }

/* --------------------------------------------------------------------------
   Cart voucher panel
   -------------------------------------------------------------------------- */
.cart-vouchers {
  background: var(--promo-cream);
  border-radius: var(--promo-radius-lg);
  padding: 22px 20px 20px;
  margin-bottom: 22px;
  border: 1px solid var(--promo-line);
}
.cart-vouchers__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--promo-font);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--promo-ink);
  margin: 0 0 4px;
}
.cart-vouchers__title .promo-icon { color: var(--promo-gold); }
.cart-vouchers__lead {
  font-size: 0.82rem;
  color: var(--promo-muted);
  margin: 0 0 18px;
  line-height: 1.5;
}
.cart-vouchers__empty {
  text-align: center;
  padding: 28px 12px 32px;
  color: var(--promo-muted);
  font-size: 0.86rem;
  background: var(--promo-paper);
  border: 1px dashed var(--promo-line);
  border-radius: var(--promo-radius-md);
}
.cart-vouchers__empty .promo-icon { color: var(--promo-gold-soft); margin-bottom: 8px; }

/* "Wallet card" list  each voucher reads like a membership / coupon card,
   not a plain table row. */
.cart-voucher-item {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  margin-bottom: 10px;
  background: var(--promo-paper);
  border: 1px solid var(--promo-line);
  border-radius: var(--promo-radius-md);
  box-shadow: var(--promo-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--promo-ease), transform 0.3s var(--promo-ease), border-color 0.3s var(--promo-ease);
}
.cart-voucher-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--promo-line);
  transition: background 0.3s var(--promo-ease), width 0.3s var(--promo-ease);
}
.cart-voucher-item:last-child { margin-bottom: 0; }
.cart-voucher-item:not(.is-ineligible):hover {
  box-shadow: var(--promo-shadow-md);
  transform: translateY(-2px);
  border-color: rgba(184, 144, 63, 0.28);
}
.cart-voucher-item.is-selected {
  border-color: rgba(184, 144, 63, 0.45);
  box-shadow: var(--promo-shadow-md), 0 0 0 1px rgba(184, 144, 63, 0.18);
}
.cart-voucher-item.is-selected::before { background: var(--promo-gold); width: 4px; }
.cart-voucher-item.is-ineligible { background: var(--promo-cream); }
.cart-voucher-item__radio {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1.6px solid #cfd1d5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--promo-ease), background 0.25s var(--promo-ease), transform 0.25s var(--promo-ease);
}
.cart-voucher-item__radio::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
  transform: scale(0.4);
}
.cart-voucher-item.is-selected .cart-voucher-item__radio {
  border-color: var(--promo-gold);
  background: var(--promo-gold);
  transform: scale(1.05);
}
.cart-voucher-item.is-selected .cart-voucher-item__radio::after { background: #fff; transform: scale(1); }
.cart-voucher-item.is-ineligible .cart-voucher-item__radio { opacity: 0.35; }
.cart-voucher-item__main { flex: 1; min-width: 0; }
.cart-voucher-item__name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.003em;
  margin: 0 0 3px;
  color: var(--promo-ink);
}
.cart-voucher-item__meta { font-size: 0.8rem; color: var(--promo-muted); margin: 0; line-height: 1.5; }
.cart-voucher-item__reason {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9a5b13;
  background: #fdf1e0;
  border: 1px solid #f5e0bb;
  border-radius: 999px;
  padding: 3px 10px;
  margin: 7px 0 0;
}
.cart-voucher-item.is-ineligible .cart-voucher-item__name,
.cart-voucher-item.is-ineligible .cart-voucher-item__meta { opacity: 0.55; }
.cart-voucher-item__btn {
  border: 1px solid #d7d3c8;
  background: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--promo-ease), color 0.25s var(--promo-ease), border-color 0.25s var(--promo-ease), transform 0.25s var(--promo-ease), box-shadow 0.25s var(--promo-ease);
  flex-shrink: 0;
}
.cart-voucher-item__btn:hover:not(:disabled) {
  border-color: var(--promo-ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 15, 17, 0.12);
}
.cart-voucher-item__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cart-voucher-item.is-selected .cart-voucher-item__btn {
  background: var(--promo-ink);
  color: #fff;
  border-color: var(--promo-ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .promo-week__vouchers,
  .promo-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .promo-week { padding: 60px 0 48px; }
  .flash-hero--hero .flash-hero__inner { padding: 32px; }
}

@media (max-width: 575px) {
  .promo-announce { font-size: 11px; padding: 6px 10px; }
  body.has-promo-announce .header-area.absolute-header { top: 28px; }

  .promo-week { padding: 44px 0 32px; }
  .promo-week__head { margin-bottom: 28px; }
  .promo-week__vouchers,
  .promo-hub__grid { grid-template-columns: 1fr; gap: 14px; }

  .flash-hero__inner,
  .flash-hero--hero .flash-hero__inner,
  .flash-hero--grid .flash-hero__inner { padding: 24px 20px; gap: 16px; }
  .flash-hero__pattern { opacity: 0.1; width: 56%; right: -10%; }
  .flash-hero__unit { min-width: 32px; padding: 5px 3px 4px; }
  .flash-hero__unit span { font-size: 0.88rem; }
  .flash-hero__foot { flex-direction: column; align-items: flex-start; }
  .flash-hero__cta { width: 100%; justify-content: center; }

  .promo-hub { padding: 36px 0 64px; }
  .promo-hub__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
    margin-bottom: 28px;
  }
  .promo-hub__tab { white-space: nowrap; }

  .pcard__promo-badges { max-width: 68%; }
  .pcard__promo-badge { font-size: 8.5px; padding: 4px 8px; }

  .promo-berlaku { padding: 14px; gap: 10px; }
  .promo-berlaku__icon { width: 30px; height: 30px; }

  .promo-drawer__panel {
    width: 100%;
    border-radius: 20px 20px 0 0;
    top: auto;
    bottom: 0;
    height: min(90vh, 680px);
    transform: translateY(100%);
  }
  .promo-drawer.is-open .promo-drawer__panel { transform: translateY(0); }
  .promo-drawer__handle {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--promo-line);
    margin: 10px auto -4px;
    flex-shrink: 0;
  }
  .promo-drawer__head { padding: 14px 20px 16px; }
  .promo-drawer__body { padding: 16px 20px 28px; }

  .cart-vouchers { padding: 16px 16px 6px; }
  .cart-voucher-item { gap: 10px; }
  .cart-voucher-item__btn { padding: 6px 12px; }
}
