.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 10px;
}

@media (max-width: 992px) {
    .product-container {
        flex-direction: column;
        padding: 20px;
    }

    .button-primary {
        font-size: 14px;
    }

    .button-secondary {
        font-size: 14px;
    }
}


.work-stages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.work-stages-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}



.work-stages {
    display: flex;
    flex-direction: row;
    gap: 10px;
}



.work-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.work-stage img {
    width: 100px;
    height: 100px;
}


.work-stage p {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

@media (max-width: 992px) {

    .work-stages-container,
    .work-stages {
        flex-direction: column;
    }

    .work-stage {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Стили для галереи */
.product-gallery {
    flex: 1;
    min-width: 0;
}

.main-gallery {
    margin-bottom: var(--grid-gap);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.main-media {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.main-gallery .swiper-button-prev,
.main-gallery .swiper-button-next {
    color: var(--secondary-color);
    background: var(--background-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.main-gallery .swiper-button-prev:after,
.main-gallery .swiper-button-next:after {
    font-size: 20px;
}

.main-gallery .swiper-pagination-bullet {
    background: var(--primary-color);
}

.main-gallery .swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

.thumbnail-gallery {
    margin-top: 10px;
}

.thumb-media {
    width: 120px;
    height: 215px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

@media (max-width: 992px) {
    .thumb-media {
        width: 80px;
        height: 140px;
    }
}

@media (max-width: 576px) {
    .thumb-media {
        width: 60px;
        height: 100px;
    }
}

.thumbnail-gallery .swiper-slide-thumb-active .thumb-media {
    opacity: 1;
    border: 2px solid var(--secondary-color);
}

/* Лайтбокс */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    display: flex;
    /* Центрируем содержимое */
    justify-content: center;
    /* Горизонтальное центрирование */
    align-items: center;
    /* Вертикальное центрирование */
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: 0px;
    font-size: 30px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-gallery .swiper-button-prev,
.lightbox-gallery .swiper-button-next {
    color: var(--background-color);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.lightbox-gallery .swiper-button-prev:after,
.lightbox-gallery .swiper-button-next:after {
    font-size: 20px;
}

.lightbox-gallery .swiper-pagination-bullet {
    background: var(--primary-color);
}

.lightbox-gallery .swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

.lightbox-gallery .swiper-slide {
    text-align: center;
    /* Центрируем изображение в слайде */
}

/* Для мобильных устройств (экраны меньше 768px) */
@media (max-width: 767px) {
    .lightbox-image {
        max-height: 70vh;
        /* Меньшая высота для мобильных */
    }
}


/* Колонка с информацией */
.card-product-info {
    background-color: #fff;
    border-radius: 4px;
    flex: 1;
    min-width: 0;
}


.product-name {
    font-size: 24px;
}


.price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #D5B0A0;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.custom-select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    /* Отступ для стрелочки */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    background-color: #fff;
    color: var(--text-color);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.custom-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(179, 127, 96, 0.2);
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--text-color);
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* При наведении на селект */
.custom-select:hover {
    border-color: var(--secondary-color);
}

/* Дополнительный эффект при открытии селекта*/
.custom-select:focus+.select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.properties {
    text-align: left;
    margin-bottom: 25px;
}

.property {
    display: flex;
    margin-bottom: 2px;
}

.property-name {
    /*font-weight: bold;*/
    color: black;
}

.property-value {
    color: #333;
    margin-left: 10px;
    font-weight: 600;
    -webkit-touch-callout: none;
    /* Предотвращает появление меню на iOS при долгом нажатии */
    -webkit-user-select: none;
    /* Предотвращает выделение текста на iOS */
    user-select: none;
    /* Предотвращает выделение текста на всех устройствах */
    pointer-events: none;
    /* Отключает события указателя, предотвращая обработку как ссылки */
}

#selected-pledge {
    font-weight: bold;
}

#selected-period {
    font-weight: bold;
}

.details {
    margin: 25px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-style: italic;
}

.sizes-section {
    margin: 25px 0;
}

.sizes-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.size-option {
    padding: 8px 15px;
    margin: 5px;
    display: inline-block;
}

#size-form {
    margin-top: 20px;
}

.buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    align-items: center;
    justify-content: space-around;
}

.button {
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    flex: 1;
}

.button-primary {
    background-color: #D5B0A0;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.button-primary:hover {
    background-color: #b37f60;
    transition: all 0.3s ease;
}

/* Базовый стиль кнопки */
.button.button-secondary {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#rent-button {
    max-width: 60%;
}



/* Стили для иконки избранного в карточке товара */
.product-wishlist-icon {
    width: 40px;
    height: 40px;
    background: var(--background-color);
    /* Используем фирменный цвет фона */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.product-wishlist-icon:hover {
    background: #fff;
    border-color: #ff6b6b;
    transform: scale(1.05);
}

.product-wishlist-icon.product-wishlist-active {
    background: #ff6b6b;
    /* Фирменный цвет */
    border-color: #ff6b6b;
}

.product-wishlist-icon.product-wishlist-active img {
    filter: brightness(0) invert(1);
}

.product-wishlist-icon img {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Анимация пульсации при добавлении - фирменные цвета */
@keyframes wishlistPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 100, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 100, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 100, 0);
    }
}

.product-wishlist-icon.wishlist-just-added {
    animation: wishlistPulse 0.5s;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-wishlist-icon {
        width: 36px;
        height: 36px;
    }

    .product-wishlist-icon img {
        width: 18px;
        height: 18px;
    }
}



.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin: 30px 0 20px;
}


.item-description-title {
    color: #b37f60;
    /* text-align: center; */
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #8c7469;
}

.tab.active {
    color: #D5B0A0;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #D5B0A0;
}

.tab-pane {
    display: none;
    padding: 15px 0;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}




/* -------------------------------------- */
/* --- Адаптивность --- */
/* -------------------------------------- */

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

.wishlist-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

@media (max-width: 992px) {
    .catalog-container {
        flex-direction: column;
    }
}


.img-section {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image:hover {
    transform: scale(1.05);
}


/* Стили для радио-кнопок */
.radio-group {
    display: flex;
    flex-direction: row;
    text-align: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 5px 0 5px 0;
}

.radio-option {
    display: flex;
    /* flex: 1; */
    align-items: center;
    cursor: pointer;
    padding: 5px 5px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background-color: #fff;
    /*width: fit-content;*/
    min-width: 150px;
    text-align: center;
    position: relative;
    justify-content: center;
}

/* Стили для НЕВЫБРАННЫХ кнопок */
.radio-option:not(.selected) {
    background-color: #fff;
    border-color: #e0e0e0;
}

.radio-option.selected {
    background-color: rgba(177, 116, 83, 0.1);
    border-color: var(--secondary-color);
}

.radio-option:hover {
    border-color: var(--secondary-color);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.radio-option .price-checkmark {
    display: none;
}

.radio-option label {
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
    /*flex: 1;*/
    margin: 0;
    /*width: 100%;*/
    text-transform: uppercase;
}

/* Стили для активного состояния */
.radio-option:active {
    transform: scale(0.98);
}
