/*
 * GHZ Product Content v4
 * Single ownership for product details, verified facts, documents and Q&A.
 * Porto/WooCommerce continue to own gallery/cart/core shell.
 */

body.single-product.ghz-product-content-v4 {
    --ghz-pv4-border: #e5e9ef;
    --ghz-pv4-muted: #697386;
    --ghz-pv4-soft: #f7f8fa;
    --ghz-pv4-ink: #172033;
    --ghz-pv4-accent: #0f6cbd;
    --ghz-pv4-success: #16794a;
    --ghz-pv4-radius: 18px;
    --ghz-pv4-gap: clamp(18px, 2vw, 28px);
}

body.single-product.ghz-product-content-v4 .ghz-product-content-hub {
    display: block;
    width: 100%;
    margin-block: 26px;
}

body.single-product.ghz-product-content-v4 .ghz-product-content-hub > .ghz-product-section:first-child {
    margin-block-start: 0;
}

body.single-product.ghz-product-content-v4 .ghz-product-content-hub > .ghz-product-section:last-child {
    margin-block-end: 0;
}

body.single-product.ghz-product-content-v4 .ghz-product-section,
body.single-product.ghz-product-content-v4 .ghz-vce-product-qa,
body.single-product.ghz-product-content-v4 .ghz-fbt,
body.single-product.ghz-product-content-v4 .ghz-recent-products {
    box-sizing: border-box;
    width: 100%;
    margin-block: 28px;
    padding: clamp(18px, 2.4vw, 30px);
    border: 1px solid var(--ghz-pv4-border);
    border-radius: var(--ghz-pv4-radius);
    background: #fff;
    box-shadow: 0 8px 28px rgba(20, 31, 51, .055);
}

body.single-product.ghz-product-content-v4 .ghz-product-section__header,
body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__head,
body.single-product.ghz-product-content-v4 .ghz-fbt__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 22px;
}

body.single-product.ghz-product-content-v4 .ghz-product-section__eyebrow,
body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__head small,
body.single-product.ghz-product-content-v4 .ghz-fbt__header > span {
    display: block;
    margin-block-end: 5px;
    color: var(--ghz-pv4-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.single-product.ghz-product-content-v4 .ghz-product-section__header h2,
body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__head h2,
body.single-product.ghz-product-content-v4 .ghz-fbt__header h2 {
    margin: 0;
    color: var(--ghz-pv4-ink);
    font-size: clamp(21px, 2.3vw, 28px);
    line-height: 1.25;
}

body.single-product.ghz-product-content-v4 .ghz-product-section__header p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--ghz-pv4-muted);
    line-height: 1.75;
}

body.single-product.ghz-product-content-v4 .ghz-product-section__badge,
body.single-product.ghz-product-content-v4 .ghz-product-section__count,
body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__head > span {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef8f2;
    color: var(--ghz-pv4-success);
    font-size: 12px;
    font-weight: 700;
}

body.single-product.ghz-product-content-v4 .ghz-product-specs__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--ghz-pv4-border);
    border-radius: 14px;
    background: var(--ghz-pv4-border);
}

body.single-product.ghz-product-content-v4 .ghz-product-specs__row {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    background: #fff;
}

body.single-product.ghz-product-content-v4 .ghz-product-specs__row dt,
body.single-product.ghz-product-content-v4 .ghz-product-specs__row dd {
    min-width: 0;
    margin: 0;
}

body.single-product.ghz-product-content-v4 .ghz-product-specs__row dt {
    color: var(--ghz-pv4-muted);
    font-size: 13px;
    font-weight: 600;
}

body.single-product.ghz-product-content-v4 .ghz-product-specs__row dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ghz-pv4-ink);
}

body.single-product.ghz-product-content-v4 .ghz-product-specs__value {
    overflow-wrap: anywhere;
    font-weight: 700;
}

body.single-product.ghz-product-content-v4 .ghz-product-specs__row dd small {
    flex: 0 0 auto;
    color: var(--ghz-pv4-success);
    font-size: 11px;
    font-weight: 700;
}

body.single-product.ghz-product-content-v4 .ghz-product-context__summary {
    margin-block-end: var(--ghz-pv4-gap);
    padding: 18px 20px;
    border-inline-start: 4px solid var(--ghz-pv4-accent);
    border-radius: 12px;
    background: var(--ghz-pv4-soft);
}

body.single-product.ghz-product-content-v4 .ghz-product-context__summary p {
    margin: 0;
    color: var(--ghz-pv4-ink);
    line-height: 1.85;
}

body.single-product.ghz-product-content-v4 .ghz-product-context__block > h3 {
    margin: 0 0 14px;
    color: var(--ghz-pv4-ink);
    font-size: 17px;
}

body.single-product.ghz-product-content-v4 .ghz-product-context__features,
body.single-product.ghz-product-content-v4 .ghz-product-context__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.single-product.ghz-product-content-v4 .ghz-product-context__features article {
    padding: 16px;
    border: 1px solid var(--ghz-pv4-border);
    border-radius: 13px;
    background: #fff;
}

body.single-product.ghz-product-content-v4 .ghz-product-context__features strong {
    display: block;
    margin-block-end: 7px;
    color: var(--ghz-pv4-ink);
}

body.single-product.ghz-product-content-v4 .ghz-product-context__features p {
    margin: 0;
    color: var(--ghz-pv4-muted);
    line-height: 1.7;
}

body.single-product.ghz-product-content-v4 .ghz-product-context__columns {
    margin-block-start: var(--ghz-pv4-gap);
}

body.single-product.ghz-product-content-v4 .ghz-product-context__columns > div {
    padding: 18px;
    border-radius: 14px;
    background: var(--ghz-pv4-soft);
}

body.single-product.ghz-product-content-v4 .ghz-product-context__block ul {
    margin: 0;
    padding-inline-start: 20px;
}

body.single-product.ghz-product-content-v4 .ghz-product-context__block li {
    margin-block: 7px;
    line-height: 1.65;
}

body.single-product.ghz-product-content-v4 .ghz-product-context__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.single-product.ghz-product-content-v4 .ghz-product-context__chips span {
    padding: 7px 10px;
    border: 1px solid var(--ghz-pv4-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ghz-pv4-ink);
    font-size: 12px;
    font-weight: 600;
}

body.single-product.ghz-product-content-v4 .ghz-product-resources__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.single-product.ghz-product-content-v4 .ghz-product-resource {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--ghz-pv4-border);
    border-radius: 13px;
    color: var(--ghz-pv4-ink);
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.single-product.ghz-product-content-v4 .ghz-product-resource:hover {
    border-color: #bdc8d7;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(20, 31, 51, .07);
}

body.single-product.ghz-product-content-v4 .ghz-product-resource__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: #eef5fb;
    color: var(--ghz-pv4-accent);
    font-weight: 800;
}

body.single-product.ghz-product-content-v4 .ghz-product-resource__body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
}

body.single-product.ghz-product-content-v4 .ghz-product-resource__body strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.single-product.ghz-product-content-v4 .ghz-product-resource__body small {
    margin-block-start: 3px;
    color: var(--ghz-pv4-muted);
}

body.single-product.ghz-product-content-v4 .ghz-product-resource__type {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--ghz-pv4-soft);
    color: var(--ghz-pv4-muted);
    font-size: 11px;
    font-weight: 700;
}

body.single-product.ghz-product-content-v4 .ghz-product-verified-qa__list {
    border: 1px solid var(--ghz-pv4-border);
    border-radius: 14px;
    overflow: hidden;
}

body.single-product.ghz-product-content-v4 .ghz-product-verified-qa__item {
    border-block-end: 1px solid var(--ghz-pv4-border);
    background: #fff;
}

body.single-product.ghz-product-content-v4 .ghz-product-verified-qa__item:last-child {
    border-block-end: 0;
}

body.single-product.ghz-product-content-v4 .ghz-product-verified-qa__item summary {
    position: relative;
    padding: 16px 48px 16px 18px;
    color: var(--ghz-pv4-ink);
    cursor: pointer;
    font-weight: 700;
    line-height: 1.55;
    list-style: none;
}

body[dir="rtl"].single-product.ghz-product-content-v4 .ghz-product-verified-qa__item summary {
    padding: 16px 18px 16px 48px;
}

body.single-product.ghz-product-content-v4 .ghz-product-verified-qa__item summary::-webkit-details-marker {
    display: none;
}

body.single-product.ghz-product-content-v4 .ghz-product-verified-qa__item summary::after {
    content: "+";
    position: absolute;
    inset-inline-end: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ghz-pv4-accent);
    font-size: 22px;
    font-weight: 500;
}

body.single-product.ghz-product-content-v4 .ghz-product-verified-qa__item[open] summary::after {
    content: "−";
}

body.single-product.ghz-product-content-v4 .ghz-product-verified-qa__answer {
    padding: 0 18px 17px;
    color: var(--ghz-pv4-muted);
    line-height: 1.8;
}

body.single-product.ghz-product-content-v4 .ghz-product-verified-qa__answer p {
    margin: 0 0 8px;
}

body.single-product.ghz-product-content-v4 .ghz-product-verified-qa__answer small {
    color: var(--ghz-pv4-success);
    font-weight: 700;
}

body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__item {
    margin-block: 12px;
    padding: 16px;
    border: 1px solid var(--ghz-pv4-border);
    border-radius: 13px;
    background: var(--ghz-pv4-soft);
}

body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__q,
body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
}

body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__a {
    margin-block-start: 12px;
    padding-block-start: 12px;
    border-block-start: 1px solid var(--ghz-pv4-border);
}

body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__q > strong,
body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__a > strong {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #fff;
    color: var(--ghz-pv4-accent);
}

body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__ask {
    margin-block-start: 18px;
    padding: 16px;
    border-radius: 13px;
    background: var(--ghz-pv4-soft);
}

body.single-product.ghz-product-content-v4 .ghz-vce-product-qa textarea {
    width: 100%;
    border-radius: 10px;
}

body.single-product.ghz-product-content-v4 #product-tab {
    border: 1px solid var(--ghz-pv4-border);
    border-radius: var(--ghz-pv4-radius);
    background: #fff;
    box-shadow: 0 8px 28px rgba(20, 31, 51, .045);
}

body.single-product.ghz-product-content-v4 #product-tab .resp-tabs-list {
    gap: 4px;
    padding: 8px;
    border-block-end: 1px solid var(--ghz-pv4-border);
    background: var(--ghz-pv4-soft);
}

body.single-product.ghz-product-content-v4 #product-tab .resp-tabs-list li {
    border-radius: 10px;
}

body.single-product.ghz-product-content-v4 .ghz-tech-highlights,
body.single-product.ghz-product-content-v4 .ghz-product-trust {
    border-color: var(--ghz-pv4-border);
    border-radius: var(--ghz-pv4-radius);
}

body.single-product.ghz-product-content-v4 .ghz-tech-highlights__item,
body.single-product.ghz-product-content-v4 .ghz-product-trust__item {
    border-radius: 12px;
}

body.single-product.ghz-product-content-v4 .related.products,
body.single-product.ghz-product-content-v4 .ghz-fbt,
body.single-product.ghz-product-content-v4 .ghz-recent-products {
    overflow: hidden;
}

@media (max-width: 900px) {
    body.single-product.ghz-product-content-v4 .ghz-product-specs__grid,
    body.single-product.ghz-product-content-v4 .ghz-product-context__features,
    body.single-product.ghz-product-content-v4 .ghz-product-context__columns,
    body.single-product.ghz-product-content-v4 .ghz-product-resources__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body.single-product.ghz-product-content-v4 .ghz-product-section,
    body.single-product.ghz-product-content-v4 .ghz-vce-product-qa,
    body.single-product.ghz-product-content-v4 .ghz-fbt,
    body.single-product.ghz-product-content-v4 .ghz-recent-products {
        margin-block: 18px;
        padding: 15px;
        border-radius: 14px;
    }

    body.single-product.ghz-product-content-v4 .ghz-product-section__header,
    body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__head,
    body.single-product.ghz-product-content-v4 .ghz-fbt__header {
        align-items: flex-start;
        margin-block-end: 16px;
    }

    body.single-product.ghz-product-content-v4 .ghz-product-section__header h2,
    body.single-product.ghz-product-content-v4 .ghz-vce-product-qa__head h2,
    body.single-product.ghz-product-content-v4 .ghz-fbt__header h2 {
        font-size: 20px;
    }

    body.single-product.ghz-product-content-v4 .ghz-product-specs__row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 12px 13px;
    }

    body.single-product.ghz-product-content-v4 .ghz-product-specs__row dd {
        align-items: flex-start;
    }

    body.single-product.ghz-product-content-v4 .ghz-product-context__summary,
    body.single-product.ghz-product-content-v4 .ghz-product-context__columns > div {
        padding: 14px;
    }

    body.single-product.ghz-product-content-v4 .ghz-product-resource {
        padding: 12px;
    }
}
