/* ==========================================================================
   Offer and conversion layer: tighter mobile hero, trust strip, four-card size
   grid, product page set offer, cart drawer upsells. Loaded after the other
   stylesheets so these rules win.
   ========================================================================== */

/* Hero text link, trust strip, four-card size grid ------------------------ */

.hero__actions {
  align-items: center;
  gap: 1rem 1.5rem;
}

.trust-bar {
  padding-block: 1rem;
  border-block: 1px solid var(--color-border);
}

.trust-bar--tint {
  background: var(--color-surface);
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem clamp(1.25rem, 4vw, 3.5rem);
  font-size: 0.9rem;
}

.trust-bar__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.trust-bar__list .icon {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-accent-strong);
}

.size-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.size-card__title a {
  text-decoration: none;
}

.size-card--featured {
  border-color: var(--color-accent);
}

.badge--accent {
  background: var(--color-text);
  color: var(--color-bg);
}

@media (max-width: 989px) {
  .hero__frame {
    aspect-ratio: 4 / 3;
    max-height: 42vh;
    max-height: 42svh;
    width: 100%;
  }

  .hero__heading {
    font-size: calc(2rem * var(--heading-scale, 1));
    margin-bottom: 0.4em;
  }

  .hero__content .eyebrow {
    margin-bottom: 0.6rem;
  }

  .hero__subheading {
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
  }

  .hero__inner {
    gap: 1.25rem;
  }

  .size-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .size-grid--4 .size-card__body {
    padding: 0.85rem;
  }

  .size-grid--4 .size-card__top {
    flex-wrap: wrap;
    gap: 0.1rem 0.5rem;
  }

  .size-grid--4 .size-card__title {
    font-size: calc(1.45rem * var(--heading-scale, 1));
  }

  .size-grid--4 .size-card__price {
    font-size: 1.3rem;
  }

  .size-grid--4 .size-card__dimensions {
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
  }

  .size-grid--4 .size-card__description {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .size-grid--4 .size-card__more {
    display: none;
  }

  .size-grid--4 .btn {
    padding-inline: 0.75rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 599px) {
  .hero__actions {
    justify-content: center;
  }

  .trust-bar__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.75rem;
    font-size: 0.82rem;
  }
}

/* Product page: set offer, size pills with prices, shipping line ---------- */

.product__set-offer,
.product__note {
  margin: -0.6rem 0 1.1rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.product__set-offer a {
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pill-list--sizes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 0.6rem;
}

.pill-list--sizes .pill {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 4.6rem;
  padding: 0.6rem 0.3rem 0.5rem;
  text-align: center;
}

.pill__price {
  margin-top: 0.15rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.1;
}

.pill__badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -55%);
}

.pill--set {
  border-color: var(--color-accent);
}

.product__option-help {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.product__shipping-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.product__shipping-note .icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-accent-strong);
}

.trust-list {
  margin-bottom: 0.9rem !important;
}

.product__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.75rem !important;
}

.product__payments .payment-icon {
  width: 2.4rem;
  height: auto;
}

@media (max-width: 599px) {
  .pill-list--sizes {
    gap: 0.35rem;
  }

  .pill-list--sizes .pill__name {
    font-size: 0.86rem;
  }

  .pill-list--sizes .pill__detail {
    font-size: 0.7rem;
  }
}

/* Cart drawer: offer slot, gift note, empty state, payment icons ---------- */

.cart-offer {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.8rem 0.9rem;
  align-items: center;
  margin-block: 1.1rem 0.25rem;
  padding: 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.cart-offer__image {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-offer__body:first-child {
  grid-column: 1 / -1;
}

.cart-offer__heading {
  margin: 0 0 0.15rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.2;
}

.cart-offer__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.cart-offer .btn {
  grid-column: 1 / -1;
  letter-spacing: 0.1em;
}

.cart-drawer__body .empty-state .empty-state__text {
  max-width: 18rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.empty-state__link {
  font-size: 0.88rem;
}

.cart-gift {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.cart-gift__toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.cart-gift__toggle input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--color-text);
}

.cart-gift__field {
  margin-top: 0.7rem;
}

.cart-gift__field textarea {
  min-height: 0;
  resize: vertical;
}

.cart-gift__help {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.cart-drawer__payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.8rem !important;
}

.cart-drawer__payments .payment-icon {
  width: 2.1rem;
  height: auto;
}
