html { font-size: 15px; }
body { font-size: 1rem; line-height: 1.5; }

#page :is(.gray_14, .white_14) { font-size: 13px; }
#page :is(.gray_15, .white_15) { font-size: 14px; }
#page :is(.gray_16, .gray_16-light, .green_16, .white_16) { font-size: 15px; }
#page :is(.gray_18, .orange_18) { font-size: 16px; }
#page :is(.gray_20, .lilavo_20) { font-size: 18px; }
#page .gray_24 { font-size: clamp(20px, 2vw, 22px); }
#page h1 { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.25; }
#page h2 { font-size: clamp(18px, 1.85vw, 23px); line-height: 1.3; }
#page h3 { font-size: clamp(16px, 1.55vw, 18px); }
#page :is(.gray_14, .gray_15, .gray_16, .gray_18, .gray_20, .gray_24, .white_14, .white_15, .white_16) > a { font-size: inherit; }
#page #addProductToCart :is(.ns-size-option span, .ns-size-label) { font-size: 14px; }
#page #addProductToCart :is(.price_value,.promo_price .price_value) { font-size: clamp(20px, 2vw, 24px); }

#page :is(#list .product_list,.ns-related-card) { padding: 0; overflow: hidden; }
#page :is(#list .product_list, .ns-related-card) .product_image {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 5 / 6;
    background-size: cover;
    background-position: center;
    border: 0;
    border-radius: 0;
    margin: 0;
}
#page :is(#list .product_list, .ns-related-card) .product_data {
    justify-content: flex-start;
    align-content: flex-start;
    text-align: left;
    padding: 8px 10px 10px;
    margin: 0;
    min-height: 0;
    row-gap: 3px;
}
#page :is(#list .product_list, .ns-related-card) .product_data a {
    display: block;
    text-align: left;
    font-size: 14px;
    line-height: 1.38;
}
#page :is(#list .product_list, .ns-related-card) .product_data strong {
    font-size: 15px;
    line-height: 1.35;
}
#page :is(#list .product_list, .ns-related-card) .product_data .orange_18 { font-size: 13px; }
#page :is(.products_focus, .products_new) .product-list > :is(h3, .gray_18, .gray_20, .orange_18) {
    text-align: left;
}
#page :is(.products_focus, .products_new) .product-list :is(h3, h3 a, strong) { font-size: 14px; }

.ns-product-services {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px;
    margin: 10px 0 18px;
    padding: 0;
}
.ns-product-services li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 4px 2px;
    text-align: center;
    font-size: 13px;
    line-height: 1.32;
}
.ns-product-services .bi { font-size: clamp(24px,3vw,34px); color: #ae7f2f; line-height: 1; }
#page .ns-benefits__icon {
    background: none;
    color: #ae7f2f;
    display: grid;
    place-items: center;
}
#page .ns-benefits__icon::before { font: normal 34px/1 bootstrap-icons; }
#page .ns-benefits__icon--quality::before { content: "\f154"; }
#page .ns-benefits__icon--merchant::before { content: "\f1cc"; }
#page .ns-benefits__icon--inspection::before { content: "\f341"; }
#page .ns-benefits__icon--delivery::before { content: "\f5ea"; }
#page .ns-benefits__icon--return::before { content: "\f130"; }

@media (max-width: 575px) {
    #page :is(#list .product_list, .ns-related-card) .product_data { padding: 7px 8px 9px; }
    #page :is(#list .product_list, .ns-related-card) .product_data a { font-size: 13px; }
    #page :is(#list .product_list, .ns-related-card) .product_data strong { font-size: 14px; }
    #page .ns-product-services { grid-template-columns: repeat(3,minmax(0,1fr)); }
    #page :is(input[type=search], input[type=text], input[type=email], input[type=tel], textarea) { font-size: 16px; }
}

#page :is(.products_focus, .products_new) > .gallery-slider-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Product specifications use the same size across labels and values. */
#page .ns-product-specs :is(th, td) {
    font-size: 14px;
}

@media (max-width: 800px) {
    body {
        --ns-mobile-text-size: 13px;
        font-size: var(--ns-mobile-text-size);
    }

    /* Keep icon, logo and widget sizing separate from text. */
    body :is(#page, nav.mm-menu) :is(
        h1, h2, h3, h4, h5, h6, p, a, label, li, td, th,
        button, input:not([type=checkbox], [type=radio], [type=range], [type=color]), select, textarea,
        :not(i, svg, [class*="icon"], [class*="fa-"], [class~="bi"]):is(
            span, strong, b, small, em, time, dt, dd,
            [class^="gray_"], [class*=" gray_"], [class^="white_"], [class*=" white_"],
            [class^="orange_"], [class*=" orange_"], [class^="green_"], [class*=" green_"],
            [class^="lilavo_"], [class*=" lilavo_"], [style*="font-size"]
        )
    ):not([class*="icon"], [class*="fa-"], [class~="bi"], [class~="mm-btn--prev"], [class~="mm-btn--close"]) {
        font-size: var(--ns-mobile-text-size) !important;
    }

    body #page :is(h1, h2, h3, h4, h5, h6, .price_value, .ns-size-label, .ns-product-specs th) {
        font-weight: 700;
    }

    body #page .ns-product-specs :is(th, td) {
        line-height: 1.45;
    }
}

@media (max-width: 800px) {
    #page :is(.product_list, .product-list, .ns-related-card) .wishlist {
        top: 0;
        right: 0;
        width: 44px;
        height: 44px;
    }

    #page :is(.product_list, .product-list, .ns-related-card) .wishlist .awishlist {
        display: block;
        width: 100%;
        height: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 23px auto;
    }
}
