/* =========================
   Tarjeta de Producto Individual (Single Product)
   ========================= */

/* Categoría */
.product-category {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.1;

  color: rgb(89, 89, 89) !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  border-radius: 2px;
}

/* Precio */
.product-price,
.single-product .product-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #565656 !important;
  border-bottom: 2px solid #d2d2d2;
  border-radius: 6px;
  font-size: 18px !important;
  font-weight: bold;
  padding: 6px 18px;
  min-width: 70px;
  height: 36px;
  box-sizing: border-box;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  transition: border 0.2s, color 0.2s;
  text-align: center;
  cursor: default;
}

/* Responsive precio */
@media (max-width: 600px) {
  .product-price {
    font-size: 15px;
    padding: 5px 12px;
    height: 32px;
    min-width: 60px;
  }
}

/* Fila inferior: botón y precio */
.product-bottom-row,
.product-bottom-row.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

/* Variante para detalles */
.product-bottom-row {
  gap: 16px;
  margin-top: 12px;
}

/* Botón de contacto */
.product-contact .btn {
  white-space: nowrap;
  margin-bottom: 0 !important;
}

/* Tarjeta fija igual que catálogo */
.product-fixed {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
  padding: 18px 12px 18px 12px;
  transition: box-shadow 0.2s;
  height: 100% !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.product-fixed:hover {
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.01);
  transition: box-shadow 0.2s, transform 0.2s;
}

/* Imagen y hover */
.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: none;
}
.product-image img {
  transition: transform 0.3s;
}
.product-fixed:hover .product-image img {
  transform: scale(1.05);
}

/* Overlay de producto (opcional) */
.product-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.04);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-fixed:hover .product-overlay {
  opacity: 1;
}

/* Descripción */
.product-description,
.product-description.product-desc-flex,
.product-desc-flex {
  margin-bottom: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 12px 12px 0px;
}

/* Título */
.product-title-custom {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.product-title-limit {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.8em;
  line-height: 1.2;
  margin-bottom: 10px;
  word-break: break-word;
}
.product .product-title {
  max-width: 100%;
  margin-top: 10px;
}

/* Recomendada: overlay link ancho */
#recommended-products-list .product .product-overlay a {
  width: 100% !important;
}

/* Anula estilos de .product-image solo en la página de producto individual */
.single-product .product-image {
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
  background: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  margin-bottom: 0 !important;
  position: static !important;
}

/* Flickity botón */
.flickity-button:hover {
  background-color: #CA0027 !important;
}

/* Responsive Shop Page */
@media (max-width: 600px) {
  #single-product-container {
    margin-top: 20px !important;
  }
}