:root {
    --middle-brown: #34302B; /* color_1 */
    --dark-brown: #322E29; /* color_2 */
    --light-brown: #524C44; /* color_3 */
    --black: #080904; /* color_4 */
    --beige: #F0EBE0; /* color_5 */
    --gray: #817D74; /* color_6 */
    --light-beige: #FFFBF3; /* color_7 */
    --white: #FFFFFF; /* color_8 */
}

/**
 * Custom Gutenberg Product & Category Styles
 * Optimized for Transparent -> White Sticky Header
 */

 /* Враховуємо висоту шапки при скролі до ID */
:target {
    scroll-margin-top: calc(var(--header-sticky-height, 120px) + 20px);
}

/* Приховуємо логотип на Головній у початковому стані */
.home [data-device="mobile"] .ct-sticky-container:not([data-sticky-active="yes"]) .site-branding[data-id="logo"] {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Показуємо логотип, як тільки спрацьовує Sticky (скрол) */
.home [data-device="mobile"] .ct-sticky-container[data-sticky-active="yes"] .site-branding[data-id="logo"] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Додатково прибираємо клікабельність прихованого логотипу */
.home [data-device="mobile"] .ct-sticky-container:not([data-sticky-active="yes"]) .site-logo-container {
    pointer-events: none;
}

/* Велике лого у Hero-секції */
.hero-main-logo {
    /* position: relative; */
    position: absolute;
    top: 150px !important;
    /* left: 50%; */
    left: 50px;
    right: 50px;
    /* Центруємо об'єкт по осях */
    /* transform: translate(-50%, 0) scale(1); */
    /* Вище за хедер (у Blocksy хедер зазвичай 9999) */
    z-index: 100001 !important; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s ease !important;
    transform-origin: center center;
    pointer-events: none; /* Щоб не заважало клікати по меню під ним */
}

.hero-main-logo .stk-img-wrapper {
    max-width: 100%;
    width: auto !important;
}

/* Стан при скролі: трансформуємо велике лого */
.is-scrolled .hero-main-logo {
    /* Зменшуємо до розміру лого в шапці (приблизно 0.2 або 0.3) */
    /* Піднімаємо вгору в область хедера */
    transform: scale(0.3) translateY(-120px) !important;
    /* transform: translate(-50%, -250%) scale(0.15) !important; */
    opacity: 0 !important; /* Плавно зникає, передаючи "естафету" маленькому лого */
}

.hero-main-title {
    position: absolute;
    top: 65%;
    left: 50%;
    /* Центруємо об'єкт по осях */
    transform: translate(-50%, -50%) scale(1);
    /* Вище за хедер (у Blocksy хедер зазвичай 9999) */
    z-index: 100001 !important; 
    transform-origin: center center;
    pointer-events: none;
}

@media (max-width: 999px) {
    .hero-main-title {
        position: absolute;
        top: 65%;
        left: 50px;
        right: 50px;
        transform: translate(0, -50%) scale(1);
        z-index: 100001 !important; 
        transform-origin: center center;
        pointer-events: none;
    }
}

/* Налаштування маленького лого в шапці (Blocksy) */
.home [data-device="mobile"] .ct-sticky-container:not([data-sticky-active="yes"]) .site-branding[data-id="logo"] {
    opacity: 0 !important;
    transform: scale(1.5); /* Починає трохи більшим, щоб зустріти велике лого */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.home [data-device="mobile"] .ct-sticky-container[data-sticky-active="yes"] .site-branding[data-id="logo"] {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Обнулення контейнерів */
.has-transparent-header #main-container,
.has-transparent-header .entry-content,
.has-transparent-header .ct-container-full[data-vertical-spacing*="top"],
.has-transparent-header article {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.custom-gutenberg-product .entry-content,
.page .entry-content {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
}

.has-transparent-header .hero-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ШИРИНА КОНТЕНТУ (1200px + 5vw Edge Spacing) */
.custom-gutenberg-product .entry-content > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)),
.page .entry-content > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)),
/* Додано виключення :not(.stk-full-width-ignore) для головного ряду */
.custom-gutenberg-product .stk-block-columns.alignfull:not(.stk-full-width-ignore) > .stk-row,
.page .stk-block-columns.alignfull:not(.stk-full-width-ignore) > .stk-row {
    max-width: 1200px !important;
    width: calc(100% - 10vw) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.custom-gutenberg-product .entry-content > .alignwide,
.page .entry-content > .alignwide {
    max-width: calc(1200px + 260px);
    width: calc(100% - 10vw);
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Спеціальне правило для Full Width блоків, які МАЮТЬ бути на весь екран */
.custom-gutenberg-product .entry-content > .alignfull,
.page .entry-content > .alignfull,
/* Додаємо примусове розблокування для нашої галереї та її внутрішніх рядів */
.stk-full-width-ignore.alignfull,
.stk-full-width-ignore.alignfull .stk-row {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Трюк для ігнорування контейнера, якщо тема все одно його стискає */
.stk-full-width-ignore.alignfull {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.stk-full-width-ignore.alignfull {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important; /* Гарантує відсутність прокрутки */
}


/* OPTIMIZED HEADER (Mobile on Desktop) */

.ct-header [data-device="desktop"] {
    display: none !important;
}

.ct-header [data-device="mobile"] {
    display: block !important;
}

.ct-header [data-device="mobile"] .ct-sticky-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: transparent !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-transparent-header .ct-header [data-device="mobile"] [data-row="middle"] {
    background-color: transparent !important;
    transition: background-color 0.4s ease;
}

.ct-header [data-device="mobile"] .ct-sticky-container[data-sticky-active="yes"] {
    background-color: var(--white) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ct-header [data-device="mobile"] .ct-sticky-container[data-sticky-active="yes"] [data-row="middle"] {
    background-color: var(--white) !important;
    min-height: 65px;
}

/* ФІКС ШИРИНИ ШАПКИ (Точно як контент) */
@media (min-width: 1000px) {
    .ct-header [data-device="mobile"] .ct-container {
        max-width: 1200px !important;
        /* Обмежуємо як основний контент */
        width: calc(100% - 10vw) !important;
        /* Додаємо ті самі 5vw + 5vw */
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .ct-header [data-device="mobile"] [data-row="middle"] {
        min-height: 80px;
    }
}

/* ФІКСИ ТЕМИ ТА ВІДСТУПІВ */
.ct-sticky-container {
    height: 0 !important;
}

.has-transparent-header:not(.is-header-sticky) .ct-header-trigger {
    color: var(--white);
}

.has-transparent-header .ct-container-full[data-vertical-spacing*="top"],
.has-transparent-header .ct-container-full[data-vertical-spacing*="bottom"],
.has-transparent-header article.page,
.has-transparent-header article.hentry {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Додаємо .home до списку сторінок без верхнього відступу */
.has-transparent-header #main-container,
.has-transparent-header .custom-gutenberg-product .entry-content,
.has-transparent-header .page .entry-content,
.has-transparent-header .home .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Фікс для текстового блоку в хедері (де лежить перемикач мов) */
.ct-header-text[data-id="text"] .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Прибираємо можливий заголовок Hero-секції Blocksy на головній */
.home .hero-section {
    display: none !important;
}

/**
 * end: Custom Gutenberg Product & Category Styles
 */

/* Language Polylang Switcher */

/* Контейнер дропдауну */
.custom-lang-dropdown {
    position: relative;
    display: flex !important;
    /* Змінено на flex для кращого контролю */
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    /* Ізоляція від глобальних стилів .entry-content */
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
}

/* Заголовок поточної мови */
.current-lang-label {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    transition: opacity 0.3s;
    white-space: nowrap;
    line-height: 1;
}

.has-transparent-header:not(.is-header-sticky) .current-lang-label {
    color: var(--middle-brown);
}

.is-header-sticky .current-lang-label {
    color: var(--theme-palette-color-4, #111518);
}

/* Список мов (прихований за замовчуванням) */
.lang-dropdown-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 120px;
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    text-align: left;
}

/* Ефект появи при наведенні */
.custom-lang-dropdown:hover .lang-dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Елементи списку */
.lang-dropdown-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.lang-dropdown-list li a {
    display: block;
    padding: 8px 20px;
    color: var(--middle-brown) !important;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    font-size: 12px;
}

.lang-dropdown-list li a:hover {
    background-color: #f3f5f7;
    color: var(--middle-brown) !important;
}

/* ФІКС ТРИКУТНИКА (SVG) */
.custom-lang-dropdown svg.ct-icon {
    display: inline-block !important;
    width: 14px !important;
    /* Примусовий розмір */
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    margin-left: 0px !important;
    fill: currentColor;
    transition: transform 0.3s ease !important;
    /* Скидання стилів, що могли прийти від .entry-content > * */
    max-width: none !important;
}

/* Обертання іконки при наведенні */
.custom-lang-dropdown:hover svg.ct-icon {
    transform: rotate(180deg) !important;
}

/* end: Language Polylang Switcher */

/* Menu Trigger */

/* Перефарбування та стилізація Трігера (Burger Menu) */
.ct-header-trigger[data-id="trigger"] {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--middle-brown) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
}

/* Стилізація лейблу "Menu" (як у перемикача мов) */
.ct-header-trigger[data-id="trigger"] .ct-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 1 !important;
    color: var(--middle-brown) !important;
    display: inline-block !important;
    visibility: visible !important;
}

/* Колір ліній іконки (SVG rect) */
.ct-header-trigger[data-id="trigger"] svg.ct-icon rect {
    fill: var(--middle-brown) !important;
    transition: fill 0.3s ease;
}

/* Логіка для прозорого/стікі хедера (якщо треба білий на старті) */
.has-transparent-header:not(.is-header-sticky) .ct-header-trigger[data-id="trigger"],
.has-transparent-header:not(.is-header-sticky) .ct-header-trigger[data-id="trigger"] svg.ct-icon rect {
    color: var(--middle-brown) !important;
    fill: var(--middle-brown) !important;
}

/* Скасовуємо стандартну підсвітку WP для анкорів на головній сторінці */
.home .menu-item[class*="current"] > a[href*="#"] {
    color: inherit !important; /* Повертаємо звичайний колір */
}

.home .menu-item[class*="current"] > a[href*="#"]::after {
    display: none !important; /* Прибираємо підкреслення, якщо воно є */
}

/* Дозволяємо підсвітку ТІЛЬКИ через наш кастомний клас, який додає JS */
.menu-item.js-active-anchor > a {
    color: var(--middle-brown) !important; /* Ваш колір активного пункту */
}

.menu-item.js-active-anchor > a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--middle-brown);
    display: block !important;
}


/* end: Menu Trigger */

/* Breadcrumbs */

.custom-gutenberg-product .ct-breadcrumbs {
    width: calc(100% - 10vw);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

@media (max-width: 689px) {
    .custom-gutenberg-product .ct-breadcrumbs {
        width: calc(100% - 12vw);
    }
}

/* end: Breadcrumbs */

/* About Product Sticky Block */

/* Знімаємо обмеження overflow з усіх батьківських елементів */
/* Це дозволяє sticky "бачити" вікно браузера */
.custom-gutenberg-product,
.custom-gutenberg-product .entry-content,
.stk-block-columns.sticky-container,
.stk-block-columns.sticky-container .stk-row {
    overflow: visible !important;
}

@media (min-width: 690px) {

    /* Батьківський рядок має вирівнювати контент по верхньому краю */
    .stk-block-columns.sticky-container .stk-row {
        display: flex !important;
        align-items: flex-start !important;
    }

    /* Робимо ліву колонку липкою */
    .stk-block-column.sticky-column {
        position: sticky !important;
        /* Висота приліпленої шапки + запас */
        top: calc(var(--header-sticky-height, 70px) + 20px) !important;

        /* Змушуємо колонку займати лише висоту фото */
        height: fit-content !important;
        z-index: 10;
    }

    /* Фікс для Stackable-обгортки всередині колонки */
    .stk-block-column.scrolling-column>.stk-column-wrapper {
        height: auto !important;
        overflow: visible !important;
    }
}

/* Вимкнення для мобільних (689px) */
@media (max-width: 999px) {
    .stk-block-column.scrolling-column {
        position: static !important;
    }
}

/* end: About Product Sticky Block */

/* Colors Product Block */

/* Базові стилі для всіх крапок */
.multi-color-dots .stk-block-carousel__dots div[role="listitem"] button::before {
    background-color: #e0e0e0 !important;
    /* колір за замовчуванням */
    opacity: 0.5;
    border: 1px solid #D6D3CC;
    transition: all 0.3s ease;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Стиль для АКТИВНОЇ крапки */
/* Збільшуємо яскравість (opacity) активної крапки, щоб бачити колір */
.multi-color-dots .stk-block-carousel__dots div[role="listitem"] button.stk-block-carousel__dot--active::before {
    opacity: 1 !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* end: Colors Product Block */

/* Product Category Page */

/* Контейнер для вузької сітки товарів */
.custom-narrow-grid {
    max-width: 780px !important;
    margin: 0 auto !important;
    /* Центрування на сторінці */
}

/* Налаштування сітки WooCommerce */
.custom-narrow-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    /* Рівно 2 в ряд */
    gap: 20px !important;
    /* Гап між товарами */
    margin: 0 auto !important;
}

/* Скидаємо стандартні флоати та відступи Blocksy/WooCommerce */
.custom-narrow-grid ul.products::before,
.custom-narrow-grid ul.products::after {
    display: none !important;
}

.custom-narrow-grid ul.products li.product {
    width: 100% !important;
    /* Щоб займав усю ширину своєї колонки grid */
    margin: 0 !important;
    float: none !important;
}

/* Адаптивність: 1 в ряд на мобільних (менше 480px) */
@media (max-width: 480px) {
    .custom-narrow-grid ul.products {
        grid-template-columns: 1fr !important;
    }
}

.custom-narrow-grid ul.products .product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-brown);
}

.custom-narrow-grid ul.products .product, 
.related.products ul.products .product {
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.custom-narrow-grid ul.products .product .ct-woo-card-actions, 
.related.products ul.products .product .ct-woo-card-actions {
    border: none;
    padding: 0;
    margin: 0;
}

.custom-narrow-grid ul.products .product .ct-woo-card-actions > span, 
.related.products ul.products .product .ct-woo-card-actions > span {
    border: none;
    padding: 0;
    margin: 0;
}

.custom-narrow-grid ul.products .product .ct-woo-card-actions > span.price, 
.related.products ul.products .product .ct-woo-card-actions > span.price {
    font-size: 14px;
    font-weight: 400;
    color: #000 !important;
    min-height: auto;
}

.custom-narrow-grid ul.products .product .price:not(:only-child)::after, 
.related.products ul.products .product .price:not(:only-child)::after {
    display: none;
}

/* Pagination */

.woocommerce-pagination > .page-numbers {
    justify-content: center;
}

/* end: Pagination */

/* end: Product Category Page */

/* Catalog Page */

/* Список анонсів */

.catalog-announcements-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Окрема секція */
.catalog-announcement-item {
    height: 70vh;
    min-height: 680px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    /* Прибираємо відступи між блоками */
}

/* Накладання для читабельності тексту */
.catalog-announcement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Легке затемнення */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.catalog-announcement-item:hover .catalog-announcement-overlay {
    background: rgba(0, 0, 0, 0.35);
    /* Темнішає при наведенні */
}

/* Текст та кнопка */
.catalog-announcement-content {
    text-align: center;
    color: #fff;
    z-index: 2;
}

.catalog-announcement-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff !important;
    text-shadow: 4px 4px 4px rgba(0,0,0,0.15);
    text-transform: uppercase;
}

.catalog-announcement-button {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--dark-brown);
    align-items: center;
    column-gap: 8px;
    display: inline-flex;
    justify-content: center;
    position: relative;
    padding-top: 15px;
    padding-right: 35px;
    padding-bottom: 15px;
    padding-left: 35px;
    background: var(--white);
    border: 1px solid var(--dark-brown);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.catalog-announcement-button .stk--svg-wrapper .stk--inner-svg svg:last-child {
    height: 16px;
    width: 16px;
    fill: var(--dark-brown);
}

.catalog-announcement-button .stk--inner-svg svg:last-child:not(.ugb-custom-icon):not(.stk-custom-icon) :is(g, path, rect, polygon, ellipse) {
    fill: var(--dark-brown);
}

.catalog-announcement-button:hover {
    background: var(--dark-brown);
    color: #fff;
}

.catalog-announcement-button:hover .stk--svg-wrapper .stk--inner-svg svg:last-child {
    fill: #fff;
}

.catalog-announcement-button:hover .stk--inner-svg svg:last-child:not(.ugb-custom-icon):not(.stk-custom-icon) :is(g, path, rect, polygon, ellipse) {
    fill: #fff;
}

/* Гарантуємо відсутність відступів від теми */
.catalog-announcements-list .alignfull {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* end: Catalog Page */

/* Home Page */

/* Hero Block - Thumbnail Navigation */

/* Базове позиціювання */
.stk-full-width-ignore {
    position: relative !important;
}

/* Контейнер мініатюр */
.stk-full-width-ignore .stk-block-carousel__dots {
    position: absolute !important;
    bottom: 30px !important; 
    right: 5vw !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    display: flex !important;
    gap: 5px !important;
    z-index: 100 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Стилізація кнопок-мініатюр (ЗАТЕМНЕНІ ЗА ЗАМОВЧУВАННЯМ) */
.stk-full-width-ignore .stk-block-carousel__dot[class] {
    width: 20px !important;
    height: 30px !important;
    border: 1px solid #ffffff !important;
    border-radius: 0px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    
    /* Ефект затемнення */
    filter: brightness(0.4) grayscale(30%) !important; 
    opacity: 0.6 !important; /* Додатковий візуальний ефект для неактивних */
    
    /* Приховування сміття */
    text-indent: -9999px !important;
    overflow: hidden !important;
    background-color: #000 !important;
    transition: all 0.4s ease !important;
}

/* ВИДАЛЕННЯ ЦЯТОК (ТОЧОК) */
.stk-full-width-ignore .stk-block-carousel__dot::before,
.stk-full-width-ignore .stk-block-carousel__dot::after {
    content: none !important;
    display: none !important;
}

/* АКТИВНА МІНІАТЮРА (ЯСКРАВА) */
/* Використовуємо подвійний клас для гарантованого пріоритету */
.stk-full-width-ignore .stk-block-carousel__dot--active[class] {
    filter: brightness(1) grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 5 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ефект при наведенні */
.stk-full-width-ignore .stk-block-carousel__dot:hover[class] {
    filter: brightness(0.8) !important;
    opacity: 0.9 !important;
}

/* Технічні фікси для Stackable */
.stk-full-width-ignore .stk-block-carousel__content-wrapper,
.stk-full-width-ignore .stk-block-carousel__slider-wrapper {
    height: 100% !important;
    padding-bottom: 0 !important;
}

/* Адаптивність */
@media (max-width: 767px) {
    .stk-full-width-ignore .stk-block-carousel__dots {
        bottom: 20px !important;
        right: 0 !important;
        left: 0 !important;
        justify-content: center !important;
        transform: scale(0.8);
    }
}

/* end: Hero Block - Thumbnail Navigation */

/* Products Razor Announcements Block [3] */

.home-product-announsment__item {
    position: relative;
}

.home-product-announsment__item__caption {
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-product-announsment__item:is(:hover) .home-product-announsment__item__caption {
    opacity: 1;
}

.home-product-announsment__item__caption p {
    position: relative;
}

.home-product-announsment__item__caption p::before {
    position: absolute;
    content: "\2022";
    color: #fff;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.home-product-announsment__item__caption p::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    bottom: 1.5em;
    width: 1px;
    background: #fff;
    margin-left: -1.5em;
    margin-top: -1em;
}

/* end: Products Razor Announcements Block [3] */

/* Kovin Products Block [4] */

#home-kovin-products-block.home-kovin-products-block {
    background-position: right 0px top -100px !important;
}

/* end: Kovin Products Block [4] */

/* Kovin Instagram Block [5] */

/* Додаємо відступи між фото (Gap) */
.FeedGridLayout__grid {
    gap: 20px !important;
    display: grid !important;
}

/* Стилізація контейнера фото */
.MediaTile__root {
    /* border-radius: 4px; */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Ефект наведення (Hover) */
/* .MediaTile__root:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
} */

/* Стилізація іконки типу контенту (Carousel/Video) */
.MediaTile__type-icon {
    top: 10px !important;
    right: 10px !important;
    background: rgba(52, 48, 43, 0.5) !important;
    padding: 5px;
    border-radius: 4px;
}

/* Вирівнювання зображень */
.MediaThumbnail__image {
    transition: filter 0.3s ease !important;
}

.MediaTile__root:hover .MediaThumbnail__image {
    filter: brightness(1.05);
}

/* Адаптивність (якщо на ПК 7 колонок забагато) */
@media (max-width: 1200px) {
    .FeedGridLayout__grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 689px) {
    .FeedGridLayout__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* end: Kovin Instagram Block [5] */

/* end: Home Page */

/* FOOTER */

#footer {
    padding-top: 70px;
}

/* Pages Menu */

#footer .widgettitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--middle-brown);
    margin: 0 0 0.5rem 0;
}

#footer .widget-menu li, 
#footer .wp-block-categories li {
    padding: 0.15rem 0;
}

#footer .widget-menu li a, 
#footer .wp-block-categories li a {
    font-weight: 500 !important;
}

/* end: Pages Menu */

/* FORM */

/* Заголовки форми у футері */
#footer .footer-form-header {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--middle-brown);
    margin-bottom: 40px;
}

/* Стилі для полів (як ми робили раніше) */
.wpcf7-form input:not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea {
    border: none;
    border-bottom: 1px solid var(--middle-brown) !important;
    border-radius: 0;
    background: transparent;
    padding: 12px 0;
    margin-bottom: 20px;
    width: 100%;
}

.custom-submit-with-icon, 
.wpcf7-form input[type="submit"] {
    font-size: 16px;
    font-weight: 600;
    background-color: var(--middle-brown) !important;
    color: var(--white) !important;
    cursor: pointer;
    border: 1px solid var(--middle-brown) !important;
    border-radius: 4px;
    padding: 15px 35px;
    transition: none !important;
    align-items: center;
    column-gap: 8px;
    display: flex;
    justify-content: center;
}

.custom-submit-with-icon:hover, 
.wpcf7-form input[type="submit"]:hover {
    color: var(--middle-brown) !important;
    background-color: transparent !important;
    transition: none !important;
    border: 1px solid var(--middle-brown) !important;
    transform: none !important; 
    box-shadow: none !important;
    outline: none !important;
}

.wpcf7-form textarea {
    height: 0;
    min-height: 50px;
    overflow: hidden;
}

/* Колір введеного тексту (активний стан) */
.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea,
.wpcf7-form select {
    color: var(--middle-brown) !important; /* Ваш основний колір */
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* Стилі для плейсхолдерів (сірий колір #787570) */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #787570 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    opacity: 1 !important; /* Для Firefox */
}

/* Для застарілих браузерів */
.wpcf7-form input::-webkit-input-placeholder,
.wpcf7-form textarea::-webkit-input-placeholder {
    color: #787570 !important;
}

/* Початковий стан select (коли вибрано перший пункт) */
.wpcf7-form select.placeholder-active {
    color: #787570 !important;
}

/* Колір опцій всередині списку (завжди темний) */
.wpcf7-form select option {
    color: var(--middle-brown) !important;
    background: #fff;
}

/* end: FORM */

/* Widgets */

#footer  [data-column="widget-area-2"] p {
    margin: 0;
}

/* end: Widgets */

/* end: FOOTER */