/* GHZ conversion + performance */

body.single-product.ghz-product-v3 .woocommerce-product-gallery {
    min-height: clamp(320px, 42vw, 650px);
}

body.single-product.ghz-product-v3 form.cart,
body.single-product.ghz-product-v3 .variations_form {
    min-height: 72px;
}

body.single-product.ghz-product-v3 .price {
    min-height: 34px;
}

body.single-product.ghz-product-v3 .ghz-fbt,
body.single-product.ghz-product-v3 .ghz-resources,
body.single-product.ghz-product-v3 .ghz-qa-reviews {
    max-width: 1480px;
    margin: 28px auto;
    padding: clamp(20px, 2.2vw, 30px);
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
}

body.single-product.ghz-product-v3 .ghz-fbt__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

body.single-product.ghz-product-v3 .ghz-fbt__item {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #edf0f4;
    border-radius: 14px;
}

body.single-product.ghz-product-v3 .ghz-fbt__image img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

body.single-product.ghz-product-v3 .ghz-fbt__title {
    display: block;
    margin-bottom: 6px;
    color: #071a3d;
    font-weight: 800;
    line-height: 1.45;
}

body.single-product.ghz-product-v3 .ghz-fbt__price {
    margin-bottom: 10px;
}

body.single-product.ghz-product-v3 .ghz-resources__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.single-product.ghz-product-v3 .ghz-resource {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #edf0f4;
    border-radius: 12px;
}

body.single-product.ghz-product-v3 .ghz-review-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

body.single-product.ghz-product-v3 .ghz-review-summary__score {
    min-width: 72px;
    font-size: 36px;
    font-weight: 900;
    color: #071a3d;
}

body.single-product.ghz-product-v3 .ghz-review-summary__meta {
    display: grid;
    gap: 4px;
}

body.single-product.ghz-product-v3 .ghz-product-qa {
    margin-top: 24px;
}

body.single-product.ghz-product-v3 .ghz-product-qa__item {
    border-top: 1px solid #edf0f4;
    padding: 14px 0;
}

body.single-product.ghz-product-v3 .ghz-product-qa__item summary {
    cursor: pointer;
    font-weight: 800;
    color: #071a3d;
}

.ghz-mobile-purchase {
    display: none;
}

@media (max-width: 767px) {

    body.single-product.ghz-product-v3 .ghz-fbt,
    body.single-product.ghz-product-v3 .ghz-resources,
    body.single-product.ghz-product-v3 .ghz-qa-reviews {
        margin: 20px 0;
        padding: 18px;
        border-radius: 14px;
    }

    body.single-product.ghz-product-v3 .ghz-fbt__grid,
    body.single-product.ghz-product-v3 .ghz-resources__list {
        grid-template-columns: 1fr;
    }

    .ghz-mobile-purchase[data-active="1"] {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 9999;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 10px;
        background: #fff;
        border: 1px solid #e3e8ef;
        border-radius: 14px;
        box-shadow: 0 10px 35px rgb(7 26 61 / .16);
    }

    .ghz-mobile-purchase__media img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        border-radius: 8px;
    }

    .ghz-mobile-purchase__info {
        min-width: 0;
        display: grid;
    }

    .ghz-mobile-purchase__title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
        line-height: 1.35;
    }

    .ghz-mobile-purchase__price {
        font-size: 13px;
        font-weight: 800;
    }

    .ghz-mobile-purchase__cta {
        min-height: 44px;
        white-space: nowrap;
    }
}
