/*
 * Adapter from native Martfury/WooCommerce/Dokan markup to the canonical
 * homepage-v2 design primitives. The global shell itself lives unchanged in
 * homepage-shell.css.
 */
.lv2 .site-content {
    min-height: 45vh;
    background: #fff;
}

.lv2 .site-content > .container,
.lv2 .site-content > .martfury-container,
.lv2 .site-content .container,
.lv2 .site-content .martfury-container {
    width: min(calc(100% - 48px), var(--container));
    max-width: var(--container);
    margin-right: auto;
    margin-left: auto;
}

.lv2 .site-content > .container,
.lv2 .site-content > .martfury-container,
.lv2 .site-content .page-header,
.lv2 .site-content .entry-content,
.lv2 .site-content .woocommerce,
.lv2 .site-content .dokan-store-wrap {
    margin-top: 32px;
    margin-bottom: 48px;
}

.lv2 .site-content h1,
.lv2 .site-content h2,
.lv2 .site-content h3,
.lv2 .site-content h4,
.lv2 .site-content h5,
.lv2 .site-content h6,
.lv2 .site-content button,
.lv2 .site-content input[type="submit"],
.lv2 .site-content .button,
.lv2 .site-content .price {
    font-family: Outfit, "Trebuchet MS", sans-serif;
}

.lv2 .site-content .entry-title,
.lv2 .site-content .page-header h1,
.lv2 .site-content .woocommerce-products-header__title,
.lv2 .site-content .product_title {
    color: var(--ink);
}

.lv2 .site-content input[type="text"],
.lv2 .site-content input[type="email"],
.lv2 .site-content input[type="tel"],
.lv2 .site-content input[type="password"],
.lv2 .site-content input[type="search"],
.lv2 .site-content input[type="number"],
.lv2 .site-content select,
.lv2 .site-content textarea {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd8cc;
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
    box-shadow: none;
}

.lv2 .site-content textarea {
    min-height: 120px;
}

.lv2 .site-content input:focus,
.lv2 .site-content select:focus,
.lv2 .site-content textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green);
}

.lv2 .site-content .button,
.lv2 .site-content button.button,
.lv2 .site-content input[type="submit"],
.lv2 .site-content .wp-element-button,
.lv2 .site-content .wc-block-components-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--green);
    border-radius: 7px;
    padding: 0 20px;
    background: #fff;
    color: var(--green);
    font-family: Outfit, "Trebuchet MS", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none;
}

.lv2 .site-content .button:hover,
.lv2 .site-content .button:focus-visible,
.lv2 .site-content button.button:hover,
.lv2 .site-content button.button:focus-visible {
    background: var(--green);
    color: #fff;
}

.lv2 .site-content .button.alt,
.lv2 .site-content button.button.alt,
.lv2 .site-content input[type="submit"],
.lv2 .site-content .wp-element-button,
.lv2 .site-content .wc-block-components-button {
    background: var(--green);
    color: #fff;
}

.lv2 .site-content .button.alt:hover,
.lv2 .site-content .button.alt:focus-visible,
.lv2 .site-content input[type="submit"]:hover,
.lv2 .site-content input[type="submit"]:focus-visible,
.lv2 .site-content .wp-element-button:hover,
.lv2 .site-content .wc-block-components-button:hover {
    border-color: var(--green-dark);
    background: var(--green-dark);
    color: #fff;
}

.lv2 ul.products li.product,
.lv2 .wc-block-grid__product,
.lv2 .wc-block-product {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.lv2 ul.products li.product:hover,
.lv2 .wc-block-grid__product:hover,
.lv2 .wc-block-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(18, 32, 26, .1);
}

.lv2 ul.products li.product img,
.lv2 .wc-block-grid__product img,
.lv2 .wc-block-product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.lv2 ul.products li.product .woocommerce-loop-product__title,
.lv2 .wc-block-grid__product-title,
.lv2 .wc-block-components-product-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.lv2 .site-content .price {
    color: var(--ink);
    font: 700 20px/1.2 Outfit, "Trebuchet MS", sans-serif;
}

.lv2 .site-content .price del {
    margin-left: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}

.lv2 .woocommerce-message,
.lv2 .woocommerce-info,
.lv2 .woocommerce-error {
    border-radius: 7px;
    border-top-color: var(--green);
    background: var(--warm);
}

.lv2 .woocommerce-error {
    border-top-color: #b42318;
}

.lv2 table.shop_table,
.lv2 .woocommerce-checkout-review-order,
.lv2 .woocommerce-MyAccount-navigation,
.lv2 .woocommerce-MyAccount-content,
.lv2 .dokan-store-wrap .dokan-store-sidebar,
.lv2 .dokan-store-wrap .dokan-single-store {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.lv2 .woocommerce-MyAccount-navigation a,
.lv2 .dokan-store-tabs a {
    min-height: 44px;
}

@media (max-width: 720px) {
    .lv2 .site-content > .container,
    .lv2 .site-content > .martfury-container,
    .lv2 .site-content .container,
    .lv2 .site-content .martfury-container {
        width: min(calc(100% - 28px), var(--container));
    }

    .lv2 .site-content .entry-content,
    .lv2 .site-content .woocommerce,
    .lv2 .site-content .dokan-store-wrap {
        margin-top: 24px;
        margin-bottom: 34px;
    }

    .lv2 .site-content .price {
        font-size: 17px;
    }
}

@media (max-width: 380px) {
    .lv2 .site-content > .container,
    .lv2 .site-content > .martfury-container,
    .lv2 .site-content .container,
    .lv2 .site-content .martfury-container {
        width: calc(100% - 22px);
    }

    .lv2 ul.products li.product .woocommerce-loop-product__title,
    .lv2 .wc-block-grid__product-title,
    .lv2 .wc-block-components-product-name {
        font-size: 13px;
    }
}
