.product-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 18px;
    color: #64748b;
    font-size: 14px;
}

.product-view-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dce6ed;
    border-radius: 10px;
    background: #f5f8fb;
}

.product-view-button {
    padding: 7px 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #486477;
    font-size: 13px;
    font-weight: 600;
}

.product-view-button:hover,
.product-view-button:focus-visible {
    color: #0365c3;
}

.product-view-button.is-active {
    background: #0365c3;
    color: #fff;
    box-shadow: 0 2px 6px rgba(3, 101, 195, .18);
}

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

.product-catalog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2eaf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(28, 68, 95, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(28, 68, 95, .12);
}

.product-catalog-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f5f8fa;
}

.product-catalog-info {
    flex: 1;
    min-width: 0;
    padding: 17px 18px 12px;
}

.product-catalog-category {
    color: #0365c3;
    font-size: 12px;
    font-weight: 600;
}

.product-catalog-info h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 9px 0;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.product-catalog-link {
    color: #243b50;
}

.product-catalog-link::after {
    position: absolute;
    inset: 0;
    content: "";
}

.product-catalog-link:focus-visible::after {
    outline: 2px solid #0365c3;
    outline-offset: -2px;
}

.product-catalog-code,
.product-catalog-summary {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.product-catalog-summary {
    margin-top: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.product-catalog-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px 18px;
    border-top: 1px solid #eef2f5;
}

.product-catalog-price {
    color: #0365c3;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.product-catalog-side form {
    position: relative;
    z-index: 1;
    margin: 0;
}

.product-catalog-empty {
    padding: 44px 20px;
    border: 1px dashed #dce6ed;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
}

.product-catalog[data-view="list"] {
    grid-template-columns: 1fr;
    gap: 14px;
}

.product-catalog[data-view="list"] .product-catalog-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 190px;
    align-items: center;
}

.product-catalog[data-view="list"] .product-catalog-image {
    height: 160px;
    aspect-ratio: auto;
}

.product-catalog[data-view="list"] .product-catalog-info {
    padding: 18px 24px;
}

.product-catalog[data-view="list"] .product-catalog-side {
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-top: 0;
    border-left: 1px solid #eef2f5;
}

@media (max-width: 1199.98px) {
    .product-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .product-catalog { grid-template-columns: 1fr; }
    .product-catalog[data-view="list"] .product-catalog-card { grid-template-columns: 120px minmax(0, 1fr); }
    .product-catalog[data-view="list"] .product-catalog-image { height: 130px; }
    .product-catalog[data-view="list"] .product-catalog-info { padding: 14px; }
    .product-catalog[data-view="list"] .product-catalog-side {
        grid-column: 1 / -1;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid #eef2f5;
        border-left: 0;
    }
    .product-catalog-toolbar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .product-catalog-card { transition: none; }
}
