.product-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
}

.product-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

/* Слайдер */
.gallery-container {
    flex: 0 0 401px; /* Запрещаем сжиматься и растягиваться, ровно 401px */
    width: 401px;
    max-width: 401px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.main-img-container {
    position: relative;
    width: 401px; /* Строго 401px */
    height: 541px; /* Строго 541px */
    overflow: hidden;
    border-radius: 10px;
}

.main-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка всегда заполняет контейнер без искажений */
    display: block;
}

/* Миниатюры */
.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Каждая миниатюра */
.thumb {
    width: 70px;
    aspect-ratio: 401 / 541; /* Те же пропорции, что и у главного фото */
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: 0.2s;
}

/* Наведение на миниатюру */
.thumb:hover {
    opacity: 0.9;
}

/* Активная миниатюра */
.thumb.active {
    opacity: 1;
    border-color: #333;
}

/* Кнопки управления */
.controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%); /* Центрируем по вертикали */
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none; /* Чтобы кнопки не мешали кликать по самому фото */
    z-index: 10;
}

/* Кнопки */
.controls button {
    pointer-events: auto; /* Возвращаем кликабельность кнопкам */
    background-color: rgba(255, 255, 255, 0.7); /* Полупрозрачный фон */
    color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Наведение на кнопки */
.controls button:hover {
    background-color: #555;
}

.product-info {
    flex: 0 1 500px; /* Занимает всё оставшееся место после 401px */
    min-width: 0; /* Защита от вылезания длинного текста за пределы блока */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Название */
.product-name {
    font-size: 30px;
    margin: 0;
}

/* Артикул */
.product-article {
    font-size: 14px;
    color: #797878;
    margin-top: -20px;
}

/* Цена */
.product-price {
    font-size: 25px;
    font-weight: bold;
}

/* Общий блок опций */
.product-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-title {
    font-size: 20px;
}

/* Цвета */
.colors {
    display: flex;
    gap: 10px;
}

.color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s ease, outline 0.2s ease;
    display: block;
}

.color-btn.red { background: red; }
.color-btn.darkblue { background: rgb(0, 0, 105); }
.color-btn.black { background: rgb(0, 0, 0); }

/* Выбранный цвет */
.color-btn.active {
    box-shadow: 0 0 0 2px white, 0 0 0 4px black;
    transform: scale(1.1);
}

/* Размеры */
.sizes {
    display: flex;
    gap: 10px;
}

.size-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: #000;
}

/* Выбранный размер */
.size-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Таблица размеров */
.size-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 20px;
}

.size-table th,
.size-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: center;
}

/* Кнопки действий */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: center; /* Выравниваем кнопку и сердечко ровно по центру по вертикали */
    justify-content: flex-start;
    margin-top: 10px;
}

.cart-container {
    width: 280px;
    height: 50px;
    position: relative;
}

/* Общий стиль для кнопки и счетчика */
.add-to-cart-btn, .quantity-controls {
    width: 100%;
    height: 100%;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

/* Легкий эффект при наведении на кнопку корзины */
.add-to-cart-btn:hover {
    background: #a02020;
}

/* Стили счетчика */
.quantity-controls {
    justify-content: space-between;
    padding: 0 15px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
}

.qty-count {
    font-weight: bold;
    font-size: 18px;
}

/* Стили для сердечка */
.wishlist-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-icon {
    font-size: 34px;
    color: #c62828; /* Красный контур */
    transition: transform 0.2s ease, color 0.2s ease;
}

.heart-icon.bxs-heart {
    color: #c62828; /* Закрашенное сердце */
}

/* Обнуление для текста */
.description p, .description ul {
    margin: 0;
    padding: 0;
}

.description {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Контент аккордеона */
.description-content {
    max-height: none;
    overflow: hidden;
}

.description-but {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px !important;
}

/* Список характеристик (тот, что из Split(';')) */
.description-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 15px;
}

.description-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
}

.description-list li::before {
    content: "—"; 
    position: absolute;
    left: 0;
    color: #888;
}

/* Страна и Уход */
.origin-country {
    font-size: 18px;
    margin: 15px 0 !important;
    color: #444;
}

.care-section {
    margin: 20px 0px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.care-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px !important;
}

.care-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.care-icon svg{
    width: 28px !important;
    height: 28px !important;
    display: block;
    filter: grayscale(1);
    opacity: 0.7;
    transition: opacity 0.2s;
}

/* Небольшой интерактив: при наведении иконка становится ярче */
.care-item:hover .care-icon svg{
    opacity: 1;
    filter: grayscale(0);
}

.care-text {
    font-size: 16px;
    color: #555;
}

.badge-new {
    background-color: #000;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 2px; /* Легкое закругление */
    text-transform: uppercase;
    line-height: 1; /* Чтобы бейдж не был слишком высоким */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}