/* Homepage hero hits — isolated .fst-hero-products-* */

.fst-hero-products {
  --fst-hp-pink: #c41a5b;
  --fst-hp-pink-hover: #a3144a;
  --fst-hp-pink-soft: #d82e6b;
  --fst-hp-text: #1f2937;
  --fst-hp-muted: #6b7280;
  --fst-hp-price: #111827;
  --fst-hp-border: #f1f1f5;
  --fst-hp-line: #e5e7eb;
  --fst-hp-gap: 20px;
  --fst-hp-font: "Manrope", "Segoe UI", Candara, sans-serif;
  --fst-hp-display: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  margin-top: 28px !important;
  margin-bottom: 48px !important;
  font-family: var(--fst-hp-font);
}

.fst-hero-products *,
.fst-hero-products *::before,
.fst-hero-products *::after {
  box-sizing: border-box;
}

/* —— Header —— */
.fst-hero-products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.fst-hero-products__intro {
  min-width: 0;
  flex: 1 1 auto;
}

.fst-hero-products__eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--fst-hp-pink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.fst-hero-products__title {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: var(--fst-hp-price);
  font-family: var(--fst-hp-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fst-hero-products__subtitle {
  margin: 0;
  max-width: 40rem;
  color: var(--fst-hp-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.fst-hero-products__controls {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}

.fst-hero-products__all {
  color: var(--fst-hp-pink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.fst-hero-products__all:hover,
.fst-hero-products__all:focus {
  color: var(--fst-hp-pink-hover);
  text-decoration: none;
}

.fst-hero-products__nav {
  display: flex;
  gap: 8px;
}

.fst-hero-products__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--fst-hp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--fst-hp-text);
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.fst-hero-products__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fst-hero-products__arrow:hover,
.fst-hero-products__arrow:focus-visible {
  background: var(--fst-hp-pink);
  border-color: var(--fst-hp-pink);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.fst-hero-products__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

/* —— SEO pills —— */
.fst-hero-products__pills {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0 0 2px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fst-hero-products__pills::-webkit-scrollbar {
  display: none;
}

.fst-hero-products__pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--fst-hp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fst-hp-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fst-hero-products__pill:hover,
.fst-hero-products__pill:focus {
  border-color: #f3b4c9;
  color: var(--fst-hp-pink);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(196, 26, 91, 0.08);
}

.fst-hero-products__pill.is-active {
  background: linear-gradient(135deg, var(--fst-hp-pink) 0%, var(--fst-hp-pink-soft) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(196, 26, 91, 0.18);
}

/* —— Carousel —— */
.fst-hero-products__viewport {
  position: relative;
}

.fst-hero-products__track {
  display: flex;
  gap: var(--fst-hp-gap);
  margin: 0;
  padding: 4px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fst-hero-products__track::-webkit-scrollbar {
  display: none;
}

.fst-hero-products__slide {
  flex: 0 0 calc((100% - (var(--fst-hp-gap) * 3)) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

/* —— Card —— */
.fst-hero-products__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--fst-hp-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.fst-hero-products__card:hover {
  border-color: #ebe6ea;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.fst-hero-products__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f8f5f7;
  border-radius: 16px 16px 0 0;
}

.fst-hero-products__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.fst-hero-products__card:hover .fst-hero-products__media img {
  transform: scale(1.04);
}

.fst-hero-products__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--fst-hp-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fst-hero-products__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.fst-hero-products__name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--fst-hp-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.fst-hero-products__name:hover,
.fst-hero-products__name:focus {
  color: var(--fst-hp-pink);
  text-decoration: none;
}

.fst-hero-products__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.fst-hero-products__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: var(--fst-hp-price);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.fst-hero-products__price .woocommerce-Price-amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.fst-hero-products__price-old {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  text-decoration: line-through;
}

.fst-hero-products__cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--fst-hp-pink) !important;
  color: #fff !important;
  font-family: var(--fst-hp-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.fst-hero-products__cart:hover,
.fst-hero-products__cart:focus {
  background: var(--fst-hp-pink-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.fst-hero-products__cart .fs-card-ico,
.fst-hero-products__cart-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: currentColor;
}

.fst-hero-products__cart.is-in-cart:not(.is-just-added):not(.is-added),
.fst-hero-products__cart.is-in-cart:not(.is-just-added):not(.is-added):hover {
  background: #111827 !important;
  color: #fff !important;
}

.fst-hero-products__cart.is-just-added,
.fst-hero-products__cart.is-just-added:hover,
.fst-hero-products__cart.is-added,
.fst-hero-products__cart.is-added:hover {
  background: #059669 !important;
  color: #fff !important;
}

/* Kill legacy section chrome if theme wraps us */
.fst-hero-products .hr-catalog,
.fst-hero-products .section-block__header,
.fst-hero-products .section-block__description-wrapper,
.fst-hero-products .view-all {
  display: none !important;
}

@media (max-width: 1100px) {
  .fst-hero-products__slide {
    flex-basis: calc((100% - (var(--fst-hp-gap) * 1.5)) / 2.5);
  }
}

@media (max-width: 767px) {
  .fst-hero-products__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .fst-hero-products__controls {
    width: 100%;
    justify-content: space-between;
  }

  .fst-hero-products__subtitle {
    font-size: 14px;
  }

  .fst-hero-products__slide {
    flex-basis: calc(100% / 1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fst-hero-products__card,
  .fst-hero-products__media img,
  .fst-hero-products__arrow,
  .fst-hero-products__cart,
  .fst-hero-products__track {
    transition: none !important;
    scroll-behavior: auto;
  }

  .fst-hero-products__card:hover {
    transform: none;
  }

  .fst-hero-products__card:hover .fst-hero-products__media img {
    transform: none;
  }
}
