.agrediam-category-catalog {
    width: 100%;
}

.agrediam-category-group {
    scroll-margin-top: 110px;
    border: 1px solid #d5d9dd;
    background: #fff;
}

.agrediam-category-group + .agrediam-category-group {
    border-top: 0;
}

.agrediam-category-group > summary {
    position: relative;
    padding: 14px 42px 14px 34px;
    cursor: pointer;
    list-style: none;
    color: var(--agrediam-family-font-color, #111);
    font-size: var(--agrediam-family-font-size, 16px);
}

.agrediam-category-group > summary::-webkit-details-marker {
    display: none;
}

.agrediam-category-group > summary::before {
    position: absolute;
    left: 12px;
    content: "+";
    font-size: 20px;
    line-height: 1;
}

.agrediam-category-group[open] > summary::before {
    content: "−";
}

.agrediam-category-group .grille-sections {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    padding: 30px 10px;
    border-top: 1px solid #d5d9dd;
}

.agrediam-category-group .section-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border-radius: 16px;
    background: #f1f1f1;
    color: var(--agrediam-card-font-color, #000);
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.agrediam-category-group .section-card:hover,
.agrediam-category-group .section-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
}

.agrediam-category-group .section-card img,
.agrediam-category-no-image {
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 3;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    background: #e4e4e4;
}

.agrediam-category-no-image .dashicons {
    width: 44px;
    height: 44px;
    color: #777;
    font-size: 44px;
}

.agrediam-category-group .section-card > span:last-child {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-weight: 700;
    font-size: var(--agrediam-card-font-size, 14px);
    line-height: 1.25;
}

@media (max-width: 1024px) {
    .agrediam-category-group .grille-sections {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .agrediam-category-group .grille-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 16px 8px;
    }
}

.agrediam-category-archive {
    width: min(1200px, calc(100% - 32px));
    margin: 48px auto;
}

.agrediam-category-archive h1 {
    margin-bottom: 28px;
}
