/* Section 02 — Hero */
.section--hero { position: relative; overflow: hidden; }
.section--hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(40% 60% at 20% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(35% 55% at 85% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.s-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.s-hero__title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  margin-bottom: 1rem;
}
.s-hero__title-accent {
  color: var(--accent);
  display: inline-block;
}
.s-hero__lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 52ch;
}

.s-hero__bullets {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.45rem;
}
.s-hero__bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}
.s-hero__bullets span {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.s-hero__form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--border);
  background-color: var(--bg-elevated);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}
.s-hero__field { display: grid; gap: 0.35rem; }
.s-hero__field label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.s-hero__form select,
.qty__input {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-width: 140px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  overflow: hidden;
}
.qty__btn {
  flex: 0 0 auto;
  min-width: 36px;
  width: 36px;
  height: 40px;
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: background-color 0.2s ease;
}
.qty__btn:hover { background-color: var(--bg-elevated); }
.qty__input {
  width: 56px;
  border: 0;
  text-align: center;
  padding: 0.4rem 0;
  -moz-appearance: textfield;
  background: transparent;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.s-hero__cta {
  width: 100%;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 22px rgba(229, 57, 53, 0.28);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}
.s-hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(229, 57, 53, 0.42);
}
.s-hero__cta:active { transform: translateY(0); }

.s-hero__trust {
  display: flex;
  gap: 2rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border);
}
.s-hero__trust > div {
  display: grid;
  position: relative;
  padding-left: 0.9rem;
}
/* Thin accent bar on the left of each trust stat — subtle, conversion-friendly. */
.s-hero__trust > div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background-color: var(--accent);
  opacity: 0.75;
}
.s-hero__trust strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.01em;
}
.s-hero__trust span {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Visual / product mockup */
.s-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

/* Video override — injected by content-bridge.applyHeroCta() when the
   featured product has a `video` URL. Covers the visual area like a
   background, sits below the absolute-positioned badge (z-index < 3) but
   above any leftover background-image. Pointer-events: none so the
   non-interactive clip doesn't steal taps from the badge / cart icon. */
.s-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg, 12px);
  z-index: 1;
  pointer-events: none;
  background: #000;
}
.s-hero__badge {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 3;
  box-shadow: var(--shadow-md);
}
.s-hero__product {
  position: relative;
  z-index: 2;
  width: min(360px, 85%);
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
}
.s-hero__tube {
  width: 120px;
  height: 320px;
  display: grid;
  grid-template-rows: 36px 1fr;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45));
  animation: floaty 5s ease-in-out infinite;
}
.s-hero__tube-cap {
  background: linear-gradient(180deg, #2b2b30 0%, #0a0a0d 100%);
  border-radius: 10px 10px 4px 4px;
}
.s-hero__tube-body {
  position: relative;
  background: linear-gradient(180deg, #1f1f26 0%, #0a0a0d 100%);
  border-radius: 4px 4px 18px 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5rem;
  color: #fff;
}
.s-hero__tube-body::before {
  content: '';
  position: absolute;
  inset: 12px 10px;
  border: 1px solid rgba(229, 57, 53, 0.6);
  border-radius: 2px;
}
.s-hero__tube-brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--accent);
  z-index: 1;
}
.s-hero__tube-size {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  z-index: 1;
}
.s-hero__glow {
  position: absolute;
  inset: 15% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 80%);
  filter: blur(20px);
  z-index: 1;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .s-hero { grid-template-columns: 1fr; gap: 2rem; }
  .s-hero__visual { order: -1; min-height: 340px; }
  .s-hero__tube { height: 260px; width: 100px; }
  .s-hero__form { grid-template-columns: 1fr 1fr; }
  .s-hero__cta { grid-column: 1 / -1; }
  .s-hero__trust {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .s-hero__trust > div { flex: 1 1 30%; min-width: 92px; }
}

/* Intermediate range: form is 2-col but already tight — give fields a bit
   more vertical stacking room and clamp the overall hero padding. */
@media (max-width: 640px) {
  .s-hero__bullets { margin: 1rem 0 1.5rem; }
  .s-hero__form { padding: 0.85rem; gap: 0.6rem; }
  .s-hero__trust strong { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .s-hero__form { grid-template-columns: 1fr; }
  .s-hero__form select { width: 100%; }
  .s-hero__form select,
  .qty__input { min-width: 0; }
  .qty { width: 100%; justify-content: space-between; }
  .s-hero__trust { gap: 0.75rem; }
  .s-hero__trust > div { flex: 1 1 100%; padding-left: 0.75rem; }
}
