/* ==========================================
   СТИЛИ КАРТОЧКИ ТОВАРА (PRODUCT SINGLE)
   ========================================== */
.product-single-page {
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
}

/* 1. HERO РАЗВОРОТ */
.product-hero-section {
    position: relative;
    padding-top: clamp(4rem, 7vw, 6.5rem);
    padding-bottom: var(--space-6);
    width: 100%;
}

.product-hero-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.product-hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: -30px !important;
    letter-spacing: 0.02em;
    color: var(--color-heading);
    display: inline-block;
    transform: scaleY(1.15);
    transform-origin: center bottom;
    position: relative;
    z-index: 3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.product-hero-media {
    width: 100%;
    max-width: 950px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.product-hero-glow {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.16) 0%, rgba(26, 51, 36, 0.08) 45%, transparent 75%);
    z-index: -1;
    pointer-events: none;
    filter: blur(50px);
}

.product-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,0,0,1) 30%, rgba(0,0,0,0.7) 65%, transparent 95%);
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,0,0,1) 30%, rgba(0,0,0,0.7) 65%, transparent 95%);
}

.product-hero-overlay {
    position: relative;
    z-index: 4;
    margin-top: -35px;
    max-width: 680px;
    margin-inline: auto;
}

.product-hero-pitch {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text);
    line-height: 1.55;
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.product-hero-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.price-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.price-val {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: 0.02em;
}

/* Стандартные золотые кнопки сайта */
.product-marketplaces-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.btn-marketplace {
    background: var(--gradient-gold);
    color: #121008 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1.8rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base), transform 0.15s ease, box-shadow var(--transition-base);
    box-shadow: 0 4px 16px rgba(229, 168, 35, 0.22);
}

.btn-marketplace:hover {
    background: var(--gradient-gold-hover);
    color: #121008 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(229, 168, 35, 0.35);
}

/* 2. БУЛЛЕТЫ */
.product-bullets-section {
    padding-block: var(--space-5);
}

.product-bullets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.bullet-card {
    background: linear-gradient(180deg, rgba(25, 28, 34, 0.85) 0%, rgba(14, 16, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.bullet-gold-dot {
    font-size: 0.75rem;
    font-weight: 700;
    color: #121008;
    background: var(--gradient-gold);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bullet-text {
    font-size: 0.88rem;
    color: var(--color-heading);
    line-height: 1.4;
    margin: 0;
}

/* 3. СПЕЦИФИКАЦИЯ */
.product-specs-section {
    padding-top: var(--space-3);
    padding-bottom: var(--space-2);
}

.product-specs-wrapper,
.product-description-wrapper {
    max-width: 820px;
    margin-inline: auto;
    background: linear-gradient(180deg, rgba(25, 28, 34, 0.7) 0%, rgba(14, 16, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.product-specs-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-top: 0;
    margin-bottom: var(--space-4);
    text-align: center;
}

.product-specs-table {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: var(--space-3);
    gap: var(--space-4);
}

.spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-name {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}

.spec-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: right;
}

/* 4. ГОРИЗОНТАЛЬНАЯ ГАЛЕРЕЯ */
.product-gallery-section {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
    width: 100%;
}

.product-gallery-scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-2);
    padding-top: var(--space-1);
}

.product-gallery-scroll::-webkit-scrollbar {
    height: 4px;
}
.product-gallery-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.product-gallery-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 10px;
}

.gallery-card {
    flex: 0 0 280px;
    height: 190px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--color-bg-alt);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.gallery-card .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-card-zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(11, 12, 16, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover .gallery-card-zoom-icon {
    opacity: 1;
    transform: scale(1);
    color: var(--color-primary);
}

/* 5. ПОЛНОЕ ОПИСАНИЕ ТОВАРА */
.product-description-section {
    padding-top: var(--space-2);
    padding-bottom: var(--space-4);
}

.product-description-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}

/* 6. НИЖНИЙ CTA-БЛОК */
.product-cta-section {
    padding-top: var(--space-2);
    padding-bottom: var(--space-12);
}

/* МОДАЛЬНОЕ ОКНО LIGHTBOX */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 12, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lightbox-inner {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.product-lightbox.is-open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 860px) {
    .product-hero-title {
        transform: scaleY(1.06);
        margin-bottom: -15px !important;
    }
    .product-hero-overlay {
        margin-top: -20px;
    }
    .product-bullets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    .product-specs-wrapper,
    .product-description-wrapper {
        padding: var(--space-5);
    }
    .gallery-card {
        flex: 0 0 220px;
        height: 155px;
    }
    .gallery-card-zoom-icon {
        opacity: 1;
    }
    .btn-marketplace {
        width: 100%;
    }
}
/* 7. БЛОК РЕКОМЕНДАЦИЙ (ДРУГИЕ ТОВАРЫ) В КАРТОЧКЕ */
.product-related-section {
    padding-top: var(--space-4);
    padding-bottom: var(--space-12);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
@media (max-width: 580px) {
    .product-bullets-grid {
        grid-template-columns: 1fr;
    }
    .gallery-card {
        flex: 0 0 190px;
        height: 135px;
    }
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .spec-desc {
        text-align: left;
    }
}