/* Compact space selection and two-column products on phones. */
@media (max-width: 767px) {
    .collection-2 {
        padding: 32px 16px 40px !important;
    }
    .collection-2 > .collection-txt {
        margin-bottom: 24px;
    }
    .collection-2 .collection-2-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-auto-rows: auto;
        align-items: stretch;
        gap: 8px;
        transition: none;
    }
    [data-series-area-count="3"] .collection-2 .collection-2-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .collection-2 .collection-2-category {
        height: auto !important;
        min-width: 0;
        aspect-ratio: auto !important;
        border: 1px solid #d6d1c8;
        border-radius: 5px;
        background: #fff;
        box-shadow: none !important;
        transform: none !important;
        transition: none;
    }
    .collection-2 .collection-2-category::after {
        display: none;
    }
    .collection-2 .collection-2-category img {
        height: clamp(56px, 19vw, 96px);
        object-fit: cover;
        transform: none !important;
        filter: none !important;
        transition: none;
    }
    .collection-2 .collection-2-category span {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 46px;
        padding: 6px 3px;
        color: #4a4540 !important;
        font-size: 14px;
        line-height: 1.2;
        text-align: center;
        text-shadow: none !important;
        overflow-wrap: normal;
    }
    .collection-2 .collection-2-category span svg {
        display: none !important;
    }
    #collection-tab-vanitary:checked ~ .collection-2-category-grid label[for="collection-tab-vanitary"],
    #collection-tab-bathtub:checked ~ .collection-2-category-grid label[for="collection-tab-bathtub"],
    #collection-tab-shower:checked ~ .collection-2-category-grid label[for="collection-tab-shower"],
    #collection-tab-toilet:checked ~ .collection-2-category-grid label[for="collection-tab-toilet"] {
        border-color: #8c714a;
        background: #f4f0e9;
        box-shadow: inset 0 0 0 1px #8c714a !important;
    }
    .collection-2 .collection-2-products {
        margin-top: 20px;
    }
    .collection-2 .collection-2-panel,
    .collection-2 .collection-2-accessories-grid,
    .collection-2 .collection-2-tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
        align-items: stretch !important;
        animation: none !important;
    }
    .collection-2 .collection-2-product {
        min-width: 0;
        min-height: 0 !important;
        padding: 12px 10px 14px !important;
        justify-content: flex-start !important;
        grid-column: auto;
        box-shadow: none;
        transform: none !important;
        animation: none !important;
        transition: none;
    }
    .collection-2 .collection-2-product .collection-2-product__image {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden;
    }
    .collection-2 .collection-2-product .collection-2-product__image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center;
        transform: none !important;
        transition: none;
    }
    .collection-2 .collection-2-product .collection-2-product__info {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        margin: 12px 0 0;
        padding: 0;
        overflow-wrap: anywhere;
    }
    .collection-2 .collection-2-product .collection-2-product__info em,
    .collection-2 .collection-2-product .collection-2-product__info strong {
        font-size: 14px;
        line-height: 1.35;
    }
    .collection-2 .collection-2-product .collection-2-product__info strong {
        margin-top: auto;
        padding-top: 6px;
    }
    .collection-2 .collection-2-persistent {
        margin-top: 36px;
    }
    .collection-2 .collection-2-persistent-section + .collection-2-persistent-section {
        margin-top: 36px;
    }
    .collection-2 .collection-2-section-title {
        margin-bottom: 20px;
    }
}
