/*---------------------------------------
   1. IMPORT WEB FONTS                
-----------------------------------------*/
@font-face {
  font-family: 'Merriweather';
  src: url("../fonts/Merriweather-Italic.woff");
  font-style: italic;
}
@font-face {
  font-family: 'Merriweather';
  src: url("../fonts/Merriweather-Light.woff");
  font-weight: 300;
}
@font-face {
  font-family: 'Montserrat';
  src: url("../fonts/Montserrat-Bold.woff");
  font-weight: 700;
}
@font-face {
  font-family: 'Montserrat';
  src: url("../fonts/Montserrat-Regular.woff");
}

/* Contenedor externo */
.tienda {
  width: fit-content;
  margin: 0 auto 30px auto; /* centrado + separación abajo */
  position: relative;
  z-index: 1;
}

/* Contenedor interno */
#tienda {
  width: fit-content;
  height: fit-content;
}

/* Quitar estilos por defecto del UL */
#tienda ul.image {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Elemento LI */
#tienda ul.image li {
  width: fit-content;
  height: fit-content;
}

/* Imagen */
#tienda ul.image li img {
  display: block;
  width: 100%;      /* Responsivo */
  height: auto;
  border-radius: 5px; /* opcional */
}

/* Contenedor opcional de links debajo de la imagen */
#tienda .content-link {
  text-align: center;
  margin-top: 15px;
}

/* Botones */
#tienda .link,
#tienda .link2 {
  font-size: 11px;
  text-transform: uppercase;
  padding: 9px 30px;
  border-radius: 5px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}

/* Estilo del botón normal */
#tienda .link {
  background-color: #fff;
  color: #25292c;
}

#tienda .link::before,
#tienda .link2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #fe4e56;
  border-radius: inherit;
  transform: scale(0);
  transition: transform 0.3s ease-out;
  z-index: -1;
}

#tienda .link:hover::before,
#tienda .link2:hover::before {
  transform: scale(1);
}

#tienda .link:hover {
  color: #fff;
}

/* Estilo del botón con borde */
#tienda .link2 {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 7px 28px;
}

#tienda .link2:hover {
  color: #fff;
  border-color: #fe4e56;
}





/* Sección general */
.shop-section {
    padding: 20px 0;
}

.shop-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.shop-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    margin-bottom: 30px;
    text-align: center;
    color: black;
}

/* Contenedores internos */
.shop-list {
    width: 100%;
}

.shop-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* centra los cards si no hay 4 por fila */
}

/* CARD */
.shop-card {
    flex: 0 0 calc(25% - 15px); /* 25% menos una parte del gap */
    max-width: calc(25% - 15px);
    width: auto; 
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    transition: box-shadow 0.2s ease;
}

.shop-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* IMAGEN */
.shop-card-img {
    background: #ffffff; /* Imagen sin fondo gris */
    padding: 10px 10px 0 10px;  /* Menor padding arriba */
    display: flex;
    justify-content: center;
}

.shop-card-img img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* INFO */
.shop-card-info {
    font-family: 'Montserrat', sans-serif;
    padding: 20px 15px;
}

/* PRECIO */
.shop-card-price {
    font-family: 'Merriweather', sans-serif;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px; /* Más espacio, igual a imagen 1 */
    color: #000;
}

/* SIN CUOTAS (en imagen 1 no hay) */
.shop-card-installments {
    display: none; /* oculto si no lo usas */
}

/* TÍTULO */
.shop-card-title {
    font-size: 16px;
    color: rgba(51, 51, 51, 0.7);
    margin-bottom: 40px;  /* mucho aire como en la imagen 1 */
}

/* ENVÍO GRATIS */
.shop-card-shipping {
    font-size: 10px;
    color: rgba(0, 0, 238, 0.56);
    margin-bottom: 15px;
    /*display: none;  Imagen 1 no tiene envío gratis */
}

/* BOTÓN */
.shop-card-btn {
    width: 100%;
    padding: 12px 0;
    background: #e0ecff;
    border: 1px solid #cbdcff;
    color: #2c63d0;
    font-weight: bold;
    border-radius: 5px; /* Menos redondeado */
    cursor: pointer;
    transition: background 0.2s ease;
}

.shop-card-btn:hover {
    background: #d4e4ff;
}

@media (max-width: 1200px) {
    .shop-card {
        flex: 0 0 calc(50% - 10px); /* 2 cards por fila */
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .shop-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

