.product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25), 0 4px 15px rgba(0,0,0,0.1);
}

.product-card__image {
    position: relative;
    padding-top: 75%; /* Aspect ratio 4:3 */
    overflow: hidden;
}

.product-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card__content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: #333;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: -.05em;
}

.product-card:hover .product-card__title {
    color: #0066cc;
}

.product-card__excerpt {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__categories,
.product-card__brands {
    margin-bottom: 0.5rem;
}

.product-card__footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* Estilos para la lista de productos */
ul.category-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.category-products li.product {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card__title {
        font-size: 1rem;
    }
    
    .product-card__excerpt {
        font-size: 0.85rem;
    }

    ul.category-products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding-inline: 18px;
    }
}

@media (max-width: 480px) {
    ul.category-products {
        grid-template-columns: 1fr;
    }
}

/* Asegurarse que los elementos dentro de la card no interfieran con el click */
.product-card * {
    pointer-events: none;
}
