/**
 * Single Product Styles - Prosmarty Pure
 * Тема: Prosmarty Pure
 */

.product-template-default .site-main {
    padding-top: 30px;
    background-color: #f8f9fb;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Layout */
.product-main-info {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-gallery {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
    position: sticky;
    top: 100px;
}

.product-summary {
    flex: 1 1 50%;
    min-width: 0;
}

/* Custom Swiper Gallery (Vertical Thumbnails Left) */
.product-gallery-wrapper {
    display: flex;
    flex-direction: row;
    /* Thumbnails (left) then Main (right) */
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.product-main-swiper {
    width: calc(100% - 100px) !important;
    /* 100% минус ширина thumbs (80) и gap (20) */
    flex: none !important;
    /* Запрещаем flexbox динамически менять ширину */
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    position: relative;
    aspect-ratio: 1 / 1;
    /* Квадратная форма */
    display: block;
}

/* Очищаем опасные стили, доверяем внутреннюю сетку самому Swiper */
.product-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
}

.product-main-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Стили миниатюр (жесткая фиксация до инициализации JS) */
.product-thumbnails-swiper {
    width: 80px;
    flex-shrink: 0;
    height: 400px !important;
    position: relative;
    padding: 35px 0;
    overflow: hidden;
    display: block !important;
}

.product-thumbnails-swiper .swiper-wrapper {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box;
    width: 100% !important;
    transform: none;
    /* Сброс до загрузки JS */
}

.product-thumbnails-swiper .swiper-slide {
    width: 80px !important;
    height: 80px !important;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: 0.3s;
    opacity: 0.5;
    margin-bottom: 0 !important;
    /* Отступы идут через gap */
}

.product-thumbnails-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumbnails-swiper .swiper-slide-thumb-active,
.product-thumbnails-swiper .swiper-slide:first-child {
    border-color: #000;
    opacity: 1;
}

/* Навигация миниатюр */
.product-thumbnails-swiper .thumbs-next,
.product-thumbnails-swiper .thumbs-prev {
    width: 30px;
    height: 30px;
    color: #000;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-thumbnails-swiper .thumbs-next {
    bottom: 0;
    top: auto;
}

.product-thumbnails-swiper .thumbs-prev {
    top: 0;
}

.product-thumbnails-swiper .thumbs-next:after,
.product-thumbnails-swiper .thumbs-prev:after {
    font-size: 10px;
    font-weight: 900;
}

/* Hide WooCommerce Default Gallery Elements if they leak */
.woocommerce-product-gallery__trigger,
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery .flex-control-nav {
    display: none !important;
}

/* Right Column Card */
.summary-inner-card {
    background-color: white !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 30px 35px 15px !important;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 5px rgba(0, 0, 0, .1);
}

/* Title & Brand Group */
.product-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.brand-logo-floating {
    width: 70px;
    flex-shrink: 0;
    z-index: 5;
}

.brand-logo-floating img {
    max-width: 100%;
    height: auto;
    filter: none !important;
    /* Always colored */
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

/* Breadcrumbs inside card */
.product-breadcrumbs {
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}

.product-breadcrumbs a {
    color: #666;
}

/* Title */
.product-summary .product_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.2;
    color: #303030;
}

/* Prices */
.price-block {
    margin-bottom: 0;
}

.cart .single_add_to_cart_button {
    background-color: #303030 !important;
}

.cart .single_add_to_cart_button:hover {
    background-color: black !important;
}

.price-block .old-price {
    font-size: 22px;
    color: #bbb;
    text-decoration: line-through;
    margin-right: 15px;
    font-weight: 400;
}

.price-block .current-price {
    font-size: 22px;
    font-weight: 600;
    color: #303030;
}

.dolyami-widget-wrapper {
    margin: 20px 0;
    min-height: 60px;
}

.cash-price-row {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.cash-price {
    font-size: 20px;
    font-weight: 600;
    color: #303030;
}

.cash-price-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    display: block;
}

/* Notice Boxes */
.notices-wrapper {
    margin-bottom: 0;
}

.notice-box {
    padding: 10px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 25px;
    margin-top: 25px;
    text-align: center;
}

.notice-warning {
    background-color: #f7a8a1;
    color: white;
    border: none;
    background-image: url(/wp-content/uploads/2024/08/pngwing.com_.png);
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
}

.notice-info {
    background-color: #f8f9fb;
    color: #303030;
    font-size: 14px;
    font-weight: 400;
    text-align: center;

}

/* Grid for Actions + Benefits */
.product-footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 30px;
}

.product-actions-secondary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-actions-secondary>* {
    width: 100%;
}

/* Tinkoff Button Styling */
.tin_btn {
    display: block !important;
    width: 100% !important;
}

tinkoff-create-button {
    height: 48px !important;
    display: block !important;
}

.btn-pure {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.btn-hint {
    background-color: #F6A8A1;
    color: white;
    width: 184px;
}

.btn-hint:hover {
    background-color: #c07770;
}

.btn-credit {
    background-color: #ffde00;
    color: #000;
}

.btn-credit:hover {
    background-color: #f2d200;
}

/* Cart Form */
.product-cart-form {
    margin-bottom: 0;
}

.product-cart-form .cart {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
}

.quantity {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.product-cart-form .quantity input:focus-visible {
    border-radius: 4px;
}

.quantity input {
    width: 100%;
    height: 35px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 400;
}

.single_add_to_cart_button {
    height: 35px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 400;
    margin-bottom: 30px;
}

.woocommerce .quantity .qty {
    width: 100%;
}

/* SEO Benefits Block */
.seo-benefits-block {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}

.seo-benefits-block p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #000;
}

.seo-benefits-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-benefits-block li {
    font-size: 13px;
    color: #555;
    padding-left: 20px;
    position: relative;
    margin-bottom: 5px;
}

.seo-benefits-block li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: 800;
}

/* Trust List */
.trust-list {
    list-style: none;
    padding: 25px 0 0;
    margin: 0;
    border-top: 1px dashed #ddd;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #555;
    line-height: 1.2;
}

.trust-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.trust-icon svg {
    width: 16px !important;
    height: 16px !important;
    color: #000 !important;
}

/* Expert Section */
.expert-section {
    margin: 80px 0;
    padding: 0;
}

.expert-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.expert-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 40px;
    font-size: 200px;
    color: #f0f0f0;
    font-family: serif;
    line-height: 1;
    z-index: 1;
}

.expert-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.expert-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.expert-meta {
    flex: 1;
}

.expert-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #303030;
    margin-bottom: 5px;
}

.expert-position {
    font-size: 14px;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expert-body {
    position: relative;
    z-index: 2;
}

.expert-quote {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    padding: 20px 30px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 5px solid #303030;
}

.expert-footer {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
}

.expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #303030;
    margin-bottom: 10px;
}

.faq-subtitle {
    color: #888;
    font-size: 16px;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: #303030;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px 25px;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.faq-toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Related Products Carousel */
.related.products {
    margin-top: 80px;
    border-top: 1px solid #eee;
    padding-top: 60px;
}

.related-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
}

.related-swiper-container {
    padding: 10px 0 50px;
    position: relative;
    display: block;
    width: 100%;
}

/* Скелет для Related Products (до инициализации JS предотвращает CLS) */
.related-swiper-container:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
}

.related-swiper-container:not(.swiper-initialized) .swiper-slide {
    width: 280px;
    flex-shrink: 0;
}

.related-swiper-container .swiper-slide {
    height: auto;
}

.related-swiper-container .swiper-button-next,
.related-swiper-container .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    top: 45%;
}

.related-swiper-container .swiper-button-next:after,
.related-swiper-container .swiper-button-prev:after {
    font-size: 18px;
    font-weight: 800;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .product-main-info {
        flex-direction: column;
    }

    .product-gallery,
    .product-summary {
        width: 100%;
        flex: none;
    }

    .product-title-container {
        gap: 15px;
    }

    .product-summary .product_title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .product-title-container {
        flex-direction: column;
        gap: 10px;
    }

    .product-summary .product_title {
        font-size: 24px;
    }

    .brand-logo-floating {
        width: 60px;
        order: -1;
    }
}

/* Total Price Styling */
.total-price-holder {
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #303030;
    font-weight: 600;
}

/* SEO Benefits Frame */
.seo-benefits-block {
    border: 1px solid #f2f2f2;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fb;
}

.seo-benefits-block p {
    margin-bottom: 10px;
    font-size: 14px;
}

.seo-benefits-block ul {
    margin: 0;
    padding-left: 20px;
}

.seo-benefits-block li {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.seo-benefits-block li:last-child {
    margin-bottom: 0;
}

/* Trust List (Icons in one row) */
.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    list-style: none;
    padding: 20px 0 0;
    margin: 30px 0 0;
    border-top: 1px solid #f2f2f2;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    font-family: 'Roboto', sans-serif;
}

.trust-icon {
    display: flex;
    align-items: center;
    color: #303030;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 18px;
    height: 18px;
}

/* Related Products Section */

.woocommerce .products .star-rating,
.woocommerce ul.products li.product .star-rating {
    margin: 0 auto;
    margin-bottom: 10px;
}

.related.products {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #f2f2f2;
}

.related-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

/* Swiper Container Spacing */
.related-swiper-container {
    padding: 10px 0 40px;
}

/* Product Card in Loop */
.related.products .product {
    background: #fff;
    padding: 20px;
    border-radius: 0;
    /* Острые углы как на Woodmart */
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    border-radius: 8px;
    /* Убираем внешние отступы для плотной сетки */
}

/* Related Products Swiper Overrides */
.related.products .product {
    margin: 0;
}

/* Navigation Buttons Styling */
.related-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #242424 !important;
    text-transform: none !important;
}

.related-next,
.related-prev {
    color: #303030 !important;
}


.related-next:after,
.related-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}


/* ==========================================================================
   Responsive Styling (�������)
   ========================================================================== */

@media (max-width: 1024px) {
    .product-main-info {
        flex-direction: column;
        gap: 30px;
    }

    .product-gallery,
    .product-summary {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .product-gallery {
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .product-container {
        padding: 0 15px;
    }

    .product-gallery-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .product-main-swiper {
        width: 100% !important;
        order: 1;
        border-radius: 12px;
    }

    .product-thumbnails-swiper {
        width: 100%;
        height: auto !important;
        padding: 0 10px;
        order: 2;
        overflow: hidden;
    }

    .product-thumbnails-swiper .swiper-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        height: auto !important;
        padding: 10px 0;
        width: max-content !important;
        gap: 0 !important;
        /* Явно отключаем gap, мешающий Swiper */
    }

    .product-thumbnails-swiper .swiper-slide {
        width: 75px !important;
        height: 75px !important;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .product-thumbnails-swiper .thumbs-next,
    .product-thumbnails-swiper .thumbs-prev {
        display: none !important;
    }

    .product-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .related-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .trust-list {
        justify-content: start;
        gap: 15px;
    }

    .trust-item {
        font-size: 12px;
    }
}

/* Спойлер характеристик */
.spoiler-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
}

.spoiler-content.active {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease;
    margin-top: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #000;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.read-more:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Product SEO Content
   ========================================================================== */

.product-seo-content {
    margin: 0 auto 60px;
    max-width: 900px;
    /* Оптимальная ширина для чтения текста */
}

.product-seo-text-inner {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.product-seo-text-inner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 40px 0 20px 0;
}

.product-seo-text-inner p {
    margin-bottom: 20px;
}

.product-seo-text-inner ul {
    margin: 20px 0 30px 20px;
    list-style: none;
}

.product-seo-text-inner li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

.product-seo-text-inner li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
}

.product-seo-text-inner b,
.product-seo-text-inner strong {
    color: #000;
    font-weight: 600;
}

/* ==========================================================================
   Product Reviews
   ========================================================================== */
.product-reviews-section h2 {
    margin-top: 0;
}

.product-reviews-section {
    margin: 60px auto 0;
    padding-top: 60px;
    border-top: 1px solid #eee;
    max-width: 900px;
}

.reviews-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.reviews-count {
    color: #888;
    font-weight: 400;
}

/* Список комментариев */
.woocommerce #reviews #comments ol.commentlist li .comment-text {
    margin-left: 0 !important;
    background-color: white !important;
}

ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 60px 0;
}

ol.commentlist li.comment {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #f5f5f5;
}

ol.commentlist li.comment:last-child {
    border-bottom: none;
}

.comment_container {
    display: block;
}

.comment_container .avatar {
    display: none;
}

.comment-text {
    flex: 1;
}

.comment-text .meta {
    margin-bottom: 10px;
}

.comment-text .meta strong {
    font-size: 16px;
    color: #000;
}

.comment-text .meta time {
    font-size: 13px;
    color: #888;
    margin-left: 10px;
}

.comment-text .description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Звезды рейтинга (WooCommerce) */
.star-rating {
    float: right;
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 14px;
    width: 5.4em;
    font-family: 'star';
    color: #000;
}

.star-rating:before {
    content: '\73\73\73\73\73';
    color: #ddd;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span:before {
    content: '\53\53\53\53\53';
    top: 0;
    position: absolute;
    left: 0;
}

/* Форма отзыва */
#review_form_wrapper {
    background: #fafafa;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e1dde7;
}

#reply-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    display: block;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: 'Roboto', sans-serif;
    min-height: 120px;
}

.form-submit {
    margin-top: 20px;
}

#submit {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#submit:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .comment_container {
        flex-direction: column;
    }

    .star-rating {
        float: none;
        margin-bottom: 10px;
    }

    #review_form_wrapper {
        padding: 20px;
    }
}

/* ==========================================================================
   Product Tabs & Tables
   ========================================================================== */

tr.js-prop-replace>td.char_value {
    text-align: right;
}

.product-tabs-wrapper {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.woocommerce-tabs {
    max-width: 650px;
    margin: 0 auto;
    margin-top: 40px;
}

/* Навигация табов */
ul.tabs.wc-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    border-bottom: 1px solid #eee;
    font-size: 22px;
    gap: 40px;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}

ul.tabs.wc-tabs::-webkit-scrollbar {
    display: none;
}

ul.tabs.wc-tabs li {
    padding: 0 0 15px 0;
    position: relative;
}

ul.tabs.wc-tabs li a {
    text-decoration: none;
    color: #888;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    transition: color 0.3s ease;
}

ul.tabs.wc-tabs li.active a {
    color: #000;
}

ul.tabs.wc-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #000;
}

/* Панели контента */
.woocommerce-Tabs-panel {
    animation: fadeIn 0.4s ease;
}

.woocommerce-Tabs-panel h2 {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стилизация таблиц характеристик */
table.shop_attributes,
table.props_block__wrapper {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

table.shop_attributes tr,
table.props_block__wrapper tr.char {
    border-bottom: 1px solid #f5f5f5;
}

table.shop_attributes th,
table.shop_attributes td,
table.props_block__wrapper td {
    padding: 5px 10px;
    text-align: left;
    font-size: 15px;
}

table.shop_attributes th,
.char_name {
    width: 35%;
    color: #888;
    font-weight: 400;
}

table.shop_attributes td,
.char_value {
    color: #333;
    font-weight: 500;
}

/* Заголовки разделов в таблице описания */
.tst_prop_header td {
    padding: 10px 0 5px 0 !important;
}

.descr_h {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* Zebra effect for rows */
table.shop_attributes tr:nth-child(even),
table.props_block__wrapper tr.char:nth-child(even) {
    background: #fafafa;
}

/*настройка формы намека о подарке начало*/
.present-form-inner {
    padding: 20px;
}

.present-form-inner .podarok-heading {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2em;
}

.present-form-inner .wpcf7-submit {
    height: 42px;
    font-weight: 400;
    width: 100%;
    color: white !important;
    background-color: #303030;
    transition: all 0.3s ease-in-out;
}

.present-form-inner .wpcf7-submit:hover {
    background-color: black;
}

button.namek-o-podarke:hover {
    color: white !important;
}

/*настройка формы намека о подарке конец*/

/* New 2-column semantic attributes list */
.pure-product-attributes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 40px;
    margin: 0 0 30px 0;
    padding: 0;
}

.pure-product-attributes .attr-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed #e5e5e5;
    padding-bottom: 6px;
}

.pure-product-attributes dt {
    font-size: 15px;
    color: #888;
    font-weight: 400;
    margin: 0;
    flex-shrink: 0;
    padding-right: 15px;
}

.pure-product-attributes dd {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin: 0;
    text-align: right;
    word-break: break-word;
}

/* Mobile Tabs */
@media (max-width: 768px) {
    .pure-product-attributes {
        grid-template-columns: 1fr;
        /* Switch to 1 column on mobile */
        gap: 10px;
    }

    .pure-product-attributes dt,
    .pure-product-attributes dd {
        font-size: 13px;
    }

    ul.tabs.wc-tabs {
        gap: 25px;
    }

    ul.tabs.wc-tabs li a {
        font-size: 14px;
    }

    table.shop_attributes th,
    .char_name {
        width: 45%;
        font-size: 13px;
    }

    table.shop_attributes td,
    .char_value {
        font-size: 13px;
    }
}

.pure-product-attributes p {
    margin: 0;
}