
.map-home-products{
    width:min(1320px,calc(100% - 32px));
    margin:28px auto;
}
.map-home-products-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}
.map-home-products-head h2{
    margin:0;
    color:#0a1f4d;
    font-size:clamp(24px,2vw,34px);
    font-weight:900;
}
.map-home-products-head a{
    color:#0b3d91;
    font-weight:800;
    text-decoration:none;
}
.map-home-products-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:14px;
}
.map-home-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
    border:1px solid #e0e5ec;
    border-radius:12px;
    background:#fff;
    box-shadow:0 3px 14px rgba(15,23,42,.05);
    transition:transform .18s ease,box-shadow .18s ease;
}
.map-home-card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 26px rgba(15,23,42,.10);
}
.map-home-card-media{
    height:330px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#fff;
}
.map-home-card-media img{
    width:100%!important;
    height:100%!important;
    margin:0!important;
    padding:8px!important;
    display:block!important;
    object-fit:contain!important;
    transition:transform .2s ease;
}
.map-home-card:hover .map-home-card-media img{transform:scale(1.025)}
.map-home-card-title{
    min-height:48px;
    margin:0;
    padding:8px 13px 0;
    font-size:15px;
    line-height:1.42;
    font-weight:800;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.map-home-card-title a{
    color:#0a1f4d;
    text-decoration:none;
}
.map-home-card-bottom{
    margin-top:auto;
    padding:10px 13px 12px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 128px;
    gap:10px;
    align-items:center;
}
.map-home-card-price{
    color:#d51f11;
    font-size:18px;
    font-weight:900;
    white-space:nowrap;
}
.map-home-card-price del{display:none}
.map-home-card-price ins{text-decoration:none}
.map-home-card-cart{
    min-height:40px;
    margin:0!important;
    padding:0 10px!important;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    border:0!important;
    border-radius:7px!important;
    background:#ff5a00!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:900!important;
    text-decoration:none!important;
}
.map-home-card-cart:hover{
    background:#e94f00!important;
    color:#fff!important;
}
.map-home-load-more{
    min-width:180px;
    min-height:44px;
    margin:20px auto 0;
    display:block;
    border:0;
    border-radius:8px;
    background:#0b3d91;
    color:#fff;
    font-weight:900;
    cursor:pointer;
}
.map-home-load-more[disabled]{opacity:.6;cursor:wait}
@media(max-width:1400px){
    .map-home-products-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1100px){
    .map-home-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .map-home-card-media{height:300px}
}
@media(max-width:700px){
    .map-home-products{width:calc(100% - 20px);margin:20px auto}
    .map-home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .map-home-card{border-radius:9px}
    .map-home-card-media{height:210px}
    .map-home-card-title{
        min-height:40px;
        padding:6px 8px 0;
        font-size:12px;
    }
    .map-home-card-bottom{
        grid-template-columns:minmax(0,1fr) 86px;
        gap:6px;
        padding:7px 8px 9px;
    }
    .map-home-card-price{font-size:14px}
    .map-home-card-cart{
        min-height:36px;
        padding:0 6px!important;
        font-size:11px!important;
    }
}


/* v2.0.0 — five-column compact marketplace cards */
.map-home-card-media{
    height:290px;
}
.map-home-card-title{
    min-height:44px;
    padding-top:7px;
}
.map-home-card-bottom{
    padding-top:8px;
}
@media(max-width:1400px){
    .map-home-card-media{height:280px}
}
@media(max-width:1100px){
    .map-home-card-media{height:260px}
}
@media(max-width:700px){
    .map-home-card-media{height:205px}
}


/* v3.0.0 — final production product cards */
.map-home-card{
    position:relative;
    min-height:0;
}
.map-home-card-media{
    position:relative;
    height:305px;
    cursor:pointer;
}
.map-home-card-media::after{
    content:"";
    position:absolute;
    inset:auto 0 0 0;
    height:54px;
    background:linear-gradient(to top,rgba(0,0,0,.18),transparent);
    opacity:0;
    transition:opacity .18s ease;
    pointer-events:none;
}
.map-home-card:hover .map-home-card-media::after{opacity:1}
.map-home-card-badges{
    position:absolute;
    top:10px;
    left:10px;
    z-index:4;
    display:flex;
    flex-wrap:wrap;
    gap:5px;
}
.map-card-badge{
    min-height:24px;
    padding:3px 7px;
    display:inline-flex;
    align-items:center;
    border-radius:5px;
    color:#fff;
    font-size:10px;
    font-weight:900;
    line-height:1;
    box-shadow:0 3px 10px rgba(15,23,42,.12);
}
.map-card-badge-sale{background:#e21b13}
.map-card-badge-new{background:#0b63ce}
.map-card-badge-best{background:#168a42}
.map-home-wishlist{
    position:absolute;
    top:9px;
    right:9px;
    z-index:4;
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #e1e6ee;
    border-radius:50%;
    background:rgba(255,255,255,.95);
    color:#0a1f4d;
    font-size:21px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 3px 10px rgba(15,23,42,.08);
}
.map-home-wishlist.is-active{
    background:#fff0f0;
    color:#d51f11;
}
.map-home-quick-view{
    position:absolute;
    left:50%;
    bottom:14px;
    z-index:3;
    min-height:34px;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:#0b3d91;
    color:#fff;
    font-size:12px;
    font-weight:900;
    opacity:0;
    transform:translate(-50%,8px);
    transition:opacity .18s ease,transform .18s ease;
}
.map-home-card:hover .map-home-quick-view{
    opacity:1;
    transform:translate(-50%,0);
}
.map-home-card-title{
    min-height:44px;
    padding-top:7px;
}
.map-home-card-bottom{
    min-height:58px;
    padding-top:8px;
}
.map-home-card-cart{
    white-space:nowrap;
}
.map-home-card-price{
    overflow:hidden;
    text-overflow:ellipsis;
}
@media(max-width:1400px){
    .map-home-card-media{height:285px}
}
@media(max-width:1100px){
    .map-home-card-media{height:260px}
}
@media(max-width:700px){
    .map-home-card-media{height:205px}
    .map-home-card-badges{top:6px;left:6px;gap:3px}
    .map-card-badge{min-height:20px;padding:2px 5px;font-size:8px}
    .map-home-wishlist{top:5px;right:5px;width:29px;height:29px;font-size:18px}
    .map-home-quick-view{display:none}
}


/* v3.0.1 — compact viewport-friendly cards */
.map-home-products{
    margin-top:18px;
    margin-bottom:20px;
}

.map-home-products-head{
    margin-bottom:10px;
}

.map-home-products-head h2{
    font-size:clamp(22px,1.8vw,30px);
}

.map-home-products-grid{
    gap:10px;
}

.map-home-card{
    border-radius:10px;
}

.map-home-card-media{
    height:230px;
}

.map-home-card-title{
    min-height:38px;
    padding:6px 10px 0;
    font-size:13px;
    line-height:1.35;
}

.map-home-card-bottom{
    min-height:50px;
    padding:7px 10px 10px;
    grid-template-columns:minmax(0,1fr) 112px;
    gap:8px;
}

.map-home-card-price{
    font-size:16px;
}

.map-home-card-cart{
    min-height:36px!important;
    font-size:12px!important;
    padding:0 8px!important;
}

.map-home-wishlist{
    width:30px;
    height:30px;
    font-size:18px;
}

.map-home-card-badges{
    top:7px;
    left:7px;
}

.map-card-badge{
    min-height:21px;
    padding:2px 6px;
    font-size:9px;
}

@media(max-width:1400px){
    .map-home-card-media{height:220px}
}

@media(max-width:1100px){
    .map-home-card-media{height:200px}
    .map-home-card-bottom{
        grid-template-columns:minmax(0,1fr) 104px;
    }
}

@media(max-width:700px){
    .map-home-products{
        width:calc(100% - 14px);
        margin:14px auto 16px;
    }

    .map-home-products-head{
        margin-bottom:8px;
    }

    .map-home-products-head h2{
        font-size:20px;
    }

    .map-home-products-grid{
        gap:6px;
    }

    .map-home-card-media{
        height:150px;
    }

    .map-home-card-title{
        min-height:34px;
        padding:5px 6px 0;
        font-size:11px;
        line-height:1.3;
    }

    .map-home-card-bottom{
        min-height:44px;
        padding:5px 6px 7px;
        grid-template-columns:minmax(0,1fr) 74px;
        gap:5px;
    }

    .map-home-card-price{
        font-size:12px;
    }

    .map-home-card-cart{
        min-height:32px!important;
        font-size:10px!important;
        padding:0 4px!important;
    }

    .map-home-wishlist{
        width:25px;
        height:25px;
        font-size:15px;
    }

    .map-card-badge{
        min-height:18px;
        padding:2px 4px;
        font-size:7px;
    }
}
