.eec-catalog {
    --eec-catalog-columns: 4;
    --eec-catalog-gap: 16px;
    min-width: 0;
    text-align: center;
}

.eec-catalog-carousel:not(.slick-initialized),
.eec-catalog-grid {
    display: grid;
    grid-template-columns: repeat(var(--eec-catalog-columns), minmax(0, 1fr));
}

.eec-catalog-grid {
    --eec-catalog-columns: 4;
    row-gap: clamp(8px, 2vw, 22px);
}

.eec-catalog-carousel .slick-slide > div {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.eec-catalog-item {
    box-sizing: border-box;
    min-width: 0;
    padding: calc(var(--eec-catalog-gap) / 2);
    vertical-align: top;
}

.eec-catalog :is(.eec-catalog-logo, .eec-catalog-product-image) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eec-catalog :is(.eec-catalog-logo, .eec-catalog-carousel .eec-catalog-product-image) {
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 36 58 / 5%), 0 3px 8px rgb(0 36 58 / 8%);
}

.eec-catalog .eec-catalog-logo {
    aspect-ratio: 3 / 2;
    color: #005c90;
    font-size: 2rem;
}

.eec-catalog :is(.eec-catalog-logo, .eec-catalog-product-image) img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.eec-catalog-product-image {
    height: clamp(94px, 10vw, 145px);
}

.eec-catalog-grid .eec-catalog-product-image img {
    width: 90%;
    height: 90%;
}

.eec-catalog .eec-catalog-product-name {
    margin: 10px 0 3px;
    padding: 0;
    color: #00243a;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.eec-catalog-product-brand {
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.eec-catalog-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 12px 0 20px;
}

.eec-catalog-controls[hidden] {
    display: none;
}

.eec-catalog-controls button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #005c90;
    border-radius: 4px;
    color: #005c90;
    background: #ececec;
    font-size: 1.5rem;
    cursor: pointer;
}

.eec-catalog-controls button:hover:not(.slick-disabled) {
    color: #ececec;
    background: #005c90;
}

.eec-catalog-controls .slick-disabled {
    opacity: 0.45;
    cursor: default;
}

.eec-catalog a:focus-visible,
.eec-catalog-controls button:focus-visible {
    outline: 2px solid #005c90;
    outline-offset: 2px;
}

@media (max-width: 979px) {
    .eec-catalog {
        --eec-catalog-columns: 3;
    }
}

@media (max-width: 599px) {
    .eec-catalog {
        --eec-catalog-columns: 2;
        --eec-catalog-gap: 10px;
    }
}

@media (max-width: 767px) {
    .eec-catalog-grid {
        --eec-catalog-columns: 2;
    }
}
