/* ============================================
   PRODUCT HEADER — крошки + заголовок товара
   ============================================ */

.product-header {
    background: var(--surface-general-primary);
    padding: 24px 0 0;
}

.product-header__container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.product-header__title {
    color: var(--base-neutral-lightest);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

/* ===== АДАПТИВ: ПЛАНШЕТ ===== */
@media (max-width: 1440px) {
    .product-header__title {
        font-size: 24px;
    }
}

/* ===== АДАПТИВ: МОБИЛЬНЫЙ ===== */
@media (max-width: 640px) {
    .product-header {
        padding: 16px 0 0;
    }

    .product-header__title {
        font-size: 20px;
    }
}

/* ============================================
   PRODUCT HERO — Детальная карточка товара
   ============================================ */

.product-hero {
    background: var(--surface-general-primary);
    padding: 48px 0 64px;
}

.product-hero__container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* ===== ГАЛЕРЕЯ ===== */
.product-hero__gallery {
    width: 593px;
    min-width: 593px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 150px;
}

.product-hero__slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 332px;
}

.product-hero__swiper {
    width: 100%;
    height: 100%;
}

.product-hero__swiper .swiper-wrapper {
    height: 100%;
}

.product-hero__slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-hero__image:hover{
    cursor: pointer;
}

/* Бейджи */
.product-hero__badges {
    position: absolute;
    top: 0;
    left: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.product-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-hero__badge--light {
    background: var(--surface-general-accent-secondary);
    color: var(--text-content-tertiary);
}

.product-hero__badge--dark {
    background: var(--surface-general-secondary);
    color: var(--base-neutral-lightest);
}

.product-hero__badge--accent {
    background: var(--surface-general-accent-primary);
    color: var(--text-content-secondary);
}

/* Навигация основного слайдера */
.product-hero__gallery-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 5;
}

.product-hero__pagination {
    display: flex;
    gap: 12px;
}

.product-hero__nav {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: var(--surface-general-accent-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 300ms var(--easing-gentle);
}

.product-hero__nav:hover {
    background: var(--surface-general-secondary);
}


.product-hero__nav .icon {
    width: 24px;
    height: 24px;
    color: var(--surface-general-secondary);
}

.product-hero__nav:hover .icon {
    color: var(--surface-general-accent-primary)
}

/* ===== МИНИАТЮРЫ ===== */
.product-hero__thumbs-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 70px;
}

.product-hero__thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.product-hero__thumbnails::-webkit-scrollbar {
    display: none;
}

.product-hero__thumb {
    flex: 0 0 calc((100% - 48px) / 5);
    min-width: 73px;
    height: 70px;
    padding: 4px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    outline: 1px solid transparent;
    outline-offset: -1px;
    transition: outline-color 300ms var(--easing-gentle);
}

.product-hero__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.product-hero__thumb--active {
    outline-color: var(--border-secondary);
}

/* Fade-элементы */
.product-hero__thumbs-fade {
    position: absolute;
    top: 0;
    width: 109px;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 12px;
    z-index: 2;
    transition: opacity 300ms var(--easing-gentle);
}

.product-hero__thumbs-fade--left {
    left: 0;
    background: linear-gradient(90deg, var(--surface-general-primary) 65%, rgba(57, 74, 90, 0.12) 100%);
    justify-content: flex-start;
}

.product-hero__thumbs-fade--right {
    right: 0;
    background: linear-gradient(270deg, var(--surface-general-primary) 35%, rgba(57, 74, 90, 0.12) 100%);
    justify-content: flex-end;
}

.product-hero__thumbs-fade--hidden {
    opacity: 0;
    pointer-events: none;
}

.product-hero__thumb-nav {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero__thumb-nav .icon {
    color: var(--base-neutral-lightest);
    width: 24px;
    height: 24px;
}

.product-hero__thumb-nav:hover .icon {
    color: var(--surface-general-accent-primary);
}

/* ===== КОНТЕНТ ===== */
.product-hero__content {
    flex: 1;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Описание (обрезанное) */
.product-hero__description {
    position: relative;
    max-height: 142px;
    overflow: hidden;
}

.product-hero__description-text {
    color: #E8E1E1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.product-hero__description-text p {
    margin: 0 0 8px;
}

.product-hero__description-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 4px;
    background: linear-gradient(180deg, rgba(57, 74, 90, 0.12) 0%, var(--surface-general-primary) 65%);
}

.product-hero__read-more {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-link-default);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0;
    transition: color 300ms var(--easing-gentle);
}

.product-hero__read-more:hover {
    color: var(--text-link-hover);
}

/* Мини-характеристики */
.product-hero__specs-preview {
    background: rgba(250, 250, 250, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.product-hero__specs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

.product-hero__specs-title {
    color: var(--base-neutral-lightest);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}

.product-hero__specs-more {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-link-default);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0;
    transition: color 300ms var(--easing-gentle);
}

.product-hero__specs-more:hover {
    color: var(--text-link-hover);
}

.product-hero__specs-separator {
    height: 1px;
    background: #E8E1E1;
}

.product-hero__specs-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-hero__spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(250, 250, 250, 0.12);
}

.product-hero__spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-hero__spec-label {
    color: #E8E1E1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.product-hero__spec-value {
    color: var(--base-neutral-lightest);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
}

/* Цена и кнопки */
.product-hero__actions {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.product-hero__price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.product-hero__price {
    color: var(--base-neutral-lightest);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}

.product-hero__doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-link-default);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 300ms var(--easing-gentle);
}

.product-hero__doc-link:hover {
    color: var(--text-link-hover);
}

.product-hero__doc-link .icon {
    color: currentColor;
}

/* ===== ТАБЫ ===== */
.product-hero__tabs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-hero__tabs-list {
    display: flex;
    gap: 12px;
}

.product-hero__tab {
    height: 56px;
    padding: 4px 12px;
    background: var(--surface-general-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--base-neutral-lightest);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    transition: background-color 300ms var(--easing-gentle);
}

.product-hero__tab:hover {
    background: var(--surface-general-secondary);
}

.product-hero__tab--active {
    background: var(--surface-general-secondary);
}

.product-hero__tab--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--surface-general-accent-primary);
}

/* Контент табов */
.product-hero__tab-content {
    display: none;
}

.product-hero__tab-content--active {
    display: block;
}

/* ===== АККОРДЕОН ===== */
.product-hero__accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-hero__accordion {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-hero__accordion--open {
    background: rgba(250, 250, 250, 0.08);
}

.product-hero__accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(250, 250, 250, 0.12);
    cursor: pointer;
    text-align: left;
}

.product-hero__accordion--open .product-hero__accordion-header {
    border-bottom-color: var(--border-secondary);
}

.product-hero__accordion-title {
    flex: 1;
    color: var(--base-neutral-lightest);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-hero__accordion-icon {
    display: flex;
    transition: transform 300ms var(--easing-gentle);
}

.product-hero__accordion--open .product-hero__accordion-icon {
    transform: rotate(180deg);
}

.product-hero__accordion-icon .icon {
    color: var(--base-neutral-lightest);
}

.product-hero__accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms var(--easing-gentle);
}

.product-hero__accordion--open .product-hero__accordion-body {
    max-height: 2000px;
}

.product-hero__accordion-inner {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Строки доработок (нумерованные) */
.product-hero__mod-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(250, 250, 250, 0.12);
}

.product-hero__mod-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-hero__mod-number {
    color: #E8E1E1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    min-width: 24px;
}

.product-hero__mod-name {
    color: var(--base-neutral-lightest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

/* Полное описание в табе */
.product-hero__full-description {
    color: #E8E1E1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.product-hero__full-description p {
    margin: 0 0 12px;
}

.product-hero__full-description p:last-child {
    margin-bottom: 0;
}

/* ===== FULLSCREEN OVERLAY ===== */
.product-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 16, 16, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.product-fullscreen--active {
    display: flex;
}

.product-fullscreen__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: var(--surface-general-accent-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 300ms var(--easing-gentle);
}

.product-fullscreen__close:hover {
    background: var(--surface-general-accent-primary);
}

.product-fullscreen__close .icon {
    color: var(--surface-general-secondary);
}

.product-fullscreen__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

/* ===== АДАПТИВ: ПЛАНШЕТ (1440) ===== */
@media (max-width: 1440px) {

    .product-hero__gallery {
        width: 480px;
        min-width: 480px;
    }
}

/* ===== АДАПТИВ: ПЛАНШЕТ (1024) ===== */
@media (max-width: 1024px) {
    .product-hero__container {
        flex-direction: column;
        max-width: 900px;
    }

    .product-hero__gallery {
        width: 100%;
        min-width: unset;
    }

    .product-hero__content {
        padding-left: 0;
        gap: 24px;
    }
    .product-hero__gallery{
        position: static;
    }
}

/* ===== АДАПТИВ: МОБИЛЬНЫЙ ===== */
@media (max-width: 640px) {
    .product-hero {
        padding: 24px 0 40px;
    }

    .product-hero__thumb {
        flex: 0 0 calc((100% - 36px) / 4);
        height: 50px;
    }

    .product-hero__thumbs-fade {
        height: 50px;
        width: 80px;
    }

    .product-hero__price {
        font-size: 20px;
    }

    .product-hero__actions {
        gap: 20px;
    }

    .product-hero__price-row {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .product-hero__price-row .button {
        width: 100%;
    }

    .product-hero__tabs-list {
        flex-wrap: wrap;
    }

    .product-hero__tab {
        font-size: 14px;
        height: 48px;
    }

    .product-hero__spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .product-hero__spec-value {
        text-align: left;
    }

    .product-hero__description {
        max-height: 156px;
    }

    .product-hero__description-text {
        font-size: 14px;
    }

    .product-hero__specs-title,
    .product-hero__specs-more,
    .product-hero__read-more {
        font-size: 16px;
    }

    .product-fullscreen {
        padding: 24px;
    }

    .product-fullscreen__close {
        top: 12px;
        right: 12px;
    }
    
}