/* ==========================================
   СТРАНИЦА ТОВАРА (PRODUCT DETAIL PAGE)
   ========================================== */

   .product-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 80px; /* Отступ сверху под фиксированную шапку */
    position: relative;
    z-index: 10;
}

/* 1. ХЛЕБНЫЕ КРОШКИ */
.breadcrumbs {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-wine);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumbs a:hover {
    opacity: 0.7;
}

.breadcrumbs .sep {
    color: rgba(59, 13, 27, 0.2);
}

.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 700;
}

/* 2. ОСНОВНОЙ КАРКАС (ГАЛЕРЕЯ + ИНФО) */
.product-main-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    background: #FFFFFF;
    border-radius: var(--radius-squircle);
    padding: 40px;
    border: 1px solid rgba(59, 13, 27, 0.06);
    box-shadow: 0 20px 50px rgba(59, 13, 27, 0.04);
    margin-bottom: 40px;
}

/* ЛЕВАЯ КОЛОНКА: ГАЛЕРЕЯ */
.product-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-stickers {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.badge-pill {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.badge-rescued { background: #27AE60; }
.badge-discount { background: var(--accent-red); }
.badge-custom { background: var(--text-wine); }

.gallery-main-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-milk);
    border-radius: 28px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
}

.gallery-main-frame img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(59, 13, 27, 0.12));
    transition: transform 0.4s ease;
}

.gallery-main-frame:hover img {
    transform: scale(1.05);
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.thumb-item {
    width: 68px;
    height: 68px;
    aspect-ratio: 1/1;
    border-radius: 16px;
    background: var(--bg-milk);
    border: 2px solid transparent;
    object-fit: contain;
    padding: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--text-wine);
    transform: translateY(-2px);
}

/* ПРАВАЯ КОЛОНКА: ИНФОРМАЦИЯ */
.product-info-col {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 44px);
    color: var(--text-wine);
    line-height: 1.1;
    margin-bottom: 12px;
}

.product-meta-row {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stock-status {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stock-status.in-stock { color: #27AE60; }
.stock-status.out-of-stock { color: var(--accent-red); }

/* БЛОК СТРАХОВКИ И ЭКО */
.rescued-banner {
    background: #E8F5E9;
    border-left: 4px solid #27AE60;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #1E4620;
    line-height: 1.5;
}

/* БЛОК ЦЕНЫ */
.price-box {
    background: var(--bg-milk);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 13, 27, 0.04);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.price-main {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-wine);
    line-height: 1;
}

.price-old {
    font-size: 20px;
    text-decoration: line-through;
    color: var(--text-light);
}

.price-save-badge {
    background: rgba(217, 56, 56, 0.1);
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
}

.price-unit {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

.price-weight-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
}
/* ==========================================
   ИНТЕРАКТИВНАЯ КНОПКА С СТЕППЕРОМ В КАРТОЧКЕ
   ========================================== */

   .action-container {
    margin-bottom: 24px;
    min-height: 56px;
}

/* 1. Исходная кнопка (Когда товара НЕТ в корзине) */
.btn-add-main {
    width: 100%;
    height: 56px;
    background: var(--text-wine);
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 24px rgba(74, 21, 37, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(74, 21, 37, 0.25);
    background: #2D0A16;
}

/* 2. АКТИВНАЯ КНОПКА (Когда товар ДОБАВЛЕН в корзину) — Меняет цвет на сочно-зеленый! */
.stepper-active-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #27AE60; /* Сочный травяной цвет свежести */
    color: #FFFFFF;
    border-radius: 100px;
    height: 56px;
    padding: 0 8px;
    width: 100%;
    box-shadow: 0 12px 25px rgba(39, 174, 96, 0.28);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stepper-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stepper-btn:hover {
    background: #FFFFFF;
    color: #27AE60;
    transform: scale(1.08);
}

.stepper-text {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.2px;
}

@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.delivery-express-tag {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 3. БЛОК ВЫБОРА СПЕЛОСТИ (ТАКТИЛЬНЫЕ ПЛАШКИ) */
.ripeness-block {
    background: #FFFFFF;
    border-radius: var(--radius-squircle);
    padding: 32px;
    border: 1px solid rgba(59, 13, 27, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
    margin-bottom: 40px;
}

.ripeness-header {
    margin-bottom: 20px;
}

.ripeness-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--text-wine);
    margin-bottom: 6px;
}

.ripeness-header p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.ripeness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ripeness-card-item {
    background: var(--bg-milk);
    border: 1px solid rgba(59, 13, 27, 0.05);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.3s ease;
}

.ripeness-card-item:hover {
    background: #FFFFFF;
    border-color: rgba(59, 13, 27, 0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.ripeness-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
}

.ripeness-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-wine);
    margin-top: 2px;
}

.btn-ripeness-add {
    height: 40px;
    padding: 0 20px;
    background: var(--text-wine);
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-ripeness-add:hover {
    background: var(--accent-gold);
    transform: scale(1.04);
}

.ripeness-stepper-mini {
    display: flex;
    align-items: center;
    background: var(--text-wine);
    color: #FFFFFF;
    border-radius: 100px;
    height: 40px;
    padding: 0 6px;
}

.ripeness-stepper-mini button {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    width: 28px;
    height: 100%;
    cursor: pointer;
}

.ripeness-stepper-mini span {
    font-weight: 700;
    font-size: 13px;
    padding: 0 8px;
}

/* 4. ОПИСАНИЕ И ХАРАКТЕРИСТИКИ */
.details-block {
    background: #FFFFFF;
    border-radius: var(--radius-squircle);
    padding: 40px;
    border: 1px solid rgba(59, 13, 27, 0.06);
    margin-bottom: 40px;
}

.details-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--text-wine);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-milk);
}

.details-description-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.specs-table {
    width: 100%;
    max-width: 650px;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--bg-milk);
}

.specs-table td {
    padding: 14px 0;
    font-size: 14px;
}

.specs-table td.label {
    color: var(--text-light);
    font-weight: 500;
    width: 45%;
}

.specs-table td.value {
    color: var(--text-dark);
    font-weight: 700;
}

/* АДАПТИВ */
@media (max-width: 992px) {
    .product-main-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
    }
    .product-page-container {
        padding-top: 100px;
    }
    .product-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .details-block, .ripeness-block {
        padding: 24px 18px;
        border-radius: 28px;
    }
    .price-main {
        font-size: 32px;
    }
    .btn-add-main, .stepper-active-bar {
        height: 50px;
        font-size: 15px;
    }
}



/* ==========================================
   ЭМОЦИОНАЛЬНЫЕ ФИШКИ И ВАУ-ЭФФЕКТЫ (PRODUCT)
   ========================================== */

/* 1. ПАСПОРТ СВЕЖЕСТИ И ШКАЛА ВКУСА */
.taste-passport-card {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-milk) 100%);
    border-radius: 28px;
    padding: 28px;
    border: 1px solid rgba(59, 13, 27, 0.08);
    margin-bottom: 32px;
}

.passport-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.passport-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--text-wine);
    display: flex;
    align-items: center;
    gap: 8px;
}

.arrival-time-badge {
    background: #E8F5E9;
    color: #27AE60;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.taste-bars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.taste-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.taste-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.taste-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.taste-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--text-wine));
    border-radius: 100px;
    transition: width 1s ease-out;
}

/* 2. ЗАПИСКА ОТ СБОРЩИКА */
.picker-note-card {
    background: #FFFBF0;
    border: 1px dashed var(--accent-gold);
    border-radius: 24px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.picker-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    flex-shrink: 0;
}

.picker-role {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 2px;
}

.picker-quote {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    font-style: italic;
}

/* 3. ГАСТРОНОМИЧЕСКИЕ ПАРЫ ("С чем уплетать") */
.pairing-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pair-pill {
    background: #FFFFFF;
    border: 1px solid rgba(59, 13, 27, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-wine);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* 4. ГАРАНТИЯ ПЕРВОГО УКУСА */
.trust-guarantee-box {
    background: rgba(74, 21, 37, 0.03);
    border: 1px solid rgba(74, 21, 37, 0.08);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.trust-icon {
    font-size: 28px;
}

.trust-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-wine);
}

.trust-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* АДАПТИВ */
@media (max-width: 600px) {
    .taste-bars-grid { grid-template-columns: 1fr; }
    .picker-note-card { flex-direction: column; gap: 10px; }
}


/* ==========================================
   УЛУЧШЕНИЯ ДЛЯ КАРТОЧКИ ТОВАРА (BOUTIQUE STYLE)
   ========================================== */

/* Подиум под главное фото */
.gallery-main-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #F4EFE6 100%); /* Пастельный миндальный градиент */
    border-radius: 32px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(59, 13, 27, 0.04);
}

/* Мягкое свечение за объектом */
.product-aura-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Главная картинка товара */
.gallery-main-frame img {
    position: relative;
    z-index: 2;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

/* Эффект 3D-тени только для PNG без фона */
.gallery-main-frame img.png-shadow {
    filter: drop-shadow(0 22px 30px rgba(59, 13, 27, 0.18));
}

.gallery-main-frame:hover img {
    transform: scale(1.06) translateY(-6px) rotate(1deg);
}

/* Рукописный курсивный акцент как на референсе */
.serif-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #8C6D58;
    font-weight: 400;
}

/* Карточка заметки отборщика */
.picker-note-card {
    background: #F5EAE8; /* Пастельная пудра */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 22px 24px;
    margin-bottom: 28px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 10px 25px rgba(59, 13, 27, 0.03);
}

/* Таб спелости / состояния в стиле бутиковых плашек */
.ripeness-card-item {
    background: #F4EFE6;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.ripeness-card-item:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 13, 27, 0.08);
}


/* ==========================================
   БУТИКОВАЯ ГАЛЕРЕЯ И КНОПКИ
   ========================================== */

/* Миндальный подиум с радиальным свечением */
.gallery-main-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #F4EFE6 100%);
    border-radius: 32px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(59, 13, 27, 0.04);
}

.product-aura-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.gallery-main-frame img {
    position: relative;
    z-index: 2;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

/* 3D-тень только для вырезанных PNG */
.gallery-main-frame img.png-shadow {
    filter: drop-shadow(0 22px 30px rgba(59, 13, 27, 0.18));
}

.gallery-main-frame:hover img {
    transform: scale(1.06) translateY(-6px) rotate(1deg);
}

/* Курсивные подписи в стиле французской кондитерской */
.serif-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #8C6D58;
    font-weight: 400;
}

/* Степпер: сочно-зеленый при добавлении в корзину */
.stepper-active-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #27AE60;
    color: #FFFFFF;
    border-radius: 100px;
    height: 56px;
    padding: 0 8px;
    width: 100%;
    box-shadow: 0 12px 25px rgba(39, 174, 96, 0.28);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stepper-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stepper-btn:hover {
    background: #FFFFFF;
    color: #27AE60;
    transform: scale(1.08);
}

.stepper-text {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.2px;
}

/* Маленький зеленеющий степпер для блоков спелости */
.ripeness-stepper-mini {
    display: flex;
    align-items: center;
    background: #27AE60;
    color: #FFFFFF;
    border-radius: 100px;
    height: 40px;
    padding: 0 6px;
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.2);
}

.ripeness-stepper-mini button {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    width: 28px;
    height: 100%;
    cursor: pointer;
}

.ripeness-stepper-mini span {
    font-weight: 700;
    font-size: 12px;
    padding: 0 8px;
}

@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}




/* ==========================================
   ТАЙМЛАЙН СВЕЖЕСТИ (FRESHNESS TIMELINE)
   ========================================== */
   .freshness-timeline-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F4EFE6 100%);
    border-radius: var(--radius-squircle);
    padding: 36px;
    border: 1px solid rgba(59, 13, 27, 0.06);
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--text-wine);
}

.timeline-badge {
    background: #E8F5E9;
    color: #27AE60;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

/* Линия между шагами */
.timeline-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(59, 13, 27, 0.1);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-time {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-wine);
    margin-bottom: 8px;
    background: #FFFFFF;
    padding: 2px 10px;
    border-radius: 100px;
    border: 1px solid rgba(59, 13, 27, 0.08);
}

.step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid var(--text-wine);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.step-item.active .step-dot {
    background: #27AE60;
    border-color: #27AE60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.2);
}

.step-dot.pulse {
    animation: pulseGlow 2s infinite;
}

.step-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.step-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    max-width: 180px;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

/* ==========================================
   ГАСТРОПАРА / CROSS-SELL
   ========================================== */
.pairing-section {
    margin-bottom: 60px;
}

.pairing-header {
    margin-bottom: 28px;
}

.pairing-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: var(--text-wine);
    margin-bottom: 6px;
}

.pairing-header p {
    font-size: 14px;
    color: var(--text-light);
}

.pairing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pairing-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 20px;
    border: 1px solid rgba(59, 13, 27, 0.06);
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pairing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(59, 13, 27, 0.08);
}

.pairing-img-link {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: var(--bg-milk);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
    overflow: hidden;
}

.pairing-img-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

.pairing-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pairing-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
}

.pairing-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin: 2px 0 8px;
}

.pairing-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.pairing-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pairing-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-wine);
}

.btn-pair-add {
    background: var(--bg-milk);
    color: var(--text-wine);
    border: none;
    padding: 8px 16px;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pair-add:hover {
    background: var(--text-wine);
    color: #FFFFFF;
}

/* АДАПТИВ */
@media (max-width: 992px) {
    .timeline-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .timeline-steps::before { display: none; }
    .pairing-grid { grid-template-columns: 1fr; }
}



/* ==========================================
   СЕКЦИЯ "ЕЩЕ ИЗ ЭТОЙ КАТЕГОРИИ"
   ========================================== */
   .same-category-section {
    margin-top: 60px;
    margin-bottom: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(59, 13, 27, 0.06);
}

.same-category-section .section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.same-category-section .see-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-wine);
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.same-category-section .see-all-link:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .same-category-section {
        margin-top: 40px;
        margin-bottom: 40px;
        padding-top: 24px;
    }
}



/* Область клика для перехода на страницу товара */
.card-click-area {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-click-area:hover .card-name {
    color: var(--text-wine);
}


/* ==========================================
   WILDBERRIES STYLE СТЕППЕР НА КАРТОЧКЕ
   ========================================== */
   .card-action-holder {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Компактный сочно-зеленый степпер на карточке */
.wb-card-stepper {
    display: flex;
    align-items: center;
    background: #27AE60; /* Бренд-зеленый цвет успеха */
    color: #FFFFFF;
    border-radius: 100px;
    height: 36px;
    padding: 0 4px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wb-stepper-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 800;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

.wb-stepper-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.wb-stepper-btn:active {
    transform: scale(0.9);
}

.wb-stepper-count {
    font-size: 13px;
    font-weight: 800;
    padding: 0 8px;
    min-width: 20px;
    text-align: center;
    user-select: none;
}


/* ==========================================
   СТИЛИ ДЛЯ LIVE-GIF ВИДЕО В КАРТОЧКЕ
   ========================================== */

/* Жесткая фиксация видео внутри рамки подиума (никогда не вылезет) */
.gallery-main-frame video,
.gallery-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет рамку без искажения пропорций */
    border-radius: inherit;
    z-index: 2;
    pointer-events: none; /* Чтобы свайпы и клики не блокировались */
}

/* Бейджик Live-видео */
.badge-live-video {
    background: linear-gradient(135deg, #c026d3, #7c3aed);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(192, 38, 211, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Миниатюра с кнопкой Play в списке превью */
.thumb-item-wrapper {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
}

.thumb-video-badge {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    border-radius: 16px;
    pointer-events: none;
    transition: background 0.2s ease;
}

.thumb-item-wrapper:hover .thumb-video-badge {
    background: rgba(15, 23, 42, 0.2);
}


/* ==========================================
   ГАСТРОНОМИЧЕСКИЕ ПАРЫ И ИДЕИ (PAIRINGS)
   ========================================== */
   .pairings-container {
    background: #FAFAF7;
    border: 1px solid rgba(59, 13, 27, 0.07);
    border-radius: 20px;
    padding: 16px 18px;
    margin-bottom: 24px;
}

.pairings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pairings-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-wine);
    background: rgba(59, 13, 27, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
}

.pairings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pairing-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid rgba(59, 13, 27, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    user-select: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pairing-chip .chip-emoji {
    font-size: 15px;
    line-height: 1;
}

.pairing-chip.is-link {
    cursor: pointer;
    border-color: rgba(79, 70, 229, 0.2);
    color: var(--text-wine);
}

.pairing-chip.is-link:hover {
    background: var(--text-wine);
    color: #FFFFFF;
    border-color: var(--text-wine);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 13, 27, 0.15);
}

.pairing-chip.is-link:hover .chip-type-icon {
    opacity: 1;
    transform: scale(1.1);
}

.chip-type-icon {
    font-size: 11px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}
/* Убирает задержку тапа 300ms на смартфонах и запрещает зум по кнопкам */
.btn-add-main,
.stepper-btn,
.btn-ripeness-add,
.wb-stepper-btn,
.add-to-cart-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Фиксация высоты на мобильных, чтобы не скакала верстка */
@media (max-width: 600px) {
    .action-container {
        min-height: 50px;
    }
    .btn-add-main, .stepper-active-bar {
        height: 50px;
        font-size: 15px;
    }
}


/* ==========================================
   ОБНОВЛЕННЫЙ ВЫТЯНУТЫЙ ПОДИУМ И ЗАПОЛНЕНИЕ
   ========================================== */

   .gallery-main-frame {
    width: 100%;
    /* Вытянутый вертикальный формат 3:4 (или 4:5) */
    aspect-ratio: 3 / 4;
    background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #F4EFE6 100%);
    border-radius: 32px;
    padding: 0; /* Убираем внутренний отступ, чтобы картинка доходила до краёв */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(59, 13, 27, 0.04);
    cursor: zoom-in;
}

/* Картинка заполняет всё пространство */
.gallery-main-frame img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Заполняет всё поле без полос */
    object-position: center;
    transition: transform 0.4s ease;
}

/* Если фото без фона (PNG с прозрачностью) — сохраняем аккуратное масштабирование */
.gallery-main-frame.is-png img,
.gallery-main-frame img.png-shadow {
    object-fit: contain;
    padding: 24px;
    filter: drop-shadow(0 22px 30px rgba(59, 13, 27, 0.18));
}

.gallery-main-frame:hover img {
    transform: scale(1.03);
}

/* Кнопка-индикатор зума */
.gallery-zoom-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-wine);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    z-index: 5;
    pointer-events: none;
    transition: all 0.2s ease;
}

.gallery-zoom-badge svg {
    width: 20px;
    height: 20px;
}

.gallery-main-frame:hover .gallery-zoom-badge {
    background: #FFFFFF;
    transform: scale(1.1);
}

/* ==========================================
   LIGHTBOX / ПОПАП С ОРИГИНАЛОМ ФОТО
   ========================================== */

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 6, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain; /* Фото в оригинальных пропорциях без обрезки */
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #FFFFFF;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

@keyframes zoomIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
    .image-modal-close {
        top: -40px;
        right: 4px;
        width: 36px;
        height: 36px;
        font-size: 26px;
    }
}


/* ==========================================
   МОБИЛЬНЫЙ АДАПТИВ (ГАЛЕРЕЯ + КАРТОЧКА + ПОПАП)
   ========================================== */

/* 1. Планшеты и маленькие ноутбуки (до 992px) */
@media (max-width: 992px) {
    .product-page-container {
        padding-top: 90px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-main-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }

    /* На планшетах обложка чуть мягче вытянута */
    .gallery-main-frame {
        aspect-ratio: 4 / 5;
        border-radius: 24px;
    }
}

/* 2. Смартфоны (до 600px) */
@media (max-width: 600px) {
    .product-page-container {
        padding-top: 75px;
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 60px;
    }

    /* Хлебные крошки компактнее */
    .breadcrumbs {
        font-size: 12px;
        margin-bottom: 16px;
        gap: 6px;
    }

    .product-main-card {
        padding: 14px;
        border-radius: 24px;
        margin-bottom: 24px;
        gap: 20px;
    }

    /* Вытянутая вертикальная обложка (3:4 — идеальный формат под экран смартфона) */
    .gallery-main-frame {
        aspect-ratio: 3 / 4;
        border-radius: 20px;
    }

    .gallery-main-frame img {
        border-radius: 20px;
    }

    /* Промо-стикеры компактнее */
    .gallery-stickers {
        top: 10px;
        left: 10px;
        gap: 6px;
    }

    .badge-pill {
        padding: 4px 10px;
        font-size: 10px;
    }

    /* Иконка зума в правом нижнем углу */
    .gallery-zoom-badge {
        bottom: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .gallery-zoom-badge svg {
        width: 17px;
        height: 17px;
    }

    /* Миниатюры под фото */
    .gallery-thumbs {
        gap: 8px;
        margin-top: 10px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch; /* Плавный нативный скролл на iOS */
    }

    .thumb-item {
        width: 58px;
        height: 72px; /* Тоже вертикально вытянутые миниатюры под общий стиль */
        border-radius: 12px;
        padding: 0;
        object-fit: cover;
    }

    .thumb-video-badge {
        border-radius: 12px;
        font-size: 14px;
    }

    /* Заголовок и цена */
    .product-title {
        font-size: 26px;
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .price-box {
        padding: 16px;
        border-radius: 20px;
        margin-bottom: 20px;
    }

    .price-main {
        font-size: 30px;
    }

    /* Кнопки корзины (touch-friendly) */
    .action-container {
        min-height: 50px;
        margin-bottom: 18px;
    }

    .btn-add-main,
    .stepper-active-bar {
        height: 50px;
        font-size: 15px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .stepper-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .stepper-text {
        font-size: 13px;
    }

    /* ==========================================
       ПОЛНОЭКРАННЫЙ ПОПАП НА СМАРТФОНАХ
       ========================================== */
    .image-modal-overlay {
        padding: 0;
        background: rgba(0, 0, 0, 0.95); /* Глубокий темный фон для фокусировки на фото */
    }

    .image-modal-content {
        width: 100vw;
        height: 100dvh; /* dvh учитывает плавающую панель Safari/Chrome */
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
    }

    .image-modal-content img {
        max-width: 95vw;
        max-height: 85dvh;
        border-radius: 12px;
        object-fit: contain;
    }

    /* Кнопка закрытия — фиксированная и крупная для пальца */
    .image-modal-close {
        top: max(16px, env(safe-area-inset-top)); /* Учитывает чёлку/остров на iPhone */
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 24px;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 10001;
    }

    /* Блоки описания и спелости */
    .details-block,
    .ripeness-block,
    .freshness-timeline-card {
        padding: 20px 16px;
        border-radius: 20px;
        margin-bottom: 24px;
    }
}
/* ==========================================
   ФИКСАЦИЯ И СТАБИЛЬНОСТЬ БЛОКА СПЕЛОСТИ
   ========================================== */

   .ripeness-card-item {
    background: #F4EFE6;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px; /* Фиксированная минимальная высота всей плашки */
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.ripeness-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ripeness-price-hint {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.8;
}

/* Фиксированный контейнер для кнопки/степпера */
.ripeness-action-holder {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Кнопка добавления спелости */
.btn-ripeness-add {
    height: 40px;
    padding: 0 16px;
    background: var(--text-wine);
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: all 0.2s ease;
}

.btn-ripeness-add:active {
    transform: scale(0.96);
}

/* Мини-степпер спелости */
.ripeness-stepper-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #27AE60;
    color: #FFFFFF;
    border-radius: 100px;
    height: 40px;
    padding: 0 4px;
    min-width: 125px; /* Чтобы ширина степпера и кнопки была сопоставима */
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    touch-action: manipulation;
    user-select: none;
}

.r-step-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 800;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}

.r-step-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.r-step-btn:active {
    transform: scale(0.9);
}

.r-step-count {
    font-weight: 700;
    font-size: 13px;
    padding: 0 6px;
    white-space: nowrap;
}

/* Мобильная оптимизация для спелости */
@media (max-width: 600px) {
    .ripeness-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ripeness-card-item {
        padding: 12px 14px;
        min-height: 64px;
    }

    .btn-ripeness-add {
        font-size: 12px;
        padding: 0 12px;
        height: 38px;
    }

    .ripeness-stepper-mini {
        height: 38px;
        min-width: 115px;
    }

    .r-step-btn {
        width: 30px;
        height: 30px;
        font-size: 17px;
    }
}
