/* Стили детальной страницы товара */
.product-detail-page {
    padding: 32px 16px 64px;
    background-color: #ffffff;
}

@media (min-width: 768px) {
    .product-detail-page {
        padding: 48px 24px 80px;
    }
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ВЕРХНИЙ БЛОК: 2 колонки */
.product-detail-top {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

@media (min-width: 900px) {
    .product-detail-top {
        flex-direction: row;
        align-items: flex-start;
        gap: 56px;
    }
}

/* ЛЕВАЯ КОЛОНКА - ГАЛЕРЕЯ */
.product-detail-gallery {
    flex: 1 1 54%;
    width: 100%;
}

.product-gallery-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #ECE7E1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.product-main-swiper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 340px;
}

@media (min-width: 768px) {
    .product-main-swiper {
        aspect-ratio: 1 / 1;
        max-height: 560px;
    }
}

.product-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    height: 100%;
}

.product-slide__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    cursor: zoom-in;
    overflow: hidden;
}

.product-slide__image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.35s ease;
    display: block;
}

.product-slide__image-wrapper:hover .product-slide__image {
    transform: scale(1.04);
}

.product-slide__zoom-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #232323;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
    z-index: 2;
}

.product-slide__zoom-btn:hover {
    background: #ffffff;
    transform: scale(1.08);
}

/* Стрелки листалки */
.product-swiper-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #232323;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-swiper-arrow:hover {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transform: translateY(-50%) scale(1.06);
}

.product-swiper-prev {
    left: 14px;
}

.product-swiper-next {
    right: 14px;
}

.product-swiper-pagination {
    bottom: 12px !important;
}

.product-swiper-pagination .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
    width: 8px;
    height: 8px;
    transition: all 0.2s;
}

.product-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #F4A140;
    transform: scale(1.3);
}

/* Миниатюры (Thumbs) */
.product-thumbs-list {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    overflow-x: auto;
    background: #f7f4ee;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.product-thumb-item {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.product-thumb-item.is-active {
    border-color: #F4A140;
}

.product-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-no-photo {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

/* ПРАВАЯ КОЛОНКА - ИНФО */
.product-detail-info {
    flex: 1 1 46%;
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.product-detail__title {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    color: #232323;
    margin: 0 0 16px;
}

@media (min-width: 768px) {
    .product-detail__title {
        font-size: 38px;
    }
}

.product-detail__price {
    margin-bottom: 24px;
}

.product-detail__price-val {
    font-size: 26px;
    font-weight: 700;
    color: #151515;
}

@media (min-width: 768px) {
    .product-detail__price-val {
        font-size: 30px;
    }
}

.product-detail__short-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #585858;
    margin-bottom: 32px;
}

.product-detail__action {
    margin-top: auto;
}

.product-detail__order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    height: 52px;
    background-color: #F4A140;
    color: #ffffff;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(244, 161, 64, 0.35);
    transition: all 0.2s ease;
}

.product-detail__order-btn:hover {
    background-color: #ea9736;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(244, 161, 64, 0.45);
}

.product-detail__order-btn:active {
    background-color: #e08d2c;
    transform: translateY(0);
}

/* НИЖНИЙ БЛОК - ДЕТАЛЬНОЕ ОПИСАНИЕ */
.product-detail-bottom {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #ECECEC;
}

.product-detail__full-desc {
    font-size: 17px;
    line-height: 1.75;
    color: #333333;
    max-width: 980px;
}

.product-detail__full-desc p {
    margin-bottom: 18px;
}

.product-detail__full-desc p:last-child {
    margin-bottom: 0;
}

/* ЛАЙТБОКС (ZOOM MODAL) */
.product-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-zoom-modal[hidden] {
    display: none;
}

.product-zoom-modal.is-open {
    opacity: 1;
}

.product-zoom-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.product-zoom-modal__container {
    position: relative;
    width: 90vw;
    height: 88vh;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.product-zoom-modal__close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.product-zoom-modal__close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.product-zoom-modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.product-zoom-modal__arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.product-zoom-modal__prev {
    left: -20px;
}

.product-zoom-modal__next {
    right: -20px;
}

@media (min-width: 768px) {
    .product-zoom-modal__prev {
        left: -40px;
    }
    .product-zoom-modal__next {
        right: -40px;
    }
}

.product-zoom-modal__content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-zoom-modal__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
