/* Comfortrek classic homepage hero — isolated composition system.
   This stylesheet intentionally uses unique ck-* selectors so legacy hero/tag-card
   positioning cannot participate in the three featured-product layout. */
.ck-featured-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.ck-featured-hero__inner {
  width: min(1380px, 100%);
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 92px) clamp(18px, 3vw, 34px) clamp(62px, 7vw, 90px);
  display: grid;
  grid-template-columns: minmax(245px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  column-gap: clamp(26px, 4vw, 64px);
  box-sizing: border-box;
}

.ck-featured-hero__copy {
  min-width: 0;
  max-width: 560px;
  align-self: center;
  position: relative;
  z-index: 1;
}

.ck-featured-hero__products {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(10px, 1.35vw, 22px);
  align-items: start;
  position: relative;
  z-index: 2;
}

.ck-featured-card {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: clamp(8px, 0.9vw, 14px);
  display: flex;
  flex-direction: column;
  align-self: start;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
  transform: none;
}

.ck-featured-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex: 0 0 auto;
  margin-bottom: clamp(8px, 0.9vw, 13px);
}

.ck-featured-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: none;
}

.ck-featured-card h3 {
  min-width: 0;
  min-height: 2.4em;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  font-size: clamp(0.72rem, 1.1vw, 1.05rem);
  line-height: 1.2;
}

.ck-featured-card .price {
  margin: 0;
  font-size: clamp(0.68rem, 0.95vw, 0.92rem);
}

.ck-featured-card--center {
  z-index: 3;
}

/* Tablet: keep the exact same left-copy/right-three-products composition. */
@media (max-width: 900px) {
  .ck-featured-hero__inner {
    min-height: 430px;
    grid-template-columns: minmax(210px, 0.64fr) minmax(0, 1.36fr);
    column-gap: 20px;
    padding: 42px 18px 52px;
  }

  .ck-featured-hero__products {
    gap: 7px;
  }

  .ck-featured-card {
    padding: 5px;
  }

  .ck-featured-card h3 {
    font-size: clamp(0.62rem, 1.4vw, 0.82rem);
  }

  .ck-featured-card .price {
    font-size: clamp(0.58rem, 1.2vw, 0.72rem);
  }
}

/* Phones: MOBILE-ONLY OPTION 2 — premium horizontal product cards.
   Desktop/tablet rules above remain untouched. On phones the copy gets the full
   width first, then the three featured products appear as larger card-style
   tiles in one horizontal row. */
@media (max-width: 640px) {
  .ck-featured-hero__inner {
    min-height: 0;
    grid-template-columns: 1fr;
    row-gap: 22px;
    column-gap: 0;
    align-items: stretch;
    padding: 34px 14px 42px;
  }

  .ck-featured-hero__copy {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .ck-featured-hero__copy .hero-eyebrow {
    font-size: clamp(.5rem, 2.2vw, .62rem);
    letter-spacing: .1em;
    margin-bottom: 9px;
  }

  .ck-featured-hero__copy h1 {
    font-size: clamp(2rem, 9.2vw, 2.8rem);
    line-height: .98;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .ck-featured-hero__copy p.sub {
    max-width: 100%;
    font-size: clamp(.76rem, 3.1vw, .9rem);
    line-height: 1.48;
    margin-bottom: 14px;
  }

  .ck-featured-hero__copy .btn-primary {
    padding: 9px 14px;
    font-size: .68rem;
  }

  .ck-featured-hero__products {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .ck-featured-card {
    min-width: 0;
    padding: 7px 7px 9px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    background: linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
    overflow: hidden;
  }

  .ck-featured-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 7px;
    border-radius: 9px;
    background: rgba(255,255,255,.05);
  }

  .ck-featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ck-featured-card h3 {
    min-height: 2.45em;
    margin: 0 0 5px;
    padding-right: 2px;
    font-size: clamp(.61rem, 2.55vw, .76rem);
    line-height: 1.16;
    font-weight: 700;
  }

  .ck-featured-card .price {
    margin: 0;
    font-size: clamp(.58rem, 2.35vw, .7rem);
    line-height: 1.15;
  }

  .ck-featured-card::after {
    content: '→';
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: .78rem;
    line-height: 1;
  }
}

@media (max-width: 430px) {
  .ck-featured-hero__inner {
    padding: 30px 12px 38px;
    row-gap: 20px;
  }

  .ck-featured-hero__products {
    gap: 6px;
  }

  .ck-featured-card {
    padding: 6px 6px 8px;
    border-radius: 11px;
  }

  .ck-featured-card__image {
    margin-bottom: 6px;
    border-radius: 8px;
  }

  .ck-featured-card h3 {
    font-size: clamp(.57rem, 2.55vw, .7rem);
  }

  .ck-featured-card .price {
    font-size: clamp(.54rem, 2.25vw, .64rem);
  }

  .ck-featured-card::after {
    width: 23px;
    height: 23px;
    margin-top: 7px;
    font-size: .72rem;
  }
}

@media (max-width: 360px) {
  .ck-featured-hero__inner {
    padding-left: 10px;
    padding-right: 10px;
    row-gap: 18px;
  }

  .ck-featured-hero__products {
    gap: 5px;
  }

  .ck-featured-card {
    padding: 5px 5px 7px;
    border-radius: 10px;
  }

  .ck-featured-card h3 {
    font-size: .55rem;
  }

  .ck-featured-card .price {
    font-size: .52rem;
  }

  .ck-featured-card::after {
    width: 21px;
    height: 21px;
    font-size: .68rem;
  }
}
