/** Shopify CDN: Minification failed

Line 399:2 Unexpected "="

**/
:root{
    --bodyBack: white;
    --textColor: #000000;
    --sectionBack: #ffffff;
    --starColor: orange;
}


/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
} */


body {
    margin: 0;
    padding: 0;
    /* font-family: 'Raleway', sans-serif; */
}


.container{
    width: 100vw;
    max-width: 1345px;  /* Limitar el tamaño máximo del contenedor */
    margin: 0 auto;  /* Centrar el contenedor */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding-top: 60px;
    padding-bottom: 60px;
}



.products {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-start;;  /* Cambié justify-content a space-between para que los productos se distribuyan */
    flex-wrap: wrap;
    gap: 40px;
}


.carousel-container .product {
    position: relative;
    background-color: var(--sectionBack);
    width: calc(25% - 30px);
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 15px 30px;
    border-radius: 10px;
    transition: 0.3s;
    align-items: center;
}


.carousel-container .product:hover{
    transform: translateY(-15px);
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}


.productImage {
  margin-bottom: 12px; /* Ajusta este valor según tu gusto */
}
    

.image {
    width: 100%;
    height: 100%; /* Asegura que el contenedor de la imagen ocupe todo el espacio disponible */
    display: flex;
    justify-content: center; /* Centra la imagen horizontalmente */
    align-items: center;
}


.image img {
    width: 240px;
    height: auto;
    
}


.namePrice {
    width: 100%;
    display: flex;
    flex-direction: column; /* Apilamos verticalmente */
    justify-content: flex-start;
}

.productNameContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;  /* Ajusta el valor según el tamaño que prefieras */
}


.namePrice .sku {
    font-size: 0.8em;
    text-transform: capitalize;
    color: var(--textColor);
    font-weight: bold;
    margin-bottom: 5px; /* Espacio entre SKU y nombre */
}

.namePrice .productName {
    color: var(--textColor);
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px; /* Ajustamos el espacio entre el nombre y las estrellas */
}

.lineDivisor {
    border: none;
    border-top: 2px solid #b1b1b2;
    margin: 10px 0;
    margin-bottom: 30px;
}


.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.stars span {
    font-size: 1em;
    color: var(--textColor);
    font-weight: bold;
    align-self: flex-start;
}

.product p{
    font-size: 18px;
    line-height: 25px;
}

/* .stars {
    font-size: 1.3em;
    color: var(--textColor);
    font-weight: bold;
} */


.product-cart{
    position: absolute;
    bottom: 20px;
    right: 20px;
}


.product-cart button {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Esto lo hace circular */
    border: none;
    background-color: #b1b1b2;
    color: #000000;
    font-size: 1.2em;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}


.product-cart button:hover{
    transform: scale(1.1);
    color: #FFFFFF;
    background-color: #a2ff7f;
}


@media (max-width: 768px) {
    .container {
        width: 100vw;
        padding: 30px 15px;
    }

    .products {
        gap: 20px;
        justify-content: space-between;
        padding: 0 10px;
        align-items: center;
    }

    .carousel-container .product {
        position: relative;
        width: calc(50% - 10px);
        padding: 15px;
        box-sizing: border-box;
        min-height: 320px; /* Más compacto */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        
    }


    .image img {
        width: 100%;
        max-width: 140px;
        height: auto;
        margin: 0 auto;
    }

    .namePrice .sku {
        font-size: 0.5em;
    }

    .namePrice .productName {
        font-size: 0.85em;
        line-height: 1.2em;
        max-height: 3.6em; /* Limita a 3 líneas */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lineDivisor {
        margin: 8px 0 20px;
    }

    .product p {
        font-size: 0.85em;
        line-height: 1.3em;
    }

    .product-cart {
        position: static; /* Elimina posición absoluta */
        margin-left: 10px;
    }

    .product-cart button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 50%;
    }

    .namePrice {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .product-price {
        font-size: 1em;
    }

    .product-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    /* 2. Asegurarse de que el precio tenga tamaño adecuado */
    .product-bottom .stars span {
        font-size: 0.7rem;
        font-weight: bold;
        color: var(--textColor);
        margin: 0;
    }

    /* 3. Asegurar que el carrito no tenga posición absoluta */
    .product-cart {
        position: static;
        margin: 0;
    }

    .product-cart button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 50%;
    }
    
}


.star-rating-container {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 4px;
  text-decoration: none;
}

.star-rating {
  --star-size: 16px;
  --star-color: #FFD700;
  --star-background: #e0e0e0;
  display: inline-block;
  font-size: var(--star-size);
  font-family: Times; /* cualquier fuente que tenga ★ */
  line-height: 1;
  position: relative;
  letter-spacing: 2px;
}

.star-rating::before {
  content: '★★★★★';
  background: linear-gradient(90deg, var(--star-color) calc(var(--star-rating) / 5 * 100%), var(--star-background) calc(var(--star-rating) / 5 * 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .product .star-rating-container {
    min-height: 20px;
    display: flex;
    align-items: center;
    font-size: 0.7rem !important;
    line-height: 1 !important;
  }

  .product .star-rating {
    --star-size: 10px !important;
    font-size: var(--star-size) !important;
    line-height: 1 !important;
  }
}

.carousel-container {
    height: auto;
    position: relative;
    width: 70vw;
    overflow: hidden;
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 60px;
}

.carousel-track {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-button {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    border: none;
    background-color: #fffFFFFF;
    color: #b1b1b2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0.6,0.6,0.7,0.4);
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1;
}

.carousel-button:hover {
    background-color: #000000;
    color: white;
}

.carousel-button.prev {
    left: 3px;
}

.carousel-button.next {
    right: 3px;
}

/* Ajustar productos para que ocupen tamaño dentro del carrusel */
.carousel-track .product {
    flex: 0 0 auto;
}


* ===== Mobile: 2 items visible + botones ===== */

/* Tablets / small desktops (>=481px && <=768px): 2 items */
@media (max-width: 768px) and (min-width: 481px) {
  .carousel-container {
    width: 95%;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .carousel-track {
    gap: 18px;
  }

  /* 2 items visibles */
  .carousel-track .product {
    flex: 0 0 calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
  }

  .carousel-button {
    width: 34px;
    height: 34px;
    top: 50%;
  }
}

/* Mobile phones (<=480px): 2 items también, con gap más pequeño */
@media (max-width: 480px) {
  .carousel-container {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 0 auto;
  }

  .carousel-track {
    gap: 12px;
    padding-left: 12px;  /* evita que el primer item pegue al borde */
    padding-right: 12px;
  }

  /* 2 items visibles en móviles: cada producto ocupa ~50% menos gap */
  .carousel-track .product {
    flex: 0 0 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }

  .carousel-button {
    width: 32px;
    height: 32px;
    top: 40%;
    background-color: #fffFFFFF;
    color: #b1b1b2;
    /* background-color: rgba(212,212,212,0.95); */
  }

  /* No ocultamos botones: se mantienen visibles */
  .carousel-button { display: flex; }
}

.carousel-button:hover svg,
.carousel-button:active svg,
.carousel-button:focus svg {
    fill: #ffffff; /* para SVG relleno */
    stroke: #ffffff; /* para SVG solo trazo */
}

/* Si usas íconos tipo font-awesome */
.carousel-button:hover i,
.carousel-button:active i,
.carousel-button:focus i {
    color: #ffffff;
}