.fo-home-featured {
  --fohf-red: var(--fo-red, #E30613);
  --fohf-red-hover: var(--fo-red-hover, #C9000B);
  --fohf-green: var(--fo-green, #2E7D32);
  --fohf-green-hover: var(--fo-green-hover, #1B5E20);
  --fohf-navy: var(--fo-navy, #0A1E3A);
  --fohf-text: var(--fo-text, #333333);
  --fohf-muted: var(--fo-text-muted, #68717B);
  --fohf-border: var(--fo-border, #E3E6E9);
  --fohf-bg: var(--fo-bg-soft, #F6F7F8);
  --fohf-white: var(--fo-white, #FFFFFF);
  --fohf-gap: 16px;
  width: 100%;
  padding: 22px 20px 26px;
  background: var(--fohf-white);
}

.fo-home-featured__container {
  width: min(100%, var(--fo-content-standard, 1540px));
  margin: 0 auto;
}

.fo-home-featured__header {
  display: block;
  margin-bottom: var(--fo-section-content-gap, 30px);
}

.fo-home-featured__heading {
  min-width: 0;
}

.fo-home-featured__title {
  margin: 0;
  color: var(--fohf-navy);
  font-family: var(--fo-font-heading, Manrope, Inter, sans-serif);
  font-size: var(--fo-section-title-size, clamp(26px, 1.8vw, 31px));
  line-height: var(--fo-section-title-line, 1.12);
  font-weight: var(--fo-section-title-weight, 800);
  letter-spacing: var(--fo-section-title-tracking, -.025em);
}

.fo-home-featured__intro {
  margin: var(--fo-section-title-gap, 7px) 0 0;
  color: var(--fohf-muted);
  font-family: var(--fo-font-body, Inter, sans-serif);
  font-size: var(--fo-section-intro-size, 15px);
  line-height: var(--fo-section-intro-line, 1.5);
}

.fo-home-featured__tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--fohf-border);
  border-radius: 13px;
  background: rgba(255,255,255,.9);
  scrollbar-width: none;
}

.fo-home-featured__tabs::-webkit-scrollbar { display: none; }

.fo-home-featured__tab {
  min-height: 40px;
  padding: 8px 17px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--fohf-text);
  font-family: var(--fo-font-heading, Manrope, Inter, sans-serif);
  font-size: 14px;
  line-height: 1;
  font-weight: 750;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.fo-home-featured__tab:hover { color: var(--fohf-red); }

.fo-home-featured__tab.is-active {
  background: var(--fohf-navy);
  color: #fff;
  box-shadow: 0 5px 14px rgba(10,30,58,.15);
}

.fo-home-featured__panel[hidden] { display: none !important; }

.fo-home-featured__toolbar {
  display: flex;
  justify-content: flex-end;
  min-height: 26px;
  margin-bottom: 8px;
}

.fo-home-featured__all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fohf-navy);
  font-family: var(--fo-font-heading, Manrope, Inter, sans-serif);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.fo-home-featured__all:hover { color: var(--fohf-red); }
.fo-home-featured__all span { font-size: 18px; line-height: 1; }

.fo-home-featured__carousel {
  position: relative;
  padding: 0 42px;
}

.fo-home-featured__viewport {
  --fohf-columns: 5;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.fo-home-featured__viewport img,
.fo-home-featured__viewport a {
  -webkit-user-drag: none;
  user-drag: none;
}

.fo-home-featured__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.fo-home-featured__viewport::-webkit-scrollbar { display: none; }

.fo-home-featured__track {
  display: flex;
  width: 100%;
  gap: var(--fohf-gap);
  padding: 4px 1px 12px;
}

.fo-home-featured__slide {
  flex: 0 0 calc((100% - (var(--fohf-gap) * (var(--fohf-columns) - 1))) / var(--fohf-columns));
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.fo-home-featured__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(10,30,58,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: rgba(10,30,58,.68);
  box-shadow: 0 4px 14px rgba(10,30,58,.07);
  transform: translateY(-50%);
  transition: color .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.fo-home-featured__arrow--prev { left: 2px; }
.fo-home-featured__arrow--next { right: 2px; }

.fo-home-featured__arrow .material-icons {
  font-size: 25px;
  line-height: 1;
}

.fo-home-featured__arrow:hover:not(:disabled),
.fo-home-featured__arrow:focus-visible:not(:disabled) {
  border-color: rgba(227,6,19,.35);
  background: #fff;
  color: var(--fohf-red);
  box-shadow: 0 6px 18px rgba(10,30,58,.11);
}

.fo-home-featured__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

/* FactoryOficina card: only image, title, stock, price and add to cart. */
.fo-product-card {
  height: 100%;
  margin: 0;
}

.fo-product-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--fohf-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(10,30,58,.055);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

@media (hover:hover) and (pointer:fine) {
  .fo-product-card__inner:hover {
    transform: translateY(-4px);
    border-color: #d4d8dc;
    box-shadow: 0 14px 28px rgba(10,30,58,.105);
  }
}

.fo-product-card__top {
  position: relative;
  padding: 11px 11px 0;
  background: #fff;
}

.fo-product-card__image-container,
.fo-product-card__image-link,
.fo-product-card__image-container picture {
  display: block;
  width: 100%;
}

.fo-product-card__image-link {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.fo-product-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform .35s ease;
}

@media (hover:hover) and (pointer:fine) {
  .fo-product-card__inner:hover .fo-product-card__image { transform: scale(1.025); }
}

.fo-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 11px 14px 14px;
}

.fo-product-card__title {
  display: -webkit-box;
  min-height: 47px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--fohf-text);
  font-family: var(--fo-font-body, Inter, sans-serif);
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 700;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fo-product-card__title:hover { color: var(--fohf-red); }

.fo-product-card__stock {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--fohf-green);
  font-family: var(--fo-font-body, Inter, sans-serif);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
}

.fo-product-card__stock strong { font-weight: 800; }

.fo-product-card__stock-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fohf-green);
  box-shadow: 0 0 0 3px rgba(46,125,50,.10);
}

.fo-product-card__stock.is-out { color: var(--fohf-muted); }
.fo-product-card__stock.is-out .fo-product-card__stock-dot {
  background: #9aa1a8;
  box-shadow: 0 0 0 3px rgba(104,113,123,.10);
}

.fo-product-card__prices {
  margin-top: auto;
  padding-top: 5px;
}

.fo-product-card__price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 5px 8px;
}

.fo-product-card__price {
  color: var(--fohf-green);
  font-family: var(--fo-font-heading, Manrope, Inter, sans-serif);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
}

.fo-product-card__regular-price {
  color: #969da4;
  font-family: var(--fo-font-body, Inter, sans-serif);
  font-size: 13.5px;
  text-decoration: line-through;
}

.fo-product-card__discount {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--fohf-red);
  color: #fff;
  font-family: var(--fo-font-heading, Manrope, Inter, sans-serif);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(227,6,19,.16);
}

.fo-product-card__tax-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-top: 5px;
  color: #a1a6ab;
  font-family: var(--fo-font-body, Inter, sans-serif);
}

.fo-product-card__tax-price strong {
  font-family: var(--fo-font-heading, Manrope, Inter, sans-serif);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.fo-product-card__tax-price span {
  font-size: 11.5px;
  white-space: nowrap;
}

.fo-product-card__action { margin-top: 12px; }
.fo-product-card__form { margin: 0; }

.fo-product-card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 9px;
  border-color: var(--fohf-green);
  background: var(--fohf-green);
  color: #fff;
  font-family: var(--fo-font-heading, Manrope, Inter, sans-serif);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
}

.fo-product-card__add .material-icons { font-size: 18px; }

.fo-product-card__add:hover:not(:disabled),
.fo-product-card__add:focus-visible:not(:disabled) {
  border-color: var(--fohf-green-hover);
  background: var(--fohf-green-hover);
  color: #fff;
}

.fo-product-card__add--disabled,
.fo-product-card__add--disabled:disabled {
  border-color: var(--fohf-border);
  background: var(--fohf-bg);
  color: var(--fohf-muted);
  opacity: 1;
}

@media (max-width: 1399.98px) {
  .fo-home-featured__viewport { --fohf-columns: 4; }
}

@media (max-width: 1099.98px) {
  .fo-home-featured__viewport { --fohf-columns: 3; }
}

@media (max-width: 767.98px) {
  .fo-home-featured {
    --fohf-gap: 12px;
    padding: 18px 10px 22px;
  }

  .fo-home-featured__header {
    margin-bottom: var(--fo-section-content-gap-mobile, 24px);
  }

  .fo-home-featured__title { font-size: var(--fo-section-title-size-mobile, 24px); line-height: 1.1; }
  .fo-home-featured__intro { margin-top: var(--fo-section-title-gap, 7px); font-size: var(--fo-section-intro-size-mobile, 14px); line-height: 1.45; }

  .fo-home-featured__tabs {
    width: 100%;
    margin-top: 13px;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border-radius: 11px;
  }

  .fo-home-featured__tab {
    flex: 0 0 auto;
    min-height: 37px;
    padding: 8px 13px;
    font-size: 12.8px;
  }

  .fo-home-featured__toolbar {
    min-height: 24px;
    margin-bottom: 6px;
  }

  .fo-home-featured__all { font-size: 13px; }

  .fo-home-featured__carousel { padding: 0 34px; }
  .fo-home-featured__viewport { --fohf-columns: 1; }

  .fo-home-featured__arrow {
    width: 29px;
    height: 44px;
  }

  .fo-home-featured__arrow--prev { left: 0; }
  .fo-home-featured__arrow--next { right: 0; }
  .fo-home-featured__arrow .material-icons { font-size: 22px; }

  .fo-product-card__body { padding: 10px 12px 12px; }
  .fo-product-card__title { min-height: 45px; font-size: 15px; }
  .fo-product-card__stock { font-size: 13.5px; }
  .fo-product-card__price { font-size: 20px; }
  .fo-product-card__add { min-height: 41px; }
}

@media (min-width: 768px) and (max-width: 899.98px) {
  .fo-home-featured__viewport { --fohf-columns: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .fo-home-featured__viewport { scroll-behavior: auto; }
  .fo-home-featured__tab,
  .fo-home-featured__arrow,
  .fo-product-card__inner,
  .fo-product-card__image { transition: none; }
}

/* V1.2.1: keep the commercial price hierarchy unambiguous. */
.fo-product-card__discount {
  background-color: var(--fohf-red);
  color: #fff;
}

.fo-product-card__add:not(:disabled) {
  border-color: var(--fohf-green);
  background-color: var(--fohf-green);
  color: #fff;
}

/* V1.2.2: rebalance product-card colors. Keep green for availability cue and CTA only. */
.fo-product-card__price {
  color: var(--fohf-navy);
}

.fo-product-card__stock {
  color: var(--fohf-text);
}

.fo-product-card__stock strong {
  color: var(--fohf-text);
}

.fo-product-card__discount {
  background: var(--fohf-red);
  color: #fff;
  border: 0;
  font-weight: 800;
}

/* V1.2.3: optically align the discount badge with the price row. */
.fo-product-card__discount {
  align-self: center;
  position: relative;
  top: -1px;
}
