.featured-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.featured-slider__stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  overflow: visible;
}

.hero-showcase__scene {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: visible;
  --platform-width: min(92%, 280px);
}

.featured-slider__platform {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--platform-width);
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 120, 255, 0.35));
}

.featured-slider__product-stack {
  display: contents;
}

.featured-slider__product {
  --product-scale: 1;
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: 72%;
  height: 200px;
  max-height: none;
  margin-bottom: 0;
  opacity: 0;
  transform: translateX(-50%) translateY(var(--product-lift, 0))
    scale(var(--product-scale));
  transform-origin: center bottom;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
  transition: opacity 0.3s ease;
}

.featured-slider__product.is-active {
  opacity: 1;
}

.featured-slider__product[data-product-id="maquina"] {
  --product-scale: 0.9;
}

.featured-slider__product[data-product-id="microondas"] {
  --product-scale: 0.8;
}

.featured-slider__product.is-fading {
  opacity: 0;
}

.featured-slider__badge {
  position: absolute;
  left: 52%;
  bottom: 10%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--platform-width) * 2 / 100);
  padding: calc(var(--platform-width) * 4 / 100) 0
    calc(var(--platform-width) * 5 / 100);
  border-radius: 0;
  background: transparent;
  border: 0;
  text-align: center;
  width: calc(var(--platform-width) * 58 / 100);
  min-width: 0;
  pointer-events: none;
}

.featured-slider__badge-label,
.featured-slider__badge-name {
  font-size: 12px;
}

.featured-slider__badge-label {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.2;
}

.featured-slider__badge-name {
  font-weight: 800;
  line-height: 1.15;
  color: var(--accent-yellow);
}

.featured-slider__nav {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.featured-slider__nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.featured-slider__nav--prev {
  left: max(8px, calc(50% - 176px));
}

.featured-slider__nav--next {
  right: max(8px, calc(50% - 176px));
}

.hero-showcase__hang {
  display: none;
  position: absolute;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
}

.thumb-slider {
  position: relative;
  z-index: 4;
  width: 100%;
}

.thumb-slider--coupons .thumb-slider__viewport {
  overflow-x: hidden;
  scroll-snap-type: none;
  container-type: normal;
}

.thumb-slider--coupons .thumb-slider__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 12px);
  padding-inline: 8px;
  padding-block: 10px;
}

.thumb-slider--coupons .thumb-card {
  flex: none;
  width: auto;
  min-width: 0;
  scroll-snap-align: unset;
}

.thumb-slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  border-radius: 14px;
  background: rgba(8, 30, 90, 0.55);
  border: 1px solid rgba(120, 180, 255, 0.25);
  container-type: inline-size;
}

.thumb-slider__viewport::-webkit-scrollbar {
  display: none;
}

.thumb-slider__track {
  --thumb-visible: 3;
  --thumb-gap: 10px;
  --thumb-inset: 20px;
  --thumb-card-width: calc(
    (
        100cqw - (var(--thumb-gap) * (var(--thumb-visible) - 1)) -
          var(--thumb-inset)
      ) /
      var(--thumb-visible)
  );
  display: flex;
  gap: var(--thumb-gap);
  padding-block: 8px;
  padding-inline: calc(50cqw - var(--thumb-card-width) / 2);
}

.thumb-card {
  flex: 0 0 max(var(--thumb-card-width), var(--thumb-card-min, 0px));
  scroll-snap-align: center;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.thumb-card.is-active {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 16px rgba(251, 187, 0, 0.45);
  transform: translateY(-2px);
}

.thumb-card__media {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.thumb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 8px;
  background: linear-gradient(
    180deg,
    rgba(4, 22, 68, 0) 20%,
    rgba(4, 22, 68, 0.92) 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.thumb-card:hover .thumb-card__overlay,
.thumb-card:focus-visible .thumb-card__overlay {
  opacity: 1;
}

@media (hover: hover) and (min-width: 1024px) {
  .thumb-card:hover .thumb-card__overlay,
  .thumb-card:focus-visible .thumb-card__overlay {
    background: linear-gradient(
      180deg,
      rgba(4, 22, 68, 0.72) 0%,
      rgba(4, 22, 68, 0.97) 55%,
      rgba(2, 12, 40, 1) 100%
    );
  }
}

.thumb-card__overlay--coupon {
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: linear-gradient(
    180deg,
    rgba(4, 22, 68, 0.4) 0%,
    rgba(4, 22, 68, 0.9) 100%
  );
}

.thumb-card__coupon-svg {
  display: block;
  width: min(100%, 112px);
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(4, 22, 68, 0.35));
}

@media (hover: hover) and (min-width: 1024px) {
  .thumb-card--coupon:hover .thumb-card__overlay--coupon,
  .thumb-card--coupon:focus-visible .thumb-card__overlay--coupon {
    background: linear-gradient(
      180deg,
      rgba(4, 22, 68, 0.72) 0%,
      rgba(4, 22, 68, 0.97) 55%,
      rgba(2, 12, 40, 1) 100%
    );
  }
}

.thumb-card__name {
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  margin-bottom: 4px;
}

.thumb-card__pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.thumb-card__price-old {
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
}

.thumb-card__price-coupon {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c3bdd 0%, #1b5cff 100%);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(12, 59, 221, 0.28);
}

.thumb-card__coupon-ticket {
  --coupon-notch: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: linear-gradient(180deg, #f3f7ff 0%, #e5edff 100%);
  border: 1px solid #c8d8fb;
  color: #0c3bdd;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
}

.thumb-card__coupon-ticket::before,
.thumb-card__coupon-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(var(--coupon-notch) * 2);
  height: calc(var(--coupon-notch) * 2);
  background: rgba(6, 28, 82, 0.85);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px #d7e3fa;
}

.thumb-card__coupon-ticket::before {
  left: calc(var(--coupon-notch) * -1);
}

.thumb-card__coupon-ticket::after {
  right: calc(var(--coupon-notch) * -1);
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card.is-selected {
  border-color: var(--btn-primary);
  box-shadow: 0 0 0 1px var(--btn-primary);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: #f5f8ff;
  border-radius: 8px;
  overflow: hidden;
}

.product-card__media img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.product-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--btn-primary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
}

.product-card__body {
  flex: 1;
}

.product-card__name {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.product-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card__price-old {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.product-card__price-sale {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--btn-primary);
}

@media (min-width: 1024px) {
  .featured-slider {
    min-height: auto;
  }

  .featured-slider__stage {
    max-width: 100%;
  }

  .hero-showcase__scene {
    height: var(--scene-height);
    container-type: inline-size;
    --platform-width: min(95%, var(--platform-max), 80cqw);
  }

  .featured-slider__platform {
    max-width: none;
    width: var(--platform-width);
  }

  .featured-slider__product {
    bottom: var(--product-bottom);
    width: min(90%, var(--product-width), 72cqw);
    height: min(var(--product-slot-height), 62cqw);
    transform: translateX(-50%) translateY(-11%) scale(var(--product-scale));
    transform-origin: center bottom;
  }

  .featured-slider__badge {
    bottom: 0;
    width: calc(var(--platform-width) * 58 / 100);
    min-width: 0;
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    transform: translateX(-50%);
  }

  .featured-slider__nav {
    width: var(--nav-size);
    height: var(--nav-size);
    font-size: clamp(1.25rem, 1.6vw, 2rem);
  }

  .featured-slider__nav--prev {
    left: max(8px, calc(50% - var(--nav-offset)));
  }

  .featured-slider__nav--next {
    right: max(8px, calc(50% - var(--nav-offset)));
  }

  .hero-showcase__hang {
    display: block;
    left: calc(50% + 50px);
    bottom: -2%;
    width: 260px;
    height: auto;
    transform: translateX(-15%);
  }

  .hero-showcase {
    width: 100%;
    min-width: 0;
  }

  .thumb-slider {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
    margin-top: -24px;
  }

  .thumb-slider__viewport--static {
    overflow-x: hidden;
    scroll-snap-type: none;
    padding: 10px 8px 14px;
    width: 100%;
    min-width: 0;
    container-type: normal;
  }

  .thumb-slider__track--static {
    --thumb-gap: clamp(8px, 0.8vw, 12px);
    display: grid;
    gap: var(--thumb-gap);
    padding-inline: 8px;
    padding-block: 10px;
  }

  .thumb-slider__track--static .thumb-card {
    flex: none;
    width: auto;
    min-width: 0;
  }

  .thumb-slider__track {
    --thumb-visible: 5;
  }

  .thumb-slider__track.thumb-slider__track--static {
    --thumb-visible: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .thumb-card__media {
    padding: 4px;
  }

  .thumb-card__media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .thumb-card__name {
    font-size: clamp(0.625rem, 0.75vw, 0.75rem);
  }

  .thumb-card__price-coupon {
    font-size: clamp(0.5625rem, 0.7vw, 0.6875rem);
  }
}

@media (min-width: 1600px) and (max-width: 1999.98px) {
  .featured-slider__product {
    width: min(90%, calc(var(--product-width) * 1.2), 86.4cqw);
    height: min(calc(var(--product-slot-height) * 0.96), 59.52cqw);
    transform: translateX(-50%) translateY(-17%) scale(var(--product-scale));
    transform-origin: center bottom;
  }
}

@media (min-width: 2000px) and (max-width: 2559.98px) {
  .featured-slider__product {
    width: min(90%, calc(var(--product-width) * 1.2), 86.4cqw);
    height: min(calc(var(--product-slot-height) * 1.2), 74.4cqw);
    transform: translateX(-50%) translateY(-12%) scale(var(--product-scale));
    transform-origin: center bottom;
  }
}

@media (min-width: 1150px) {
  .hero-showcase__hang {
    left: calc(50% + 60px);
    bottom: -10%;
    width: 300px;
  }
}

@media (min-width: 1300px) {
  .hero-showcase__hang {
    left: calc(50% + 120px);
    bottom: -14%;
  }
}

@media (min-width: 1600px) {
  .hero-showcase__hang {
    left: calc(50% + 160px);
    width: 420px;
  }
}

@media (min-width: 2000px) {
  .hero-showcase__hang {
    left: calc(50% + 140px);
    width: 460px;
  }

  .thumb-slider {
    margin-top: -32px;
  }

  .thumb-slider__track:not(.thumb-slider__track--static) {
    --thumb-visible: 6;
    --thumb-gap: clamp(10px, 0.7vw, 16px);
    padding-block: 10px;
  }

  .thumb-slider__track--static {
    --thumb-inset: 12px;
    padding-inline: 10px;
  }

  .thumb-slider__viewport {
    padding: 6px 4px 10px;
    border-radius: 18px;
  }

  .thumb-card__media {
    padding: 6px;
  }
}

@media (min-width: 2560px) {
  .featured-slider__product {
    transform: translateX(-50%) translateY(-14%) scale(var(--product-scale));
    transform-origin: center bottom;
  }

  .hero-showcase__hang {
    left: calc(50% + 240px);
    width: 460px;
  }
}

@media (max-width: 599px) {
  .featured-slider__stage {
    max-width: min(94vw, 420px);
  }

  .hero-showcase__scene {
    height: clamp(240px, 58vw, 320px);
    --platform-width: min(88vw, 340px);
  }

  .featured-slider__product {
    height: clamp(180px, 48vw, 260px);
  }

  .featured-slider__nav--prev {
    left: max(8px, calc(50% - 210px));
  }

  .featured-slider__nav--next {
    right: max(8px, calc(50% - 210px));
  }

  .thumb-slider__track {
    --thumb-card-max: 88px;
    --thumb-card-effective: min(var(--thumb-card-width), var(--thumb-card-max));
    padding-inline: calc(50cqw - var(--thumb-card-effective) / 2);
  }

  .thumb-slider--coupons .thumb-slider__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-inline: 8px;
  }

  .thumb-slider--coupons .thumb-card {
    flex: none;
    width: auto;
  }

  .thumb-card {
    flex: 0 0 var(--thumb-card-effective);
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .featured-slider__stage {
    max-width: min(92vw, 560px);
  }

  .hero-showcase__scene {
    height: clamp(300px, 52vw, 420px);
    --platform-width: min(78vw, 480px);
  }

  .featured-slider__product {
    height: clamp(220px, 42vw, 340px);
  }

  .featured-slider__nav--prev {
    left: max(8px, calc(50% - 280px));
  }

  .featured-slider__nav--next {
    right: max(8px, calc(50% - 280px));
  }

  .thumb-slider__track {
    --thumb-visible: 4;
    --thumb-gap: 8px;
    --thumb-card-max: 104px;
    --thumb-card-effective: min(var(--thumb-card-width), var(--thumb-card-max));
    padding-inline: calc(50cqw - var(--thumb-card-effective) / 2);
  }

  .thumb-slider--coupons .thumb-slider__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-inline: 8px;
  }

  .thumb-slider--coupons .thumb-card {
    flex: none;
    width: auto;
  }

  .thumb-card {
    flex: 0 0 var(--thumb-card-effective);
  }
}

@media (hover: none) {
  .thumb-card__overlay {
    opacity: 0;
  }

  .thumb-card.is-active .thumb-card__overlay {
    opacity: 1;
  }
}
