/* =====================================================
   PRODUCT SLIDER
===================================================== */

.nx-product-slider {
  padding: 40px;
}

.nx-product-slider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.nx-product-slider__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nx-product-slider__view-all {
  font-size: var(--nx-font-m);
  text-decoration: none;
  font-weight: 600;
  color: var(--nx-color-accent);
}

.nx-product-slider__dots {
  display: flex;
  gap: 6px;
}

.nx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-surface-2);
  transition: all .2s ease;
  border: 1px solid var(--nx-color-text-darks);
}

.nx-dot.active {
  background: var(--nx-color-accent);
  transform: scale(1.2);
}

.nx-product-slider__viewport {
  overflow: hidden;
}

.nx-product-slider__track {
  display: flex;
  gap: 16px;
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
}


/* =====================================================
   CARD
===================================================== */

.nx-card {
  flex: 0 0 auto;
  min-width: 290px;
  box-sizing: border-box;

  background:var(--nx-color-bg-w);
  border-radius: 12px;
  border: 1px solid var(--nx-surface-3);
  overflow: hidden;
}


/* ===== MEDIA ===== */

.nx-card__media {
  position: relative;
  background: var(--nx-color-bg-w);
  padding: 10px 10px 0px 10px;
  text-align: center;
}

.nx-card__media img {
  width: 100%;
  object-fit: contain;
}

/* Badge superior (OFERTA IMPERDIBLE) */

.nx-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--nx-color-accent);
  color: var(--nx-color-text);
  font-size: var(--nx-font-sm);
  padding: 6px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.nx-card__badge--image{
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Flecha lateral */

.nx-card__next {
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  background: var(--nx-color-bg-w);
  border-radius: 50%;
  border: 1px solid var(--nx-surface-3);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: none;
}

.nx-card:hover .nx-card__next {
  display: block; 
}

/* ===== BODY ===== */

.nx-card__body {
  padding: 5px 10px 16px 10px;
  background: var(--nx-color-bg-w);
}


/* ===== TITLE ===== */

.nx-card__title {
  font-size: var(--nx-font-m);
  margin: 6px 0;
  font-weight: 500;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =====================================================
   PRICING
===================================================== */

.nx-price-old {
  font-size: var( --nx-font-sm);
  text-decoration: line-through;
  color: var(--nx-color-text-textcomment);
  min-height: var(--nx-font-sm);
  display: flex;
}

.nx-price-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nx-price-current {
  font-size: var(--nx-font-g);
  font-weight: 700;
}

.nx-discount {
  color: var(--nx-color-background-v);
  background: var(--nx-color-background-vs);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--nx-font-sm);
  font-weight: 600;
}

.nx-discount {
  color: var(--nx-color-background-v);
  background: var(--nx-color-background-vs);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--nx-font-sm);
  font-weight: 600;
}

.nx-discount-price{
    color: var(--nx-color-background-v);
  background: var(--nx-color-background-vs);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--nx-font-sm);
  font-weight: 600;
}

.nx-discount-percent{
  color: var(--nx-color-background-v);
  background: var(--nx-color-background-vs);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var( --nx-font-offper);
  font-weight: 600;
}
.nx-discount-price-off{
  font-size: var(--nx-font-sm);
}

.nx-price-nt {
  font-size: var(--nx-font-xs);
  color: var(--nx-color-text-textcomment);
  margin-top: 4px;
}

.nx-installments {
  color: var(--nx-color-background-v);
  font-size: var(--nx-font-m2);
  margin-top: 6px;
  white-space: nowrap;
  min-height: var(--nx-font-m2);
  display: flex;
}
.nx-installments-s{
   color: var( --nx-color-text-darks2);
  font-size: var(--nx-font-m);
  margin-top: 6px;
  white-space: nowrap;
  height: var(--nx-font-m);
}


/* =====================================================
   SHIPPING / BENEFITS (50% por badge)
===================================================== */

.nx-shipping-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nx-badge {
  flex: 0 0 calc(50% - 4px); /* SIEMPRE 50% */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 6px 10px;
  font-size: var( --nx-font-xs);
  font-weight: 600;

  border-radius: 6px;
  white-space: nowrap;
  box-sizing: border-box;
}

.nx-badge--green {
  color: var(--nx-color-background-v);
  background: var(--nx-color-background-vs);
}

.nx-badge--blue {
 /* color: var(--nx-color-background-c);
  background: var(--nx-color-background-cs);*/
   color: var(--nx-color-text-darks);
  background: var(--nx-color-bg-s);
}

.nx-badge--featured {
  color: var(--nx-color-text-darks);
  background: var(--nx-color-bg-s);
}


/* =====================================================
   ICON COLORS
===================================================== */

.icon-envio-gratis {
  color: var(--nx-color-background-v);
}

.icon-retira-ya {
 /* color: var(--nx-color-background-c);*/
  color: var(--nx-color-text-darks);
}

.icon-destacado {
  color: var(--nx-color-text-darks);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

  .nx-product-slider__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .nx-card {
    scroll-snap-align: start;
    min-width: 85%;
  }

  .nx-product-slider__track{
    width: 100%;
  }
  .nx-discount-percent{
    font-size: var(--nx-font-sm);
  }
  .nx-discount-price-off{
  font-size: var(--nx-font-xs);
}
.nx-card__badge{
  left: 0;
  top:0;
}
  .nx-installments-s{
    font-size: var(--nx-font-sm);

  }
}
/*Slider*/

.nx-product-slider{
  background: var(--nx-surface-2);
}
body{
  background: var(--nx-surface-2);
}

.nx-product-slider {
  position: relative;
}

/* Flechas */

.nx-slider-arrow {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--nx-surface-3);
  background: var(--nx-color-bg-w);
  cursor: pointer;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all .2s ease;
}



.nx-slider-arrow--left {
  left: -12px;
}

.nx-slider-arrow--right {
  right: -12px;
}

.nx-product-slider__track {
  display: flex;
  gap: 16px;
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}

.nx-product-slider__viewport {
  overflow: hidden;
}

.nx-card {
  flex: 0 0 290px; /* ancho fijo real */
}


/***** aca lo nuevo**/
.nx-card__pricing{
  padding-top: 10px;
}

.nx-card:hover,
.nx-card:focus-visible {
  background-color: var(--nx-surface-1);
  border-color: var(--nx-color-button-bd);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}


.nx-product-slider__view-all:hover,
.nx-product-slider__view-all:focus-visible {
 text-decoration: underline;
}

.nx-card{
  text-decoration: none;
  color: var(--nx-color-text-dark);
}

.nx-slider-arrow-active {
    opacity: 1;
    cursor: pointer;
}

.nx-slider-arrow-inactive {
    opacity: 0;
    cursor: default; /* opcional, para que no parezca clickeable */
}

.nx-slider-arrow-active:hover {
  border-color: var(--nx-color-button-bd);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.nx-dot.inactive:hover {
  border-color: var(--nx-color-button-bd);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  scale: 1.5;
}

.fixed-image-card-wrapper{
  border-radius: 5px;
  overflow: hidden; /* fuerza a recortar la imagen */
}

.fixed-image-card-wrapper {
  width: 100%;
  height: 100%; /* Asegura que llene el contenedor del enlace */
  overflow: hidden; /* Oculta lo que sobresalga */
  display: block;
  position: relative;
}

.fixed-image-card-wrapper img,
.fixed-image-card-wrapper picture {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Rellena el contenedor sin deformar la imagen */
  display: block;
}

.fixed-image-card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.fixed-image-card-wrapper img,
.fixed-image-card-wrapper picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Contenedor de la tarjeta */
.fixed-image-card-wrapper,
.nx-featured-card {
  position: relative;
  display: block;
  overflow: hidden;
}

/* Imagen siempre cubre el contenedor */
.fixed-image-card-wrapper img,
.nx-featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}


/* Overlay de imagen oscura (solo nx-featured-card) */
.nx-featured-card-overlay {
  background: rgba(0,0,0,0.3); /* oscuro por defecto */
  transition: background 0.3s ease;
}

/* Hover: overlay desaparece */
.nx-featured-card:hover .nx-featured-card-overlay {
  background: rgba(0,0,0,0);
}

/* Botón overlay */
.btn-hover-image {
  padding: 10px 20px;
  background: transparent;
  color: var(--nx-color-text);
  border: 1px solid var(--nx-color-button-bd);
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: var(--nx-font-g, 1rem);
}

/* Hover: botón aparece */
.fixed-image-card-wrapper:hover .btn-hover,
.nx-featured-card:hover .btn-hover {
  opacity: 1;
  background: var(--nx-color-accent);
  color: var(--nx-color-text);
  border-color: var(--nx-color-button-bd);
}
@media (max-width: 768px) {
  .nx-product-slider__viewport {
    overflow-x: hidden; /* seguimos controlando por JS */
  }

  .nx-card {
    flex: 0 0 calc(50% - 8px); /* 2 tarjetas con gap */
    min-width: 0; /* sobreescribimos el min-width de 290px */
    scroll-snap-align: start;
  }
  .nx-product-slider{
    padding: 5px;
  }
  .nx-product-slider__title{
    font-size: var(--nx-font-m);
    width: 100%;
  }
  .nx-product-slider__header {
    flex-direction: column; /* apila verticalmente */
    align-items: flex-start; /* título a la izquierda */
    gap: 4px;
  }

  .nx-product-slider__title {
    display: flex;
    justify-content: space-between; /* título a la izquierda, "Ver todo" a la derecha */
    width: 100%;
  }

  .nx-product-slider__view-all {
    margin-left: 8px; /* opcional, separa del título */
  }

  .nx-product-slider__dots {
    align-self: center; /* centra los dots debajo del título */
    margin-top: 4px;
  }
  .nx-price-current{
    font-size: var(--nx-font-m);
  }
}
.nx-product-slider-recommended{
  padding: 0px;
  background: var( --nx-color-bg-w);
}

.nx-product-slider__header-recommended{
  display: block;
}