/* =========================
   PRODUCT TABS - BASE
========================= */
.custom-product-tabs {
    margin-top: 50px;
    padding: 30px;
    border: 1px solid #e8eef5;
    border-radius: 24px;
    background: #fff;
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.05),
        0 4px 14px rgba(15, 23, 42, 0.03);
}

/* =========================
   TOP INFO BLOCK
========================= */
.product-extra-info {
    margin-bottom: 34px;
    display: grid;
    gap: 22px;
}

.product-extra-info__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
}

.product-extra-info__box {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 24px;
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255,255,255,0.85);
}

.product-extra-info__box--delivery {
    padding: 26px;
}

.product-extra-info__box-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.product-extra-info__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.product-extra-info__desc {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
    max-width: 760px;
}

.product-extra-info__actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================
   BUTTONS
========================= */
.product-extra-info__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid #028dd8;
    background: #fff;
    color: #028dd8;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.product-extra-info__btn:hover {
    background: #f4fbff;
    color: #0273b0;
    border-color: #0273b0;
    transform: translateY(-1px);
}

.product-extra-info__btn--filled {
    background: linear-gradient(135deg, #028dd8 0%, #0273b0 100%);
    color: #fff;
    border-color: #028dd8;
    box-shadow: 0 14px 28px rgba(2, 141, 216, 0.18);
}

.product-extra-info__btn--filled:hover {
    color: #fff;
    background: linear-gradient(135deg, #027fc2 0%, #02689e 100%);
    border-color: #027fc2;
    box-shadow: 0 16px 30px rgba(2, 141, 216, 0.24);
}

/* =========================
   MANAGER CARD
========================= */
.product-manager-card {
    display: grid;
    grid-template-columns: 122px 1fr;
    gap: 22px;
    align-items: start;
}

.product-manager-card__avatar {
    width: 122px;
    height: 122px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f2f6fb 0%, #e8eef5 100%);
    border: 1px solid #dce6ef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2f6ea4;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.product-manager-card__avatar svg {
    width: 56px;
    height: 56px;
    fill: currentColor;
}

.product-manager-card__content {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.product-manager-card__name {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
    color: #334155;
}

.product-manager-card__meta {
    display: grid;
    gap: 8px;
}

.product-manager-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #028dd8;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.product-manager-card__link:hover {
    color: #0273b0;
    text-decoration: underline;
}

.product-manager-card__link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: 0 0 16px;
}

/* раскрытие номера */
.product-manager-card__phone-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.product-manager-card__phone-full {
    display: none;
}

.product-manager-card__phone-full.is-visible {
    display: inline-flex;
}

.product-manager-card__buttons {
    margin-top: 40px;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.product-manager-card__buttons .product-extra-info__btn {
    min-width: 210px;
}

/* =========================
   CONTACTS CARD
========================= */
.product-contacts-card {
    display: grid;
    gap: 16px;
    height: 100%;
}

.product-contacts-card__title {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
    color: #334155;
}

.product-contacts-card__list {
    display: grid;
    gap: 12px;
}

.product-contacts-card__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #475569;
    font-size: 15px;
    line-height: 1.65;
}

.product-contacts-card__icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    fill: #028dd8;
}

.product-contacts-card__item a {
    color: #028dd8;
    text-decoration: none;
}

.product-contacts-card__item a:hover {
    text-decoration: underline;
}

/* =========================
   ACCORDION
========================= */
.product-accordion {
    display: grid;
    gap: 14px;
}

.product-accordion-item {
    border: 1px solid #e4edf5;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow: hidden;
    transition: all 0.25s ease;
}

.product-accordion-item:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.product-accordion-item.is-open {
    border-color: #cbe6f6;
    box-shadow: 0 12px 28px rgba(2, 141, 216, 0.08);
}

.product-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.product-accordion-trigger__left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.product-accordion-trigger__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(2,141,216,0.12) 0%, rgba(2,141,216,0.18) 100%);
    color: #028dd8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-accordion-trigger__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.product-accordion-trigger__title {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    color: #334155;
}

.product-accordion-trigger__subtitle {
    display: block;
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.product-accordion-trigger__arrow {
    position: relative;
    width: 18px;
    height: 18px;
    min-width: 18px;
    transition: transform 0.25s ease;
}

.product-accordion-trigger__arrow::before,
.product-accordion-trigger__arrow::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 10px;
    height: 2px;
    background: #64748b;
    border-radius: 999px;
}

.product-accordion-trigger__arrow::before {
    left: 0;
    transform: rotate(45deg);
}

.product-accordion-trigger__arrow::after {
    right: 0;
    transform: rotate(-45deg);
}

.product-accordion-item.is-open .product-accordion-trigger__arrow {
    transform: rotate(180deg);
}

.product-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.product-accordion-item.is-open .product-accordion-content {
    grid-template-rows: 1fr;
}

.product-accordion-content__inner {
    overflow: hidden;
}

.product-accordion-content__body {
    padding: 0 20px 20px 20px;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
}

.product-accordion-content__body p {
    margin: 0 0 12px;
}

.product-accordion-content__body p:last-child {
    margin-bottom: 0;
}

.product-accordion-content__body ul {
    margin: 0;
    padding-left: 18px;
}

.product-accordion-content__body li {
    margin-bottom: 8px;
}

.product-accordion-content__body strong {
    color: #334155;
}

/* =========================
   ADVANTAGES
========================= */
.product-advantages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.product-advantages__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fbfd;
    border: 1px solid #e5edf5;
}

.product-advantages__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #dff2fd;
    color: #028dd8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    margin-top: 2px;
}

.product-advantages__text {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

/* =========================
   CALLBACK POPUP
========================= */
/* =========================
   CALLBACK POPUP
========================= */
.callback-popup {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.callback-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.callback-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.50);
    backdrop-filter: blur(2px);
}

.callback-popup__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 26px 26px 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.callback-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f3f6fa;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}

.callback-popup__close:hover {
    background: #e8f4fb;
    color: #028dd8;
}

/* =========================
   CALLBACK FORM (CF7)
========================= */
.callback-popup .callback-form {
    width: 100%;
}

.callback-popup .callback-form__title {
    margin: 0 0 16px;
    padding-right: 34px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
}

.callback-popup .callback-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.callback-popup .callback-form__field {
    min-width: 0;
}

.callback-popup .callback-form__field .wpcf7-form-control-wrap {
    display: block;
}

.callback-popup .callback-form__input,
.callback-popup input[type="tel"].callback-form__input,
.callback-popup .callback-form input[type="tel"],
.callback-popup .callback-form .wpcf7-tel {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    color: #334155;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
    box-sizing: border-box;
}

.callback-popup .callback-form__input:focus,
.callback-popup input[type="tel"].callback-form__input:focus,
.callback-popup .callback-form input[type="tel"]:focus,
.callback-popup .callback-form .wpcf7-tel:focus {
    border-color: #028dd8;
    box-shadow: 0 0 0 3px rgba(2, 141, 216, 0.08);
}

.callback-popup .callback-form__input::placeholder,
.callback-popup input[type="tel"].callback-form__input::placeholder,
.callback-popup .callback-form input[type="tel"]::placeholder,
.callback-popup .callback-form .wpcf7-tel::placeholder {
    color: #9aa7b7;
}

.callback-popup .callback-form__submit-wrap {
    min-width: 0;
}

.callback-popup .callback-form__submit,
.callback-popup .callback-form input[type="submit"].callback-form__submit,
.callback-popup .callback-form .wpcf7-submit.callback-form__submit {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #12a0ea 0%, #028dd8 100%);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.callback-popup .callback-form__submit:hover,
.callback-popup .callback-form input[type="submit"].callback-form__submit:hover,
.callback-popup .callback-form .wpcf7-submit.callback-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(2, 141, 216, 0.18);
}

.callback-popup .callback-form__policy {
    max-width: 100%;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.callback-popup .callback-form__policy a {
    color: #64748b;
    text-decoration: underline;
}

.callback-popup .callback-form__policy a:hover {
    color: #028dd8;
}

.callback-popup .callback-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 11px;
}

.callback-popup .callback-form .wpcf7-response-output {
    margin: 12px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
}

.callback-popup .callback-form .wpcf7-spinner {
    margin: 8px 0 0 8px;
}

body.callback-popup-open {
    overflow: hidden;
}
/* =========================
   TABS HEAD
========================= */
.custom-tabs-head {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 28px;
}

.custom-tabs-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-tabs-main-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.custom-tabs-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.custom-product-tabs .tabs.wc-tabs {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
}

.custom-product-tabs .tabs.wc-tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.custom-product-tabs .tabs.wc-tabs li::before,
.custom-product-tabs .tabs.wc-tabs li::after {
    display: none !important;
}

.custom-product-tabs .tabs.wc-tabs li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #dbe4ee;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.custom-product-tabs .tabs.wc-tabs li.active a,
.custom-product-tabs .tabs.wc-tabs li a:hover {
    background: linear-gradient(135deg, #028dd8 0%, #0273b0 100%);
    border-color: #028dd8;
    color: #fff;
    box-shadow: 0 10px 20px rgba(2, 141, 216, 0.18);
}

.custom-tabs-panels {
    display: block;
}

.custom-tab-panel {
    margin: 0;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.custom-tab-panel-inner {
    padding: 10px;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

/* =========================
   TAB CONTENT
========================= */
.custom-tab-panel p,
.custom-tab-panel li,
.custom-tab-panel div,
.custom-tab-panel td {
    color: #475569;
    line-height: 1.7;
    font-size: 15px;
}

.custom-tab-panel ul,
.custom-tab-panel ol {
    padding-left: 20px;
    margin: 0 0 18px;
}

.custom-tab-panel table.shop_attributes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5edf5;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 10px;
}

.custom-tab-panel table.shop_attributes th,
.custom-tab-panel table.shop_attributes td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
}

.custom-tab-panel table.shop_attributes tr:last-child th,
.custom-tab-panel table.shop_attributes tr:last-child td {
    border-bottom: none;
}

.custom-tab-panel table.shop_attributes th {
    width: 280px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.custom-tab-panel table.shop_attributes td {
    background: #fff;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 991px) {
    .product-extra-info__grid {
        grid-template-columns: 1fr;
    }

    .product-advantages {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .custom-product-tabs {
        padding: 18px;
        border-radius: 18px;
    }

    .product-extra-info {
        margin-bottom: 26px;
        gap: 18px;
    }

    .product-extra-info__box,
    .product-extra-info__box--delivery {
        padding: 18px;
        border-radius: 18px;
    }

    .product-extra-info__box-head {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .product-extra-info__title,
    .custom-tabs-main-title {
        font-size: 24px;
    }

    .product-extra-info__btn--filled {
        width: 100%;
    }

    .product-manager-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-manager-card__avatar {
        width: 88px;
        height: 88px;
        border-radius: 16px;
    }

    .product-manager-card__avatar svg {
        width: 42px;
        height: 42px;
    }

    .product-manager-card__buttons {
        flex-direction: column;
    }

    .product-manager-card__buttons .product-extra-info__btn {
        width: 100%;
        min-width: 100%;
    }

    .product-accordion-trigger {
        padding: 16px;
    }

    .product-accordion-content__body {
        padding: 0 16px 16px 16px;
        font-size: 14px;
    }

    .product-accordion-trigger__title {
        font-size: 16px;
    }

    .product-accordion-trigger__subtitle {
        font-size: 13px;
    }

    .custom-tab-panel-inner {
        padding: 0px;
        border: none;
    }

    .custom-tab-panel table.shop_attributes th,
    .custom-tab-panel table.shop_attributes td {
        padding: 12px;
    }

    .custom-tab-panel table.shop_attributes th {
        width: 160px;
    }

   .callback-popup {
    padding: 0;
    align-items: center;
}

.callback-popup__dialog {
    width: calc(100% - 16px);
    max-width: 100%;
    max-height: calc(100vh - 16px);
    margin: 8px;
    padding: 18px 14px 16px;
    border-radius: 16px;
}

.callback-popup__close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 22px;
}

.callback-popup .callback-form__title {
    margin-bottom: 14px;
    padding-right: 34px;
    font-size: 14px;
    line-height: 1.45;
}

.callback-popup .callback-form__row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.callback-popup .callback-form__input,
.callback-popup input[type="tel"].callback-form__input,
.callback-popup .callback-form input[type="tel"],
.callback-popup .callback-form .wpcf7-tel,
.callback-popup .callback-form__submit,
.callback-popup .callback-form input[type="submit"].callback-form__submit,
.callback-popup .callback-form .wpcf7-submit.callback-form__submit {
    height: 48px;
    font-size: 16px;
    border-radius: 10px;
}

.callback-popup .callback-form__input,
.callback-popup input[type="tel"].callback-form__input,
.callback-popup .callback-form input[type="tel"],
.callback-popup .callback-form .wpcf7-tel {
    padding: 0 14px;
}

.callback-popup .callback-form__policy {
    font-size: 12px;
    line-height: 1.45;
}
}

@media (max-width: 520px) {
    .product-extra-info__actions {
        flex-direction: column;
    }

    .product-extra-info__btn {
        width: 100%;
    }

    .product-accordion-trigger__icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
    }
}