/*
 * ============================================================
 * HERO — Asymmetric 65/35 Split Grid
 * Dark primary card + floating product card
 * + 2 pastel feature cards (Klarna / Hemleverans)
 * ============================================================
 */

/* ── Hero wrapper ──────────────────────────────────────────── */
.ces-hero {
  background: var(--c-surface);
  padding: var(--sp-xl) 0 var(--sp-xxl);
}

.ces-hero__container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  align-items: start;
}

/* ════════════════════════════════════════════════════════════
   PRIMARY DARK CARD (left, ~65%)
════════════════════════════════════════════════════════════ */
.ces-hero__primary-card {
  position: relative;
  background: #121418;
  background-image: radial-gradient(ellipse 60% 55% at 30% 40%, rgba(66,98,255,.18) 0%, transparent 70%);
  border-radius: 24px;
  padding: var(--sp-xxl) var(--sp-xxl) var(--sp-xxl) var(--sp-xxl);
  min-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

/* Decorative radial orb */
.ces-hero__orb {
  position: absolute;
  width: 340px; height: 340px;
  right: 240px; top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,208,47,.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Trust badge ─────────────────────────────────────────── */
.ces-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-full);
  padding: 5px var(--sp-md);
  font: 600 11px/1.4 var(--font-base);
  letter-spacing: .5px;
  color: rgba(255,255,255,.75);
  width: fit-content;
}
.ces-hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-success);
  flex-shrink: 0;
  animation: ces-pulse 2s ease-in-out infinite;
}
@keyframes ces-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.85); }
}

/* ── Headline ────────────────────────────────────────────── */
.ces-hero__headline {
  font: 500 48px/1.15 var(--font-base);
  letter-spacing: -1px;
  color: #ffffff;
  margin: 0;
  max-width: 560px;
}
.ces-hero__headline-em {
  font-style: normal;
  color: var(--c-yellow);
}

.ces-hero__subheadline {
  font: 400 17px/1.55 var(--font-base);
  color: rgba(255,255,255,.65);
  max-width: 480px;
  margin: 0;
}

/* ── Trust strip ─────────────────────────────────────────── */
.ces-hero__trust-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  padding: var(--sp-md) var(--sp-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  width: fit-content;
}
.ces-hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ces-hero__trust-label {
  font: 600 13px/1 var(--font-base);
  color: #ffffff;
}
.ces-hero__trust-sub {
  font: 400 11px/1.4 var(--font-base);
  color: rgba(255,255,255,.5);
}
.ces-hero__trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ── CTA group ───────────────────────────────────────────── */
.ces-hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* Primary CTA — white pill with accent arrow circle */
.ces-hero__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: #ffffff;
  color: var(--c-primary);
  font: 500 14px/1.3 var(--font-base);
  padding: 13px var(--sp-lg) 13px var(--sp-xl);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: box-shadow .15s, transform .12s;
}
.ces-hero__btn-primary:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transform: translateY(-1px);
}
.ces-hero__btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--c-primary);
  color: var(--c-on-primary);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

/* Secondary CTA — outlined dark pill */
.ces-hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  font: 500 14px/1.3 var(--font-base);
  padding: 13px var(--sp-xl);
  border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.ces-hero__btn-secondary:hover {
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

/* ════════════════════════════════════════════════════════════
   FLOATING PRODUCT CARD
════════════════════════════════════════════════════════════ */
.ces-hero__product-card {
  position: absolute;
  right: var(--sp-xxl);
  bottom: var(--sp-xxl);
  width: 220px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(5,0,56,.20);
  overflow: hidden;
  border: 1px solid var(--c-hairline);
}

.ces-hero__product-badge {
  background: var(--c-yellow);
  color: var(--c-primary);
  font: 600 11px/1.4 var(--font-base);
  padding: 5px var(--sp-md);
  text-align: center;
}

/* Image placeholder */
.ces-hero__product-img-wrap {
  position: relative;
  height: 150px;
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ces-hero__product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Carousel arrows */
.ces-hero__product-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
  transition: background .12s;
}
.ces-hero__product-nav:hover { background: #fff; }
.ces-hero__product-nav--prev { left: var(--sp-xs); }
.ces-hero__product-nav--next { right: var(--sp-xs); }

/* Dots */
.ces-hero__product-dots {
  position: absolute;
  bottom: var(--sp-xs);
  left: 50%; transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.ces-hero__product-dot {
  width: 6px; height: 6px;
  background: rgba(0,0,0,.2);
  border-radius: var(--r-full);
  transition: background .12s;
}
.ces-hero__product-dot--active { background: var(--c-primary); }

/* Product info */
.ces-hero__product-info {
  padding: var(--sp-md);
}
.ces-hero__product-title {
  font: 500 13px/1.4 var(--font-base);
  color: var(--c-ink);
  margin: 0 0 var(--sp-sm);
}
.ces-hero__product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ces-hero__product-price {
  font: 700 17px/1 var(--font-base);
  color: var(--c-ink);
  letter-spacing: -.5px;
}

/* Add to cart circle button */
.ces-hero__product-cta {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: var(--c-primary);
  color: var(--c-on-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, transform .1s;
}
.ces-hero__product-cta:hover { background: var(--c-blue); transform: scale(1.08); }

/* ════════════════════════════════════════════════════════════
   RIGHT STACK — STATIC IMAGES
════════════════════════════════════════════════════════════ */
.ces-hero__right-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.ces-hero__right-img-card {
  position: relative;
  display: block;
  flex: 1; /* Split available height evenly on desktop */
  border-radius: var(--ces-radius-xl, 24px);
  overflow: hidden;
  text-decoration: none;
  background: var(--c-surface-alt, #eef0f3);
  transform: translateZ(0); /* Hardware acceleration */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);

}

.ces-hero__right-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.15);
}

.ces-hero__right-img-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

/* Tablet: 768–1023px — product card tucks, right stack side-by-side */
@media (max-width: 1023px) {
  .ces-hero__container {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .ces-hero__primary-card {
    min-height: auto;
    padding-bottom: calc(var(--sp-xxl) + 160px); /* room for floating product card */
  }

  .ces-hero__headline {
    font-size: 36px;
    letter-spacing: -.5px;
  }

  .ces-hero__right-stack {
    flex-direction: row;
    gap: var(--sp-lg);
  }

  .ces-hero__right-img-card { flex: 1; }

  .ces-hero__product-card {
    position: absolute;
    right: var(--sp-xl);
    bottom: var(--sp-xl);
    width: 190px;
  }
}

/* Mobile: < 768px — full single column, swipe category */
@media (max-width: 767px) {
  .ces-hero { padding: var(--sp-md) 0 var(--sp-xl); }

  .ces-hero__primary-card {
    border-radius: 18px;
    padding: var(--sp-xl) var(--sp-lg);
    padding-bottom: calc(var(--sp-xxl) + 180px);
    gap: var(--sp-lg);
  }

  .ces-hero__headline { font-size: 28px; max-width: none; }
  .ces-hero__subheadline { font-size: 15px; max-width: none; }

  .ces-hero__trust-strip {
    gap: var(--sp-md);
    padding: var(--sp-sm) var(--sp-md);
  }
  .ces-hero__trust-label { font-size: 12px; }
  .ces-hero__trust-sub   { font-size: 10px; }

  .ces-hero__cta-group { gap: var(--sp-sm); }
  .ces-hero__btn-primary,
  .ces-hero__btn-secondary {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }

  .ces-hero__product-card {
    width: 170px;
    right: var(--sp-lg);
    bottom: var(--sp-lg);
  }

  /* Right stack stacks vertically */
  .ces-hero__right-stack {
    flex-direction: column;
    gap: var(--sp-md);
  }

  .ces-hero__right-img-card { padding: 0; }
}

/* Very small: < 480px */
@media (max-width: 479px) {
  .ces-hero__headline { font-size: 24px; }
  .ces-hero__product-card { display: none; } /* hide on tiny screens, show after CTA group */
}
