/* Estilos para tarjetas de productos */
.product-card {
    border: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    overflow: hidden;
    border-radius: 15px !important;
    position: relative;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(80, 200, 120, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 15px;
}

.product-card:hover::before {
    opacity: 1;
}

/* Estilos más específicos para las imágenes */
.card.product-card .card-img-top.product-image,
.product-card .product-image {
    height: 250px !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
    border-radius: 10px 10px 0 0 !important;
    transition: transform 0.3s ease;
    display: block !important;
    max-width: 100% !important;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Contenedor de imagen para mejor control */
.product-card .product-image-container {
    height: 250px !important;
    overflow: hidden !important;
    border-radius: 10px 10px 0 0 !important;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2;
}

/* Estilos para imágenes dentro del contenedor */
.product-image-container .product-image,
.product-image-container img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    display: block !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) contrast(1);
}

.product-card:hover .product-image-container img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.1);
}

.product-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 0;
    pointer-events: none;
}

.product-card:hover .product-image-container::after {
    opacity: 1;
}

/* Para iconos de Font Awesome */
.product-image-container i {
    font-size: 4rem !important;
    color: #6c757d !important;
    opacity: 0.7;
}

/* Estilos para el cuerpo de la tarjeta */
.product-card .card-body {
    padding: 20px !important;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.product-card:hover .card-title {
    color: #1a252f;
    transform: translateY(-2px);
}

.product-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.product-card:hover .card-text {
    color: #495057;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.product-card:hover .price {
    color: #20c997;
    transform: scale(1.05);
}

.product-card .btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.product-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.product-card .btn:hover::before {
    left: 100%;
}

.product-card .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.price-tag {
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-image,
    .product-image-container {
        height: 200px !important;
    }
}

@media (max-width: 576px) {
    .product-image,
    .product-image-container {
        height: 180px !important;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
}

/* Para productos sin imagen */
.product-image.bg-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.product-image.bg-secondary i {
    opacity: 0.7;
}

/* Grid de productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Botones de acción */
.btn-primary-custom {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}