/* Campaign Landing Page — scoped to #campaign-landing */
#campaign-landing {
  --cl-bg: #050505;
  --cl-card: #101010;
  --cl-border: #292929;
  --cl-text: #ffffff;
  --cl-muted: #a0a0a0;
  --cl-red: #ff2438;
  --cl-blue: #3d5afe;
  --cl-violet: #8b5cf6;
  --cl-radius: 16px;
  background: var(--cl-bg);
  color: var(--cl-text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow: hidden;
  padding-bottom: 64px;
}
#campaign-landing *, #campaign-landing *::before, #campaign-landing *::after { box-sizing: border-box; }
#campaign-landing a { color: inherit; text-decoration: none; }
#campaign-landing .cl-wrap { width: 100%; max-width: 1720px; margin: 0 auto; padding: 0 16px; }

.cl-preview-bar {
  background: #ffcc00; color: #000; font-weight: 700; font-size: 13px; text-align: center; padding: 8px 12px;
}

/* Hero */
.cl-hero { position: relative; padding: 28px 0 44px; border-bottom: 1px solid var(--cl-border); isolation: isolate; }
.cl-hero-glow {
  position: absolute; inset: -40% -10% auto -10%; height: 140%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 40%, rgba(255, 36, 56, .28), transparent 70%),
    radial-gradient(35% 45% at 80% 30%, rgba(139, 92, 246, .30), transparent 70%),
    radial-gradient(30% 40% at 55% 80%, rgba(61, 90, 254, .22), transparent 70%);
  filter: blur(20px);
  animation: cl-drift 14s ease-in-out infinite alternate;
}
@keyframes cl-drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }

#campaign-landing .cl-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--cl-border); background: rgba(16, 16, 16, .8); color: var(--cl-text); font-size: 14px; font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#campaign-landing .cl-back:hover { border-color: var(--cl-violet); box-shadow: 0 0 22px -6px rgba(139, 92, 246, .8); }
.cl-bottom-back { display: flex; justify-content: center; margin-top: 40px; }
.cl-bottom-back .cl-back { margin-bottom: 0; }

.cl-title {
  margin: 0; font-size: clamp(38px, 7.5vw, 104px); line-height: .95; font-weight: 900; letter-spacing: -.03em;
  text-transform: uppercase; color: var(--cl-text);
  background: linear-gradient(100deg, #fff 0%, #fff 55%, var(--cl-red) 75%, #ff6b78 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cl-subtitle { margin: 18px 0 0; max-width: 640px; font-size: clamp(15px, 1.6vw, 20px); line-height: 1.5; color: var(--cl-muted); }

.cl-hero-meta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cl-countdown { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cl-countdown-label { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--cl-muted); }
.cl-countdown-units { display: flex; gap: 8px; }
.cl-unit {
  min-width: 64px; padding: 10px 8px 8px; text-align: center; border-radius: 12px;
  background: rgba(16, 16, 16, .85); border: 1px solid var(--cl-border);
  box-shadow: inset 0 -2px 0 rgba(255, 36, 56, .6);
}
.cl-unit b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.cl-unit small { display: block; margin-top: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--cl-muted); }
.cl-ended { padding: 12px 18px; border-radius: 12px; border: 1px solid var(--cl-red); color: #fff; background: rgba(255, 36, 56, .12); font-weight: 600; }
.cl-offers { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.cl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cl-red); box-shadow: 0 0 0 0 rgba(255, 36, 56, .7); animation: cl-pulse 1.8s infinite; }
@keyframes cl-pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 36, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 36, 56, 0); } }

/* Toolbar */
.cl-main { padding-top: 28px; }
.cl-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 14px; color: var(--cl-muted); }
#campaign-landing .cl-toolbar label { margin: 0; font-weight: 500; color: var(--cl-muted); }
#campaign-landing select.cl-select {
  height: auto; line-height: 1.3; min-width: 200px; max-width: 60vw;
  appearance: none; -webkit-appearance: none; background: var(--cl-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a0a0a0'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--cl-text); border: 1px solid var(--cl-border); border-radius: 10px; padding: 9px 34px 9px 14px; font-size: 14px; cursor: pointer;
}
#campaign-landing select.cl-select:focus { outline: none; border-color: var(--cl-violet); }

/* Grid: mobile 2 / tablet 3 / laptop 4 / desktop 6 */
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } #campaign-landing .cl-wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .cl-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; } }

/* Card */
.cl-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--cl-card); border: 1px solid var(--cl-border); border-radius: var(--cl-radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cl-card:hover { transform: translateY(-3px); border-color: #3a3a4a; box-shadow: 0 18px 40px -18px rgba(139, 92, 246, .45); }
.cl-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 12%; overflow: hidden; border-radius: var(--cl-radius) var(--cl-radius) 0 0; }
.cl-media-glow {
  position: absolute; left: 50%; top: 50%; width: 96%; height: 96%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(61, 90, 254, .55), rgba(139, 92, 246, .32) 60%, transparent 100%);
  filter: blur(18px); opacity: .85; transition: opacity .3s ease, transform .3s ease;
}
.cl-card:hover .cl-media-glow { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.cl-media img { position: relative; width: 100%; height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); transition: transform .35s ease; }
.cl-card:hover .cl-media img { transform: scale(1.04); }
.cl-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 9px; border-radius: 8px;
  background: var(--cl-red); color: #fff; font-weight: 800; font-size: 14px; line-height: 1; letter-spacing: .01em;
  box-shadow: 0 6px 16px -6px rgba(255, 36, 56, .8);
}

.cl-body { display: flex; flex-direction: column; gap: 8px; padding: 4px 14px 14px; flex: 1; }
#campaign-landing .cl-name { margin: 0; font-size: 13.5px; line-height: 1.35; font-weight: 500; color: var(--cl-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; text-transform: none; }
.cl-name a:hover { color: #c9c1ff; }
.cl-prices { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.cl-old { font-size: 13px; color: var(--cl-muted); text-decoration: line-through; }
.cl-new { font-size: 21px; font-weight: 800; color: var(--cl-red); letter-spacing: -.01em; line-height: 1.15; }
.cl-new.cl-regular { color: var(--cl-text); }
.cl-stock { font-size: 12px; font-weight: 500; }
.cl-stock.in { color: #3ddc84; }
.cl-stock.out { color: var(--cl-muted); }
.cl-actions { display: flex; flex-direction: column; gap: 6px; }
#campaign-landing .cl-btn-cart {
  width: 100%; border: 0; border-radius: 10px; padding: 11px 10px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: #fff;
  background: linear-gradient(135deg, var(--cl-blue), var(--cl-violet)); transition: filter .2s ease, box-shadow .2s ease;
}
#campaign-landing .cl-btn-cart:hover:not([disabled]) { filter: brightness(1.12); box-shadow: 0 8px 22px -8px rgba(139, 92, 246, .9); }
#campaign-landing .cl-btn-cart[disabled] { background: #1c1c1c; color: var(--cl-muted); cursor: not-allowed; }
.cl-btn-view { text-align: center; font-size: 12.5px; color: var(--cl-muted); padding: 4px; }
.cl-btn-view:hover { color: var(--cl-text); }
.cl-card.is-oos .cl-media img { opacity: .55; filter: grayscale(.4); }

/* Load more */
.cl-more { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.cl-btn-more, .cl-btn-ghost {
  display: inline-block; padding: 13px 28px; border-radius: 999px; border: 1px solid var(--cl-border);
  font-weight: 600; font-size: 14px; background: var(--cl-card); transition: border-color .2s ease, box-shadow .2s ease;
}
.cl-btn-more:hover { border-color: var(--cl-violet); box-shadow: 0 0 24px -6px rgba(139, 92, 246, .7); }
.cl-btn-more.is-loading { opacity: .6; pointer-events: none; }
.cl-empty { color: var(--cl-muted); text-align: center; padding: 60px 0; font-size: 16px; }

@media (max-width: 575px) {
  .cl-hero { padding: 18px 0 30px; }
  .cl-unit { min-width: 54px; }
  .cl-unit b { font-size: 21px; }
  .cl-media { padding: 10%; }
  .cl-body { padding: 2px 10px 12px; }
  .cl-new { font-size: 18px; }
  .cl-toolbar { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-hero-glow, .cl-dot { animation: none; }
  .cl-card, .cl-media img, .cl-media-glow { transition: none; }
}

/* Journal mobile/tablet styles restyle native selects; keep ours inside the page */
#campaign-landing select.cl-select {
  background-color: var(--cl-card) !important; color: var(--cl-text) !important;
  border: 1px solid var(--cl-border) !important; border-radius: 10px !important;
  padding: 9px 34px 9px 14px !important; height: auto !important; font-size: 14px !important;
}

/* Standalone page: the store footer still loads (cart scripts, tracking) but is not shown */
html.route-extension-module-campaign_landing,
html.route-extension-module-campaign_landing body { background: #050505 !important; }
html.route-extension-module-campaign_landing footer,
html.route-extension-module-campaign_landing .bottom-menu-wrapper { display: none !important; }

/* Buy X Get Y offer badge + cart-level discount note */
.cl-offer {
  position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 20px); padding: 5px 9px; border-radius: 8px;
  background: #fff; color: var(--cl-red); font-weight: 800; font-size: 12px; line-height: 1.1; letter-spacing: .02em;
  box-shadow: 0 6px 16px -6px rgba(255, 36, 56, .6);
}
.cl-offer.is-second { top: auto; bottom: 10px; }
.cl-incart { font-size: 11.5px; font-weight: 600; color: #ff8a95; }

/* Hero background image: section follows the image proportions, dark scrim only on the (empty) left side */
.cl-hero.has-image { --cl-hero-ratio: .205; min-height: calc(100vw * var(--cl-hero-ratio)); padding: 22px 0 30px; display: flex; align-items: center; border-bottom: 0; }
.cl-hero.has-image .cl-hero-inner { position: relative; z-index: 1; }
.cl-hero.has-image .cl-title { font-size: clamp(36px, 5.4vw, 92px); }
.cl-hero.has-image .cl-back { margin-bottom: 18px; }
.cl-hero.has-image .cl-subtitle { margin-top: 12px; color: #c9c9c9; }
.cl-hero.has-image .cl-hero-meta { margin-top: 20px; }
.cl-hero-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0) 78%, #050505 100%),
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, .94) 26%, rgba(5, 5, 5, .62) 40%, rgba(5, 5, 5, .12) 52%, rgba(5, 5, 5, 0) 60%),
    var(--cl-hero);
  background-size: cover, cover, cover;
  background-position: center, center, right center;
  background-repeat: no-repeat;
}
.cl-hero.has-image .cl-hero-glow { opacity: .35; }
@media (max-width: 1023px) {
  .cl-hero-bg {
    background-image:
      linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0) 70%, #050505 100%),
      linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, .9) 35%, rgba(5, 5, 5, .45) 60%, rgba(5, 5, 5, .1) 80%),
      var(--cl-hero);
  }
}
@media (max-width: 767px) {
  .cl-hero.has-image { min-height: 0; padding: 18px 0 30px; }
  .cl-hero-bg {
    background-image:
      linear-gradient(180deg, rgba(5, 5, 5, .55) 0%, rgba(5, 5, 5, .82) 55%, #050505 100%),
      var(--cl-hero-m);
    background-size: cover, cover;
    background-position: center, 78% center;
  }
}
.cl-hero.has-image .cl-subtitle, .cl-hero.has-image .cl-offers, .cl-hero.has-image .cl-countdown-label { text-shadow: 0 1px 12px rgba(0, 0, 0, .85); }

/* Category filter chips (under the countdown) */
.cl-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; scroll-margin-top: 90px; }
#campaign-landing .cl-cat {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--cl-border); background: rgba(16, 16, 16, .82); color: var(--cl-text);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
#campaign-landing .cl-cat span { font-size: 11px; font-weight: 700; color: var(--cl-muted); background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 2px 7px; }
#campaign-landing .cl-cat:hover { border-color: var(--cl-violet); box-shadow: 0 0 18px -6px rgba(139, 92, 246, .8); }
#campaign-landing .cl-cat.is-active { background: var(--cl-red); border-color: var(--cl-red); box-shadow: 0 8px 22px -10px rgba(255, 36, 56, .9); }
#campaign-landing .cl-cat.is-active span { color: #fff; background: rgba(0, 0, 0, .22); }
@media (max-width: 767px) {
  .cl-cats { flex-wrap: nowrap; overflow-x: auto; margin: 18px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .cl-cats::-webkit-scrollbar { display: none; }
}
#campaign-landing .cl-cat { text-transform: uppercase; }

/* Category filter chips: white background, black text (active stays red) */
#campaign-landing .cl-cat { background: #ffffff; color: #050505; border-color: #ffffff; }
#campaign-landing .cl-cat span { color: #050505; background: rgba(0, 0, 0, .08); }
#campaign-landing .cl-cat:hover { background: #f1f1f1; border-color: #f1f1f1; box-shadow: 0 0 18px -6px rgba(255, 255, 255, .6); }
#campaign-landing .cl-cat.is-active { background: var(--cl-red); border-color: var(--cl-red); color: #ffffff; }
#campaign-landing .cl-cat.is-active span { color: #ffffff; background: rgba(0, 0, 0, .22); }
/* Long offer texts (e.g. "1 + CADOU ...") stay compact */
#campaign-landing .cl-offer.is-long { font-size: 10px; line-height: 1.2; letter-spacing: 0; padding: 4px 7px; }
