/* ==========================================================================
   Ella Baché — кастомна сторінка товару (OceanWP child theme)
   Порядок файлу = порядок блоків на сторінці:
   0. Токени   1. Основа   2. Хлібні крихти   3. Галерея
   4. Права колонка (назва, мета, ціна, опис, об'єм, кошик, переваги, акордеони)
   5. Результати   6. Активні компоненти   7. Інші товари лінії   8. Відгуки
   9. Спільні кнопки-стрілки   10. Планшет   11. Телефон
   ========================================================================== */


/* ==========================================================================
   0. ТОКЕНИ — змінюєте тут, змінюється на всій сторінці
   ========================================================================== */
.eb-product {
    /* кольори */
    --eb-ink: #141414;          /* основний текст, кнопки, лінії-акценти */
    --eb-text: #3a3a3a;         /* описи, абзаци */
    --eb-muted: #6b6b6b;        /* другорядний текст, підписи */
    --eb-line: #e5e5e5;         /* розділювачі */
    --eb-line-strong: #d1d1d1;  /* рамки полів, порожні зірки */
    --eb-bg: #f2f2f2;           /* сірі плашки, фон фото */
    --eb-white: #fff;

    /* шрифти: 7 розмірів на всю сторінку */
    --eb-font: "Montserrat", sans-serif;
    --eb-fs-xs: 11px;     /* підписи над заголовками, примітки */
    --eb-fs-sm: 12px;     /* мета-рядок, теги, переваги, кнопки */
    --eb-fs-base: 14px;   /* основний текст */
    --eb-fs-md: 16px;     /* опис товару */
    --eb-fs-lg: 20px;     /* підзаголовки (h3) */
    --eb-fs-xl: 28px;     /* назва товару, заголовки секцій (h2) */
    --eb-fs-2xl: 40px;    /* акценти: заголовок «Результатів», середня оцінка */
    --eb-track-caps: .12em;     /* кнопки, акордеони */
    --eb-track-eyebrow: .2em;   /* підписи над заголовками */
    --eb-track-title: .04em;    /* назва товару */

    /* відступи: крок 4px */
    --eb-s1: 4px;  --eb-s2: 8px;  --eb-s3: 12px; --eb-s4: 16px;
    --eb-s5: 24px; --eb-s6: 32px; --eb-s7: 48px; --eb-s8: 64px; --eb-s9: 96px;
    --eb-section: 96px;     /* відступ секцій зверху/знизу */
    --eb-container: 1360px;
    --eb-gutter: 40px;      /* поля сторінки зліва/справа */
}
@media (max-width: 980px) { .eb-product { --eb-section: 72px; --eb-gutter: 32px; } }
@media (max-width: 640px) { .eb-product { --eb-section: 48px; --eb-gutter: 16px; } }


/* ==========================================================================
   1. ОСНОВА
   ========================================================================== */
body.single-product .eb-product {
    font-size: var(--eb-fs-base);
    color: var(--eb-ink);
    background: var(--eb-white);
}
/* шрифт однаковий скрізь, включно з кнопками й полями форм */
.eb-product,
.eb-product button,
.eb-product input,
.eb-product select,
.eb-product textarea { font-family: var(--eb-font) !important; }

.eb-product,
.eb-product *,
.eb-product *::before,
.eb-product *::after { box-sizing: border-box; }

/* заголовки не залежать від глобального h3 { color:#fff } у «Додатковому CSS» */
.eb-product h1,
.eb-product h2,
.eb-product h3 { color: var(--eb-ink); }

/* контейнер: ширина 1360px, поля 40 / 32 / 16px */
.eb-product .eb-product__container,
.eb-product .eb-results__container,
.eb-product .eb-related-line__container {
    width: 100%;
    max-width: var(--eb-container);
    margin: 0 auto;
    padding-left: var(--eb-gutter);
    padding-right: var(--eb-gutter);
}
.eb-product .eb-product__container { padding-top: var(--eb-s4); }

/* посилання в текстах (опис, акордеони, результати, активні компоненти, знижка, відгуки):
   той самий розмір, що й текст навколо, — без 17px з глобальних стилів Elementor */
.eb-product .eb-product__description a,
.eb-product .eb-accordion__content a,
.eb-product .eb-results__intro a,
.eb-product .eb-results__note a,
.eb-product .eb-actives__copy a,
.eb-product .eb-actives__booster a,
.eb-product .eb-actives__notes a,
.eb-product .eb-benefit__popup a,
.eb-product .eb-reviews__body .description a {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: var(--eb-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease;
}
.eb-product .eb-product__description a:hover,
.eb-product .eb-accordion__content a:hover,
.eb-product .eb-results__intro a:hover,
.eb-product .eb-results__note a:hover,
.eb-product .eb-actives__copy a:hover,
.eb-product .eb-actives__booster a:hover,
.eb-product .eb-actives__notes a:hover,
.eb-product .eb-benefit__popup a:hover,
.eb-product .eb-reviews__body .description a:hover { color: var(--eb-muted); }

/* підпис над заголовком — один стиль для всієї сторінки */
.eb-product .eb-product__category,
.eb-product .eb-results__eyebrow,
.eb-product .eb-actives__eyebrow,
.eb-product .eb-actives__label,
.eb-product .eb-reviews__eyebrow,
.eb-product .eb-related-line__eyebrow {
    font-size: var(--eb-fs-xs) !important;
    font-weight: 600 !important;
    line-height: 1.4;
    letter-spacing: var(--eb-track-eyebrow) !important;
    text-transform: uppercase;
    color: var(--eb-muted) !important;
}

/* заголовок секції (h2) */
.eb-product .eb-actives__title,
.eb-product .eb-reviews__heading,
.eb-product .eb-related-line__title {
    margin: 0 !important;
    font-size: var(--eb-fs-xl) !important;
    font-weight: 300 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--eb-ink);
}


/* ==========================================================================
   2. ХЛІБНІ КРИХТИ
   ========================================================================== */
.eb-product .eb-product__breadcrumbs {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eb-s2);
    float: none !important;
    position: static !important;
    width: 100% !important;
    margin: 0 0 var(--eb-s5) !important;
    padding: 0 !important;
    font-size: var(--eb-fs-sm) !important;
    line-height: 1.6;
    color: var(--eb-muted);
}
.eb-product .eb-product__breadcrumbs a {
    font-size: inherit !important;   /* тема дає посиланням 17px */
    color: var(--eb-muted);
    text-decoration: none;
}
.eb-product .eb-product__breadcrumbs [aria-current] { color: var(--eb-ink); }


/* ==========================================================================
   3. ВЕРХНІЙ БЛОК І ГАЛЕРЕЯ
   ========================================================================== */
.eb-product .eb-product__top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--eb-s8);
    align-items: start;
}
.eb-product .eb-gallery,
.eb-product .eb-product__details { min-width: 0; }

.eb-product .eb-gallery__main {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--eb-bg);
}
.eb-product .eb-gallery__slide { display: none; width: 100%; height: 100%; }
.eb-product .eb-gallery__slide.is-active { display: flex; align-items: center; justify-content: center; }
.eb-product .eb-gallery__image,
.eb-product .eb-gallery__main > .woocommerce-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* стрілки галереї: вигляд — у п. 9, тут лише положення */
.eb-product .eb-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%) !important;
    outline: none;
}
.eb-product .eb-gallery__arrow--prev { left: var(--eb-s4); }
.eb-product .eb-gallery__arrow--next { right: var(--eb-s4); }
.eb-product .eb-gallery__arrow::before,
.eb-product .eb-gallery__arrow::after { content: none !important; }   /* іконки OceanWP */

/* мініатюри: стільки колонок, скільки фото */
.eb-product .eb-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: var(--eb-s3);
    margin-top: var(--eb-s3);
    overflow-x: auto;
}
.eb-product .eb-gallery__thumb {
    aspect-ratio: 1;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
    background: var(--eb-bg) !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    cursor: pointer;
}
.eb-product .eb-gallery__thumb.is-active { border-color: var(--eb-ink) !important; }
.eb-product .eb-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* повне відео: кнопка ▶ по центру, після запуску ховається */
.eb-product .eb-gallery__slide { position: relative; }
.eb-product .eb-gallery__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 0 !important;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, .92) !important;
    color: var(--eb-ink) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .12) !important;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}
.eb-product .eb-gallery__play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--eb-white) !important; }
.eb-product .eb-gallery__play:focus-visible { outline: 2px solid var(--eb-ink); outline-offset: 3px; }
.eb-product .eb-gallery__play svg { width: 30px; height: 30px; margin-left: 3px; fill: currentColor; }
.eb-product .eb-gallery__slide.is-playing .eb-gallery__play { display: none; }
@media (max-width: 640px) {
    .eb-product .eb-gallery__play { width: 60px; height: 60px; }
    .eb-product .eb-gallery__play svg { width: 26px; height: 26px; }
}

/* відео в галереї: так само, як фото; на мініатюрі — значок «відео» */
.eb-product video.eb-gallery__video { background: transparent; }
.eb-product .eb-gallery__thumb--video { position: relative; }
.eb-product .eb-gallery__thumb--video::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--eb-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 7.5v9l7-4.5z' fill='%23141414'/%3E%3C/svg%3E") center / 14px no-repeat;
    box-shadow: 0 0 0 1px var(--eb-line);
}


/* ==========================================================================
   4. ПРАВА КОЛОНКА
   Ритм: 8px усередині групи · 16px між елементами · 24px між блоками
   ========================================================================== */
.eb-product .eb-product__details > * { margin-top: 0 !important; }

/* --- лінія, назва, англійська назва --- */
.eb-product .eb-product__category { margin-bottom: var(--eb-s2) !important; }

.eb-product .eb-product__title {
    margin: 0 0 var(--eb-s2) !important;
    font-size: var(--eb-fs-xl) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: var(--eb-track-title);
    text-transform: uppercase;
    color: var(--eb-ink);
}

.eb-product .eb-product__subtitle-en {
    margin-bottom: var(--eb-s4) !important;
    font-size: var(--eb-fs-base);
    line-height: 1.5;
    letter-spacing: .04em;
    color: var(--eb-muted);
}

/* --- мета-рядок: рейтинг · відгуки · артикул · наявність --- */
.eb-product .eb-product__meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eb-s2) var(--eb-s4);
    margin-bottom: var(--eb-s4) !important;
    font-size: var(--eb-fs-base);
    line-height: 1.4;
    color: var(--eb-muted);
}
.eb-product .eb-product__rating { display: inline-flex; align-items: center; gap: var(--eb-s3); margin: 0; }
.eb-product .eb-product__rating .star-rating {
    float: none !important;
    margin: 0 !important;
    font-size: var(--eb-fs-base) !important;
    color: var(--eb-ink);
}
.eb-product .eb-product__rating .star-rating::before { color: var(--eb-line-strong); }
.eb-product .eb-product__rating-number { font-size: var(--eb-fs-base); font-weight: 600; color: var(--eb-ink); }

.eb-product .eb-product__reviews-link {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: var(--eb-muted);
    text-decoration: none;
    text-underline-offset: 2px;
}
.eb-product .eb-product__reviews-link:hover,
.eb-product .eb-product__reviews-link:focus {
    color: var(--eb-ink);
    text-decoration: underline;
    background: transparent;
}

.eb-product .eb-product__sku { color: var(--eb-muted); }

.eb-product .eb-product__stock { display: inline-flex; align-items: center; gap: var(--eb-s2); color: var(--eb-ink); }
.eb-product .eb-product__stock-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--eb-ink);
}
.eb-product .eb-product__stock--out { color: var(--eb-muted); }
.eb-product .eb-product__stock--out .eb-product__stock-dot { background: var(--eb-line-strong); }

/* --- ціна: нова 32px жирна, стара 75% від неї, сіра --- */
.eb-product .eb-product__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--eb-s1) 10px;
    margin-bottom: var(--eb-s5) !important;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--eb-ink);
}
.eb-product .eb-product__price .amount { font-weight: 600; }
.eb-product .eb-product__price ins { text-decoration: none; background: none; }
.eb-product .eb-product__price del {
    margin: 0 !important;
    font-size: .75em !important;
    font-weight: 400 !important;
    color: var(--eb-muted) !important;
}
.eb-product .eb-product__price del .amount,
.eb-product .eb-product__price del bdi {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}
/* прихований текст «Початкова ціна…» не займає місця в рядку */
.eb-product .eb-product__price .screen-reader-text { position: absolute !important; }

/* --- опис --- */
.eb-product .eb-product__description {
    margin-bottom: var(--eb-s5) !important;
    font-size: var(--eb-fs-md);
    line-height: 1.7;
    color: var(--eb-text);
}
.eb-product .eb-product__description p { margin: 0 0 var(--eb-s3); }
.eb-product .eb-product__description p:last-child { margin-bottom: 0; }

/* --- об'єм --- */
.eb-product .eb-product__volume {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eb-s4);
    margin-bottom: var(--eb-s5) !important;
}
.eb-product .eb-product__volume-label {
    margin: 0;
    font-size: var(--eb-fs-sm) !important;
    font-weight: 600 !important;
    letter-spacing: var(--eb-track-caps) !important;
    text-transform: uppercase;
    white-space: nowrap;
}
.eb-product .eb-product__volume-values { display: flex; flex-wrap: wrap; align-items: center; gap: var(--eb-s2); }
.eb-product .eb-product__volume-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 44px;
    padding: var(--eb-s2) 14px;
    border: 1px solid var(--eb-ink);
    font-size: var(--eb-fs-base);
    line-height: 1.2;
}

/* --- кошик --- */
.eb-product .eb-product__cart { margin-bottom: var(--eb-s5) !important; }
.eb-product .eb-product__cart form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--eb-s3);
    margin: 0 !important;
}
.eb-product .eb-product__cart .quantity { margin: 0 !important; }
.eb-product .eb-product__cart .single_add_to_cart_button,
.eb-product .eb-product__cart .single_add_to_cart_button:hover {
    flex: 1 1 180px;
    min-height: 56px;
    padding: 14px 22px !important;
    background: var(--eb-ink) !important;
    color: var(--eb-white) !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: var(--eb-fs-sm) !important;
    font-weight: 600 !important;
    letter-spacing: var(--eb-track-caps) !important;
    text-transform: uppercase;
}
.eb-product .eb-product__cart .single_add_to_cart_button { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; }
/* «✓ Додано в кошик» */
.eb-product .eb-product__cart.is-added .single_add_to_cart_button::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* посилання «Переглянути кошик», яке WooCommerce дописує після кнопки, — не показуємо */
.eb-product .eb-product__cart .added_to_cart { display: none !important; }
/* поки додається — текст напівпрозорий, кнопку не натиснути вдруге */
.eb-product .eb-product__cart .single_add_to_cart_button.is-loading { opacity: .6; pointer-events: none; }
.eb-product .eb-product__cart .single_add_to_cart_button.is-loading::after,
.eb-product .eb-product__cart .single_add_to_cart_button.added::after { display: none !important; }
.eb-product .eb-product__cart form.variations_form { display: block; }
.eb-product .eb-product__cart .variations { width: 100%; margin-bottom: var(--eb-s4); }
.eb-product .eb-product__cart .variations select { min-height: 44px; }
.eb-product .eb-product__cart .single_variation_wrap { margin-top: 14px; }

/* --- переваги --- */
.eb-product .eb-product__benefits {
    display: flex;
    flex-direction: column;
    gap: var(--eb-s2);
    margin-bottom: 0 !important;
    padding: var(--eb-s4) 0;
    border-top: 1px solid var(--eb-line);
    border-bottom: 1px solid var(--eb-line);
}
.eb-product .eb-benefit,
.eb-product .eb-benefit--discount summary {
    display: flex;
    align-items: center;
    gap: var(--eb-s3);
    min-height: 32px;
    font-size: var(--eb-fs-sm);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: .06em;   /* менше за кнопки — рядки довгі */
    color: var(--eb-ink);
    text-decoration: none;
}
.eb-product .eb-benefit__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    color: var(--eb-ink);
}
.eb-product .eb-benefit__icon svg { display: block; width: 20px; height: 20px; }

/* «Постійна знижка» — розкривний блок */
.eb-product .eb-benefit--discount { display: block; min-height: 0; overflow: hidden; }
.eb-product .eb-benefit--discount summary { padding: 0; list-style: none; cursor: pointer; }
.eb-product .eb-benefit--discount summary::-webkit-details-marker { display: none; }
.eb-product .eb-benefit__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-left: auto;
    border: none !important;
}
.eb-product .eb-benefit__chevron::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .3s ease;
}
.eb-product .eb-benefit--discount[open] .eb-benefit__chevron::before { transform: rotate(180deg); }

.eb-product .eb-benefit__popup {
    position: static;
    width: 100%;
    max-width: none;
    margin: var(--eb-s3) 0 var(--eb-s1);
    padding: var(--eb-s4) var(--eb-s5);
    background: var(--eb-bg);
    border-radius: 0;
    box-shadow: none;
    font-size: var(--eb-fs-base) !important;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
    color: var(--eb-ink);
}
.eb-product .eb-benefit__popup p { margin: 0 0 var(--eb-s3); font-weight: 400; letter-spacing: 0; }
.eb-product .eb-benefit__popup p:last-child { margin-bottom: 0; }
.eb-product .eb-benefit__popup strong { font-weight: 600; }
.eb-product .eb-benefit__note { font-size: var(--eb-fs-sm) !important; }

/* --- акордеони «Спосіб використання», «Склад» --- */
.eb-product .eb-product__accordions { margin-top: 0 !important; }
.eb-product .eb-accordion { border-bottom: 1px solid var(--eb-line); }
.eb-product .eb-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0;
    list-style: none;
    cursor: pointer;
    font-size: var(--eb-fs-sm) !important;
    font-weight: 600 !important;
    letter-spacing: var(--eb-track-caps) !important;
    text-transform: uppercase;
}
.eb-product .eb-accordion summary::-webkit-details-marker { display: none; }
.eb-product .eb-accordion summary::after { content: '+'; font-size: 20px; font-weight: 300; }
.eb-product .eb-accordion[open] summary::after { content: '−'; }
.eb-product .eb-accordion__content {
    padding: 0 0 var(--eb-s5);
    font-size: var(--eb-fs-base) !important;
    line-height: 1.7;
    color: var(--eb-text);
}
.eb-product .eb-accordion__content p:last-child { margin-bottom: 0; }


/* ==========================================================================
   5. РЕЗУЛЬТАТИ
   ========================================================================== */
.eb-product .eb-results {
    margin: 0 !important;
    padding: var(--eb-section) 0 !important;
    border-bottom: 1px solid var(--eb-line);
    background: var(--eb-white);
}
.eb-product .eb-results__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--eb-s4);
    text-align: center;
}
.eb-product .eb-results__eyebrow { margin: 0; }
.eb-product .eb-results__title {
    max-width: 820px;
    margin: 0 !important;
    font-size: var(--eb-fs-2xl) !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    color: var(--eb-ink);
}
.eb-product .eb-results__intro {
    max-width: 820px;
    font-size: var(--eb-fs-md);
    line-height: 1.7;
    text-align: center;
    color: var(--eb-text);
}
.eb-product .eb-results__intro p { margin: 0 0 10px; }
.eb-product .eb-results__intro p:last-child { margin-bottom: 0; }

.eb-product .eb-results__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--eb-s2);
    max-width: 860px;
    margin-top: var(--eb-s2);
}
.eb-product .eb-results__tag {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    background: var(--eb-bg);
    font-size: var(--eb-fs-sm) !important;
    letter-spacing: .06em;
}

.eb-product .eb-results__grid {
    display: grid;
    grid-template-columns: repeat(var(--eb-result-count, 4), minmax(0, 1fr));
    gap: var(--eb-s5);
    margin-top: var(--eb-s8);
}
.eb-product .eb-results__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: var(--eb-s2);
    text-align: center;
}
.eb-product .eb-results__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: var(--eb-s1);
    width: 200px;
    height: 200px;
}
.eb-product .eb-results__visual--highlight { gap: var(--eb-s2); background: var(--eb-bg); }
.eb-product .eb-results__progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
/* великі цифри — графіка, свій розмір */
.eb-product .eb-results__value { font-size: 56px; font-weight: 300; line-height: 1; }
.eb-product .eb-results__up { font-size: 34px; font-weight: 300; line-height: 1; }
.eb-product .eb-results__days { font-size: var(--eb-fs-xs); letter-spacing: var(--eb-track-eyebrow); color: var(--eb-muted); }
.eb-product .eb-results__text {
    max-width: 240px;
    margin: 0;
    font-size: var(--eb-fs-base) !important;
    line-height: 1.7;
}
.eb-product .eb-results__note {
    margin-top: var(--eb-s7);
    padding-top: var(--eb-s5);
    border-top: 1px solid var(--eb-line);
    font-size: var(--eb-fs-xs);
    line-height: 1.6;
    color: var(--eb-muted);
}


/* ==========================================================================
   6. АКТИВНІ КОМПОНЕНТИ — на всю ширину екрана, текст по краю контейнера
   ========================================================================== */
.eb-product .eb-actives {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    background: var(--eb-white);
    color: var(--eb-ink);
}
.eb-product .eb-actives__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--eb-s6);
    min-width: 0;
    /* лівий край тексту = лівий край контейнера */
    padding: var(--eb-section) clamp(32px, 5vw, 100px) var(--eb-section)
             max(var(--eb-gutter), calc((100vw - var(--eb-container)) / 2 + var(--eb-gutter)));
}
.eb-product .eb-actives__intro { display: flex; flex-direction: column; gap: var(--eb-s3); }
.eb-product .eb-actives__group {
    display: flex;
    flex-direction: column;
    gap: var(--eb-s3);
    padding-top: var(--eb-s5);
    border-top: 1px solid var(--eb-ink);
}
.eb-product .eb-actives__core-title {
    margin: 0 !important;
    font-size: var(--eb-fs-lg) !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--eb-ink);
}
.eb-product .eb-actives__copy,
.eb-product .eb-actives__booster {
    margin: 0;
    font-size: var(--eb-fs-base) !important;
    line-height: 1.7;
    color: var(--eb-text);
}
.eb-product .eb-actives__copy p { margin: 0 0 10px; }
.eb-product .eb-actives__copy p:last-child { margin-bottom: 0; }
.eb-product .eb-actives__evidence { display: flex; flex-direction: column; gap: var(--eb-s2); margin-top: 6px; }
/* підзаголовок усередині блоку, напр. «Науково підтверджена ефективність» */
.eb-product .eb-actives__sublabel {
    font-size: var(--eb-fs-sm);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: var(--eb-track-caps);
    text-transform: uppercase;
    color: var(--eb-ink);
}
.eb-product .eb-actives__booster strong { font-weight: 600; color: var(--eb-ink); }
.eb-product .eb-actives__notes {
    display: flex;
    flex-direction: column;
    gap: var(--eb-s1);
    font-size: var(--eb-fs-xs);
    line-height: 1.6;
    color: var(--eb-muted);
}
.eb-product .eb-actives__natural { font-size: var(--eb-fs-sm) !important; font-style: italic; }
.eb-product .eb-actives__media { position: relative; min-height: 0; overflow: hidden; }
.eb-product .eb-actives__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ==========================================================================
   7. ІНШІ ТОВАРИ ЦІЄЇ ЛІНІЇ — карусель (картки стилізує сніпет каталогу)
   ========================================================================== */
.eb-product .eb-related-line {
    padding: var(--eb-section) 0;
    border-top: 1px solid var(--eb-line);
    background: var(--eb-white);
}
.eb-product .eb-related-line__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--eb-s5);
    margin: 0 0 var(--eb-s6);
}
.eb-product .eb-related-line__intro { display: flex; flex-direction: column; gap: var(--eb-s3); min-width: 0; }
.eb-product .eb-related-line__navigation { display: flex; flex-shrink: 0; gap: var(--eb-s2); }
.eb-product .eb-related-line__navigation[hidden] { display: none; }

.eb-product .eb-related-line__viewport {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}
.eb-product .eb-related-line__viewport::-webkit-scrollbar { display: none; }
.eb-product .eb-related-line__viewport:focus-visible { outline: 2px solid var(--eb-ink); outline-offset: 4px; }

/* сітка каталогу (6/3/2, 4/2/2) тут не діє — потрібна стрічка */
.eb-product .eb-related-line ul.products.eb-related-line__products {
    --eb-card-gap: 20px;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--eb-card-gap) !important;
    grid-template-columns: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
.eb-product .eb-related-line ul.products.eb-related-line__products::before,
.eb-product .eb-related-line ul.products.eb-related-line__products::after { display: none !important; }
.eb-product .eb-related-line ul.products.eb-related-line__products > li.product {
    flex: 0 0 calc((100% - 3 * var(--eb-card-gap)) / 4) !important;
    width: calc((100% - 3 * var(--eb-card-gap)) / 4) !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    scroll-snap-align: start;
}


/* ==========================================================================
   8. ВІДГУКИ
   ========================================================================== */
.eb-product .eb-reviews {
    padding: var(--eb-section) 0 !important;
    border-top: 1px solid var(--eb-line);
    background: var(--eb-white);
    color: var(--eb-ink);
}
.eb-product .eb-reviews__container {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: var(--eb-s8);
    align-items: start;
    max-width: var(--eb-container);
    margin: auto;
    padding: 0 var(--eb-gutter);
}
.eb-product .eb-reviews__eyebrow { margin: 0 0 var(--eb-s3) !important; }
.eb-product .eb-reviews__heading { margin: 0 0 var(--eb-s4) !important; }
.eb-product .eb-reviews__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.eb-product .eb-reviews__average { font-size: var(--eb-fs-2xl); font-weight: 300; line-height: 1; }
.eb-product .eb-reviews__rating .star-rating { float: none; margin: 0; color: var(--eb-ink); }

/* зірки скрізь на сторінці: заповнені чорні, порожні світло-сірі
   (тема OceanWP фарбує заповнені в жовтий через .star-rating span::before) */
.eb-product .star-rating::before { color: var(--eb-line-strong) !important; }
.eb-product .star-rating span::before { color: var(--eb-ink) !important; }
.eb-product .eb-reviews__count {
    margin: var(--eb-s3) 0 var(--eb-s5) !important;
    font-size: var(--eb-fs-base) !important;
    line-height: 1.7;
    color: var(--eb-muted);
}
.eb-product .eb-reviews__toggle {
    width: 100%;
    min-height: 52px;
    padding: var(--eb-s3) 18px !important;
    background: var(--eb-ink) !important;
    color: var(--eb-white) !important;
    border: 1px solid var(--eb-ink) !important;
    border-radius: 0 !important;
    font-size: var(--eb-fs-sm) !important;
    font-weight: 600 !important;
    letter-spacing: var(--eb-track-caps) !important;
    text-transform: uppercase;
    cursor: pointer;
}
.eb-product .eb-reviews__toggle:hover,
.eb-product .eb-reviews__toggle:focus { background: var(--eb-text) !important; color: var(--eb-white) !important; }

/* список відгуків WooCommerce */
.eb-product .eb-reviews__body { min-width: 0; }
.eb-product .eb-reviews__body #reviews { display: block; width: 100%; margin: 0; padding: 0; }
.eb-product .eb-reviews__body #reviews #comments,
.eb-product .eb-reviews__body #reviews #review_form_wrapper { float: none; width: 100%; margin: 0; }
.eb-product .eb-reviews__body #reviews #comments > h2 { display: none; }
.eb-product .eb-reviews__body #reviews ol.commentlist { margin: 0; padding: 0; list-style: none; }
.eb-product .eb-reviews__body #reviews ol.commentlist li { margin: 0; padding: var(--eb-s5) 0; border-bottom: 1px solid var(--eb-line); }
.eb-product .eb-reviews__body #reviews ol.commentlist li .comment_container { display: block; }
.eb-product .eb-reviews__body #reviews ol.commentlist li img.avatar {
    position: static;
    float: left;
    width: 40px;
    height: 40px;
    margin: 0 var(--eb-s4) 10px 0;
    border-radius: 50%;
}
.eb-product .eb-reviews__body #reviews ol.commentlist li .comment-text { margin: 0; padding: 0; overflow: hidden; border: 0; }
.eb-product .eb-reviews__body #reviews .woocommerce-review__author,
.eb-product .eb-reviews__body #reviews .description,
.eb-product .eb-reviews__body .woocommerce-noreviews { font-size: var(--eb-fs-base) !important; line-height: 1.7; }
.eb-product .eb-reviews__body #reviews .woocommerce-review__published-date { font-size: var(--eb-fs-sm) !important; color: var(--eb-muted); }

/* форма відгуку (відкривається кнопкою) */
.eb-product .eb-reviews:not(.is-form-open) #review_form_wrapper { display: none !important; }
.eb-product .eb-reviews__body #review_form_wrapper { margin-top: var(--eb-s6) !important; padding: var(--eb-s6); background: var(--eb-bg); }
.eb-product .eb-reviews__body #review_form #respond { padding: 0; background: transparent; }
.eb-product .eb-reviews__body #review_form #respond .comment-reply-title {
    font-size: var(--eb-fs-lg) !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}
.eb-product .eb-reviews__body #review_form input:not([type=checkbox]),
.eb-product .eb-reviews__body #review_form textarea {
    width: 100%;
    max-width: 100%;
    background: var(--eb-white);
    border: 1px solid var(--eb-line-strong);
    border-radius: 0;
}
.eb-product .eb-reviews__body #review_form textarea { min-height: 130px; }
.eb-product .eb-reviews__body #review_form #submit {
    min-height: 48px;
    padding: var(--eb-s3) 20px;
    background: var(--eb-ink);
    color: var(--eb-white);
    border: 0;
    border-radius: 0;
    font-size: var(--eb-fs-sm) !important;
    font-weight: 600 !important;
    letter-spacing: var(--eb-track-caps) !important;
    text-transform: uppercase;
}

/* відгуків ще немає: одна колонка, форма з'являється під кнопкою */
.eb-product .eb-reviews--empty .eb-reviews__container { grid-template-columns: minmax(0, 1fr); gap: 0; }
.eb-product .eb-reviews--empty .eb-reviews__summary { max-width: 560px; }
.eb-product .eb-reviews--empty .eb-reviews__toggle { width: auto; min-width: 240px; }
.eb-product .eb-reviews--empty .eb-reviews__body #comments { display: none; }
.eb-product .eb-reviews--empty:not(.is-form-open) .eb-reviews__body { display: none; }


/* ==========================================================================
   9. КНОПКИ-СТРІЛКИ — однакові в галереї та каруселі
   ========================================================================== */
.eb-product button.eb-arrow,
.eb-product button.eb-arrow:hover,
.eb-product button.eb-arrow:focus,
.eb-product button.eb-arrow:active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px;
    aspect-ratio: 1;
    padding: 0 !important;
    background: var(--eb-white) !important;
    color: var(--eb-ink) !important;
    border: 1px solid var(--eb-line) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, opacity .2s ease;
}
.eb-product button.eb-arrow:hover { border-color: var(--eb-ink) !important; background: var(--eb-bg) !important; }
.eb-product button.eb-arrow:focus-visible { outline: 2px solid var(--eb-ink); outline-offset: 2px; }
.eb-product button.eb-arrow:disabled {
    opacity: .35;
    cursor: default;
    border-color: var(--eb-line) !important;
    background: var(--eb-white) !important;
}
.eb-product button.eb-arrow svg {
    display: block;
    flex-shrink: 0;
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor;
    pointer-events: none;
}


/* ==========================================================================
   10. ПЛАНШЕТ (≤ 1024 / ≤ 980px)
   ========================================================================== */
@media (max-width: 1024px) {
    .eb-product .eb-related-line ul.products.eb-related-line__products > li.product {
        flex-basis: calc((100% - var(--eb-card-gap)) / 2) !important;
        width: calc((100% - var(--eb-card-gap)) / 2) !important;
    }
}

@media (max-width: 980px) {
    .eb-product .eb-product__top { grid-template-columns: minmax(0, 1fr); gap: var(--eb-s7); }

    .eb-product .eb-results__title { font-size: 32px !important; }
    .eb-product .eb-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--eb-s7) var(--eb-s5); }
    .eb-product .eb-results__visual { width: 180px; height: 180px; }

    .eb-product .eb-actives { display: flex; flex-direction: column; }
    .eb-product .eb-actives__media { order: -1; aspect-ratio: 16 / 10; }
    .eb-product .eb-actives__content { padding: var(--eb-s7) var(--eb-gutter) var(--eb-section); }

    .eb-product .eb-reviews__container { grid-template-columns: minmax(0, 1fr); gap: var(--eb-s6); }
    .eb-product .eb-reviews__toggle { width: auto; min-width: 240px; }
}


/* ==========================================================================
   11. ТЕЛЕФОН (≤ 640px)
   ========================================================================== */
@media (max-width: 640px) {
    /* верх */
    .eb-product .eb-product__breadcrumbs { margin-bottom: var(--eb-s4) !important; }
    .eb-product .eb-product__top { gap: var(--eb-s5); }
    .eb-product .eb-gallery__arrow--prev { left: var(--eb-s3); }
    .eb-product .eb-gallery__arrow--next { right: var(--eb-s3); }

    /* права колонка: щільніший ритм 8 / 12 / 16px */
    .eb-product .eb-product__title { font-size: 22px !important; line-height: 1.35 !important; }
    .eb-product .eb-product__subtitle-en,
    .eb-product .eb-product__meta-top { margin-bottom: var(--eb-s3) !important; }
    .eb-product .eb-product__price,
    .eb-product .eb-product__description,
    .eb-product .eb-product__volume,
    .eb-product .eb-product__cart { margin-bottom: var(--eb-s4) !important; }

    .eb-product .eb-product__meta-top { gap: 6px var(--eb-s3); font-size: var(--eb-fs-sm); white-space: normal; }
    .eb-product .eb-product__rating { flex-shrink: 0; gap: 6px; }
    .eb-product .eb-product__rating .star-rating,
    .eb-product .eb-product__rating-number { font-size: var(--eb-fs-sm) !important; }
    .eb-product .eb-product__reviews-link { flex-shrink: 0; }
    .eb-product .eb-product__sku-label { display: none; }
    .eb-product .eb-product__sku::before { content: "· "; }
    .eb-product .eb-product__stock { gap: 6px; }
    .eb-product .eb-product__stock-dot { width: 8px; height: 8px; }

    .eb-product .eb-product__price { font-size: 26px; }
    .eb-product .eb-product__description { font-size: var(--eb-fs-base); }
    .eb-product .eb-product__volume { gap: var(--eb-s3); }
    .eb-product .eb-product__volume-value { min-width: 64px; min-height: 40px; }

    .eb-product .eb-benefit,
    .eb-product .eb-benefit--discount summary { gap: 10px; font-size: var(--eb-fs-xs); letter-spacing: .04em; }
    .eb-product .eb-benefit__popup { font-size: var(--eb-fs-sm) !important; }
    .eb-product .eb-benefit__icon { width: 20px; min-width: 20px; }
    .eb-product .eb-benefit__icon svg { width: 18px; height: 18px; }

    /* заголовки секцій */
    .eb-product .eb-actives__title,
    .eb-product .eb-reviews__heading,
    .eb-product .eb-related-line__title { font-size: 22px !important; }

    /* результати */
    .eb-product .eb-results__title { font-size: 26px !important; }
    .eb-product .eb-results__intro { font-size: var(--eb-fs-base); }
    .eb-product .eb-results__grid { gap: var(--eb-s6) var(--eb-s3); margin-top: var(--eb-s6); }
    .eb-product .eb-results__item { gap: 14px; padding: 0; }
    .eb-product .eb-results__visual { width: min(140px, 100%); height: auto; aspect-ratio: 1; }
    .eb-product .eb-results__value { font-size: 38px; }
    .eb-product .eb-results__up { font-size: 24px; }
    .eb-product .eb-results__text { font-size: var(--eb-fs-sm) !important; line-height: 1.5; }
    .eb-product .eb-results__note { margin-top: var(--eb-s6); padding-top: var(--eb-s4); }

    /* активні компоненти */
    .eb-product .eb-actives__media { aspect-ratio: 1 / 1; }
    .eb-product .eb-actives__content { gap: var(--eb-s5); padding: var(--eb-s6) var(--eb-gutter) var(--eb-section); }
    .eb-product .eb-actives__core-title { font-size: 18px !important; }

    /* карусель */
    .eb-product .eb-related-line__header { gap: var(--eb-s3); margin-bottom: var(--eb-s5); }
    .eb-product .eb-related-line ul.products.eb-related-line__products { --eb-card-gap: 12px; }

    /* відгуки */
    .eb-product .eb-reviews__container { gap: var(--eb-s5); }
    .eb-product .eb-reviews__average { font-size: 32px; }
    .eb-product .eb-reviews__toggle,
    .eb-product .eb-reviews--empty .eb-reviews__toggle { width: 100%; }
    .eb-product .eb-reviews__body #review_form_wrapper { padding: var(--eb-s4); }

    /* стрілки */
    .eb-product button.eb-arrow,
    .eb-product button.eb-arrow:hover,
    .eb-product button.eb-arrow:focus,
    .eb-product button.eb-arrow:active {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-height: 36px;
    }
    .eb-product button.eb-arrow svg { width: 16px !important; height: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .eb-product .eb-benefit__chevron::before { transition: none; }
}