/* =========================================================================
   Hommy seasonal campaign: Black Friday, then Winter Sleep Season.
   Loaded only while the campaign runs (app/campaign.php). Brand rules: flat Ink
   ground for launch moments, Mist pills, Sky line illustration, no glows,
   no urgency tactics. The logo file is never changed; the nightcap is a layer.
   ========================================================================= */

:root { --cx-ground: #142440; --cx-ice: #F2F6FB; --cx-sand: #F4EFE4; }

/* ---------- Top bar ---------- */
.topbar { background: var(--cx-ground); }

/* ---------- Decorative art ---------- */
.cx-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cx-art svg { position: absolute; display: block; }

/* ---------- Offers band (home) ---------- */
.cx-band { position: relative; overflow: hidden; background: var(--cx-ground); }
.cx-band .container { position: relative; z-index: 2; }
.cx-seal {
  grid-area: pill; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 30px 12px; border-radius: 999px; background: var(--cx-ice); color: var(--navy);
  text-decoration: none; box-shadow: var(--shadow);
}
.cx-seal:hover { background: #fff; color: var(--navy); }
.cx-seal-k { font-size: 20px; line-height: 1.15; font-weight: 700; }
.cx-seal-s { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); }
[dir="rtl"] .cx-seal-s { letter-spacing: 0; font-size: 13px; }
.cx-band .hm-offers-title .cx-num { color: var(--cx-sand); }
.cx-was-num { opacity: .75; text-decoration: line-through; font-weight: 400; }
.cx-mob { display: inline; }
@media (min-width: 900px) {
  .cx-seal { padding: 18px 40px 14px; }
  .cx-seal-k { font-size: 28px; }
  .cx-mob { display: none; }
}

/* ---------- Hero (home) ---------- */
html .cx-hero-wrap .hm-hero { position: relative; overflow: hidden; background: var(--cx-ground); }
html .cx-hero-wrap .hm-hero-copy { z-index: 3; }
.cx-hero-seal {
  position: absolute; z-index: 4; top: 12px; inset-inline-end: 12px; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; line-height: 1;
  background: var(--cx-ice); color: var(--navy); box-shadow: var(--shadow);
}
.cx-hero-seal b { display: block; font-size: 28px; font-weight: 700; }
.cx-hero-seal span { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
[dir="rtl"] .cx-hero-seal span { letter-spacing: 0; font-size: 13px; }
.cx-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.cx-hero-btns .btn { flex: 1 1 auto; margin-top: 0; }
html .cx-hero-wrap .hm-hero-cta { background: var(--cx-ice); color: var(--navy); }
html .cx-hero-wrap .hm-hero-cta:hover { background: #fff; color: var(--navy); }
.cx-ghost { background: transparent; border-color: var(--cx-ice); color: #fff; }
.cx-ghost:hover { background: rgba(242, 246, 251, .12); color: #fff; }

@media (max-width: 999px) {
  html .cx-hero-wrap .hm-hero { border-radius: 16px; }
  html .cx-hero-wrap .hm-hero-img {
    aspect-ratio: 2 / 1; object-position: center 30%; border-radius: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent);
  }
  html .cx-hero-wrap .hm-hero-copy { position: relative; padding: 22px 18px 24px; color: var(--cx-ice); }
  html .cx-hero-wrap .hm-hero-title { color: #fff; }
  html .cx-hero-wrap .hm-hero-eyebrow { color: var(--sky); }
  .cx-hero-wrap .cx-moon { width: 36px; height: 36px; top: 12px !important; inset-inline-start: 14px !important; }
  .cx-hero-wrap .cx-art svg:nth-child(2), .cx-hero-wrap .cx-art svg:nth-child(3) { display: none; }
}
@media (min-width: 1000px) {
  html .cx-hero-wrap .hm-hero::after { display: none; }
  html .cx-hero-wrap .hm-hero-img {
    inset: 0 0 0 auto; width: 52%; height: 100%; object-fit: cover; object-position: center 55%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  }
  html .cx-hero-wrap .hm-hero-copy { width: min(480px, 40%); }
  .cx-hero-seal { top: 36px; inset-inline-end: 44px; width: 124px; height: 124px; }
  .cx-hero-seal b { font-size: 40px; }
  .cx-hero-btns { width: auto; }
  .cx-hero-btns .btn { flex: none; }
  html[dir="rtl"] .cx-hero-wrap .hm-hero { display: block; background: var(--cx-ground); }
  html[dir="rtl"] .cx-hero-wrap .hm-hero-img {
    position: absolute; inset: 0 auto 0 0; height: 100%;
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 30%); mask-image: linear-gradient(270deg, transparent 0%, #000 30%);
  }
  html[dir="rtl"] .cx-hero-wrap .hm-hero-copy { position: absolute; inset-inline-start: 56px; top: 50%; transform: translateY(-50%); padding: 0; }
  html[dir="rtl"] .cx-hero-wrap .hm-hero-title { color: #fff; }
  html[dir="rtl"] .cx-hero-seal { left: 44px; right: auto; }
}

/* ---------- Prices: badges, crossed-out regular prices, savings ---------- */
.hm-col-card { position: relative; }
.cx-off {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; padding: 6px 11px; border-radius: 999px;
  background: var(--cx-ice); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1; box-shadow: var(--shadow);
}
.cx-was { color: var(--deep); font-weight: 400; text-decoration: line-through; white-space: nowrap; margin-inline-end: 4px; }
.cx-was-lg { font-size: 16px; margin-inline-start: 6px; }
.cx-save { display: block; font-size: 12px; font-weight: 700; color: var(--green); }
.cx-tag {
  display: inline-flex; align-self: flex-start; margin-bottom: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--cx-ground); color: var(--cx-ice); font-size: 12px; font-weight: 700; line-height: 1.5;
}
.cx-saving { margin: 10px 0 4px; font-size: 14px; font-weight: 700; color: var(--green); }

/* ---------- Nightcap logo (a layer over the untouched logo) ---------- */
.logo { position: relative; }
.cx-logo-wrap { position: relative; display: inline-flex; }
.footer-news > .cx-logo-wrap { align-self: flex-start; }
.cx-cap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* ---------- Winter snowfall (campaign.js) ---------- */
.cx-snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cx-snow { display: none; } }
