/* Kategori listeleme sayfaları. */

.category-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 56px 0 36px;
}

.category-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.category-hero p {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 17px;
}

.category-section {
    background: #ffffff;
    padding: 36px 0;
}

.category-section + .category-section {
    border-top: 1px solid var(--color-border);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    display: flex;
    align-items: center;
    min-height: 88px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.category-card:hover {
    border-color: var(--color-primary);
}

.category-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-product-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.category-product-image {
    display: block;
    background: var(--color-bg);
    aspect-ratio: 4 / 3;
}

.category-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-product-body {
    padding: 16px;
}

.category-product-body h2 {
    margin-bottom: 8px;
    font-size: 16px;
}

.category-product-body p {
    margin-bottom: 10px;
    font-size: 14px;
}

.category-product-body strong {
    display: block;
    color: var(--color-text);
    font-size: 16px;
}
/* Final category product image fit */
.category-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

.category-product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}
