body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #222;
}

/* PRODUCT PAGE LAYOUT */
.product-page {
    width: 90%;
    max-width: 1200px;
    margin: 140px auto 80px;
    display: flex;
    gap: 60px;
}

/* ===== GALLERY ===== */
.product-gallery {
    flex: 1;
}

/* Контейнер под фото с правильной пропорцией 2:3 */
.product-gallery__main {
    aspect-ratio: 2 / 3;
    max-height: 600px;        /* 🔥 ограничение высоты */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.product-gallery__main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.product-gallery__thumbs {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.product-gallery__thumb {
    width: 60px;
    height: 90px;              /* 2:3 */
    border-radius: 8px;
    background: #fff;
    border: 1px solid transparent;
    object-fit: cover;
    cursor: pointer;
    transition: 0.2s ease;
}


.product-gallery__thumb:hover {
    transform: translateY(-2px);
}

.product-gallery__thumb--active {
    border-color: #222;
}

@media (max-width: 1200px) {
    .product-gallery__main {
        max-height: 620px;
    }
}

@media (max-width: 992px) {
    .product-gallery__main {
        max-height: 560px;
    }
}

@media (max-width: 768px) {
    .product-gallery__main {
        max-height: 480px;
    }
}

@media (max-width: 480px) {
    .product-gallery__main {
        max-height: 360px;
    }
}


/* INFO */
.product-info {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 40px;
    aspect-ratio: 2 / 3;
    max-height: 400px;
}

.product-info__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-info__price {
    font-size: 20px;
    font-weight: 500;
}

.product-info__divider {
    width: 50px;
    height: 2px;
    background: #222;
    margin: 20px 0;
}

.product-info__description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

/* BUTTONS */
.product-info__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    border-radius: 6px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
    border: 1px solid #222;
}

.btn--light {
    background: #fff;
    color: #222;
}

.btn--light:hover {
    background: #222;
    color: #fff;
}

.btn--dark {
    background: #222;
    color: #fff;
}

.btn--dark:hover {
    background: #fff;
    color: #222;
}

.btn--outline {
    background: #fff;
    color: #222;
    border-style: dashed;
}

.btn--outline:hover {
    background: #222;
    color: #fff;
}

/* ALSO */
.also {
    margin: 40px 0 80px;
}

.also__container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.also__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    margin-bottom: 40px;
}

.also__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.also-card__image {
    background: #f5f5f5;
    height: 260px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.also-card__image img {
    height: 220px;
    object-fit: contain;
}

.also-card__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    margin: 18px 0 6px;
}

.also-card__desc {
    font-size: 15px;
    color: #444;
    margin-bottom: 16px;
}

.also-card__btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #222;
    border-radius: 6px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    text-decoration: none;
    color: #222;
    transition: 0.3s ease;
}

.also-card__btn:hover {
    background: #222;
    color: #fff;
}

/* Контейнер цены */
.product-info__price-block {
    display: flex;
    align-items: center;
    gap: 12px; /* расстояние между элементами */
    margin: 10px 0 20px;
}

/* Старая цена */
.product-info__oldprice {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

/* Текущая цена */
.product-info__price {
    font-size: 28px;
    font-weight: 600;
    color: #222;
}

/* Скидка */
.product-info__discount {
    background: #ff3b30;
    color: #fff;
    padding: 3px 8px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}


/* ADAPTIVE */
@media (max-width: 1024px) {
    .product-page {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .product-info {
        padding: 24px;
    }

    .product-info__title {
        font-size: 32px;
    }

    .also__grid {
        grid-template-columns: 1fr;
    }
}


.product-specs {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
    box-sizing: border-box; /* предотвращает переполнение */
    overflow-x: hidden;
}

.product-specs__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #222;
}

/* === GRID 4 COLUMNS === */
.product-specs__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));  /* предотвращает вылазание текста */
    width: 100%;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.spec-name,
.spec-value {
    padding: 14px 18px;
    font-size: 16px;
    border-bottom: 1px solid #e5e5e5;
    word-wrap: break-word;
    overflow-wrap: break-word; /* ломает слишком длинные слова */
}

.spec-value.full-row {
    grid-column: span 3;
}

.spec-name {
    background: #f7f7f7;
    font-weight: 600;
    color: #333;
}

.spec-value {
    background: #fff;
    color: #555;
}



/* === TABLE ADAPTIVE === */
/* === Адаптивные сетки === */

/* Планшеты: делаем 3 колонки (комфортнее чем 2) */
@media (max-width: 992px) {
    .product-specs__grid {
        grid-template-columns: 1fr 1fr;
    }

    .spec-value.full-row {
        grid-column: span 2;
    }

    .spec-name, .spec-value {
        padding: 12px;
        font-size: 14px;
    }
}

/* Телефоны: 2 колонки — Название | Значение */
@media (max-width: 768px) {
    .product-specs__grid {
        grid-template-columns: 1fr 1fr;
    }

    .spec-value.full-row {
        grid-column: span 2;
    }

    .spec-name, .spec-value {
        padding: 12px;
        font-size: 14px;
    }
}

/* Очень маленькие экраны — каждая пара занимает 1 строку */
@media (max-width: 480px) {
    .product-specs__grid {
        grid-template-columns: 1fr;
    }

    .spec-name {
        background: #f5f5f5;
        font-weight: 600;
    }

    .spec-value {
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
    }

    .spec-value.full-row {
        grid-column: span 1;
    }
}



.product_desc_img {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
    box-sizing: border-box; /* предотвращает переполнение */
    overflow-x: hidden;
}

.product_desc_img img {
    width: 100%;
}