/* ========================================
   Product Page Styles — Video Section Only
   ======================================== */

/* ─── YouTube Videos Grid ─────────────────────────────────────────────────── */

/* Равномерная сетка видео-карточек */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 4px 0 8px;
}

/* ─── Карточка видео ─── */
.video-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 0; /* Острые углы */
    overflow: hidden;
    background: #0a0a0a;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.video-item:hover {
    border-color: rgba(212, 175, 55, 0.75);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
}

/* ─── Превью 16:9 ─── */
.video-item__thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #111;
    flex-shrink: 0;
}

.video-item__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.78);
}

.video-item:hover .video-item__thumb img {
    transform: scale(1.06);
    filter: brightness(0.55);
}

/* ─── Play-кнопка ─── */
.video-item__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-item__play svg {
    width: 56px;
    height: 40px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.video-item:hover .video-item__play svg {
    transform: scale(1.18);
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.6));
}

.video-item__play-bg {
    fill: rgba(0, 0, 0, 0.68);
    transition: fill 0.3s ease;
}

.video-item:hover .video-item__play-bg {
    fill: rgba(212, 175, 55, 0.9);
}

.video-item__play-arrow {
    fill: #ffffff;
}

/* ─── Подпись под превью ─── */
.video-item__title {
    padding: 10px 14px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(245, 245, 245, 0.72);
    line-height: 1.4;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.video-item:hover .video-item__title {
    color: rgba(244, 212, 124, 0.95);
}

/* ─── Адаптив ─── */
@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .video-item__play svg {
        width: 48px;
        height: 34px;
    }
}

/* ========================================
   Product Dimensions Block — Modal Form
   ======================================== */

.dims-block {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.dims-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dims-image {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.dims-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dims-hint {
    font-size: 13px;
    color: rgba(245, 245, 245, 0.7);
    margin: 0 0 4px 0;
}

.dims-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dims-label {
    font-size: 13px;
    font-weight: 500;
    color: #D4AF37;
}

.dims-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dims-input {
    width: 100%;
    max-width: 200px;
    padding: 10px 14px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #f5f5f5;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 0;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dims-input:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.dims-input::placeholder {
    color: rgba(245, 245, 245, 0.4);
}

/* Скрыть стандартные стрелочки input number */
.dims-input::-webkit-outer-spin-button,
.dims-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.dims-input[type=number] {
    -moz-appearance: textfield;
}

.dims-suffix {
    font-size: 13px;
    color: rgba(245, 245, 245, 0.6);
    white-space: nowrap;
}

/* Адаптив для dims-block */
@media (max-width: 600px) {
    .dims-block {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dims-image-container {
        order: -1;
    }

    .dims-image {
        max-height: 140px;
    }
}

/* ========================================
   Product Price Formatting
   ======================================== */

.product-price .price-prefix:empty {
    display: none;
}

/* ========================================
   Product Description Tab — Elite Formatting
   ======================================== */

/* Ограничение ширины и центрирование для читаемости */
.tab-panel#tab-description {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок внутри таба */
.tab-panel#tab-description .section-title {
    text-align: left;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Параграфы — элитный стиль */
.tab-panel#tab-description p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 1.5em 0;
    letter-spacing: 0.2px;
}

/* Выделение первых слов для premium-эффекта */
.tab-panel#tab-description p:first-of-type {
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* Маркированные списки — золотые маркеры */
.tab-panel#tab-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
}

.tab-panel#tab-description ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Золотой маркер */
.tab-panel#tab-description ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

/* Вложенные списки */
.tab-panel#tab-description ul ul {
    margin-top: 10px;
    margin-left: 10px;
}

.tab-panel#tab-description ul ul li::before {
    width: 6px;
    height: 6px;
    background-color: transparent;
    border: 1px solid var(--accent-gold);
}

/* Нумерованные списки */
.tab-panel#tab-description ol {
    padding-left: 28px;
    margin: 0 0 1.5em 0;
}

.tab-panel#tab-description ol li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 8px;
}

.tab-panel#tab-description ol li::marker {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Секция "Достоинства" — выделение */
.tab-panel#tab-description p:last-of-type + ul {
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(10, 10, 10, 0.5) 100%);
    border-left: 3px solid var(--accent-gold);
    margin-top: 10px;
}

.tab-panel#tab-description p:last-of-type + ul li {
    color: var(--text-primary);
}

/* Визуальные разделители между смысловыми блоками */
.tab-panel#tab-description p + p:empty {
    display: none;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .tab-panel#tab-description {
        padding: 0 15px;
    }

    .tab-panel#tab-description .section-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .tab-panel#tab-description p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .tab-panel#tab-description ul li {
        font-size: 0.95rem;
        padding-left: 24px;
    }

    .tab-panel#tab-description ul li::before {
        width: 6px;
        height: 6px;
        top: 8px;
    }
}
