/* ============================================================
   СТИЛИ КАРТОЧКИ ТОВАРА WOOCOMMERCE
   ============================================================ */

/* Основная секция */
.page-default .product {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0 64px 0;
    gap: 40px;
    align-items: flex-start;
}

/* ============================================================
   ГАЛЕРЕЯ ТОВАРА
   ============================================================ */
.product .woocommerce-product-gallery,
.woocommerce-product-gallery {
    width: 100% !important;
    max-width: 400px;
    margin: 0 0 24px 0 !important;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--light);
    border: 1px solid var(--light-border);
    position: relative;
}

.page-default .product .woocommerce-product-gallery {
    flex: 0 0 400px;
    max-width: 400px;
    width: 400px;
    float: none;
    margin: 0;
}

.page-default .product .summary.entry-summary {
    flex: 1 1 0;
    min-width: 0;
    /* важно! иначе flex-элемент может не сжиматься */
    float: none;
    width: auto;
    margin: 0;
}

.woocommerce-product-gallery__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
}

.woocommerce-product-gallery__image {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s ease;
}

.woocommerce-product-gallery__image:hover img {
    transform: scale(1.03);
}

/* Кнопка увеличения */
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 2;
    transition: all .15s;
    cursor: pointer;
}

.woocommerce-product-gallery__trigger:hover {
    background-color: var(--white);
    transform: scale(1.05);
}

.woocommerce-product-gallery__trigger img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
}

/* Отключаем zoomImg */
.woocommerce-product-gallery .zoomImg {
    display: none !important;
}

/* ============================================================
   ЗАГОЛОВОК И ЦЕНА
   ============================================================ */
.product_title {
    font-size: 40px;
    font-weight: 700;
    line-height: 110%;
    margin-bottom: 16px;
    color: var(--black);
}

.product .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.product .price:empty {
    display: none;
}

/* ============================================================
   УВЕДОМЛЕНИЕ О ГОРОДЕ
   ============================================================ */
.woocommerce-product-details__short-description {
    margin-bottom: 24px;
}

.woocommerce-product-details__short-description .main-msc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--light-accent);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    line-height: 130%;
}

.woocommerce-product-details__short-description .main-msc::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009EE0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ============================================================
   ТАБЛИЦА ЦЕН ПО ВАРИАНТАМ (без фона и padding)
   ============================================================ */
.product-dealer-prices {
    margin-bottom: 24px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.product-dealer-prices-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 120%;
    color: var(--black);
    margin-bottom: 16px;
}

.product-dealer-prices-table-wrap,
.product-dealer-city-dealers-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
}

.product-dealer-prices-table,
.product-dealer-city-dealers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    font-size: 15px;
    line-height: 140%;
    border: 1px solid var(--light-border);
}

.product-dealer-city-dealers-table a {
    white-space: nowrap;
}

.product-dealer-prices-table thead th,
.product-dealer-city-dealers-table thead th {
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--second);
    background-color: var(--light);
    border-bottom: 1px solid var(--light-border);
    white-space: nowrap;
}

.product-dealer-prices-table tbody td,
.product-dealer-city-dealers-table tbody td {
    padding: 14px 20px;
    color: var(--black);
    border-bottom: 1px solid var(--light-border);
    vertical-align: middle;
}

.product-dealer-prices-table tbody tr:last-child td,
.product-dealer-city-dealers-table tbody tr:last-child td {
    border-bottom: none;
}

.product-dealer-prices-table tbody tr:hover,
.product-dealer-city-dealers-table tbody tr:hover {
    background-color: var(--light-accent);
}

/* Цена - акцент */
.product-dealer-prices-table tbody td:last-child {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* Ссылка на телефон в таблице дилеров */
.product-dealer-city-dealers-table a {
    color: var(--accent);
    font-weight: 500;
    transition: color .15s;
}

.product-dealer-city-dealers-table a:hover {
    color: var(--accent-hover);
}

/* ============================================================
   NOTE МЕЖДУ ТАБЛИЦАМИ
   ============================================================ */
.product-dealer-city-note {
    margin: 20px 0;
    padding: 16px 20px;
    background-color: var(--light-accent);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
}

.product-dealer-city-note p {
    margin: 0;
    font-size: 14px;
    line-height: 150%;
    color: var(--second);
}

/* ============================================================
   ТАБЛИЦА ДИЛЕРОВ
   ============================================================ */
.product-dealer-city-dealers-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 120%;
    color: var(--black);
    margin-bottom: 16px;
    margin-top: 24px;
}

/* ============================================================
   ФОРМА ВАРИАЦИЙ (без фона, с обводкой)
   ============================================================ */
.variations_form.cart {
    margin: 24px 0;
    padding: 24px;
    background-color: transparent;
    border: 1px solid var(--light-border);
    border-radius: 24px;
}

.variations {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0px!important;
}

.variations tr {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 12px;
}
.variations tr:last-child {
    padding-bottom: 0!important;
}

.variations tr+tr {
    border-top: 1px solid var(--light-border);
    padding-top: 20px;
}

.variations th.label {
    flex: 0 0 auto;
    text-align: left;
    padding: 0;
    vertical-align: middle;
}

.variations th.label label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.variations td.value {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    position: relative;
}

.variations td.value select {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    width: 100%;
    height: 48px;
    padding: 13px 40px 13px 16px;
    font-size: 15px;
    line-height: 133%;
    color: var(--black);
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    transition: color .2s, border-color .2s;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

.variations td.value select:hover {
    border-color: var(--gray-second);
}

.variations td.value select:focus {
    outline: none;
    border-color: var(--accent);
}

.variations .reset_variations {
    display: inline-block;
    font-size: 14px;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color .15s;
    white-space: nowrap;
}

.variations .reset_variations:hover {
    text-decoration-color: var(--accent);
}

/* ============================================================
   БЛОК ЦЕНЫ И КНОПКА В КОРЗИНУ
   ============================================================ */
.single_variation_wrap {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-border);
}

.woocommerce-variation-price .price {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    line-height: 1.2;
}

.woocommerce-variation-add-to-cart {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

/* Поле количества */
.quantity {
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s;
}

.quantity:hover {
    border-color: var(--gray-second);
}

.quantity:focus-within {
    border-color: var(--accent);
}

.quantity input.qty {
    width: 80px;
    height: 48px;
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    background: transparent;
    border: none;
    text-align: center;
    -moz-appearance: textfield;
    font-family: inherit;
}

.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity input.qty:focus {
    outline: none;
}

/* Кнопка "В корзину" - в стиле сайта */
.single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 14px 40px;
    font-size: 17px;
    font-weight: 600;
    line-height: 110%;
    color: var(--white);
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 22px;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
    white-space: nowrap;
    font-family: inherit;
    max-width: 311px;
}

.single_add_to_cart_button:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
}

.single_add_to_cart_button:disabled,
.single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*  */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    background-color: var(--accent);
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
    background-color: var(--accent-hover);
}

/*  */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 17px !important;
    width: 100% !important;
    max-width: 311px !important;
    padding: 12px 25px !important;
    font-weight: 600;
    font-size: 17px !important;
    line-height: 110%;
    color: var(--white) !important;
    background: var(--accent) !important;
    border-radius: 22px !important;
    transition: .15s !important;
    user-select: none;
    cursor: pointer;
    border: 1px solid var(--accent) !important;
    white-space: nowrap;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover {
    background-color: var(--accent-hover) !important;
    color: var(--white) !important;
}

.woocommerce div.product form.cart {
    margin-bottom: 0;
}

.woocommerce #content div.product .woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs,
.woocommerce-page #content div.product .woocommerce-tabs,
.woocommerce-page div.product .woocommerce-tabs {
    width: 100%;
}

.woocommerce div.product .woocommerce-tabs .panel {
    margin-bottom: 0!important;
}

/* ============================================================
   ТАБЫ (ОПИСАНИЕ, ДЕТАЛИ, ОТЗЫВЫ)
   ============================================================ */

.woocommerce-tabs .tabs.wc-tabs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 32px 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--light-border);
    background: transparent !important;
}

.woocommerce-tabs .tabs.wc-tabs::before,
.woocommerce-tabs .tabs.wc-tabs::after {
    display: none !important;
    content: none !important;
}

.woocommerce-tabs .tabs.wc-tabs li {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    list-style: none !important;
}

.woocommerce-tabs .tabs.wc-tabs li::before,
.woocommerce-tabs .tabs.wc-tabs li::after {
    display: none !important;
    content: none !important;
}

.woocommerce-tabs .tabs.wc-tabs li a {
    display: inline-block !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--gray) !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 12px 12px 0 0 !important;
    transition: all .15s;
    position: relative;
    margin-bottom: -1px;
    text-decoration: none !important;
    line-height: 120% !important;
}

.woocommerce-tabs .tabs.wc-tabs li a:hover {
    color: var(--accent) !important;
    background-color: transparent !important;
}

.woocommerce-tabs .tabs.wc-tabs li.active a,
.woocommerce-tabs .tabs.wc-tabs li.active>a {
    color: var(--accent) !important;
    background-color: var(--light-accent) !important;
}

.woocommerce-tabs .tabs.wc-tabs li.active a::after,
.woocommerce-tabs .tabs.wc-tabs li.active>a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent);
}

/* Панель таба */
.woocommerce-Tabs-panel {
    padding: 8px 0 0 0;
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-Tabs-panel h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 120%;
    color: var(--black);
    margin-bottom: 20px;
}

.woocommerce-Tabs-panel p {
    font-size: 16px;
    line-height: 160%;
    color: var(--second);
    margin-bottom: 16px;
}

.woocommerce-Tabs-panel ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.woocommerce-Tabs-panel ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 160%;
    color: var(--second);
}

.woocommerce-Tabs-panel ul:not(.slick-dots) li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
}

/* ============================================================
   ТАБЛИЦА АТРИБУТОВ ТОВАРА (ДЕТАЛИ)
   ============================================================ */
.shop_attributes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 8px;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--light-border);
    table-layout: fixed;
    margin-bottom: 0;
}

.shop_attributes tbody {
    display: table-row-group;
}

.shop_attributes tr {
    display: table-row;
}

.shop_attributes tr+tr th,
.shop_attributes tr+tr td {
    border-top: 1px solid var(--light-border)!important;;
}

.shop_attributes th.woocommerce-product-attributes-item__label,
.shop_attributes th {
    display: table-cell;
    width: 200px;
    padding: 16px 20px!important;;
    font-size: 14px!important;
    font-weight: 600;
    color: var(--second);!important;
    background-color: var(--light)!important;
    vertical-align: middle;
    line-height: 140%;
    border: none;
}

.shop_attributes td.woocommerce-product-attributes-item__value,
.shop_attributes td {
    display: table-cell;
    padding: 16px 20px!important;
    font-size: 15px!important;
    color: var(--black)!important;
    vertical-align: middle;
    background-color: var(--white)!important;
    line-height: 140%;
    border: none;
    font-style: normal!important;
}

.shop_attributes td p {
    margin: 0;
    padding: 0;
}

/* Адаптив */
@media (max-width: 767px) {
    .shop_attributes {
        table-layout: auto;
    }

    .shop_attributes th.woocommerce-product-attributes-item__label,
    .shop_attributes th {
        width: 40%;
        padding: 12px 14px;
        font-size: 13px;
    }

    .shop_attributes td.woocommerce-product-attributes-item__value,
    .shop_attributes td {
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .shop_attributes,
    .shop_attributes tbody,
    .shop_attributes tr,
    .shop_attributes th,
    .shop_attributes td {
        display: block;
        width: 100%;
    }

    .shop_attributes tr {
        border-top: 1px solid var(--light-border);
    }

    .shop_attributes tr:first-child {
        border-top: none;
    }

    .shop_attributes tr+tr th,
    .shop_attributes tr+tr td {
        border-top: none;
    }

    .shop_attributes th.woocommerce-product-attributes-item__label,
    .shop_attributes th {
        padding: 12px 16px 4px 16px;
        background-color: transparent;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: var(--gray);
        border-radius: 0;
    }

    .shop_attributes td.woocommerce-product-attributes-item__value,
    .shop_attributes td {
        padding: 4px 16px 12px 16px;
        background-color: transparent;
        font-size: 15px;
        border-radius: 0;
    }
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.woocommerce-Reviews {
    margin-top: 8px;
}

.woocommerce-Reviews-title {
    font-size: 24px !important;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.woocommerce-noreviews {
    font-size: 15px;
    color: var(--gray);
    padding: 20px;
    background-color: var(--light);
    border-radius: 16px;
    margin-bottom: 32px;
    text-align: center;
}

#review_form_wrapper {
    padding: 24px;
    background-color: var(--light);
    border-radius: 24px;
}

.comment-reply-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 130%;
}

.comment-notes {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 140%;
}

.comment-form-rating label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.comment-form-rating .required {
    color: #e74c3c;
}

.stars {
    display: inline-block;
    margin: 0;
}

.stars a {
    display: inline-block;
    font-size: 0;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbbbbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform .15s;
}

.stars a:hover,
.stars a.active,
.stars a:hover~a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23009EE0' stroke='%23009EE0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

.comment-form-comment,
.comment-form-author,
.comment-form-email {
    margin-bottom: 16px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 140%;
    color: var(--black);
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    transition: border-color .15s;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
    padding: 12px 16px;
    height: auto;
}

.comment-form input[type="text"]:hover,
.comment-form input[type="email"]:hover,
.comment-form textarea:hover {
    border-color: var(--gray-second);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 140%;
    color: var(--gray);
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

.form-submit .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 22px;
    cursor: pointer;
    transition: background-color .15s;
    font-family: inherit;
}

.form-submit .submit:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    position: static;
}

/* ============================================================
   ПОХОЖИЕ ТОВАРЫ (без border-top)
   ============================================================ */
.related.products {
    margin-top: 0px;
    padding-top: 0;
    border-top: none;
}

.related.products>h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 120%;
    color: var(--black);
    margin-bottom: 32px;
}

.related .our-products-list  {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    z-index: 5!important;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 1024px) {
    .product_title {
        font-size: 34px;
    }

    .woocommerce-product-gallery {
        max-width: 100%;
    }

    .related.products>h2 {
        font-size: 28px;
    }
    .page-default .product .summary.entry-summary {
        flex: unset;
    }
    .page-default .product {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .page-default .product {
        padding: 16px 0 40px 0;
    }

    .product_title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .product .price {
        font-size: 20px;
    }

    .variations_form.cart,
    #review_form_wrapper {
        padding: 16px;
        border-radius: 16px;
    }

    .product-dealer-prices-title,
    .product-dealer-city-dealers-title {
        font-size: 18px;
    }

    .product-dealer-prices-table,
    .product-dealer-city-dealers-table {
        font-size: 14px;
        min-width: 500px;
    }

    .product-dealer-prices-table thead th,
    .product-dealer-city-dealers-table thead th,
    .product-dealer-prices-table tbody td,
    .product-dealer-city-dealers-table tbody td {
        padding: 12px 14px;
    }

    .product-dealer-prices-table-wrap,
    .product-dealer-city-dealers-table-wrap {
        border-radius: 12px;
    }

    .product-dealer-prices-table,
    .product-dealer-city-dealers-table {
        border-radius: 12px;
    }

    .variations tr {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .variations td.value select {
        max-width: 100%;
    }

    .woocommerce-variation-add-to-cart {
        flex-direction: column;
    }

    .quantity {
        width: 100%;
        justify-content: center;
    }

    .quantity input.qty {
        width: 100%;
        text-align: center;
    }

    .single_add_to_cart_button {
        width: 100%;
        max-width: 100%;
    }

    .woocommerce-tabs .tabs.wc-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0;
        margin-bottom: 24px;
    }

    .woocommerce-tabs .tabs.wc-tabs li a {
        padding: 12px 16px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }

    .woocommerce-Tabs-panel h2 {
        font-size: 22px;
    }

    .woocommerce-Tabs-panel p,
    .woocommerce-Tabs-panel ul li {
        font-size: 15px;
    }

    .shop_attributes tr {
        flex-direction: column;
    }

    .shop_attributes th,
    .shop_attributes td {
        flex: 1 1 100%;
        padding: 12px 16px;
    }

    .shop_attributes th {
        background-color: transparent;
        border-bottom: 1px solid var(--light-border);
        font-size: 13px;
        padding-bottom: 6px;
    }

    .shop_attributes td {
        padding-top: 6px;
    }

    .related.products {
        margin-top: 0px;
    }

    .related.products>h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

@media (max-width: 420px) {
    .product_title {
        font-size: 22px;
    }

    .product-dealer-prices-title,
    .product-dealer-city-dealers-title {
        font-size: 16px;
    }

    .woocommerce-product-gallery__trigger {
        width: 36px;
        height: 36px;
    }

    .woocommerce-product-gallery__trigger img {
        width: 16px !important;
        height: 16px !important;
    }

    .page-default .product .woocommerce-product-gallery {
        flex: 0 0 100%;
        margin-bottom: 0!important;
    }
    .page-default .product {
        gap: 24px;
    }

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    max-width: unset!important;
}
}

/* ============================================================
   УВЕДОМЛЕНИЯ WOOCOMMERCE
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 140%;
    list-style: none;
    background-color: var(--light-accent);
    color: var(--black);
    border-left: 4px solid var(--accent);
    border-top-color: var(--light-accent)!important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009EE0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.woocommerce-error {
    background-color: #fef2f2;
    border-left-color: #e74c3c;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    margin-left: auto;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background-color: var(--accent);
    border-radius: 20px;
    white-space: nowrap;
    transition: background-color .15s;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}

.woocommerce-notices-wrapper > div a {
    margin-left: auto!important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 17px!important;
    width: 100%!important;
    max-width: 311px!important;
    padding: 12px 25px !important;
    font-weight: 600;
    font-size: 17px !important;
    line-height: 110%;
    color: var(--white)!important;
    background: var(--accent)!important;
    border-radius: 22px !important;
    transition: .15s !important;
    user-select: none;
    cursor: pointer;
    border: 1px solid var(--accent)!important;
    white-space: nowrap;
}
.woocommerce-notices-wrapper > div a:hover {
    background-color: var(--accent-hover)!important;
}

/* ============================================================
   СТРАНИЦА ОФОРМЛЕНИЯ ЗАКАЗА
   ============================================================ */

.checkout-cart-section {
    padding: 24px 0 24px 0;
    background-color: var(--white);
    border-radius: 0;
}

.checkout-cart-section .section-title {
    margin-bottom: 32px;
}

/* ---------- Список товаров ---------- */
.checkout-cart-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: 24px;
    align-items: center;
    padding: 20px 24px;
    background-color: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 24px;
    transition: border-color .15s, box-shadow .15s;
}



/* Превью */
.checkout-cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--light);
    flex-shrink: 0;
}

.checkout-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.checkout-cart-item:hover .checkout-cart-item-image img {
    transform: scale(1.05);
}

/* Инфо */
.checkout-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.checkout-cart-item-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    color: var(--black);
    transition: color .15s;
}

.checkout-cart-item-title:hover {
    color: var(--accent);
}

.checkout-cart-item-variation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 6px 12px;
    background-color: var(--light-accent);
    border-radius: 10px;
    font-size: 14px;
    line-height: 130%;
    color: var(--second);
}

.checkout-cart-item-variation-label {
    color: var(--gray);
}

.checkout-cart-item-variation-value {
    font-weight: 600;
    color: var(--accent);
}

/* ---------- Количество ---------- */
.checkout-cart-item-qty {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s;
    height: 40px;
}

.checkout-cart-item-qty:hover {
    border-color: var(--gray-second);
}

.checkout-cart-item-qty:focus-within {
    border-color: var(--accent);
}

.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .15s, background-color .15s;
    user-select: none;
    line-height: 1;
}

.qty-btn:hover {
    color: var(--accent);
    background-color: var(--light-accent);
}

.qty-btn:active {
    background-color: var(--light-accent-hover);
}

.qty-input {
    width: 60px;
    height: 100%;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    background: transparent;
    border: none;
    text-align: center;
    -moz-appearance: textfield;
    font-family: inherit;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
}

/* ---------- Кнопка удаления ---------- */
.checkout-cart-item-remove {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    background: transparent;
    border: 1px solid var(--light-border);
    border-radius: 12px;
    cursor: pointer;
    transition: color .15s, border-color .15s, background-color .15s;
    white-space: nowrap;
}

.checkout-cart-item-remove:hover {
    color: #e74c3c;
    border-color: #e74c3c;
    background-color: #fef2f2;
}

.checkout-cart-item-remove-icon {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.checkout-cart-item-remove-icon::before,
.checkout-cart-item-remove-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
}

.checkout-cart-item-remove-icon::before {
    transform: rotate(45deg);
}

.checkout-cart-item-remove-icon::after {
    transform: rotate(-45deg);
}

/* ---------- Таблица региональных цен ---------- */
.checkout-prices {
    margin-top: 48px;
}

.checkout-prices-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    color: var(--black);
    margin-bottom: 20px;
}

.checkout-prices-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
}

.checkout-prices-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    font-size: 15px;
    line-height: 140%;
    border: 1px solid var(--light-border);
}

.checkout-prices-table thead th {
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--second);
    background-color: var(--light);
    border-bottom: 1px solid var(--light-border);
    white-space: nowrap;
}

.checkout-prices-table tbody td {
    padding: 14px 20px;
    color: var(--black);
    border-bottom: 1px solid var(--light-border);
    vertical-align: middle;
}

.checkout-prices-table tbody tr:last-child td {
    border-bottom: none;
}

.checkout-prices-table tbody tr:hover {
    background-color: var(--light-accent);
}

.checkout-prices-table tbody td:last-child {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.checkout-prices-note {
    margin-top: 20px;
    padding: 16px 20px;
    background-color: var(--light-accent);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
}

.checkout-prices-note p {
    margin: 0;
    font-size: 14px;
    line-height: 150%;
    color: var(--second);
}

/* ============================================================
   ФОРМА ОФОРМЛЕНИЯ ЗАКАЗА
   ============================================================ */
.checkout-form-section {
    padding: 24px 0 64px 0;
    background-color: var(--white);
    border-radius: 0;
}

.checkout-form-section .section-title {
    margin-bottom: 32px;
}

.checkout-form {
    padding: 40px;
    background-color: var(--light);
    border-radius: 32px;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-bottom: 24px;
}

.checkout-form-grid .input-group+.input-group {
    margin-top: 0;
}

.input-group-full {
    grid-column: 1 / -1;
}

/* textarea в форме оформления */
.checkout-form .input-group-textarea textarea {
    min-height: 120px;
    resize: vertical;
}

.checkout-form-consent {
    margin: 8px 0 24px 0;
}

.checkout-form-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.checkout-form-submit {
    max-width: 311px;
}


/*  */
.checkout-cart-item.is-removing,
.checkout-cart-list.is-loading {
    opacity: .5;
    pointer-events: none;
}

.checkout-cart-list.is-loading {
    position: relative;
}

.input-group.has-error input,
.input-group.has-error textarea,
.check-group.has-error {
    border-color: #e74c3c;
}

.checkout-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
}

.checkout-form-submit[disabled] {
    opacity: .6;
    cursor: not-allowed;
}


/* ============================================================
   МОДАЛКА УДАЛЕНИЯ
   ============================================================ */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-actions .btn {
    max-width: unset;
    flex: 1 1 auto;
    min-width: 140px;
}

/* ============================================================
   ПУСТАЯ КОРЗИНА
   ============================================================ */
.empty-cart-section {
    padding: 64px 0 96px 0;
    background-color: var(--white);
    border-radius: 0;
}

.empty-cart {
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--light);
    border-radius: 48px;
}

.empty-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 32px;
    background-color: var(--white);
    color: var(--accent);
    margin-bottom: 28px;
}

.empty-cart-icon svg {
    width: 56px;
    height: 56px;
}

.empty-cart-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 120%;
    color: var(--black);
    margin-bottom: 12px;
}

.empty-cart-desc {
    font-size: 16px;
    line-height: 150%;
    color: var(--second);
    max-width: 420px;
    margin-bottom: 32px;
}

.empty-cart-btn {
    max-width: 280px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
    .checkout-cart-item {
        grid-template-columns: 100px 1fr auto;
        gap: 20px;
    }

    .checkout-cart-item-remove {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }

    .checkout-cart-item-image {
        width: 100px;
        height: 100px;
    }

    .checkout-form {
        padding: 32px;
        border-radius: 24px;
    }
}

@media (max-width: 767px) {

    .checkout-cart-section,
    .checkout-form-section,
    .empty-cart-section {
        padding: 16px 0 20px 0;
    }

    .checkout-cart-section .section-title,
    .checkout-form-section .section-title {
        margin-bottom: 24px;
    }

    .checkout-cart-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
        padding: 16px;
        border-radius: 20px;
    }

    .checkout-cart-item-image {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }

    .checkout-cart-item-title {
        font-size: 17px;
    }

    .checkout-cart-item-qty {
        grid-column: 2;
        justify-self: flex-start;
        height: 40px;
    }

    .checkout-cart-item-remove {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: center;
    }

    .checkout-prices {
        margin-top: 32px;
    }

    .checkout-prices-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .checkout-prices-table {
        font-size: 14px;
        min-width: 520px;
    }

    .checkout-prices-table thead th,
    .checkout-prices-table tbody td {
        padding: 12px 14px;
    }

    .checkout-prices-table-wrap {
        border-radius: 12px;
    }

    .checkout-form {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkout-form-submit {
        max-width: 100%;
        width: 100%;
    }

    .checkout-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .checkout-form-back {
        text-align: center;
    }

    .empty-cart {
        padding: 40px 24px;
        border-radius: 32px;
    }

    .empty-cart-icon {
        width: 96px;
        height: 96px;
        border-radius: 24px;
        margin-bottom: 20px;
    }

    .empty-cart-icon svg {
        width: 44px;
        height: 44px;
    }

    .empty-cart-title {
        font-size: 24px;
    }

    .empty-cart-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .empty-cart-btn {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .checkout-cart-item {
        grid-template-columns: 64px 1fr;
    }

    .checkout-cart-item-image {
        width: 64px;
        height: 64px;
    }

    .checkout-cart-item-title {
        font-size: 16px;
    }

    .checkout-cart-item-variation {
        font-size: 13px;
        padding: 5px 10px;
    }

    .checkout-prices-title {
        font-size: 18px;
    }

    .empty-cart-title {
        font-size: 20px;
    }
}

/* ============================================================
   СТРАНИЦА «СПАСИБО ЗА ЗАКАЗ»
   ============================================================ */

.thankyou-section {
    padding: 64px 0 96px 0;
    background-color: var(--white);
    border-radius: 0;
}

.thankyou {
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--light);
    border-radius: 48px;
}

/* ---------- Иконка ---------- */
.thankyou-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 32px;
    background-color: var(--white);
    color: var(--accent);
    margin-bottom: 28px;
    box-shadow: 0 0 0 10px rgba(174, 220, 247, .35);
}

.thankyou-icon svg {
    width: 56px;
    height: 56px;
}

/* ---------- Заголовок и описание ---------- */
.thankyou-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 120%;
    color: var(--black);
    margin-bottom: 16px;
}

.thankyou-desc {
    font-size: 16px;
    line-height: 160%;
    color: var(--second);
    max-width: 480px;
    margin-bottom: 32px;
}

.thankyou-desc strong {
    font-weight: 700;
    color: var(--accent);
}

/* ---------- Инфо-блок ---------- */
.thankyou-info {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 20px;
    background-color: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 20px;
    margin-bottom: 32px;
}

.thankyou-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
}

.thankyou-info-item+.thankyou-info-item {
    border-left: 1px solid var(--light-border);
}

.thankyou-info-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gray);
}

.thankyou-info-value {
    font-size: 15px;
    font-weight: 600;
    line-height: 130%;
    color: var(--black);
    transition: color .15s;
    white-space: nowrap;
}

a.thankyou-info-value:hover {
    color: var(--accent);
}

/* ---------- Кнопки ---------- */
.thankyou-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.thankyou-btn {
    flex: 1 1 0;
    min-width: 200px;
    max-width: 260px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 767px) {
    .thankyou-section {
        padding: 24px 0 56px 0;
    }

    .thankyou {
        padding: 40px 24px;
        border-radius: 32px;
    }

    .thankyou-icon {
        width: 96px;
        height: 96px;
        border-radius: 24px;
        margin-bottom: 20px;
        box-shadow: 0 0 0 6px rgba(174, 220, 247, .35);
    }

    .thankyou-icon svg {
        width: 44px;
        height: 44px;
    }

    .thankyou-title {
        font-size: 26px;
    }

    .thankyou-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .thankyou-info {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 16px;
        margin-bottom: 24px;
    }

    .thankyou-info-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
    }

    .thankyou-info-item+.thankyou-info-item {
        border-left: none;
        border-top: 1px solid var(--light-border);
    }

    .thankyou-info-label {
        text-transform: none;
        letter-spacing: 0;
        font-size: 13px;
    }

    .thankyou-actions {
        flex-direction: column;
    }

    .thankyou-btn {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .thankyou-title {
        font-size: 22px;
    }

    .thankyou-icon {
        width: 80px;
        height: 80px;
    }

    .thankyou-icon svg {
        width: 38px;
        height: 38px;
    }
}

/* Отзывы */
.cr-ajax-search,
.cr-ajax-reviews-cus-images-title,
.cr-review-tags-filter {
    display: none!important;
}
.cr-comment-image-top img {
    height: 150px;
}
/* ---------- Общий контейнер блока отзывов ---------- */
#tab-reviews.woocommerce-Tabs-panel {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--black);
    background-color: var(--white);
}

#tab-reviews .woocommerce-Reviews-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 120%;
    color: var(--black);
    margin-bottom: 24px;
}

#tab-reviews .woocommerce-Reviews-title span {
    color: var(--accent);
}

/* ---------- Сводная плашка рейтинга ---------- */
.cr-summaryBox-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 24px;
    margin-bottom: 24px;
    background-color: var(--light);
    border-radius: 24px;
}

.cr-overall-rating-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cr-average-rating span {
    font-size: 40px;
    font-weight: 700;
    color: var(--black);
    line-height: 100%;
}

.cr-total-rating-count {
    font-size: 14px;
    color: var(--second);
}

/* звёзды используют currentColor у svg — просто красим родителя */
.crstar-rating-svg,
.cr-rating-icon-bg,
.cr-rating-icon {
    color: var(--accent);
}

.cr-histogram-rating-icon {
    color: var(--accent);
}

.cr-ajax-reviews-add-review {
    margin: 0!important;
    display: flex!important;
    justify-content: center!important;
    align-items: center;
    gap: 10px!important;
    padding: 12px 25px!important;
    font-weight: 600!important;
    font-size: 15px!important;
    line-height: 110%!important;
    color: var(--white)!important;
    background: var(--accent)!important;
    border: 1px solid var(--accent)!important;
    border-radius: 22px!important;
    transition: .15s!important;
    cursor: pointer!important;
    white-space: nowrap!important;
}

.cr-ajax-reviews-add-review:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Гистограмма рейтингов */
.ivole-summaryBox {
    flex: 1 1 280px;
    min-width: 220px;
}

.cr-histogramTable {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ivole-histogramRow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--second);
}

.ivole-meter {
    flex: 1;
    height: 8px;
    background-color: var(--light-border);
    border-radius: 8px;
    overflow: hidden;
}

.ivole-meter-bar {
    height: 100%;
    background-color: var(--accent);
    border-radius: 8px;
    font-size: 0;
    /* прячем текст-значение внутри полоски */
}

.ivole-histogramCell3 {
    min-width: 34px;
    text-align: right;
}

/* ---------- Фото/видео клиентов ---------- */
.cr-ajax-reviews-cus-images-div {
    margin-bottom: 32px;
}

.cr-ajax-reviews-cus-images-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.cr-ajax-reviews-cus-images-div2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cr-comment-image-top {
    width: 100px;
    height: 100px;
    margin-right: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--light-border);
    cursor: pointer;
    transition: .2s;
}

.cr-comment-image-top-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Модалка-слайдер по фото */
.cr-ajax-reviews-cus-images-modal {
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
}

.cr-ajax-reviews-cus-images-close {
    background-color: var(--black);
    color: var(--white);
    border-radius: 50%;
}

.cr-ajax-reviews-slide-main-comment .crstar-rating-svg,
.cr-ajax-reviews-slide-main-comment .cr-rating-icon,
.cr-ajax-reviews-slide-main-comment .cr-rating-icon-bg {
    color: var(--accent);
}

/* ---------- Поиск и фильтр по тегам ---------- */
.cr-ajax-search {
    margin-bottom: 16px;
}

.cr-ajax-search input.cr-input-text {
    width: 100%;
    height: 48px;
    padding: 13px 16px 13px 44px;
    font-size: 15px;
    color: var(--black);
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 22px;
    font-family: inherit;
    transition: border-color .2s;
}

.cr-ajax-search input.cr-input-text:focus {
    outline: none;
    border-color: var(--accent);
}

.cr-ajax-search svg.cr-ajax-search-icon {
    fill: var(--second) !important;
}

.cr-count-row-count {
    font-size: 14px;
    color: var(--second);
}

.cr-ajax-reviews-sort {
    width: auto;
    min-width: 220px;
    height: 44px;
    padding: 10px 36px 10px 16px;
    font-size: 14px;
    border-radius: 12px;
}

/* ---------- Список отзывов ---------- */
.commentlist.cr-ajax-reviews-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 24px 0;
    padding: 0;
}

.commentlist .review {
    list-style: none;
}

.commentlist .comment_container {
    display: flex;
    gap: 16px;
    padding: 20px 24px 0 24px!important;
    background-color: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 24px;
    transition: .15s;
}

.commentlist .review.odd .comment_container,
.commentlist .review.alt .comment_container {
    background-color: var(--white);
}

.cr-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--light-border);
}

.cr-avatar-check {
    background-color: var(--accent);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-comment-text {
    flex: 1;
    min-width: 0;
}

.cr-comment-text .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.woocommerce-review__author {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.woocommerce-review__published-date {
    font-size: 13px;
    color: var(--second);
}

.cr-comment-text .description p {
    font-size: 15px;
    line-height: 150%;
    color: var(--second);
    margin-bottom: 8px;
}

.cr-comment-text .description p:last-child {
    margin-bottom: 0;
}

.cr-comment-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cr-comment-images .iv-comment-image {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
}

.cr-comment-images .iv-comment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Кнопка "Показать еще" ---------- */
.cr-show-more-review-spinner-cnt {
    display: flex;
    justify-content: center;
    margin: 8px 0 40px 0;
}

.cr-show-more-reviews-prd {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 15px;
    color: var(--accent);
    background-color: transparent;
    border: 1px solid var(--accent);
    border-radius: 22px;
    cursor: pointer;
    transition: .15s;
}

.cr-show-more-reviews-prd:hover {
    background-color: var(--accent);
    color: var(--white);
}

.cr-search-no-reviews {
    text-align: center;
    color: var(--second);
    font-size: 14px;
}

/* ---------- Форма добавления отзыва ---------- */
.cr-review-form-wrap {
    background-color: var(--light);
    border-radius: 24px;
    padding: 32px;
}

.cr-review-form-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cr-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

.cr-nav-left svg path,
.cr-nav-right svg path {
    stroke: var(--black);
}

.cr-nav-right {
    cursor: pointer;
}

.cr-review-form-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px!important;
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid var(--light-border);
}

.cr-review-form-item img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.cr-review-form-item span {
    font-weight: 600;
    font-size: 15px;
    color: var(--black);
}

.cr-review-form-rating-label,
.cr-review-form-lbl {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
}

.cr-review-form-rating-cont {
    display: flex;
    gap: 6px;
}

/* переопределяем жёлтые звёзды формы на акцентный цвет сайта */
.cr-review-form-rating-inner .cr-rating-act path {
    fill: var(--accent);
}

.cr-review-form-rating-inner .cr-rating-act path[fill="#F5CD5B"] {
    fill: var(--accent-hover);
}

.cr-review-form-rating-nbr {
    font-size: 14px;
    color: var(--second);
    margin-left: 8px;
}

.cr-review-form-comment-txt,
.cr-review-form-txt {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    color: var(--black);
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    font-family: inherit;
    transition: border-color .2s;
}

.cr-review-form-comment-txt:focus,
.cr-review-form-txt:focus {
    outline: none;
    border-color: var(--accent);
}

.cr-review-form-comment-txt {
    resize: vertical;
    min-height: 100px;
}

.cr-review-form-ne {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.cr-review-form-name,
.cr-review-form-email {
    flex: 1 1 220px;
}

.cr-form-item-media-none {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    margin-top: 16px;
    background-color: var(--white);
    border: 1px dashed var(--gray-light);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--second);
    transition: .15s;
}

.cr-form-item-media-none:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cr-form-item-media-icon {
    width: 20px;
    height: 20px;
    fill: currentColor !important;
}

.cr-review-form-terms {
    margin-top: 16px;
    font-size: 13px;
    color: var(--second);
}

.cr-review-form-terms a {
    color: var(--accent);
    text-decoration: underline;
}

.cr-review-form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.cr-review-form-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 22px;
    cursor: pointer;
    transition: .15s;
}

.cr-review-form-submit:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.cr-review-form-cancel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 15px;
    color: var(--black);
    background-color: transparent;
    border: 1px solid var(--gray-light);
    border-radius: 22px;
    cursor: pointer;
    transition: .15s;
}

.cr-review-form-cancel:hover {
    border-color: var(--black);
}

.cr-review-form-field-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 4px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 767px) {
    .commentlist .comment_container {
        flex-direction: column;
        padding: 16px;
    }

    .cr-summaryBox-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .cr-ajax-reviews-add-review {
        margin-left: 0;
        width: 100%;
    }

    .cr-review-form-ne {
        flex-direction: column;
    }

    .cr-review-form-buttons {
        flex-direction: column;
    }
}

/*  */
#reviews .cr-summaryBox-wrap {
    background-color: var(--light);
}
.cr-all-reviews-shortcode .cr-count-row,
#reviews.cr-reviews-ajax-reviews .cr-count-row {
    background-color: var(--light);
    border-radius: 8px;
}
.cr-reviews-ajax-reviews .cr-ajax-reviews-sort-div .cr-ajax-reviews-sort,
.cr-all-reviews-shortcode .cr-ajax-reviews-sort-div .cr-ajax-reviews-sort {
    background-color: var(--white);
    padding: 5px 10px;
}
#reviews .comment_container .cr-avatar,
.cr-reviews-ajax-reviews .cr-reviews-ajax-comments .cr-ajax-reviews-list .comment_container .cr-avatar,
.cr-all-reviews-shortcode ol li.comment .comment_container .cr-avatar,
.cr-all-reviews-shortcode ol li.review .comment_container .cr-avatar {
    top: 20px;
    left: 24px;
}
.cr-all-reviews-shortcode ol li.comment .comment_container .cr-avatar-check,
.cr-all-reviews-shortcode ol li.review .comment_container .cr-avatar-check,
#reviews .comment_container .cr-avatar-check,
.cr-reviews-ajax-reviews .cr-reviews-ajax-comments .cr-ajax-reviews-list .cr-avatar-check,
.cr-reviews-grid .cr-review-card .cr-avatar-check,
.cr-reviews-slider .cr-review-card .cr-avatar-check {
    left: 54px;
    top: 52px;
}
.cr-reviews-ajax-reviews .cr-reviews-ajax-comments .cr-ajax-reviews-list .review .cr-comment-text {
    border-bottom: 0;
}

.cr-all-reviews-shortcode ol.commentlist li,
#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list li {
    margin-bottom: 20px;
}
.cr-all-reviews-shortcode ol.commentlist,
#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list {
    padding: 0;
}
.cr-reviews-ajax-reviews .cr-show-more-reviews-prd,
.cr-all-reviews-shortcode .cr-show-more-button,
.cr-reviews-grid .cr-show-more-button,
.cr-qna-block .cr-show-more-que {
    margin: 0 auto;
}
.cr-show-more-review-spinner-cnt {
    height: auto;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal-cont,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal-cont {
    background: rgba(0, 0, 0, .7);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-main .cr-ajax-reviews-slide-main img,
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-main .cr-ajax-reviews-slide-main video,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-main .cr-ajax-reviews-slide-main img,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-main .cr-ajax-reviews-slide-main video {
    max-width: 300px;
    max-height: 300px;
}

.cr-all-reviews-shortcode .cr-review-form-wrap .cr-review-form-buttons .cr-review-form-submit,
.cr-ajax-reviews-review-form .cr-review-form-wrap .cr-review-form-buttons .cr-review-form-submit,
.cr-reviews-grid .cr-review-form-wrap .cr-review-form-buttons .cr-review-form-submit,
.cr-qna-block .cr-review-form-buttons .cr-review-form-submit {
    background-color: var(--accent);
}

.cr-all-reviews-shortcode .cr-review-form-buttons .cr-review-form-submit:hover,
.cr-ajax-reviews-review-form .cr-review-form-buttons .cr-review-form-submit:hover,
.cr-reviews-grid .cr-review-form-buttons .cr-review-form-submit:hover,
.cr-qna-block .cr-review-form-buttons .cr-review-form-submit:hover {
    background-color: var(--accent-hover);
}