/* Catalog-only layout overrides. Keep the shared storefront stylesheet unchanged. */
.catalog-section .catalog-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.catalog-section .catalog-product-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.catalog-section .catalog-product-card .product-image-wrap {
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
    overflow: hidden;
}

.catalog-section .catalog-product-card .product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-section .product-card-cart-form {
    padding: 10px 12px 0;
}

.catalog-section .product-card-cart-form .btn {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.catalog-section .catalog-cart-label-short {
    display: none;
}

.catalog-section .product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
}

.catalog-section .product-body h3 {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 5px 0 10px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-section .product-meta {
    margin-top: auto;
    margin-bottom: 0;
    gap: 8px;
}

.catalog-section .product-meta strong {
    min-width: 0;
    color: #eaf8ff;
    font-size: clamp(15px, 1.6vw, 20px);
}

.catalog-section .product-meta span {
    flex: 0 0 auto;
    font-size: 12px;
}

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

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

    .catalog-section .product-card-cart-form {
        padding: 8px 8px 0;
    }

    .catalog-section .product-card-cart-form .btn {
        min-height: 42px;
        padding: 7px 6px;
        font-size: 12px;
    }

    .catalog-section .catalog-cart-label-full {
        display: none;
    }

    .catalog-section .catalog-cart-label-short {
        display: inline;
    }

    .catalog-section .product-body {
        padding: 10px;
    }

    .catalog-section .product-body h3 {
        font-size: 14px;
    }

    .catalog-section .product-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .catalog-section .product-meta strong {
        font-size: 16px;
    }

    .catalog-section .product-meta span {
        font-size: 11px;
    }
}
.catalog-section .product-card-variant-link {
    min-height: 44px;
    margin: 10px 12px 0;
}

@media (max-width: 720px) {
    .catalog-section .product-card-variant-link {
        min-height: 42px;
        margin: 8px 8px 0;
        padding: 7px 6px;
        font-size: 12px;
    }
}
