/* CSF final hardening layer.
   Loaded after style.css so visual QA fixes cannot be buried under older factory blocks. */

body.home:has(.csf-design-home) .csf-design-section-head {
  grid-template-columns: minmax(0, 1fr);
  max-width: 930px;
  min-height: 260px;
  margin-bottom: 18px;
  padding: 34px;
  overflow: hidden;
}

body.home:has(.csf-design-home) .csf-design-section-head::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 30px;
  bottom: 28px;
  width: 230px;
  border: 1px solid rgba(103,232,249,.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(103,232,249,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,232,249,.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 58%, rgba(103,232,249,.16), transparent 56%);
  background-size: 26px 26px, 26px 26px, auto;
  opacity: .8;
}

body.home:has(.csf-design-home) .csf-design-section-head > * {
  position: relative;
  z-index: 1;
}

body.home:has(.csf-design-home) .csf-design-section-head h2 {
  max-width: 660px;
  font-size: clamp(44px, 4.2vw, 62px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

body.home:has(.csf-design-home) .csf-design-lead,
body.home:has(.csf-design-home) .csf-design-commerce-lead {
  color: rgba(248,251,252,.86);
  font-size: 18px;
  line-height: 1.7;
}

body.home:has(.csf-design-home) .csf-design-proof-row span {
  color: rgba(248,251,252,.84);
}

body.home:has(.csf-design-home) .csf-design-hero-cluster {
  position: absolute;
  z-index: 4;
  left: -15%;
  right: auto;
  bottom: 8%;
  width: 150%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 34px 28px rgba(0,0,0,.34));
}

body.home:has(.csf-design-home) .csf-design-section-kpis {
  display: none;
}

body.home:has(.csf-design-home) .csf-design-command {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.home:has(.csf-design-home) .csf-design-command span {
  min-height: 48px;
  flex: 1 1 210px;
  padding: 12px 14px;
  border: 1px solid rgba(103,232,249,.18);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(103,232,249,.13), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

body.home:has(.csf-design-home) .csf-design-command span:first-child {
  border-color: rgba(103,232,249,.38);
  background:
    linear-gradient(90deg, rgba(103,232,249,.26), rgba(255,255,255,.07));
  box-shadow: 0 14px 34px rgba(8,167,181,.10), inset 0 1px 0 rgba(255,255,255,.12);
}

body.home:has(.csf-design-home) .csf-design-command strong {
  display: inline;
  margin: 0 8px 0 0;
}

body.home:has(.csf-design-home) .csf-design-catalog ul.products {
  gap: 24px;
}

body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product {
  border-color: rgba(103,232,249,.36);
  background:
    radial-gradient(circle at 50% 0, rgba(103,232,249,.22), transparent 40%),
    linear-gradient(180deg, #122b3c 0%, #0b1828 100%);
  box-shadow: 0 30px 76px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}

body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product .woocommerce-loop-product__title,
body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product h2 {
  font-size: 22px !important;
  line-height: 1.08 !important;
}

body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product .price {
  color: #67e8f9 !important;
  font-size: 19px !important;
  font-weight: 950 !important;
}

body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product .button {
  min-height: 48px;
  background: linear-gradient(90deg, #67e8f9 0%, #dff8fb 100%) !important;
  color: #07101d !important;
  box-shadow: 0 18px 36px rgba(8,167,181,.22);
}

@media (min-width: 981px) {
  body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product:first-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(260px, .8fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 24px;
    min-height: 430px;
    padding: 18px !important;
  }

  body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product:first-child::before {
    content: "Featured blend";
    grid-column: 1 / -1;
    margin-bottom: 14px;
  }

  body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product:first-child figure {
    grid-column: 1;
    grid-row: 2 / 5;
    min-height: 360px;
    margin: 0 !important;
  }

  body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product:first-child .ct-media-container {
    min-height: 360px;
  }

  body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product:first-child img {
    height: 342px !important;
    max-height: 342px !important;
  }

  body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product:first-child .woocommerce-loop-product__title,
  body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product:first-child h2 {
    grid-column: 2;
    align-self: end;
    min-height: 0;
    font-size: 31px !important;
    line-height: 1.02 !important;
  }

  body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product:first-child .price {
    grid-column: 2;
    font-size: 24px !important;
  }

  body.home:has(.csf-design-home) .csf-design-catalog ul.products li.product:first-child .ct-woo-card-actions {
    grid-column: 2;
  }
}

body.home:has(.csf-design-home) .csf-design-system-card {
  min-height: 0;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border-color: rgba(103,232,249,.22);
  background:
    radial-gradient(circle at 82% 72%, rgba(103,232,249,.18), transparent 26%),
    linear-gradient(90deg, rgba(103,232,249,.06), rgba(255,255,255,.035)),
    rgba(255,255,255,.065);
}

body.home:has(.csf-design-home) .csf-design-systems__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.home:has(.csf-design-home) .csf-design-systems__grid {
  align-items: stretch;
}

body.home:has(.csf-design-home) .csf-design-system-card::before {
  display: none;
}

body.home:has(.csf-design-home) .csf-design-system-card::after {
  display: none;
}

body.home:has(.csf-design-home) .csf-design-system-card span {
  width: 54px;
  height: 54px;
  margin: 0;
  border-color: rgba(103,232,249,.32);
  background: rgba(103,232,249,.08);
}

body.home:has(.csf-design-home) .csf-design-system-card strong,
body.home:has(.csf-design-home) .csf-design-system-card h3,
body.home:has(.csf-design-home) .csf-design-system-card p {
  grid-column: auto;
}

body.home:has(.csf-design-home) .csf-design-system-card strong {
  margin-bottom: 0;
  color: #67e8f9;
}

body.home:has(.csf-design-home) .csf-design-system-card h3 {
  margin-top: 4px;
  font-size: 27px;
  max-width: 30ch;
}

body.home:has(.csf-design-home) .csf-design-system-card p {
  max-width: 58ch;
  margin-top: 8px;
  color: rgba(236,247,248,.82);
  font-size: 15px;
  line-height: 1.58;
}

body.home:has(.csf-design-home) .csf-design-system-card__art {
  width: auto;
  height: 210px;
  max-width: 64%;
  object-fit: contain;
  align-self: flex-end;
  margin-top: auto;
  filter: drop-shadow(0 22px 18px rgba(0,0,0,.36));
}

body.home:has(.csf-design-home) .csf-design-lead,
body.home:has(.csf-design-home) .csf-design-commerce-lead,
body.home:has(.csf-design-home) .csf-design-command span,
body.home:has(.csf-design-home) .csf-bigfoot__brand p,
body.home:has(.csf-design-home) .csf-bigfoot__bar {
  color: rgba(248,251,252,.82);
}

body.home:has(.csf-design-home) .csf-bigfoot {
  padding-top: 58px;
}

body.home:has(.csf-design-home) .csf-bigfoot__wrap {
  gap: 28px;
}

body.home:has(.csf-design-home) .csf-bigfoot__col {
  padding: 22px;
}

body.home:has(.csf-design-home) .csf-bigfoot__col a {
  line-height: 1.55;
}

@media (max-width: 760px) {
  body.home:has(.csf-design-home) .csf-design-section-head {
    min-height: 0;
    padding: 24px;
  }

  body.home:has(.csf-design-home) .csf-design-section-head::after {
    display: none;
  }

  body.home:has(.csf-design-home) .csf-design-section-head h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  body.home:has(.csf-design-home) .csf-design-command span {
    border-radius: 8px;
  }

  body.home:has(.csf-design-home) .csf-design-hero-cluster {
    left: -18%;
    bottom: 10%;
    width: 160%;
  }

  body.home:has(.csf-design-home) .csf-design-system-card {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  body.home:has(.csf-design-home) .csf-design-system-card::after {
    display: none;
  }

  body.home:has(.csf-design-home) .csf-design-system-card strong,
  body.home:has(.csf-design-home) .csf-design-system-card h3,
  body.home:has(.csf-design-home) .csf-design-system-card p {
    grid-column: auto;
  }

  body.home:has(.csf-design-home) .csf-design-systems__grid {
    grid-template-columns: 1fr;
  }

  body.home:has(.csf-design-home) .csf-design-system-card__art {
    height: 150px;
    max-width: 48%;
  }
}
