/* MEHERIMA UNIVERSAL PRODUCT CARD V7.1 */

.mh71-card,
.mh71-card * {
    box-sizing: border-box;
}

.mh71-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 5px;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,.035);
    overflow: hidden;
    transition: box-shadow .18s, border-color .18s;
}

.mh71-card:hover {
    border-color: #d6e2de;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

/* FULL IMAGE COVERAGE */

.mh71-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 7px;
    background: #f5f6f8;
}

.mh71-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.mh71-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover !important;
    object-position: center;
}

.mh71-image-discount {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 4px 6px;
    border-radius: 5px;
    background: #e91d48;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}

.mh71-compare {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #626974;
    font-size: 16px;
    cursor: pointer;
}

.mh71-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 7px 3px 3px;
    gap: 7px;
}

/* RATING AND PRODUCT FEATURE */

.mh71-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 22px;
    gap: 4px;
}

.mh71-review {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 3px;
}

.mh71-rating {
    padding: 3px 5px;
    background: #ff8908;
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.mh71-review-count {
    font-size: 10px;
    color: #747984;
}

.mh71-feature {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    max-width: 68%;
    margin-left: auto;
    padding: 3px 5px;
    background: #e3f8e5;
    color: #176522;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
}

.mh71-feature i {
    font-size: 14px;
    flex-shrink: 0;
}

.mh71-feature span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PRODUCT NAME */

.mh71-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
    line-height: 18px;
    color: #20242c !important;
    font-size: 13px;
    font-weight: 600;
}

/* PRICE AND WISHLIST */

.mh71-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    min-height: 34px;
}

.mh71-prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.mh71-discount {
    padding: 3px 4px;
    background: #ffe4e9;
    color: #d51043;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
}

.mh71-prices del {
    color: #858995;
    font-size: 10px;
    white-space: nowrap;
}

.mh71-prices strong {
    color: #151922;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.mh71-wishlist {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #747984;
    font-size: 23px;
    cursor: pointer;
}

.mh71-wishlist:hover {
    color: #e33d62;
}

/* PURCHASE BUTTONS */

.mh71-actions {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
    gap: 4px;
    align-items: stretch;
    margin-top: auto;
}

.mh71-three-actions {
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr) 46px;
}

.mh71-actions button,
.mh71-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 32px !important;
    min-width: 0;
    padding: 0 3px;
    border: 0;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
}

.mh71-cart {
    background: #d5eff6;
    color: #086b77;
}

.mh71-cart i {
    font-size: 14px;
}

.mh71-buy {
    background: #006b57;
    color: #fff;
}

.mh71-actions .mh71-whatsapp {
    width: 46px;
    background: #16c65b;
    color: #fff !important;
}

.mh71-whatsapp i {
    font-size: 25px;
}

.mh71-cart:hover {
    background: #c4e8f1;
}

.mh71-buy:hover {
    background: #005544;
}

.mh71-whatsapp:hover {
    background: #0fb650;
}

/* RESPONSIVE HOMEPAGE GRID */

#newest-products-list.products-wrapper-grid {
    display: grid !important;
    grid-template-columns: repeat(6,minmax(0,1fr)) !important;
    gap: 10px !important;
}

#newest-products-list > .grid-item {
    min-width: 0;
    width: auto !important;
    padding: 0 !important;
}

@media (max-width:1199.98px) {

    #newest-products-list.products-wrapper-grid {
        grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    }
}

@media (max-width:767.98px) {

    #newest-products-list.products-wrapper-grid {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 7px !important;
    }

    .mh71-card {
        padding: 4px;
        border-radius: 8px;
    }

    .mh71-content {
        padding: 6px 2px 2px;
        gap: 5px;
    }

    .mh71-name {
        font-size: 12px;
        line-height: 17px;
        height: 34px;
    }

    .mh71-prices strong {
        font-size: 15px;
    }

    .mh71-cart i {
        display: none;
    }

    .mh71-actions button {
        font-size: 9px;
    }

    .mh71-feature {
        font-size: 9px;
    }

    .mh71-three-actions {
        grid-template-columns: minmax(0,1.15fr) minmax(0,1fr) 42px;
    }

    .mh71-actions .mh71-whatsapp {
        width: 42px;
    }
}

/* =====================================
   MEHERIMA PRODUCT CARD V7.2 REFINEMENT
   ===================================== */

.mh71-card .mh71-image {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.mh71-card .mh71-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
}

.mh71-card .mh71-content {
    padding: 6px 3px 3px;
    gap: 5px;
}

.mh71-card .mh71-meta {
    min-height: 18px;
    gap: 3px;
}

.mh71-card .mh71-feature {
    padding: 2px 5px;
}

.mh71-card .mh71-compare {
    width: 24px;
    height: 24px;
    font-size: 14px;
    background: rgba(255,255,255,.92);
}

.mh71-card .mh71-name {
    height: 36px;
    line-height: 18px;
}

.mh71-card .mh71-price-row {
    min-height: 30px;
}

.mh71-card .mh71-wishlist {
    font-size: 21px;
}

.mh71-card .mh71-actions {
    gap: 4px;
    padding-top: 2px;
}

.mh71-card .mh71-actions button,
.mh71-card .mh71-actions a {
    height: 32px !important;
    border-radius: 5px;
}

.mh71-card .mh71-three-actions {
    grid-template-columns:
        minmax(0,1.15fr)
        minmax(0,1fr)
        46px;
}

.mh71-card .mh71-actions .mh71-whatsapp {
    width: 46px;
}

@media (max-width:767.98px) {

    .mh71-card .mh71-content {
        padding: 5px 2px 2px;
        gap: 4px;
    }

    .mh71-card .mh71-name {
        height: 34px;
        line-height: 17px;
    }

    .mh71-card .mh71-price-row {
        min-height: 28px;
    }

    .mh71-card .mh71-compare {
        width: 23px;
        height: 23px;
        font-size: 13px;
    }

    .mh71-card .mh71-three-actions {
        grid-template-columns:
            minmax(0,1.15fr)
            minmax(0,1fr)
            42px;
    }

    .mh71-card .mh71-actions .mh71-whatsapp {
        width: 42px;
    }
}


/* MEHERIMA V7.4 ROYAL BLUE MARKETPLACE */

.mh71-card .mh71-actions .mh71-cart {
    background: #E8EFFF;
    color: #2457D6;
}

.mh71-card .mh71-actions .mh71-cart:hover {
    background: #D6E2FF;
    color: #1946BB;
}

.mh71-card .mh71-actions .mh71-buy {
    background: #2457D6;
    color: #FFFFFF;
}

.mh71-card .mh71-actions .mh71-buy:hover {
    background: #1946BB;
    color: #FFFFFF;
}

.mh71-card .mh71-actions button {
    transition: background-color .18s ease,
                color .18s ease;
}


/* MEHERIMA LOAD MORE V7.5 */

#nexa-product-wrapper {
    padding-bottom: 24px !important;
}

#nexa-product-wrapper #view-more-container {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
    text-align: center;
}

#nexa-product-wrapper #view-more-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 220px !important;
    max-width: 100%;
    height: 44px !important;
    padding: 0 18px !important;
    margin: 0 auto;
    background: #2457D6 !important;
    color: #FFFFFF !important;
    border: 1px solid #2457D6 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2;
    box-shadow: 0 3px 8px rgba(36,87,214,.14);
    transition: background-color .18s ease,
                box-shadow .18s ease;
}

#nexa-product-wrapper #view-more-btn:hover:not(:disabled) {
    background: #1946BB !important;
    border-color: #1946BB !important;
    box-shadow: 0 4px 12px rgba(36,87,214,.22);
}

#nexa-product-wrapper #view-more-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    box-shadow: none;
}

#nexa-product-wrapper #view-more-btn:focus-visible {
    outline: 3px solid #AFC5FF;
    outline-offset: 3px;
}

@media (max-width:767.98px) {

    #nexa-product-wrapper {
        padding-bottom: 18px !important;
    }

    #nexa-product-wrapper #view-more-container {
        margin-top: 18px !important;
        margin-bottom: 0 !important;
    }

    #nexa-product-wrapper #view-more-btn {
        width: 190px !important;
        height: 40px !important;
        font-size: 12px !important;
    }
}

