
.product-gallery-container {
    width: 95% !important;
    max-width: 1650px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.product-gallery-title {
    margin-bottom: 20px;
    color: #2c3e50;
}

.gallery-content {
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-rows: 1fr;
    gap: 10px;
    align-items: start;
}

.product-gallery-section {
    border: 1.5px solid #3498db;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    height: 100%;
    padding: 10px;
    background: whitesmoke;
}

.product-info-section {
    height: 100%;
}

.product-gallery {
    width: 100%;
    height: 100%;
    padding: 0;
}

.product-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 683;
    margin-bottom: 10px;
    background: #999999;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-gallery__image-container {
    aspect-ratio: 500 / 333;
    position: relative;
    width: 100%;
    height: 100%;
}

.product-gallery__main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer !important;
    transition: transform 0.3s ease;
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.product-gallery__thumb {
    width: 100%;
    aspect-ratio: 1024 / 683;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px;
    transition: all 0.2s ease;
    background: #f8f9fa;
    padding: 0;
}

.product-gallery__thumb:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.product-gallery__thumb--active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px #007bff, 0 4px 8px rgba(0, 123, 255, 0.3);
    transform: scale(1.05);
}

.product-gallery__thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили для информации о товаре */
.product-info {
    background: whitesmoke;
    border: 1.5px solid #3498db;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-info__meta {
    
    background: #f8f9fa;
    padding: 10px 10px 10px 0px;
    border-radius: 8px;
}

.product-info__meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.product-info__meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.product-info__meta-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 0;
    border-bottom: none !important;
    align-items: center;
    text-align: center;
}

.product-info__meta-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.product-info__meta-label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 12px;
    margin-bottom: 2px;
}

.product-info__meta-value {
    color: #34495e;
    font-weight: 500;
    font-size: 13px;
}

/* Стили для цены - уменьшенные */
.product-price-section {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    text-align: center;
    margin-top: 10px;
}

.product-price-label {
    font-size: 12px;
    color: #2c3e50;
    margin-bottom: 2px;
    font-weight: bold;
}

.product-price-value {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

/* Стили для наличия как в примере */
.availability-value {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    text-align: center;
    line-height: 1.2;
    padding: 2px;
}

.availability-value.in-stock {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.availability-value.on-order {
    background: linear-gradient(45deg, #f39c12, #f1c40f);
}

.availability-value.out-of-stock {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

/* Стили для кнопок как в примере */
.product-cart-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    flex: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.product-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.product-wishlist-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.product-wishlist-btn:hover,
.product-wishlist-btn:focus {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
    outline: 2px solid #6c757d;
    outline-offset: 2px;
    text-decoration: none;
    color: white;
}

.product-wishlist-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(108, 117, 125, 0.3);
}

/* Для кнопок в избранное в схожих товарах */
.similar-product-favorites .product-wishlist-btn {
    padding: 10px;
    font-size: 14px;
    
}

.similar-product-favorites a,
.similar-product-favorites button {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 8px 0;
    box-sizing: border-box;
}

/* Стили для количества как в примере */
.product-info__quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    padding: 0px 10px 0px 10px;
    border-radius: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input {
    width: 70px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px;
    font-weight: bold;
}

.qty-lever {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.qty-lever:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Стили для ячеек как в примере */
.param-value {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #2c3e50;
}

/* Стили для минимальной суммы заказа */
.min-order-info {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 2px;
}

.min-order-label {
    font-size: 10px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2px;
}

.min-order-value {
    font-size: 10px;
    font-weight: bold;
    color: #e74c3c;
}

/* Стили для технических характеристик */
.tech-specs-section {
    background: #f8f9fa;
    padding: 0px 10px 0px 10px;
    border-radius: 8px;
    
   
    border: 1px solid #dee2e6;
}

.tech-specs-title {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
    margin-top: 10px;
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tech-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tech-spec-label {
    font-size: 10px;
    margin-bottom: 2px;
    font-weight: bold;
}

.tech-spec-value {
    font-size: 11px;
    font-weight: bold;
    color: #2c3e50;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    width: 100%;
}

/* Стили для цветового индикатора в характеристиках */
.color-indicator-tech {
    width: 100%;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    text-align: center;
    line-height: 1.2;
    padding: 2px;
}

/* Одиночные цвета */
.color-indicator-tech.color-black { background: #070707; color: white; }
.color-indicator-tech.color-cyan { background: rgb(37, 106, 209); color: white; }
.color-indicator-tech.color-magenta { background: rgb(222, 22, 61); color: white; }
.color-indicator-tech.color-yellow { background: rgb(245, 216, 2); color: black; }
.color-indicator-tech.color-multiple { background: linear-gradient(45deg, #666 0%, #999 100%); color: white; }

/* Комбинации */
.color-indicator-tech.color-cmy {
    background: linear-gradient(-45deg,
        rgb(245, 216, 2) 0%, rgb(245, 216, 2) 33%,
        rgb(222, 22, 61) 33%, rgb(222, 22, 61) 66%,
        rgb(37, 106, 209) 66%, rgb(37, 106, 209) 100%
    );
}

.color-indicator-tech.color-cmyk {
    background: linear-gradient(-45deg,
        rgb(245, 216, 2) 0%, rgb(245, 216, 2) 25%,
        rgb(222, 22, 61) 25%, rgb(222, 22, 61) 50%,
        rgb(37, 106, 209) 50%, rgb(37, 106, 209) 75%,
        #070707 75%, #070707 100%
    );
}

.full-specs-link {
    text-align: center;
    margin-top: 8px;
}

.full-specs-link a {
    font-size: 12px;
    color: #3498db;
    text-decoration: none;
    cursor: pointer;
}

.full-specs-link a:hover {
    text-decoration: underline;
}

/* Стили для аккордеонов */
.product-accordions {
    margin-top: 20px;
}

.accordion {
    
    margin-bottom: 15px;
}

.accordion-button {
    width: 100%;
    background: #3498db;
    color: white !important;
    border: none;
    padding: 5px 10px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background: #2980b9;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.accordion-content .accordion-inner {
    padding: 20px;
    line-height: 1.6;
    color: #2c3e50;
}

/* Стили для моделей принтеров */
.models-grid {
    margin: 15px 0;
}

.brand-group {
    margin-bottom: 25px;
}

.brand-name {
    color: #2980b9;
    font-size: 18px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.models-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
    margin-left: 10px;
}

.model-link {
    display: block;
    padding: 10px 12px;
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.model-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Адаптивность галереи */
@media (max-width: 1200px) {
    .gallery-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .product-gallery-section,
    .product-info-section {
        height: auto;
    }
}


@media (max-width: 768px) {
    .product-gallery__thumbs--many {
        display: flex;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #c1c1c1 transparent;
        padding: 8px 0;
        gap: 8px;
    }
    
    .product-gallery__thumbs--many::-webkit-scrollbar {
        height: 6px;
    }
    
    .product-gallery__thumbs--many::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .product-gallery__thumbs--many::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    .product-gallery__thumbs--many .product-gallery__thumb {
        flex: 0 0 auto;
        width: 80px;
    }

    .product-gallery__thumb {
        border-width: 1px;
    }
    
    .product-gallery__thumb--active {
        border-width: 1px;
        box-shadow: 0 0 0 1px #007bff, 0 2px 4px rgba(0, 123, 255, 0.3);
    }
}

/* Остальные стили галереи */
.product-gallery__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
}

.product-gallery__image--loading {
    opacity: 0;
}

.product-gallery__image--loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-gallery__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Стили для полных характеристик */
.full-specs-container {
    padding: 10px 0;
}

.full-specs-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    align-items: center; /* Выравнивание по вертикали по середине */
    gap: 20px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-height: 60px; /* Минимальная высота для выравнивания */
}

.spec-label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
    min-width: 250px; /* Фиксированная минимальная ширина */
    max-width: 250px; /* Фиксированная максимальная ширина */
    flex-shrink: 0; /* Запрещаем сжатие */
    word-wrap: break-word; /* Перенос длинных слов */
    white-space: normal; /* Разрешаем перенос строк */
    text-align: right; /* Выравнивание текста по правому краю */
    display: flex;
    align-items: center; /* Выравнивание текста по вертикали */
    justify-content: flex-end; /* Выравнивание по правому краю */
    padding-right: 10px;
}

.spec-value {
    color: #34495e;
    font-size: 14px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 3px solid #3498db;
    border-right: 3px solid #3498db;
    flex: 1;
    display: flex;
    align-items: center; /* Выравнивание значения по вертикали */
    min-height: 40px;
    word-wrap: break-word;
    white-space: normal;
}

/* Сообщение при отсутствии характеристик */
.no-specs-message {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #bdc3c7;
}

/* Стили для блока описания товара */
.description-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #3498db;
}

.description-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.description-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    line-height: 1.6;
    color: #34495e;
}

.product-description-content {
    font-size: 14px;
    line-height: 1.6;
}

.product-description-content p {
    margin-bottom: 12px;
}

.product-description-content ul,
.product-description-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.product-description-content li {
    margin-bottom: 5px;
}

.no-description-message {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
    background: #ecf0f1;
    border-radius: 6px;
}

/* Адаптивность для характеристик */
@media (max-width: 768px) {
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: auto;
    }
    
    .spec-label {
        min-width: 100%;
        max-width: 100%;
        text-align: left;
        justify-content: flex-start;
        padding-right: 0;
        padding-bottom: 5px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .spec-value {
        width: 100%;
        min-height: auto;
    }
    
    .description-content {
        padding: 15px;
    }
    
    .description-title {
        font-size: 16px;
    }
    
    .product-description-content {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .spec-label {
        font-size: 13px;
    }
    
    .spec-value {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Стили для skip-links */
.skip-link {
    position: fixed;
    top: -100px;
    left: 6px;
    background: #3498db;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: transform 0.3s ease;
    transform: translateY(-100px);
}

.skip-link:focus {
    transform: translateY(100px); /* Появляется сверху */
}

/* СТИЛИ ДЛЯ БЛОКА СХОЖИХ ТОВАРОВ */


.similar-products-title {
    text-align: center;
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* При 1200px и больше - 3 товара в строку */
@media (min-width: 1220px) {
    .similar-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 600px - 1199px - 2 товара в строку */
@media (max-width: 1220px) and (min-width: 500px) {
    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Менее 600px - 1 товара в строку */
@media (max-width: 500px) {
    .similar-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Анимации и адаптивность */
@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Контейнер товаров */
.similar-product-item {
    background: whitesmoke;
    border: 1.5px solid #3498db;
    border-radius: 16px;
    padding: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    animation: fadeInUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(7, auto);
    gap: 5px;
    align-items: start;
}

/* 1. Фото - строка 1, колонки 1-8 */
.similar-product-image {
    aspect-ratio: 500 / 333;
    grid-column: 1 / 9;
    grid-row: 1 / 2;
    margin-bottom: 0;
    text-align: center;
}

.similar-product-image img {
    width: 100%;
    height: 100%;;
    object-fit: contain;
    border-radius: 8px;
}



/* 2. Наименование - строка 4, колонки 1-8 */
.similar-product-name {
    grid-column: 1 / 9;
    grid-row: 4 / 5;
}

.similar-product-name h3 {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-product-name h3 a {
    color: inherit;
    text-decoration: none;
}

.similar-product-name h3 a:hover {
    color: #3498db;
}

/* 3. Цена - строка 5, колонки 1-5 */
.similar-product-price {
    grid-column: 1 / 5;
    grid-row: 5 / 7;
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    height: 100%;
}

.similar-no-price {
    color: #95a5a6;
    font-size: 14px;
}

/* 4. Кнопка "В корзину" - строка 7, колонки 1-5 */
.similar-product-cart {
    grid-column: 1 / 5;
    grid-row: 7 / 8;
}

.similar-product-cart .btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

/* 5. Кнопка "В избранное" - строка 7, колонки 5-9 */
.similar-product-favorites {
    grid-column: 5 / 9;
    grid-row: 7 / 8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    
}

/* Динамические цветовые индикаторы */
.similar-color-indicator-dynamic {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 20px;
    margin: 2px 0;
}

.similar-color-indicator-dynamic .color-single {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    padding: 0 !important;
}

.color-single.color-multiple {
    background: linear-gradient(45deg, #666 0%, #999 100%);
    color: white;
}

/* Одиночные цвета */
.similar-color-single.color-black { background: #070707; color: white; }
.similar-color-single.color-cyan { background: rgb(37, 106, 209); color: white; }
.similar-color-single.color-magenta { background: rgb(222, 22, 61); color: white; }
.similar-color-single.color-yellow { background: rgb(245, 216, 2); color: black; }

/* Комбинации */
.similar-color-indicator-dynamic .color-triple,
.similar-color-indicator-dynamic .color-quadruple {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* Комбинации с правильными цветами */
.similar-color-triple.color-cmy {
    background: linear-gradient(-45deg,
        rgb(245, 216, 2) 0%, rgb(245, 216, 2) 33%,
        rgb(222, 22, 61) 33%, rgb(222, 22, 61) 66%,
        rgb(37, 106, 209) 66%, rgb(37, 106, 209) 100%
    );
}

.similar-color-quadruple.color-cmyk {
    background: linear-gradient(-45deg,
        rgb(245, 216, 2) 0%, rgb(245, 216, 2) 25%,
        rgb(222, 22, 61) 25%, rgb(222, 22, 61) 50%,
        rgb(37, 106, 209) 50%, rgb(37, 106, 209) 75%,
        #070707 75%, #070707 100%
    );
}

/* Общие стили для параметров */
.similar-param-1-indicator,
.similar-param-188-indicator,
.similar-brand-indicator,
.similar-availability-indicator,
.similar-article-static-indicator,
.similar-article-value-indicator,
.similar-chip-indicator {
    display: flex;
    align-items: center;
    height: 20px;
    margin: 2px 0;
}

.similar-param-1-indicator {
    grid-column: 3 / 6;
    grid-row: 2 / 3;
}

.similar-param-188-indicator {
    grid-column: 6 / 9;
    grid-row: 2 / 3;
}

.similar-article-static-indicator {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

.similar-article-value-indicator {
    grid-column: 3 / 6;
    grid-row: 3 / 4;
}

.similar-chip-indicator {
    grid-column: 6 / 9;
    grid-row: 3 / 4;
}

.similar-availability-indicator {
    grid-column: 5 / 9;
    grid-row: 6 / 7;
}

.similar-brand-indicator {
    grid-column: 5 / 9;
    grid-row: 5 / 6;
}

.similar-param-value {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #2c3e50;
}

/* Стили для индикатора наличия */
.similar-availability-value {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    text-align: center;
    line-height: 1.2;
    padding: 2px;
}

.similar-availability-value.in-stock {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.similar-availability-value.on-order {
    background: linear-gradient(45deg, #f39c12, #f1c40f);
}

.similar-availability-value.out-of-stock {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

/* СТИЛИ ДЛЯ ЧИПА С ВОПРОСОМ */
.similar-chip-value-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 8px !important;
    gap: 4px;
}

.similar-chip-text {
    flex: 1;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.similar-chip-question-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: normal;
    cursor: help;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.similar-chip-question-icon:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Адаптивность для чипа */
@media (max-width: 500px) {
    .similar-chip-value-container {
        padding: 0 4px !important;
        gap: 2px;
    }
    
    .similar-chip-text {
        font-size: 9px;
    }
    
    .similar-chip-question-icon {
        width: 12px;
        height: 12px;
        font-size: 9px;
    }
}

/* Стили для кнопок */
.similar-btn-outline {
    background: transparent;
    border: 1px solid #3498db;
    border-radius: 8px;
    padding: 10px;
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.similar-btn-outline:hover {
    background: #3498db;
    color: white;
}

.similar-product-cart .btn-success {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.similar-product-cart .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Стили для десктопа (только hover) */
@media (min-width: 769px) {
    .similar-chip-question-icon {
        position: relative;
        cursor: help;
    }

    .similar-chip-question-icon:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        right: 0;
        background: #2c3e50;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        white-space: normal;
        width: 160px;
        text-align: center;
        z-index: 1000;
        margin-bottom: 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        word-wrap: break-word;
        line-height: 1.3;
    }

    .similar-chip-question-icon:hover::before {
        content: '';
        position: absolute;
        bottom: 100%;
        right: 8px;
        border: 5px solid transparent;
        border-top-color: #2c3e50;
        margin-bottom: -5px;
        z-index: 1000;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .similar-chip-question-icon {
        position: relative;
        cursor: pointer;
    }
    
    .similar-chip-question-icon:hover::after,
    .similar-chip-question-icon:active::after,
    .similar-chip-question-icon:focus::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        right: 0;
        transform: none;
        background: #2c3e50;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        white-space: normal;
        width: 180px;
        text-align: center;
        z-index: 1000;
        margin-bottom: 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        word-wrap: break-word;
    }
    
    .similar-chip-question-icon:hover::before,
    .similar-chip-question-icon:active::before,
    .similar-chip-question-icon:focus::before {
        content: '';
        position: absolute;
        bottom: 100%;
        right: 8px;
        transform: none;
        border: 5px solid transparent;
        border-top-color: #2c3e50;
        margin-bottom: -5px;
        z-index: 1000;
    }
}

@media (max-width: 360px) {
    .similar-chip-question-icon:hover::after,
    .similar-chip-question-icon:active::after,
    .similar-chip-question-icon:focus::after {
        width: 150px;
        font-size: 11px;
        right: -10px;
    }
}

@media (max-width: 335px) {
    .similar-product-cart .btn,
    .similar-product-favorites .btn {
        font-size: 10px;
        padding: 5px;
    }
}

/* СТИЛИ ДЛЯ БЛОКА СХОЖИХ ТОВАРОВ */
.similar-products-section {
    
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
}

/* Стили для кастомной кнопки корзины */
.product-cart-btn-add.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.product-cart-btn-add {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    flex: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.product-cart-btn-add:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Стили для кнопок смежных товаров */
.similar-product-cart .add_to_cart_one {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #28a745;
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
}

.similar-product-cart .add_to_cart_one:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.similar-product-cart .add_to_cart_one.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Стили для блока доставки */
/* Стили для нового дизайна доставки */
.delivery-new-design {
    background: whitesmoke;
    border: 1.5px solid #3498db;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
}

.delivery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.delivery-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.delivery-more-link {
    color: #3498db;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #3498db;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.delivery-more-link:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
}

.delivery-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.delivery-method:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.method-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

/* Иконка курьерской доставки (автомобиль) */
.method-icon-courier::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 10px;
    background: #3498db;
    border-radius: 2px 2px 0 0;
    top: 5px;
    left: 1px;
}

.method-icon-courier::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid #3498db;
    border-radius: 50%;
    top: 12px;
    left: 3px;
    box-sizing: border-box;
}

/* Иконка пункта выдачи (коробка) */
.method-icon-pickup::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 12px;
    border: 2px solid #27ae60;
    border-radius: 2px;
    top: 4px;
    left: 2px;
}

.method-icon-pickup::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background: #27ae60;
    top: 3px;
    left: 6px;
}

/* Иконка транспортной компании (грузовик) */
.method-icon-truck::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 8px;
    background: #e74c3c;
    border-radius: 2px 2px 0 0;
    top: 6px;
    left: 1px;
}

.method-icon-truck::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border: 2px solid #e74c3c;
    border-radius: 50%;
    top: 12px;
    left: 3px;
    box-sizing: border-box;
}

.method-title {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.method-details .price {
    font-size: 14px;
    color: #e74c3c;
    font-weight: 600;
}

.method-details .free {
    color: #27ae60;
}

.delivery-notes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.note {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 5px;
    line-height: 1.4;
}

.note-marker {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 3px;
}

.delivery-dynamic-content {
    margin: 10px 0;
}

.payment-methods {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Адаптивность */
@media (max-width: 768px) {
    .delivery-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .delivery-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .method-header {
        width: 100%;
    }
}

/* Стили для объединенной строки количества и кнопок */
.product-info__row-combined {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: #f8f9fa;
    padding: 12px 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}


@media (max-width: 1450px) {
    .product-info__row-combined {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quantity-combined {
        width: 100%;
    }
    
    .actions-combined {
        width: 100%;
        display: flex;
        gap: 10px;
    }
    
    .product-cart-btn-add-combined {
        flex: 1; /* Растягивается на всё доступное пространство */
        width: auto;
    }
    
    .actions-combined .product-wishlist-btn {
        flex: 0 0 auto; /* Не растягивается, только по содержимому */
        width: auto;
        min-width: 100px;
    }
    .product-gallery-container {
        width:100%;
    }
   

}

@media (max-width: 420px) {
    .product-info__meta-row {
        grid-template-columns: 1fr 1fr 1fr 1fr !important;
        grid-template-rows: auto auto;
        gap: 8px;
    }
    
    /* Первая строка - рейтинг на всю ширину */
    .product-info__meta-row:first-child .product-info__meta-item:nth-child(1) {
        grid-column: 1 / 5 !important;
        grid-row: 1;
    }
    .product-info__meta-row:first-child .product-info__meta-item:nth-child(2) {
        grid-column: 1 / 3 !important;
        grid-row: 2;
    }
    .product-info__meta-row:first-child .product-info__meta-item:nth-child(3) {
        grid-column: 3 / 5 !important;
        grid-row: 2;
    }
    .product-info__meta-row:first-child .product-info__meta-item:nth-child(4) {
        display: none !important;
    }
    
    /* Вторая строка (бренд и наличие) */
    .product-info__meta-row:nth-child(2) .product-info__meta-item:nth-child(1) {
        grid-column: 1 / 3 !important; /* Бренд - 2 ячейки */
        grid-row: 1;
    }
    .product-info__meta-row:nth-child(2) .product-info__meta-item:nth-child(2) {
        grid-column: 3 / 5 !important; /* Значение бренда - 2 ячейки */
        grid-row: 1;
    }
    .product-info__meta-row:nth-child(2) .product-info__meta-item:nth-child(3) {
        grid-column: 1 / 3 !important; /* Наличие - 2 ячейки */
        grid-row: 2;
    }
    .product-info__meta-row:nth-child(2) .product-info__meta-item:nth-child(4) {
        grid-column: 3 / 5 !important; /* Значение наличия - 2 ячейки */
        grid-row: 2;
    }
    
    /* Третья строка (цена) - если есть */
    .product-price-section {
        grid-column: 1 / 5 !important; /* Цена на всю ширину */
    }
    .accordion-content .accordion-inner {
        padding: 0px;
    }
    .product-gallery-container {
        width: 100% !important
    }
    .models-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
        margin-left: 0;
    }

    .rating-container {
        flex-direction: row !important;
    }

    .product-info__meta {
        padding-right: 0px;
        
    }
    
    .product-info__row-combined .tech-specs-section {
        margin: 10px;
    }

    .accordion-button {
        font-size: 15px;
    }

      
    .rating-star {
        font-size: 20px !important; /* увеличиваем размер звезд */
    }
    
    .rating-value {
        font-size: 14px !important; /* увеличиваем размер текста рейтинга */
    }
    
    .rating-count {
        font-size: 13px !important; /* увеличиваем размер текста количества отзывов */
    }

}


.quantity-combined {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.quantity-label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
    white-space: nowrap;
}

.quantity-controls-combined {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-lever-combined {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.qty-lever-combined:hover,
.qty-lever-combined:focus {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.qty-lever-combined:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(52, 152, 219, 0.3);
}

.quantity-input-combined {
    width: 60px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px;
    font-weight: bold;
    height: 32px;
}

.actions-combined {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 2;
}

.product-cart-btn-add-combined {
    background: #28a745;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    /*width: 100%;*/
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    width: auto; /* Ширина по содержимому */
    display: inline-block; /* Не растягивается */
    
}

.product-cart-btn-add-combined:hover,
.product-cart-btn-add-combined:focus {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
    outline: 2px solid #28a745;
    outline-offset: 2px;
    text-decoration: none !important;
}

.product-cart-btn-add-combined:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(40, 167, 69, 0.3);
}

.product-cart-btn-add-combined.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .product-info__row-combined {
        flex-direction: column;
        gap: 12px;
    }
    
    .quantity-combined {
        width: 100%;
        
    }
    
    .actions-combined {
        width: 100%;
    }
    
    .product-cart-btn-add-combined {
        height: 44px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quantity-controls-combined {
        gap: 5px;
    }
    
    .quantity-input-combined {
        width: 50px;
    }
    
    .qty-lever-combined {
        min-width: 28px;
        height: 28px;
        padding: 4px 8px;
    }
}

/* Стили для статической строки с рейтингом */
.rating-stars {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.rating-star {
    color: #ddd;
    font-size: 16px;
}

.review-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.review-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Стили для кнопки Юрлицам */
.business-btn {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(155, 89, 182, 0.3);
}

.business-btn:hover,
.business-btn:focus {
    background: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(155, 89, 182, 0.4);
    outline: 2px solid #9b59b6;
    outline-offset: 2px;
    text-decoration: none;
    color: white;
}

.business-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(155, 89, 182, 0.3);
}

.empty-cell {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для растянутой зеленой кнопки отзыва */
.review-btn-stretched {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    display: block;
}

.review-btn-stretched:hover,
.review-btn-stretched:focus {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

.product-info__meta-row .product-info__meta-item:has(.param-value) + .product-info__meta-item:has(.min-order-info) {
    border-left: 1px solid #dee2e6;
    padding-left: 10px;
}

/* Перегородка перед минимальной суммой заказа */
.product-info__meta-row .product-info__meta-item:has(.param-value) + .product-info__meta-item:has(.min-order-info) {
    border-left: 1px solid #dee2e6;
    padding-left: 10px;
}

.product-info__meta-row:nth-child(2) .product-info__meta-item:nth-child(3) {
    border-left: 1px solid #dee2e6;
    padding-left: 10px;
}

.tech-spec-item:nth-child(odd) {
    border-right: 1px solid #dee2e6;
    padding-right: 8px;
}

/* СТИЛИ ДЛЯ БЛОКА ОТЗЫВОВ */
.product-reviews-section {
    background: whitesmoke;
    border: 1.5px solid #3498db;
    border-radius: 16px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
}

.product-reviews-title {
    text-align: center;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.reviews-summary {
    display: flex;
    align-items: center;
}

.reviews-label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.review-submit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.review-submit-btn:hover,
.review-submit-btn:focus {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

.review-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(40, 167, 69, 0.3);
}



.no-reviews-message {
    text-align: center;
    padding: 10px 10px; /* УВЕЛИЧИЛ PADDING ДЛЯ БОЛЬШЕЙ КЛИКАБЕЛЬНОЙ ОБЛАСТИ */
    color: #7f8c8d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block; /* УБЕДИСЬ ЧТО БЛОК ЗАНИМАЕТ ВСЮ ШИРИНУ */
    width: 100%;
    box-sizing: border-box;
}

.no-reviews-message:hover {
    background: #e9ecef;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.no-reviews-message p {
    margin: 0;
    font-size: 16px;
    pointer-events: none; /* ТЕКСТ НЕ МЕШАЕТ КЛИКУ */
}


/* Стили для существующих отзывов */
.opinions {
    margin: 0;
}

.opinion_cell {
    margin-bottom: 15px;
}

.opinion {
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.opinion .panel-heading {
    background: #3498db !important;
    color: white !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 10px 15px 25px 15px!important;
}

.opinion .panel-heading .left {
    float: left;
    font-weight: 600;
}

.opinion .panel-heading .right {
    float: right;
    font-size: 12px;
    opacity: 0.9;
}

.opinion .panel-body {
    padding: 15px !important;
    background: white !important;
    border-radius: 0 0 8px 8px !important;
}

.opinion_text {
    margin-top: 10px;
    line-height: 1.5;
    color: #34495e;
}

.opinion_text p {
    margin-bottom: 8px;
}

.opinion_text p:last-child {
    margin-bottom: 0;
}

.btn-opinion-show {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-opinion-show:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Скрытые отзывы */
.opinion-prehide {
    display: none;
}

/* Адаптивность для блока отзывов */
@media (max-width: 768px) {
    .product-reviews-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .review-submit-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .product-reviews-title {
        font-size: 20px;
    }
    
    .opinion .panel-heading {
        padding: 8px 12px !important;
    }
    
    .opinion .panel-heading .left,
    .opinion .panel-heading .right {
        float: none;
        display: block;
        text-align: center;
    }
    
    .opinion .panel-heading .right {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .product-reviews-section {
        padding: 10px;
    }
    
    .reviews-header {
        padding: 10px;
    }
    
    .reviews-label {
        font-size: 14px;
    }
    
    .review-submit-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .opinion .panel-body {
        padding: 10px !important;
    }
}

/* Стили для рейтинга звезд */
.rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rating-star {
    font-size: 20px;
    transition: all 0.2s ease;
}

.rating-info {
    display: flex;
    justify-content: center;
}

.rating-star {
    font-size: 16px;
    transition: color 0.3s ease;
}

.rating-star.full {
    color: #ffb400;
    text-shadow: 0 1px 3px rgba(255, 180, 0, 0.4);
}

.rating-star.half {
    background: linear-gradient(90deg, #ffb400 50%, #e0e0e0 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.rating-star.empty {
    color: #e0e0e0;
}

.rating-value {
    font-size: 12px;
    color: #2c3e50;
    font-weight: bold;
    white-space: nowrap;
}

.rating-count {
    font-size: 11px;
    color: #666;
    font-weight: normal;
    margin-left: 2px;
}

.rating-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.rating-link:hover {
    color: #3498db;
    transform: translateY(-1px);
}

.rating-link:hover .rating-value {
    color: #3498db;
}

.rating-link:hover .rating-count {
    color: #666;
}

.accordion-heading {
    all: unset;
    display: block;
    margin: 0;
    padding: 0;
    font: inherit;
}

.accordion-heading .accordion-button {
    width: 100%;
    text-align: left;
    /* остальные стили кнопки остаются прежними */
}

/* Стили для модального окна просмотра изображений */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    
}

.image-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2c3e50;
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 50%, #3d566e 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.image-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-modal__close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* ФИКСИРОВАННЫЙ РАЗМЕР МОДАЛЬНОГО ОКНА */
.image-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2c3e50;
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 50%, #3d566e 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    /* УБИРАЕМ max-width и max-height - теперь фиксированный размер */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Размер будет установлен JavaScript по первой фотке */
}

.image-modal__image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow: hidden;
    /* Контейнер занимает всю доступную высоту */
}

.image-modal__image {
    /* Убираем фиксированные ограничения */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    /* Размер будет установлен JavaScript */
}

.image-modal__navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.image-modal__prev,
.image-modal__next {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    width: 20px;
    height: 20px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-modal__prev:hover,
.image-modal__next:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.image-modal__counter {
    color: white;
    font-size: 14px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

/* ФИКСИРОВАННЫЙ РАЗМЕР МОДАЛЬНОГО ОКНА */
.image-modal__content {
    /* УБИРАЕМ max-width и max-height - теперь размер будет задавать JavaScript */
    min-width: 300px;
    min-height: 300px;
}

.image-modal__image {
    /* Убираем фиксированные ограничения, размер будет задавать JavaScript */
    object-fit: contain;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
    .image-modal__content {
        max-width: 95%;
        max-height: 95%;
    }
    
    
    
    .image-modal__close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 5px;
        right: 5px;
    }
    
    .image-modal__navigation {
        padding: 5px 10px;
        gap: 15px;
    }
    
    .image-modal__prev,
    .image-modal__next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

.simple-hint {
    cursor: help;
    margin-left: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: inline-block;
}

.simple-hint:hover {
    opacity: 1;
}

.spec-values-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.spec-values-list li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.spec-values-list li:last-child {
    margin-bottom: 0;
}




