/* Product category pages: grid of product cards */

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.category-title {
    text-align: center;
    margin: 30px 0 6px;
}

.category-intro {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto 10px;
    padding: 10px 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
}

.section-label {
    max-width: 1200px;
    margin: 36px auto 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto 60px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #1d1d2b;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: cardIn 0.5s ease-out backwards;
}

.product-card:hover,
.product-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.product-card:focus-visible {
    outline: 3px solid #ff2e93;
    outline-offset: 2px;
}

.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
}

.product-name {
    font-weight: bold;
    line-height: 1.3;
}

.product-price {
    font-weight: bold;
    color: #c2185b;
    min-height: 1.2em;
}

@media (prefers-reduced-motion: reduce) {
    .product-card {
        animation: none;
        transition: none;
    }
    .product-card:hover,
    .product-card:focus-visible {
        transform: none;
    }
}
