/* css/product-detail.css */

.prod-page {
    padding: 30px 0 80px;
    background-color: var(--bg-page);
}

/* Хлебные крошки */
.prod-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.prod-breadcrumbs a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.prod-breadcrumbs a:hover {
    color: #1A1917;
}

.prod-breadcrumbs__sep {
    font-size: 11px;
    color: rgba(35, 33, 30, 0.2);
}

.prod-breadcrumbs__current {
    color: #1A1917;
    font-weight: 500;
}

/* 2-колоночная витрина */
.prod-showcase {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: flex-start;
}

/* 1. ГАЛЕРЕЯ (ЛЕВАЯ КОЛОНКА) */
.prod-gallery {
    position: sticky;
    top: 90px;
}

.prod-gallery__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Чистый квадрат 1:1 */
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 10px 30px rgba(35, 30, 20, 0.04);
}

.prod-gallery__main-img-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F3F0EA;
}

.prod-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Миниатюры ракурсов */
.prod-gallery__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.prod-gallery__thumb {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1.5px solid rgba(35, 33, 30, 0.08);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, transform 0.15s;
}

.prod-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-gallery__thumb.is-active,
.prod-gallery__thumb:hover {
    border-color: #D4AF37;
    transform: translateY(-2px);
}

/* 2. ИНФОРМАЦИЯ (ПРАВАЯ КОЛОНКА) */
.prod-info__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.prod-info__sku {
    font-family: monospace;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    color: #9C824A;
    font-weight: 700;
}

.prod-info__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.prod-info__stars { color: #D4AF37; }
.prod-info__score { font-weight: 700; }
.prod-info__reviews { color: var(--text-muted); font-size: 11.5px; }

.prod-info__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: #1A1917;
    margin-bottom: 6px;
}

.prod-info__form {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Блок цены */
.prod-info__price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(35, 33, 30, 0.06);
    margin-bottom: 20px;
}

.prod-info__price {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 600;
    color: #1A1917;
}

.prod-info__old-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.prod-info__tax-note {
    font-size: 11.5px;
    color: #9C9488;
    margin-left: auto;
}

.prod-info__desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #4A463F;
    margin-bottom: 24px;
}

/* Статус склада */
.prod-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(90, 211, 120, 0.1);
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    font-size: 12px;
    color: #24572D;
    margin-bottom: 24px;
}

.prod-stock__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2ECC71;
    box-shadow: 0 0 6px #2ECC71;
}

/* Действия: Счетчик + Кнопка */
.prod-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 36px;
}

.prod-qty {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(35, 33, 30, 0.12);
    border-radius: var(--border-radius-pill);
    padding: 4px;
}

.prod-qty__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.prod-qty__btn:hover { background-color: var(--bg-surface); }

.prod-qty input {
    width: 44px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1A1917;
}

/* Роскошная кнопка покупки */
.prod-btn-buy {
    flex-grow: 1;
    height: 52px;
    background: #1C1B18;
    color: #FFFFFF;
    border-radius: var(--border-radius-pill);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(28, 27, 24, 0.25);
}

.prod-btn-buy:hover {
    background: #D4AF37;
    color: #1A1917;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   АРХИТЕКТУРНЫЕ КЛЕЙМА КАЧЕСТВА (HALLMARKS)
   ========================================================================== */
.prod-hallmarks {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 благородные колонки в один ряд */
    gap: 12px;
    margin-bottom: 28px;
}

.prod-hallmark {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 16px 14px;
    border: 1px solid rgba(212, 175, 55, 0.22); /* Золоченая тонкая грань */
    box-shadow: 0 4px 16px rgba(35, 30, 20, 0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.prod-hallmark:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.08);
}

/* Верхняя строчка плитки: номер N° 01 и искра */
.prod-hallmark__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.prod-hallmark__num {
    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #9C824A; /* Бронзовое золото */
}

.prod-hallmark__spark {
    font-size: 10px;
    color: #D4AF37;
    opacity: 0.8;
}

/* Заголовок клейма */
.prod-hallmark__title {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #1A1917;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

/* Пояснение */
.prod-hallmark__desc {
    font-size: 11px;
    line-height: 1.45;
    color: #787267;
    margin-top: auto; /* Прижимает текст вниз для одинаковой высоты */
}

/* Адаптив для планшетов и мобильных */
@media (max-width: 768px) {
    .prod-hallmarks {
        grid-template-columns: 1fr; /* На смартфонах аккуратные строгие карточки друг под другом */
        gap: 10px;
    }
    .prod-hallmark {
        padding: 14px 16px;
    }
}
/* Досье-аккордеоны */
.prod-accordion {
    border-top: 1px solid rgba(35, 33, 30, 0.08);
}

.prod-accordion__item {
    border-bottom: 1px solid rgba(35, 33, 30, 0.08);
}

.prod-accordion__toggle {
    width: 100%;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: #1A1917;
    cursor: pointer;
    text-align: left;
}

.prod-accordion__icon {
    font-size: 12px;
    color: #9C824A;
    transition: transform 0.3s ease;
}

.prod-accordion__content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Раскрытое состояние */
.prod-accordion__item.is-open .prod-accordion__content {
    max-height: 800px; /* С запасом под любой текст состава */
    opacity: 1;
}

.prod-accordion__item.is-open .prod-accordion__icon {
    transform: rotate(180deg);
}


.prod-accordion__body {
    padding-bottom: 20px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #555047;
}

.prod-accordion__list {
    margin-top: 10px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Блок характеристик упаковки (Досье) */
.prod-specs-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 24px;
}

.prod-specs-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prod-specs-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    gap: 12px;
}

.prod-specs-label {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.prod-specs-val {
    color: #1A1917;
    font-weight: 500;
    text-align: right;
}

@media (max-width: 600px) {
    .prod-specs-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .prod-specs-val {
        text-align: left;
    }
}

/* АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ */
@media (max-width: 992px) {
    .prod-showcase {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .prod-gallery {
        position: static;
    }
    .prod-info__title {
        font-size: 26px;
    }
    .prod-info__price {
        font-size: 28px;
    }
    .prod-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .prod-qty {
        justify-content: center;
    }
}