/* ========================================
   PRODUCT CARDS - Estilos Unificados
   ======================================== */

/* Contenedor del card - sombra base más suave */
.product-card-link,
.product-card {
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-link,
.product-card {
    position: relative;
}

.product-card-link:hover,
.product-card:hover {
    box-shadow: 0 6px 16px rgba(231, 111, 81, 0.18), 0 3px 8px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(231, 111, 81, 0.2) !important;
}

/* Imagen del producto - sin efecto de agrandamiento */
.product-card-link img,
.product-card img {
    transition: opacity 0.3s ease;
    filter: brightness(1);
}

.product-card-link:hover img,
.product-card:hover img {
    opacity: 0.95;
    filter: brightness(0.98);
}

/* Título del producto */
.product-card-link h3,
.product-card h3 {
    transition: color 0.2s ease;
}

.product-card-link:hover h3,
.product-card:hover h3 {
    color: var(--wine-primary, #e76f51);
}

/* Badge de descuento */
.product-card-link .absolute span,
.product-card .absolute span {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

/* Título de sección - Responsive */
.products-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

@media (min-width: 640px) {
    .products-section-title {
        font-size: 1.125rem;
        font-weight: 700;
    }
}

@media (min-width: 1024px) {
    .products-section-title {
        font-size: 1.5rem;
        font-weight: 700;
    }
}

/* Título sutil para responsive */
.products-section-title-subtle {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

@media (min-width: 640px) {
    .products-section-title-subtle {
        font-size: 1rem;
        font-weight: 600;
        color: #4b5563;
    }
}

@media (min-width: 1024px) {
    .products-section-title-subtle {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1f2937;
    }
}

/* ========================================
   BOTÓN FAVORITO (ME GUSTA) - Animación
   ======================================== */

/* Círculo fijo: mismo ancho y alto para que no se deforme en desktop */
.favorite-btn {
    position: relative;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    min-height: 2rem !important;
    max-width: 2rem !important;
    max-height: 2rem !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.favorite-btn .fa-heart {
    margin: 0 !important;
    display: block;
}

/* En detalle de producto el botón es un poco más grande */
.favorite-btn.favorite-btn--lg {
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem !important;
    min-height: 2.25rem !important;
    max-width: 2.25rem !important;
    max-height: 2.25rem !important;
}

@media (min-width: 640px) {
    .favorite-btn.favorite-btn--lg {
        width: 2.5rem !important;
        height: 2.5rem !important;
        min-width: 2.5rem !important;
        min-height: 2.5rem !important;
        max-width: 2.5rem !important;
        max-height: 2.5rem !important;
    }
}

.favorite-btn:active {
    transform: scale(0.92);
}

/* Animación mínima: solo glow rojo y pequeño \"pop\" del corazón.
   Los pseudo-elementos quedan neutros (sin círculos ni rayos visibles). */
.favorite-btn::before,
.favorite-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    margin-left: 0;
    margin-top: 0;
    border-radius: 0;
    background: none;
    opacity: 0; /* no se ve nada */
    pointer-events: none;
    box-sizing: border-box;
    transform-origin: center;
}

.favorite-btn .favorite-btn__ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    margin-left: 0;
    margin-top: 0;
    border-radius: 0;
    background: none;
    opacity: 0; /* no se ve nada */
    pointer-events: none;
    box-sizing: border-box;
}

/* Sin animación de círculos ni rayos: los pseudo-elementos no se usan.
   Sólo animamos el corazón con un pequeño pop y cambio suave de color. */
.favorite-btn--animate::before,
.favorite-btn--animate::after,
.favorite-btn--animate .favorite-btn__ring {
    animation: none;
}

.favorite-btn--animate {
    animation: none;
}

@keyframes favorite-heart-pop {
    0% {
        transform: scale(0.9);
        color: #fca5a5; /* rojo más claro */
        text-shadow: 0 0 0 rgba(248, 113, 113, 0);
    }
    40% {
        transform: scale(1.15);
        color: #ef4444; /* rojo intenso */
        text-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
    }
    100% {
        transform: scale(1);
        color: #ef4444;
        text-shadow: 0 0 0 rgba(248, 113, 113, 0);
    }
}

/* Corazón lleno (favorito) - rojo pasión */
.favorite-btn [class*="fa-heart"].text-red-500,
.favorite-btn [class*="fa-heart"].fas {
    transition: transform 0.25s ease, color 0.25s ease;
}

.favorite-btn--animate [class*="fa-heart"] {
    animation: favorite-heart-pop 0.28s ease-out;
}

