/* Comptoir du Robinet — premium homepage hero.
 * This component intentionally owns the hero presentation so the storefront
 * can evolve independently from the shared homepage sections. */

body.cdrt-theme .cdrt-home-hero {
  border-bottom: 1px solid rgba(234, 216, 173, .13);
  color: #fff;
  background:
    radial-gradient(circle at 84% 24%, rgba(198, 161, 91, .1), transparent 26%),
    linear-gradient(132deg, #091b2a 0%, #10283d 72%, #153248 100%);
}

body.cdrt-theme .cdrt-home-hero::before {
  opacity: .08;
  background-size: 68px 68px;
  mask-image: linear-gradient(to right, transparent 8%, rgba(0, 0, 0, .38) 58%, #000 100%);
}

body.cdrt-theme .cdrt-home-hero__inner {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: clamp(42px, 5.4vw, 70px);
  min-height: 520px;
  padding-block: clamp(46px, 5.1vw, 60px);
}

body.cdrt-theme .cdrt-home-hero__copy {
  max-width: 650px;
}

body.cdrt-theme .cdrt-home-hero .cdrt-home-eyebrow {
  margin-bottom: 13px;
  color: #d9be82;
  font-size: 9.5px;
  letter-spacing: .15em;
}

body.cdrt-theme .cdrt-home-hero h1 {
  max-width: 620px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.55rem, 4.15vw, 4rem);
  letter-spacing: -.048em;
  line-height: 1.035;
}

body.cdrt-theme .cdrt-home-hero__lead {
  max-width: 625px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(.94rem, .98vw, 1rem);
  line-height: 1.58;
}

body.cdrt-theme .cdrt-home-hero__actions {
  gap: 10px;
  margin-bottom: 0;
}

body.cdrt-theme .cdrt-home-hero .cdrt-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 5px;
  box-shadow: none;
}

body.cdrt-theme .cdrt-home-hero__actions .cdrt-button::after {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: currentColor;
  background: transparent;
  box-shadow: none;
  content: "→";
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transform: none;
}

body.cdrt-theme .cdrt-home-hero .cdrt-button--primary {
  border-color: #f7f4ee;
  color: #0b1e2e;
  background: #f7f4ee;
  box-shadow: none;
}

body.cdrt-theme .cdrt-home-hero .cdrt-button--secondary {
  border-color: rgba(255, 255, 255, .24);
  color: rgba(255, 255, 255, .92);
  background: transparent;
}

/* The utility bar already carries reassurance messages above the header.
 * Keep the hero focused on discovery and product selection. */
body.cdrt-theme .cdrt-home-hero__reassurance {
  display: none !important;
}

/* Product display ------------------------------------------------------ */
body.cdrt-theme .cdrt-home-hero__visual {
  width: min(100%, 520px);
  justify-self: end;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.cdrt-theme .cdrt-home-hero-product {
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

body.cdrt-theme .cdrt-home-hero-product__label,
body.cdrt-theme .cdrt-home-hero-mini {
  display: none !important;
}

body.cdrt-theme .cdrt-home-hero-product__image {
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(198, 161, 91, .2);
  border-radius: 6px;
  background: #f3eee4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
}

body.cdrt-theme .cdrt-home-hero-product__image img {
  transform: scale(1);
  transition: transform .28s ease, opacity .18s ease;
}

body.cdrt-theme .cdrt-home-hero-product__meta {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 18px;
  align-items: baseline;
  padding: 12px 0 0;
  background: transparent;
}

body.cdrt-theme .cdrt-home-hero-product__meta strong {
  min-width: 0;
  color: #fff;
  font-size: 13.5px;
  font-weight: 710;
  line-height: 1.35;
}

body.cdrt-theme .cdrt-home-hero-product__price {
  color: #e0c98e;
  font-size: 14.5px;
  font-weight: 780;
  line-height: 1.3;
}

body.cdrt-theme .cdrt-home-hero-product__price del {
  color: rgba(255, 255, 255, .46);
  font-size: 10px;
}

body.cdrt-theme .cdrt-home-hero-product__meta small {
  color: rgba(255, 255, 255, .58);
  font-size: 10.5px;
  font-weight: 620;
}

body.cdrt-theme .cdrt-home-hero-product--fallback {
  min-height: 340px;
  padding: 28px;
  border: 1px solid rgba(198, 161, 91, .2);
  border-radius: 6px;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .04);
}

body.cdrt-theme .cdrt-home-hero-product--fallback svg {
  stroke: #d9be82;
}

@media (hover: hover) {
  body.cdrt-theme .cdrt-home-hero .cdrt-button--primary:hover {
    border-color: #e6cf98;
    color: #0b1e2e;
    background: #e6cf98;
  }

  body.cdrt-theme .cdrt-home-hero .cdrt-button--secondary:hover {
    border-color: rgba(255, 255, 255, .46);
    color: #fff;
    background: rgba(255, 255, 255, .05);
  }

  body.cdrt-theme .cdrt-home-hero__actions .cdrt-button:hover::after {
    transform: translateX(2px);
  }

  body.cdrt-theme .cdrt-home-hero-product:hover .cdrt-home-hero-product__image img {
    opacity: .97;
    transform: scale(1.01);
  }
}

@media (max-width: 1120px) {
  body.cdrt-theme .cdrt-home-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
    gap: 38px;
  }

  body.cdrt-theme .cdrt-home-hero h1 {
    font-size: clamp(2.5rem, 4.7vw, 3.7rem);
  }
}

@media (max-width: 940px) {
  body.cdrt-theme .cdrt-home-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding-block: 46px 50px;
  }

  body.cdrt-theme .cdrt-home-hero__copy {
    max-width: 720px;
  }

  body.cdrt-theme .cdrt-home-hero__visual {
    width: min(100%, 620px);
    justify-self: start;
    padding: 0;
    border: 0;
  }

  body.cdrt-theme .cdrt-home-hero-product__image {
    aspect-ratio: 1.42 / 1;
  }
}

@media (max-width: 700px) {
  body.cdrt-theme .cdrt-home-hero__inner {
    gap: 28px;
    padding-block: 40px 44px;
  }

  body.cdrt-theme .cdrt-home-hero h1 {
    max-width: 560px;
    font-size: clamp(2.25rem, 9.4vw, 3.05rem);
    line-height: 1.04;
  }

  body.cdrt-theme .cdrt-home-hero__lead {
    margin-bottom: 21px;
    font-size: .94rem;
    line-height: 1.54;
  }

  body.cdrt-theme .cdrt-home-hero-product__image {
    aspect-ratio: 1.3 / 1;
    padding: 9px;
  }
}

@media (max-width: 520px) {
  body.cdrt-theme .cdrt-home-hero .cdrt-home-eyebrow {
    font-size: 8.5px;
  }

  body.cdrt-theme .cdrt-home-hero h1 {
    font-size: clamp(2.08rem, 10vw, 2.8rem);
  }

  body.cdrt-theme .cdrt-home-hero__actions {
    grid-template-columns: 1fr;
  }

  body.cdrt-theme .cdrt-home-hero__actions .cdrt-button {
    width: 100%;
  }

  body.cdrt-theme .cdrt-home-hero-product__image {
    aspect-ratio: 1.18 / 1;
    padding: 8px;
    border-radius: 5px;
  }

  body.cdrt-theme .cdrt-home-hero-product__meta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    padding-top: 11px;
  }

  body.cdrt-theme .cdrt-home-hero-product__meta strong {
    font-size: 11.8px;
  }

  body.cdrt-theme .cdrt-home-hero-product__price {
    font-size: 12.8px;
  }

  body.cdrt-theme .cdrt-home-hero-product__meta small {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cdrt-theme .cdrt-home-hero__actions .cdrt-button::after,
  body.cdrt-theme .cdrt-home-hero-product__image img {
    transition: none;
  }
}
