.nt-technical-specs,
.nt-technical-specs * {
    box-sizing: border-box;
}

.nt-technical-specs {
    --nt-spec-primary: #0878f9;
    --nt-spec-primary-soft: #cfe4ff;
    --nt-spec-surface: #f3f7fa;
    --nt-spec-text: #27465c;
    --nt-spec-muted: #61788a;
    width: 100%;
    clear: both;
    margin: 42px 0;
    font-family: inherit;
}

.nt-specs-shell {
    width: min(100%, 1320px);
    margin-inline: auto;
}

.nt-specs-section-heading {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--nt-spec-primary-soft);
}

.nt-specs-section-heading h2 {
    margin: 0;
    color: var(--nt-spec-primary);
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 800;
    line-height: 1.5;
}

.nt-specs-accordion {
    display: grid;
    gap: 16px;
}

.nt-specs-item {
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 18px;
    background: var(--nt-spec-surface);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nt-specs-item.is-open {
    border-color: rgba(8, 120, 249, .08);
    box-shadow: 0 10px 26px rgba(39, 70, 92, .055);
}

.nt-specs-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 64px;
    padding: 15px 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--nt-spec-primary);
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    text-align: right;
    cursor: pointer;
    appearance: none;
}

.nt-specs-trigger:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(8, 120, 249, .25);
}

.nt-specs-trigger-title {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.nt-specs-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: var(--nt-spec-primary);
}

.nt-specs-icon svg {
    width: 24px;
    height: 24px;
}

.nt-specs-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    color: #45647a;
    transition: transform .25s ease;
}

.nt-specs-chevron svg {
    width: 22px;
    height: 22px;
}

.nt-specs-item.is-open .nt-specs-chevron {
    transform: rotate(180deg);
}

.nt-specs-panel[hidden] {
    display: none;
}

.nt-specs-panel-inner {
    padding: 2px 28px 26px;
}

.nt-specs-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 10px 0;
    color: var(--nt-spec-text);
    font-size: 14px;
    line-height: 1.9;
}

.nt-specs-label {
    flex: 0 0 min(28%, 260px);
    color: #38576d;
    font-weight: 700;
}

.nt-specs-value {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--nt-spec-muted);
    font-weight: 500;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .nt-technical-specs {
        margin: 30px 0;
    }

    .nt-specs-section-heading {
        margin-bottom: 15px;
    }

    .nt-specs-accordion {
        gap: 12px;
    }

    .nt-specs-item {
        border-radius: 14px;
    }

    .nt-specs-trigger {
        min-height: 58px;
        padding: 13px 14px;
        font-size: 15px;
    }

    .nt-specs-panel-inner {
        padding: 0 16px 18px;
    }

    .nt-specs-row {
        display: grid;
        gap: 3px;
        padding: 9px 0;
        border-bottom: 1px dashed rgba(69, 100, 122, .14);
    }

    .nt-specs-row:last-child {
        border-bottom: 0;
    }

    .nt-specs-label {
        flex-basis: auto;
        font-size: 13px;
    }

    .nt-specs-value {
        font-size: 13px;
        line-height: 1.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nt-specs-item,
    .nt-specs-chevron {
        transition: none;
    }
}

/* میزبان موقت برای قالب‌هایی که هوک استاندارد ووکامرس را ندارند. */
.nt-specs-fallback-host {
    width: 100%;
    clear: both;
}

/* چینش و آیکون‌های تب‌های اصلی محصول ـ نسخه 1.5 */
.single-product .woocommerce-tabs ul.tabs li.nt-tab-customized > a,
.single-product .woocommerce-tabs ul.wc-tabs li.nt-tab-customized > a,
.single-product .wc-tabs-wrapper ul.tabs li.nt-tab-customized > a,
.single-product .wc-tabs-wrapper ul.wc-tabs li.nt-tab-customized > a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.single-product .woocommerce-tabs ul.tabs li.nt-tab-customized > a::before,
.single-product .woocommerce-tabs ul.tabs li.nt-tab-customized > a::after,
.single-product .woocommerce-tabs ul.wc-tabs li.nt-tab-customized > a::before,
.single-product .woocommerce-tabs ul.wc-tabs li.nt-tab-customized > a::after,
.single-product .wc-tabs-wrapper ul.tabs li.nt-tab-customized > a::before,
.single-product .wc-tabs-wrapper ul.tabs li.nt-tab-customized > a::after,
.single-product .wc-tabs-wrapper ul.wc-tabs li.nt-tab-customized > a::before,
.single-product .wc-tabs-wrapper ul.wc-tabs li.nt-tab-customized > a::after {
    content: none !important;
    display: none !important;
}

.single-product .nt-product-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    color: currentColor;
    line-height: 1;
}

.single-product .nt-product-tab-svg {
    display: block;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.single-product .nt-product-tab-label {
    display: block;
    white-space: nowrap;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .single-product .woocommerce-tabs ul.tabs li.nt-tab-customized > a,
    .single-product .woocommerce-tabs ul.wc-tabs li.nt-tab-customized > a,
    .single-product .wc-tabs-wrapper ul.tabs li.nt-tab-customized > a,
    .single-product .wc-tabs-wrapper ul.wc-tabs li.nt-tab-customized > a {
        gap: 5px;
    }

    .single-product .nt-product-tab-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .single-product .nt-product-tab-svg {
        width: 23px;
        height: 23px;
    }

    .single-product .nt-product-tab-label {
        font-size: 12px;
    }
}
