/* === Отступ под шапку (как на главной) === */
.fh-section-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    padding: 72px 0;
}
.fh-bg-paper { background-color: #FCFAF6; }

/* === Страница товара === */
.farapro-product {
    --primary: #B75A2F;
    --primary-hover: #9d4a24;
    --paper: #FCFAF6;
    --sand: #EBE5DA;
    --text: #1B2637;
    --text-muted: #5F6B7E;
    --border: #EBE5DA;
    --radius: 8px;
    font-family: 'Golos Text', sans-serif;
    color: var(--text);
    line-height: 1.5;
}
.farapro-product .fh-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Хлебные крошки */
.fh-breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.fh-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.fh-breadcrumbs a:hover { color: var(--primary); }

/* Сетка: minmax(0) — колонки не раздуваются от содержимого */
.fh-product-main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* === Галерея === */
/* Метка над фото: терракота + точка */
.fh-gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--primary);
    margin-bottom: 12px;
}
.fh-gallery-eyebrow::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}
.fh-product-gallery {
    position: sticky;
    top: 24px;
    min-width: 0;
    max-width: 100%;
}

.fh-gallery-stage {
    background: #0E1A2B;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: pan-y;
}
.fh-gallery-pane {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.fh-gallery-pane.is-active { display: flex; }
.fh-gallery-pane img,
.fh-gallery-pane video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.fh-gallery-placeholder { color: #9aa7bd; font-size: 14px; }

/* === Миниатюры: горизонтальная прокрутка, не толкают страницу === */
.fh-gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 12px;
    padding: 0 0 6px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    scrollbar-width: thin;
}
.fh-gallery-thumbs::-webkit-scrollbar { height: 4px; }
.fh-gallery-thumbs::-webkit-scrollbar-thumb { background: #D4C8B8; border-radius: 2px; }
.fh-gallery-thumbs::-webkit-scrollbar-track { background: transparent; }

.fh-thumb {
    background: #fff !important;
    border: 2px solid var(--border) !important;
    border-radius: 6px;
    padding: 4px !important;
    cursor: pointer;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    box-sizing: border-box;
    overflow: hidden;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .2s;
}
.fh-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
    -webkit-user-drag: none;
}
.fh-thumb:hover  { background: #fff !important; border-color: #D4C8B8 !important; }
.fh-thumb.is-active,
.fh-thumb:focus,
.fh-thumb:active { background: #fff !important; border-color: #B75A2F !important; outline: none !important; }

/* Видео под галереей */
.fh-gallery-video {
    margin-top: 16px;
    max-width: 100%;
}
.fh-gallery-video video {
    width: 100%;
    border-radius: 8px;
    background: #0E1A2B;
    display: block;
}

/* === Правая колонка === */
.fh-product-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.fh-product-eyebrow {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.fh-product-title {
    font-size: 36px;
    line-height: 1.15;
    margin: 0;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.fh-product-sku {
    font-size: 14px;
    color: var(--text-muted);
    margin: -8px 0 4px;
}
.fh-product-sku strong { color: var(--text); font-weight: 600; }

/* Цена */
.fh-price-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: #fff;
}
.fh-price-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}
.fh-price-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 16px;
}
.fh-price-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fh-price-note { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Кнопки */
.fh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid transparent;
    min-height: 52px;
    box-sizing: border-box;
    font-family: 'Golos Text', sans-serif;
}
.fh-btn--primary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}
.fh-btn--primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
.fh-btn--ghost {
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}
.fh-btn--ghost:hover { background: rgba(183, 90, 47, 0.05); }

/* Кнопки по устройствам */
.fh-btn-mobile { display: none; }
.fh-btn-desktop { display: inline-flex; }
@media (max-width: 767px) {
    .fh-btn-mobile { display: inline-flex; }
    .fh-btn-desktop { display: none; }
}

/* Характеристики */
.fh-specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.fh-specs li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    gap: 12px;
}
.fh-specs li span { color: var(--text-muted); }
.fh-specs li b { font-weight: 600; text-align: right; }

/* Чипсы */
.fh-chips-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}
.fh-chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fh-chip {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    background: var(--paper);
    color: var(--text);
}

/* 3 плитки */
.fh-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 48px 0 24px;
}
.fh-feature {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: #fff;
}
.fh-feature h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.fh-feature p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* Подходит / ставится */
.fh-conditions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}
.fh-condition-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--sand);
}
.fh-condition-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

/* Описание */
.fh-product-content {
    max-width: 820px;
    margin: 0 0 48px;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: break-word;
}
.fh-product-content h2 { font-size: 24px; margin: 32px 0 12px; color: var(--text); }
.fh-product-content h3 { font-size: 19px; margin: 24px 0 8px; color: var(--text); }
.fh-product-content p { margin: 0 0 12px; }
.fh-product-content a { color: var(--primary); }

/* Похожие */
.fh-related { margin: 48px 0 0; }
.fh-related-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.fh-related-head h2 { font-size: 24px; margin: 0; font-weight: 700; color: var(--text); }
.fh-related-head a { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; }
.fh-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.fh-related-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}
.fh-related-card:hover { box-shadow: 0 12px 32px rgba(27, 38, 55, 0.06); }
.fh-related-img {
    background: #0E1A2B;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fh-related-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fh-related-body { padding: 16px; }
.fh-related-brand {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.fh-related-title { font-weight: 600; margin-bottom: 8px; font-size: 15px; line-height: 1.3; }
.fh-related-price { color: var(--primary); font-weight: 700; font-size: 18px; }

/* Перелинковка */
.fh-links {
    margin: 64px 0 0;
    padding: 40px 0 0;
    border-top: 1px solid var(--border);
}
.fh-links h2 { font-size: 20px; margin: 0 0 20px; font-weight: 700; color: var(--text); }
.fh-links-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.fh-links-grid a {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: all .2s;
}
.fh-links-grid a:hover { border-color: var(--primary); color: var(--primary); }

/* === Модалка === */
.fh-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #FCFAF6;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.fh-modal.is-open { display: flex; }
.fh-modal.is-single .fh-modal-arrow { display: none; }
.fh-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(27, 38, 55, 0.15);
}
.fh-modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 36px;
    color: #1B2637;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    z-index: 3;
    background: transparent;
    border: none;
}
.fh-modal-close:hover { color: #5F6B7E; }

.fh-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(235, 229, 218, 0.9) !important;
    border: 1px solid #D4C8B8 !important;
    border-radius: 6px;
    color: #1B2637 !important;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 0 4px 0;
    font-family: 'Golos Text', sans-serif;
    z-index: 2;
    transition: background .2s;
    outline: none !important;
    box-shadow: none !important;
}
.fh-modal-arrow:hover {
    background: #EBE5DA !important;
    border-color: #D4C8B8 !important;
    color: #1B2637 !important;
}
.fh-modal-arrow--prev { left: 16px; }
.fh-modal-arrow--next { right: 16px; }

@media (max-width: 767px) {
    .fh-modal-arrow { display: none; }
}

/* === Запрет горизонтального сдвига страницы === */
.farapro-product { overflow-x: clip; }

/* === Адаптив === */
@media (max-width: 960px) {
    .fh-product-main { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .fh-product-gallery { position: static; }
    .fh-features,
    .fh-conditions-grid { grid-template-columns: minmax(0, 1fr); }
    .fh-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fh-product-title { font-size: 28px; }
    .fh-price-value { font-size: 28px; }
    .fh-section-wrap { padding: 48px 0; }
}
@media (max-width: 560px) {
    .fh-related-grid { grid-template-columns: minmax(0, 1fr); }
    .fh-product-title { font-size: 24px; }
    .fh-price-value { font-size: 26px; }
    .fh-btn { width: 100%; box-sizing: border-box; }
    .fh-price-actions { flex-direction: column; }
    .fh-section-wrap { padding: 32px 0; }
    .farapro-product .fh-container { padding: 0 16px; }
}