/* Native MEDEQUIP commercial equipment presentation */
.mdq-featured-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
    gap:20px;
    margin:24px 0;
}
.mdq-featured-card {
    min-width:0;
    padding:18px;
    border:1px solid #dce7ee;
    border-radius:14px;
    background:#fff;
    color:#172b43;
}
.mdq-native-image,
.mdq-native-placeholder {
    display:flex;
    align-items:center;
    justify-content:center;
    aspect-ratio:1/1;
    width:100%;
    overflow:hidden;
    border-radius:10px;
    background:#f3f6f8;
}
.mdq-native-image img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}
.mdq-native-placeholder {
    color:#52677b;
    text-align:center;
    padding:16px;
    box-sizing:border-box;
}
.mdq-product-facts {
    display:grid;
    gap:6px;
    margin:14px 0;
    font-size:14px;
}
.mdq-product-facts div {
    display:grid;
    grid-template-columns:minmax(80px,1fr) 2fr;
    gap:8px;
}
.mdq-product-facts dt {
    font-weight:650;
}
.mdq-product-facts dd {
    margin:0;
    overflow-wrap:anywhere;
}
.mdq-product-price {
    font-weight:750;
    color:#087580;
}
.mdq-demo-label {
    font-size:12px;
    line-height:1.5;
    padding:9px;
    border-radius:6px;
    background:#fff5df;
    color:#755416;
}

/* MEDEQUIP R6-R1-R1: responsive commercial storefront */

.medequip-catalogue .medequip-equipment-grid,
.medequip-equipment-preview .mdq-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    width: 100%;
    max-width: 1440px;
    margin: 24px auto;
    box-sizing: border-box;
}

.medequip-catalogue .medequip-equipment-grid > .medequip-equipment-card,
.medequip-equipment-preview .mdq-featured-grid > .mdq-featured-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    width: auto;
    padding: 18px;
    border: 1px solid #dce7ee;
    border-radius: 14px;
    background: #fff;
    color: #172b43;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.medequip-equipment-card .mdq-native-image,
.mdq-featured-card .mdq-native-image,
.medequip-equipment-card .mdq-native-placeholder,
.mdq-featured-card .mdq-native-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 240px;
    max-height: 280px;
    aspect-ratio: auto;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    background: #f8fafc;
}

.medequip-equipment-card .mdq-native-image > img,
.mdq-featured-card .mdq-native-image > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-sizing: border-box;
}

.medequip-equipment-card h2,
.mdq-featured-card h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 14px 0 8px;
}

.medequip-equipment-card p,
.mdq-featured-card p {
    overflow-wrap: anywhere;
}

.medequip-equipment-card .mdq-product-facts,
.mdq-featured-card .mdq-product-facts {
    min-width: 0;
}

.medequip-equipment-card .mdq-product-facts div,
.mdq-featured-card .mdq-product-facts div {
    grid-template-columns: minmax(65px, 1fr) minmax(0, 2fr);
}

.medequip-equipment-card .medequip-cart-add-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin-top: auto;
    min-width: 0;
}

.medequip-cart-add-form input[type="number"] {
    width: 80px;
    max-width: 100%;
    box-sizing: border-box;
}

.medequip-cart-add-form button {
    max-width: 100%;
    white-space: normal;
    box-sizing: border-box;
}

.medequip-equipment-card > a,
.mdq-featured-card > a {
    display: inline-block;
    margin-top: 10px;
    overflow-wrap: anywhere;
}

@media (min-width: 640px) {
    .medequip-catalogue .medequip-equipment-grid,
    .medequip-equipment-preview .mdq-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .medequip-catalogue .medequip-equipment-grid,
    .medequip-equipment-preview .mdq-featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1440px) {
    .medequip-catalogue .medequip-equipment-grid,
    .medequip-equipment-preview .mdq-featured-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .medequip-catalogue .medequip-equipment-grid,
    .medequip-equipment-preview .mdq-featured-grid {
        gap: 16px;
    }

    .medequip-catalogue .medequip-equipment-grid > .medequip-equipment-card,
    .medequip-equipment-preview .mdq-featured-grid > .mdq-featured-card {
        padding: 14px;
    }

    .medequip-equipment-card .mdq-native-image,
    .mdq-featured-card .mdq-native-image {
        height: 220px;
    }
}
