/**
 * CHOOOZE Premium Shell — responsiv, conversionstark, stabil
 */

:root {
  --ch-header-ticker: 36px;
  --ch-header-main: 64px;
  --ch-header-total: calc(var(--ch-header-ticker) + var(--ch-header-main));

  --ch-ink: #0b1120;
  --ch-ink-soft: #1e293b;
  --ch-gold: #d4af37;
  --ch-gold-2: #f5d78a;

  --ch-line: rgba(15, 23, 42, 0.08);
  --ch-surface: rgba(255, 255, 255, 0.72);
  --ch-surface-strong: rgba(255, 255, 255, 0.88);
  --ch-muted: #64748b;
  --ch-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

html {
  scroll-padding-top: var(--ch-header-total);
}

body.ch-body-premium {
  padding-top: var(--ch-header-total) !important;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.07), transparent 26%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.05), transparent 24%),
    linear-gradient(165deg, #f4f6f9 0%, #eef2f7 40%, #f8fafc 100%) !important;
  font-feature-settings: "kern" 1, "liga" 1;
  color: var(--ch-ink);
  overflow-x: hidden;
}

/* ── Top offer ticker ── */
.ch-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--ch-header-ticker);
  background: linear-gradient(90deg, #0b1120 0%, #111827 50%, #0b1120 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  overflow: hidden;
}

.ch-ticker__inner {
  display: flex;
  align-items: stretch;
  max-width: 1680px;
  margin: 0 auto;
  height: 100%;
}

.ch-ticker__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b1120;
  background: linear-gradient(135deg, var(--ch-gold), var(--ch-gold-2));
}

.ch-ticker__track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  animation: ch-ticker-scroll 48s linear infinite;
}

@keyframes ch-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ch-ticker__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0 1.25rem;
  font-size: 12px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.92);
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.15s ease;
}

.ch-ticker__link:hover {
  color: var(--ch-gold-2);
}

.ch-ticker__title {
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1024px) {
  .ch-ticker__title { max-width: 380px; }
}

.ch-ticker__price {
  font-size: 11px;
  font-weight: 800;
  color: var(--ch-gold);
  letter-spacing: 0.02em;
}

/* ── Sticky header below ticker ── */
#main-header.ch-header-sticky {
  position: fixed;
  top: var(--ch-header-ticker);
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

/* ── Floating contact buttons ── */
.ch-fab {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  filter: drop-shadow(0 8px 24px rgba(11, 17, 32, 0.12));
}

.ch-fab__btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.55rem 0.7rem 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-right: none;
  border-radius: 999px 0 0 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ch-ink);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.ch-fab__btn:hover {
  background: #0b1120;
  color: #fff;
  border-color: #0b1120;
  transform: translateX(-2px);
}

.ch-fab__btn--mail {
  border-radius: 999px 0 0 999px;
}

.ch-fab__label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .ch-fab__label {
    max-width: 140px;
    opacity: 1;
  }
}

@media (max-width: 1023px) {
  .ch-fab {
    top: auto;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    transform: none;
  }

  .ch-fab__btn {
    min-height: 42px;
    font-size: 10px;
  }
}

/* ── Shell widths ── */
.choooze-shell {
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 2vw, 20px);
  padding-right: clamp(12px, 2vw, 20px);
}

/* ── Nav dropdowns ── */
.nav-dropdown-panel,
.ch-mobile-nav .nav-dropdown-panel,
.dropdown-menu,
.menu-dropdown {
  max-height: min(82vh, 620px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

#main-header .choooze-header__nav--full .nav-dropdown:not(.nav-dropdown--compact) .nav-dropdown-panel {
  left: 0;
  right: auto;
  transform: none;
  width: min(980px, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
}

#main-header .choooze-header__nav--full .nav-dropdown:nth-last-child(-n + 3) .nav-dropdown-panel {
  left: auto;
  right: 0;
}

#main-header .nav-panel-grid {
  gap: 0.5rem;
}

#main-header .nav-panel-link {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
}

#main-header .nav-panel-title {
  font-size: 0.9rem;
  line-height: 1.25;
}

#main-header .nav-panel-kicker {
  font-size: 0.62rem;
  margin-bottom: 0.15rem;
}

#main-header .nav-panel-grid--dense {
  gap: 0.45rem;
}

#main-header .nav-panel-grid--dense .nav-panel-link {
  padding: 0.6rem 0.7rem;
}

/* ── Language switch ── */
.ch-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
}

.ch-lang a {
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--ch-muted);
  text-decoration: none;
}

.ch-lang a:hover,
.ch-lang a.is-active {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

/* ── Portal cards / watermark ── */
.home-portal-card {
  position: relative;
  overflow: hidden;
  --portal-accent: #0f172a;
}

.home-portal-card__watermark {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 52%;
  max-width: 200px;
  opacity: 0.09;
  pointer-events: none;
  color: var(--portal-accent);
}

.home-portal-card__watermark svg {
  width: 100%;
  height: auto;
}

.home-portal-card__layer {
  position: relative;
  z-index: 1;
}

/* ── Offer grid premium ── */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1400px) {
  .offer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 420px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* ── Compact rails ── */
.offer-deck-card--compact-rail {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 240px;
}
@media (min-width: 640px) {
  .offer-deck-card--compact-rail {
    max-width: 260px;
  }
}

/* ── Offer card premium shell ── */
.offer-card {
  min-height: clamp(24rem, 26vw, 27rem);
  min-width: 0;
}

.offer-card__surface {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.76));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: var(--ch-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.offer-card__surface:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
  border-color: rgba(212, 175, 55, 0.35);
}

.offer-card__badges {
  position: absolute;
  top: .75rem;
  left: .75rem;
  right: .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  z-index: 2;
}

.offer-card__badge,
.offer-card__badge--primary,
.offer-card__badge--secondary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 .7rem;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.offer-card__badge,
.offer-card__badge--primary {
  background: rgba(15, 23, 42, .88);
  color: #fff;
}

.offer-card__badge--secondary {
  background: rgba(255,255,255,.92);
  color: #0f172a;
  border: 1px solid rgba(148,163,184,.35);
}

.offer-card__image-wrap,
.offer-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: 220px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(248,250,252,.92), rgba(241,245,249,.85));
}

.offer-card__image,
.offer-card__media img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
}

.offer-card__image-fallback {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ch-muted);
  font-size: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 16px;
}

.offer-card__body,
.offer-card__content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: .9rem;
  padding: .95rem 1rem 1rem;
}

.offer-card__copy {
  min-height: 0;
}

.offer-card__meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  min-height: 20px;
}

.offer-card__provider,
.offer-card__score {
  font-size: 12px;
  color: var(--ch-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ch-ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.offer-card__title a {
  color: inherit;
  text-decoration: none;
}

.offer-card__footer {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: auto;
}

.offer-card__price-block {
  min-height: 4.8rem;
}

.offer-card__price-kicker {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ch-muted);
}

.offer-card__price-old {
  margin-top: .2rem;
  font-size: .82rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.offer-card__price {
  margin-top: .15rem;
  min-height: 28px;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.1;
  font-weight: 900;
  color: #0f172a;
  word-break: break-word;
}

.offer-card__details,
.offer-card__meta-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 2.4em;
  font-size: .82rem;
  line-height: 1.2;
  color: #475569;
}

.offer-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.offer-card__button,
.offer-card__cta {
  min-height: 46px;
  border-radius: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .72rem .8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.offer-card__button--ghost {
  background: #fff;
  border: 1px solid rgba(148,163,184,.35);
  color: #0f172a;
}

.offer-card__button--cta,
.offer-card__cta {
  background: linear-gradient(180deg, var(--ch-gold-2), var(--ch-gold));
  border: 1px solid rgba(180,138,18,.7);
  color: #111827;
  box-shadow: 0 10px 24px rgba(180,138,18,.18);
}

/* compact variant */
.offer-card--compact {
  border-radius: 14px !important;
}
.offer-card--compact .offer-card__media {
  aspect-ratio: 16 / 10 !important;
  max-height: 140px;
}
.offer-card--compact .offer-card__body-tight {
  padding: 0.65rem 0.75rem 0.75rem !important;
}
.offer-card--compact .offer-card__chips,
.offer-card--compact .offer-card__meta-extra {
  display: none !important;
}

/* Mobile */
@media (max-width: 767px) {
  .offer-card { min-height: 23rem; }
  .offer-card__image-wrap,
  .offer-card__media {
    min-height: 180px;
    max-height: 180px;
    padding: 14px;
  }
  .offer-card__image,
  .offer-card__media img,
  .offer-card__image-fallback {
    height: 145px;
  }
  .offer-card__body,
  .offer-card__content {
    padding: .82rem .82rem .9rem;
  }
  .offer-card__actions {
    grid-template-columns: 1fr;
  }
  .offer-card__button,
  .offer-card__cta {
    min-height: 42px;
  }
  .offer-card__meta-line,
  .offer-card__details {
    min-height: 2.2em;
  }
}

/* Mobile navigation */
.ch-mobile-nav .nav-dropdown-panel {
  width: min(94vw, 400px);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ch-mobile-nav__panel .nav-panel-grid {
  flex: 1 1 auto;
  min-height: 0;
}

/* === Premium E overrides === */
.offer-card{min-height:clamp(21rem,22vw,24rem)!important;border-radius:1rem!important;overflow:hidden;position:relative}
.offer-card__stretched-link{position:absolute;inset:0;z-index:1;border-radius:inherit}
.offer-card__media,.offer-card__body,.offer-card__content,.offer-card__actions,.offer-card__badges{position:relative;z-index:2}
.offer-card__media{min-height:clamp(10.8rem,12vw,12rem)!important;padding:.55rem!important}
.offer-card__media.is-directlink{background:linear-gradient(180deg,#f8fafc,#eef2ff)!important}
.offer-card__media-link{pointer-events:none}
.offer-card__image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center center}
.offer-card__body,.offer-card__content{gap:.7rem!important;padding:.8rem .9rem .9rem!important}
.offer-card__eyebrow,.offer-card__microcopy{font-size:.71rem;line-height:1.25;color:#64748b;display:flex;flex-wrap:wrap;gap:.32rem}
.offer-card__eyebrow-sep{opacity:.55}
.offer-card__title{font-size:.94rem!important;line-height:1.22!important;min-height:calc(1.22em * 2)}
.offer-card__price-block{min-height:4.1rem!important}
.offer-card__price{font-size:clamp(1rem,1.35vw,1.24rem)!important;line-height:1.08!important}
.offer-card__meta-line{min-height:2.2em!important;font-size:.78rem!important}
.offer-card__actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem!important}
.offer-card__button{min-height:42px!important;padding:.68rem .75rem!important;position:relative;z-index:3}
.offer-card__button--cta{background:linear-gradient(180deg,#f7df8f,#d4af37)!important}
.offer-card__badge{box-shadow:0 6px 18px rgba(15,23,42,.14)}
.offer-card--compact .offer-card__actions{grid-template-columns:1fr!important}
.offer-card--compact .offer-card__button--ghost{display:none!important}
.horizontal-rail{grid-auto-columns:minmax(205px,min(236px,72vw))!important;gap:.8rem!important}
.offer-deck-card--compact-rail{max-width:236px!important}
.market-grid{display:grid!important;gap:.75rem!important;grid-template-columns:repeat(6,minmax(0,1fr))!important}
@media (max-width:1440px){.market-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media (max-width:1180px){.market-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (max-width:860px){.market-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.horizontal-rail{grid-auto-columns:minmax(190px,min(220px,76vw))!important}}
@media (max-width:620px){.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.offer-card__actions{grid-template-columns:1fr!important}}
@media (max-width:420px){.market-grid{grid-template-columns:1fr!important}}
.nav-dropdown-panel,.dropdown-menu,.menu-dropdown{max-height:min(84vh,680px)!important;overflow-y:auto!important;overflow-x:hidden!important}
#main-header .choooze-header__nav--full .nav-dropdown:not(.nav-dropdown--compact) .nav-dropdown-panel{width:min(1100px,calc(100vw - 1rem))!important;max-width:calc(100vw - 1rem)!important}
.rail-shell::before,.rail-shell::after{width:34px!important}
