/*
Theme Name: NANA Shop
Author: You
Description: Minimalist theme based on Figma design
Version: 1.0
*/

/* --- 1. FONTS & GLOBALS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,600&display=swap');

:root {
    --text-color: #1a1a1a;
    --font-main: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background-color: #fff;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- 2. HEADER --- */
.site-header { padding: 20px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #000; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-size: 13px; font-weight: 500; text-transform: uppercase; }
.header-actions { display: flex; gap: 20px; align-items: center; }
.cart-count { font-size: 10px; vertical-align: top; font-weight: bold; }
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    font-weight: 500;
}
.lang-switch .fa-chevron-down { padding-bottom: 2px; }
.variations th { display: none !important; }
.woocommerce-variation.single_variation { display: none !important; }
.variations_form > div { width: 100%; }
.single_variation_wrap { width: 100%; }

/* --- 3. HERO --- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 85vh; width: 100%; overflow: hidden; }
.hero-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- 4. PRODUCT LOOP (CATALOG) --- */
.catalog-section { padding: 60px 0; }
.section-title { text-align: center; font-size: 32px; font-weight: 600; font-style: italic; margin-bottom: 40px; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 20px; }
.custom-product-card { text-align: center; }
.product-image-wrapper { height: 400px; overflow: hidden; margin-bottom: 15px; position: relative; }
.product-image-wrapper img { width: 100%; height: 100%; transition: transform 0.5s; }
.custom-product-card:hover .product-image-wrapper img { transform: scale(1.05); }
.product-title { font-size: 14px; text-transform: uppercase; font-weight: 400; margin: 10px 0 5px; }
.price { font-size: 12px; font-weight: 500; color: #000; letter-spacing: 1px; }
.price del { color: #999; margin-right: 8px; }

/* --- 5. PROMO BLOCKS --- */
.promo-section { display: flex; min-height: 400px; }
.promo-block { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.promo-block.light { background: #f2f2f2; }
.promo-block.dark { background: #0f0f0f; color: #fff; }
.promo-title { font-size: 32px; font-style: italic; margin: 10px 0 30px; }
.btn { padding: 12px 30px; border: 1px solid; text-transform: uppercase; font-size: 12px; display: inline-block; }
.btn-dark { border-color: #000; color: #000; }
.btn-light { border-color: #fff; color: #fff; }

/* --- 6. FOOTER --- */
.site-footer {
    background-color: #fff;
    padding: 60px 0 30px;
    font-family: 'Inter', sans-serif; /* Або той, що у вашій темі */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Навігація */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-menu li a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: opacity 0.3s;
}

.footer-menu li a:hover {
    opacity: 0.6;
}

/* Іконка Instagram */
.footer-social {
    margin-bottom: 40px;
}

.footer-social a {
    color: #000;
    font-size: 24px;
    text-decoration: none;
}

/* Розділювач */
.footer-line {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

/* Нижня частина */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-lang {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.footer-copyright {
    color: #000;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}
/* --- 7. CLIENTS SECTION --- */
.clients-slider-section {
    background-color: #000;
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.section-title {
    font-family: sans-serif; /* Або ваш шрифт */
    font-style: italic;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-size: 24px;
}

.clients-swiper {
    padding-bottom: 50px !important; /* Місце для крапочок */
    max-width: 1200px;
    margin: 0 auto;
}

.client-card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.client-caption {
    margin-top: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Стилізація крапочок (pagination) */
.clients-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.3;
    width: 6px;
    height: 6px;
}

.clients-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}
/* --- ARCHIVE / CATEGORY PAGE STYLES --- */

/* Відступи для основного блоку */
.archive-main {
    padding-bottom: 0;
}

/* Пагінація (Цифри сторінок) */
.pagination-wrapper {
    margin: 60px 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.pagination-wrapper ul {
    display: flex;
    gap: 10px;
}

.pagination-wrapper li {
    display: inline-block;
}

.pagination-wrapper a, 
.pagination-wrapper span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #eee;
    color: #000;
    font-size: 14px;
    transition: 0.3s;
}

.pagination-wrapper a:hover,
.pagination-wrapper span.current {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Нижній чорний банер */
.bottom-promo-banner {
    background-color: #0f0f0f;
    padding: 80px 0;
    text-align: center;
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bottom-promo-banner.light {
    background-color: #f2f2f2;
}

.bottom-promo-banner .promo-title {
    margin-bottom: 30px;
    font-size: 32px;
    font-style: italic;
    text-transform: uppercase;
}

.bottom-promo-banner .promo-title.white {
    color: #fff;
}
.product-template-default form.cart button.button {
    margin-right: 0 !important;
}
/* --- СТИЛІ СТОРІНКИ ТОВАРУ (ОНОВЛЕНІ) --- */

/* Контейнер сторінки */
.product-page-container {
    padding-bottom: 80px;
}
.product-gallery {
    max-width: 478px;
    min-width: 200px;
}
.product-main-wrapper {
    display: grid;
    grid-template-columns: auto 1fr; /* Трохи більше місця під фото */
    gap: 50px;
    margin-bottom: 80px;
}

.main-image-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- ІНФОРМАЦІЯ ПРО ТОВАР --- */

.single-product-title {
    font-size: 28px;
    font-weight: 800; /* Жирний */
    font-style: italic; /* Курсив */
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.single-product-price {
    font-size: 14px;
    margin-bottom: 30px;
    color: #666;
    letter-spacing: 1px;
}
.single-product-price del { color: #999; margin-right: 20px; text-decoration: line-through; }
.single-product-price ins { text-decoration: none; color: #666; font-weight: 500; }

.product-meta-text {
    font-size: 14px;
    margin-bottom: 20px;
    color: #333;
}

/* Стилі для варіацій (Кольори) */
.variations { margin-bottom: 20px !important; }
.variations .label { display: block; font-weight: 400; margin-bottom: 8px; color: #333; }
.reset_variations { display: none !important; }

/* Прибираємо поле кількості */
.quantity { display: none !important; }


/* --- КНОПКИ (ВАЖЛИВО) --- */

/* Цей клас додається JS-ом до контейнера кнопок */
.flex-buttons-row {
    display: flex !important;
    gap: 15px; /* Відстань між кнопками */
    width: 100%;
    align-items: flex-start;
}

/* Кнопка 1: ДОДАТИ В КОШИК (Біла) */
button.single_add_to_cart_button {
    flex: 1; /* Займає 50% */
    background-color: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    padding: 14px 0 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: 1px;
    line-height: initial !important;
    cursor: pointer;
    border-radius: 0 !important;
    transition: 0.3s;
}
button.single_add_to_cart_button:hover {
    background-color: #f9f9f9 !important;
}
/* Іконка стрілки для кнопки кошика */
button.single_add_to_cart_button::after {
    content: ' \2192'; /* Стрілка Unicode */
    margin-left: 5px;
}

/* Кнопка 2: КУПИТИ В 1 КЛІК (Чорна) */
.btn-one-click {
    flex: 1; /* Займає 50% */
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 14px 0;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0;
    transition: 0.3s;
    height: auto; /* Вирівнювання висоти */
}
.btn-one-click:hover {
    background-color: #333;
    border-color: #333;
}


/* --- ВКЛАДКИ (СІРИЙ ФОН) --- */

.product-tabs {
    margin-top: 50px;
}

.tab-headers {
    background: #EAEAEA; /* Сірий фон смуги */
    display: flex;
}

.tab-link {
    padding: 15px 30px;
    background: transparent;
    color: #666;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.tab-link.active {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.tab-content-wrapper {
    padding: 30px;
}

.tab-content {
    font-size: 13px;
    line-height: 1.8;
    color: #333;
}
.tab-content p { margin: 0; }

/* --- МОДАЛЬНЕ ВІКНО 1 КЛІК (ФІНАЛЬНИЙ ДИЗАЙН) --- */

.one-click-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); /* Темніший фон */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px); /* Розмиття фону */
}

.one-click-modal-content {
    background: #fff;
    padding: 40px 50px;
    width: 100%;
    max-width: 450px; /* Оптимальна ширина */
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto; /* Скрол якщо екран маленький */
}

/* Кнопка закриття (Хрестик в колі) */
.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    width: 30px; height: 30px;
    font-size: 18px;
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.close-modal:hover {
    background: #000;
    color: #fff;
}

/* Заголовок "КУПИТИ В 1 КЛІК" */
.modal-main-title {
    font-size: 20px;
    font-weight: 800; /* Жирний */
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Зображення товару */
.modal-product-preview {
    width: 140px;
    height: 180px;
    margin: 0 auto 15px;
    overflow: hidden;
}
.modal-product-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Назва товару (Brunches) */
.modal-product-title {
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Ціна */
.modal-product-price {
    font-size: 13px;
    color: #999;
    margin-bottom: 25px;
    letter-spacing: 1px;
}
.modal-product-price del { margin-right: 10px; }
.modal-product-price ins { text-decoration: none; color: #999; font-weight: 500; }

/* Поля вводу */
.form-group {
    margin-bottom: 15px;
}

.one-click-modal-content input[type="text"],
.one-click-modal-content input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd; /* Світло-сіра рамка */
    font-size: 14px;
    border-radius: 0;
    outline: none;
    color: #333;
}
.one-click-modal-content input:focus {
    border-color: #000;
}

/* Текст про месенджери */
.modal-helper-text {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Чекбокс */
.modal-checkbox-wrapper {
    display: flex;
    align-items: center; /* Вирівнювання по центру */
    justify-content: center; /* Текст по центру */
    gap: 8px;
    margin-bottom: 25px;
    font-size: 11px;
    color: #777;
    text-align: left;
}

.modal-checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    cursor: pointer;
    margin: 0;
}

.modal-checkbox-wrapper a {
    text-decoration: underline;
    color: #777;
}

/* Кнопка "ПІДТВЕРДИТИ" */
.btn-submit-one-click {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    text-transform: uppercase;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-submit-one-click:hover {
    background: #333;
}

/* --- АНІМАЦІЯ ГОЛОВНОГО ФОТО --- */
.main-image-wrapper img {
    /* ... ваші існуючі стилі ... */
    transition: opacity 0.4s ease-in-out; /* Плавний перехід прозорості */
    opacity: 1; /* Початковий стан - видимий */
    cursor: zoom-in; /* Курсор лупи при наведенні */
}

/* Цей клас ми будемо додавати JS-ом для приховування перед зміною */
.main-image-wrapper img.fade-out {
    opacity: 0;
}


/* --- ЛАЙТБОКС (ФУЛСКРІН) --- */
.lightbox-overlay {
    display: none; /* Сховано за замовчуванням */
    position: fixed;
    z-index: 999999; /* Поверх усього */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Чорний напівпрозорий фон */
    backdrop-filter: blur(5px); /* Ефект розмиття фону */
}

/* Картинка всередині лайтбоксу */
.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px; /* Не ширше ніж екран */
    max-height: 85vh; /* Не вище ніж екран */
    object-fit: contain; /* Щоб вся картинка влізла */
    animation-name: zoomIn; /* Анімація появи */
    animation-duration: 0.4s;
}

/* Кнопка закриття (хрестик) */
.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --- СТИЛІ ДЛЯ СТРІЛОК ЛАЙТБОКСУ --- */

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1000000; /* Щоб були поверх картинки */
    background: rgba(255, 255, 255, 0.1); /* Легкий фон при наведенні */
    border-radius: 50%;
    transition: 0.3s;
}

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.about-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
    color: #000;
}

.about-breadcrumbs a {
    text-decoration: none;
    color: #999;
    font-size: 12px;
}

/* Header Section */
.about-hero {
    text-align: center;
    padding: 60px 0;
}

.about-title {
    font-size: 32px;
    letter-spacing: 4px;
    font-style: italic;
    margin-bottom: 30px;
}

.about-intro-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Main Grid Layout */
.about-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image-center img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text-left p {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.mission-statement {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* Feature Cards */
.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.about-card {
    border: 1px solid #e5e5e5;
    padding: 40px;
}

.about-card h3 {
    font-size: 24px;
    font-style: italic;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.about-card p, .about-card li {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-card ul {
    padding-left: 20px;
}

/* Footer Banner */
.about-footer-banner {
    background-color: #f2f2f2;
    padding: 80px 40px;
    text-align: center;
}

.about-footer-banner h2 {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.banner-sub {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 30px;
}

.banner-desc {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 14px;
    line-height: 1.6;
}

.banner-signature {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.delivery-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 100px;
    font-family: sans-serif;
    color: #000;
}

.delivery-breadcrumbs {
    margin-bottom: 60px;
}

.delivery-breadcrumbs a {
    text-decoration: none;
    color: #999;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.delivery-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 60px;
}

/* Сітка */
.delivery-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

/* Стиль кроків (ліва колонка) */
.delivery-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    gap: 20px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #000;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.delivery-step p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding-top: 8px;
    color: #333;
}

/* Стиль булітів (права колонка) */
.delivery-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-bullets li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.delivery-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    line-height: 1;
}

.custom-cart-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: sans-serif;
}

/* Header */
.cart-header-row {
    margin-bottom: 40px;
}
.cart-back-link {
    text-decoration: none;
    color: #999;
    font-size: 13px;
}
.cart-title-wrapper {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-top: 20px;
}
.cart-main-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
}
.cart-count-text {
    font-size: 14px;
    color: #333;
}

/* Grid Layout */
.cart-layout-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.cart-items-list {
    flex: 1;
}
.cart-totals-sidebar {
    flex: 1;
    position: sticky;
    top: 87px;
}

/* Item Row */
.cart-item-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 30px;
}
.cart-item-image {
    width: 280px;
}
.cart-item-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    align-self: stretch;
}
.product-quantity {
    margin-top: 100%;
}
.product-name a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
}
.product-meta {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}
.product-meta p {
    margin: 0;
}
.product-meta .variation {
    margin: 0;
}

.product-meta .variation {
    display: flex;
    margin: 0;
}
.product-name {
    margin-top: 0;
    line-height: 1;
}
dd.variation- {
    margin-left: 5px;
}
dd.variation- p {
    margin: 0;
}
/* Quantity Input Styling */
.product-quantity input {
    width: 80px;
    padding: 10px;
    border: 1px solid #000;
    text-align: center;
    font-weight: bold;
}

/* Remove button */
.cart-item-remove a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Price */
.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

/* Totals Sidebar Box */
.totals-inner-box {
    background: #ebebeb;
    padding: 30px 25px;
}
.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 14px;
}
.delivery-row {
    margin-bottom: 75px;
}
.price-val {
    font-weight: 700;
    font-size: 16px;
}
.delivery-note {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Black Button */
.checkout-button-black {
    display: block;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-top: 30px;
    transition: 0.3s;
}
.checkout-button-black:hover {
    background: #333;
}

.product-quantity .quantity {
    display: block !important;
}

.cart-item-last {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
}

.custom-checkout-container {
    max-width: 1200px;
    margin: 0px auto;
}

.checkout-grid {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .checkout-grid {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .checkout-col-right {
        align-self: stretch;
        position: initial !important;
    }
    .review-title {
        margin-bottom: 10px;
    }
}

.checkout-col-left { flex: 1; max-width: 700px; }
.checkout-col-right { flex: 1; position: sticky; top: 20px; }

/* Заголовки */
.checkout-section-title { display: flex; align-items: baseline; gap: 15px; margin-bottom: 10px; }
.checkout-section-title h1 { font-size: 28px; font-weight: 700; text-transform: uppercase; margin: 0; }
.checkout-subtitle { font-size: 13px; color: #666; margin-bottom: 30px; line-height: 1.5; }
.section-sub-title { font-size: 18px; font-weight: 700; text-transform: uppercase; margin-top: 40px; }
.section-desc { font-size: 13px; color: #666; margin-bottom: 20px; }

/* Поля вводу (WooCommerce + Select2) */
.woocommerce-checkout .form-row input.input-text, 
.select2-container--default .select2-selection--single {
    width: 100% !important;
    height: 50px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 2px !important;
    padding: 2px 15px !important;
    font-size: 14px !important;
    background: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    padding-left: 0 !important;
}

/* Прибираємо стандартні лейбли, залишаємо плейсхолдери для чистоти */
.woocommerce-billing-fields label { display: none !important; }

/* Підсумок замовлення (Права колонка) */
.order-review-sticky {
    background: #f4f4f4;
}

.review-title { font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 25px; }

/* Стилізація товарів у рев'ю */
.shop_table.woocommerce-checkout-review-order-table { padding: 30px; border-collapse: collapse; }
.shop_table.woocommerce-checkout-review-order-table tr td { padding: 15px 0; border-bottom: 1px solid #ddd; }
.product-total { text-align: right; font-weight: 700; }

/* Кнопка Оплатити */
#place_order {
    width: 100%;
    background: #000 !important;
    color: #fff !important;
    padding: 20px !important;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    margin-top: 20px;
    transition: 0.3s;
}

/* Прибираємо стандартні заголовки */
.woocommerce-billing-fields h3, 
.woocommerce-additional-fields h3, 
#order_review_heading {
    display: none !important;
}

/* Права колонка - сірий блок */
.checkout-col-right {
    border-radius: 0;
}

.review-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.review-item-image { width: 80px; }
.review-item-image img { width: 100%; height: auto; object-fit: cover; }

.review-item-info { flex: 1; }
.review-item-name { font-weight: 700; text-transform: uppercase; font-size: 14px; display: block; }
.review-item-price { float: right; font-weight: 700; }
.review-item-meta { font-size: 12px; color: #666; margin-top: 5px; }

/* Кастомні радіо-кнопки (Сині як на дизайні) */
input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    top: 4px;
}
input[type="radio"]:checked {
    border-color: #007bff;
    background-color: #007bff;
    box-shadow: inset 0 0 0 4px #fff;
}

/* Поля вводу - прибираємо тіні та робимо плоскими */
.woocommerce-checkout input.input-text {
    border: 1px solid #e0e0e0 !important;
    background-color: #fff !important;
    padding: 15px !important;
    font-size: 14px;
}

/* Кнопка Оплатити */
#place_order {
    background: #000 !important;
    padding: 15px !important;
    font-size: 14px !important;
    letter-spacing: 2px;
}

/* Контейнер підсумку */
.checkout-col-right {
    border-radius: 0;
}

/* Список товарів */
.checkout-review-items {
    margin-bottom: 20px;
}

.review-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

/* Фото товару */
.review-item-image {
    width: 90px;
    flex-shrink: 0;
}
.review-item-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Контентна частина */
.review-item-content {
    flex-grow: 1;
}

.review-item-header {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-name {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    max-width: 180px;
}

.product-total-price {
    font-weight: 500;
    font-size: 14px;
}

/* Метадані (Колір, Розмір) */
.product-metadata {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.product-metadata .variation {
    margin: 0;
}
.product-metadata dt, .product-metadata dd {
    display: inline;
    margin: 0;
}
.product-metadata dt { font-weight: 400; }
.product-metadata dd p { display: inline; }

.product-qty {
    margin-top: 5px;
}

/* Блок підсумкових цифр */
.checkout-review-totals {
    padding-top: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.order-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-weight: 700;
}

.final-price {
    font-size: 16px;
}

/* --- MOBILE MENU STYLES --- */

/* Сховати гамбургер на десктопі */
.mobile-toggle {
    display: none;
    font-size: 24px; /* Трохи більше */
    cursor: pointer;
    margin-left: 20px;
    width: 24px;
    text-align: center;
}

.desktop-only {
    display: block;
}

/* Стилі для випадаючого меню */
.site-header {
    position: sticky; /* Важливо для позиціювання */
    top: 0;
    z-index: 1000;
    background: #fff;
}

.mobile-dropdown {
    position: absolute;
    top: 100%; /* З'являється рівно під шапкою */
    left: 0;
    width: 100%;
    background: #fff;
    overflow: hidden;
    max-height: 0; /* Спочатку сховано */
    transition: max-height 0.4s ease-in-out; /* Плавна анімація висоти */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); /* Тінь знизу */
    border-top: 1px solid #f9f9f9;
}

/* Клас активності (додається через JS) */
.mobile-dropdown.active {
    max-height: 500px; /* Достатньо, щоб показати всі пункти */
}

/* Стилі посилань всередині */
.mobile-nav-links {
    padding: 20px 0 30px; /* Відступи всередині меню */
}

.mobile-nav-links ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #1a1a1a;
    display: block;
    padding-left: 5px; /* Невеликий відступ зліва */
}

.zen-ui-select__search-input {
    width: calc(100% - 17px);
}

.wc_payment_method .payment_box {
    display: none !important;
}

.woocommerce-checkout #payment {
    background: #fff !important;
}

.form-row.place-order .woocommerce-terms-and-conditions-wrapper {
    display: none !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none;
    padding: 0;
}

.hostinger-reach-optin {
    display: none;
}

.woocommerce-checkout-payment .place-order {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ефект завантаження кнопки */
.single_add_to_cart_button {
    transition: all 0.3s ease;
}

.single_add_to_cart_button.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.single_add_to_cart_button.added {
    background-color: #4CAF50 !important; /* Зелений колір успіху */
    color: #fff !important;
    border-color: #4CAF50 !important;
}

.woocommerce a.added_to_cart {
    display: none !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6) !important;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
}

/* =========================================
   CLIENTS PAGE STYLES
   ========================================= */
.clients-page-wrapper {
    background-color: #050505; /* Темний фон */
    padding: 80px 0;
    min-height: 70vh;
    color: #fff;
}

.page-main-title {
    text-align: center;
    font-size: 36px;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
}

.page-subtitle {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clients-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px 30px;
}

.client-card-page {
    text-align: center;
}

.client-image-page {
    width: 100%;
    aspect-ratio: 4 / 5; /* Пропорція для фото (Instagram стиль) */
    overflow: hidden;
    margin-bottom: 20px;
}

.client-image-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.client-card-page:hover .client-image-page img {
    transform: scale(1.03);
}

.client-name-page {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #fff;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .clients-page-wrapper { padding: 40px 0; }
    .page-main-title { font-size: 28px; }
    .clients-grid-page { 
        grid-template-columns: 1fr; /* По одному фото на телефоні */
        gap: 40px; 
    }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .main-nav.desktop-only,
    .desktop-only {
        display: none !important;
    }

    .mobile-toggle {
        display: block;
    }
    
    .header-container {
        padding: 0 15px;
        height: 60px; /* Фіксуємо висоту шапки */
    }
}

@media (max-width: 992px) {
    .cart-layout-grid { flex-direction: column; }
    .cart-item-row { flex-wrap: wrap; }
    .cart-item-image { width: 120px; }
}

/* Адаптивність */
@media (max-width: 992px) {
    .delivery-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .delivery-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about-main-grid, .about-features-grid {
        grid-template-columns: 1fr;
    }
    .about-text-left, .about-text-right {
        text-align: center;
    }
}

/* Щоб на мобільному стрілки не перекривали все */
@media (max-width: 768px) {
    .lb-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.3); /* Темніший фон для контрасту */
    }
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
}

/* Анімація збільшення при відкритті */
@keyframes zoomIn {
  from {transform:scale(0.8); opacity: 0;}
  to {transform:scale(1); opacity: 1;}
}

/* Адаптив для мобільного */
@media only screen and (max-width: 700px){
  .lightbox-content {
    width: 95%;
    padding-top: 20%
  }
  .close-lightbox {
      top: 10px;
      right: 20px;
  }
}

/* Адаптив для мобільного */
@media (max-width: 480px) {
    .one-click-modal-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    .modal-product-preview {
        width: 100px;
        height: 130px;
    }
}

/* Адаптив для мобільного */
@media (max-width: 768px) {
    .product-main-wrapper { grid-template-columns: 1fr; }
    .flex-buttons-row { flex-direction: column; }
    button.single_add_to_cart_button, .btn-one-click { width: 100%; }
}

/* Мобільна версія */
@media (max-width: 768px) {
    .product-main-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Адаптив для мобільного */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr 1fr; max-height: 376px; }
    .hero-grid .hero-item:last-child { display: none; }
    .main-nav { display: none; } /* Тут треба додати JS для мобільного меню */
    .promo-section { flex-direction: column; }
}
/* =========================================
   CUSTOM CART PAGE STYLES (NANA STYLE)
   ========================================= */

/* --- 1. GENERAL LAYOUT & TYPOGRAPHY --- */
.custom-cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
}

/* Header Section */
.cart-header-row {
    margin-bottom: 40px;
}

.cart-back-link {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
    display: inline-block;
    text-decoration: none;
}

.cart-title-wrapper {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.cart-main-title {
    font-size: 32px;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.cart-count-text {
    font-size: 12px;
    color: #888;
}

/* --- 2. GRID LAYOUT (DESKTOP DEFAULT) --- */
.cart-layout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr; /* Ліва колонка ширша, права вужча */
    gap: 60px;
    align-items: start;
}

/* --- 3. CART ITEMS LIST --- */
.cart-item-row {
    display: flex;
    gap: 30px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

/* Image */
.cart-item-image {
    width: 180px; /* Фіксована ширина фото */
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4; /* Пропорції як у каталозі */
    object-fit: cover;
    display: block;
}

/* Details Middle Column */
.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name a {
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
}

.product-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.product-meta p {
    margin: 0;
}

/* Quantity Input Styling */
.product-quantity {
    margin-top: auto; /* Притискаємо до низу */
}

.product-quantity input.qty {
    width: 80px;
    border: 1px solid #1a1a1a;
    background: #fff;
    text-align: center;
    font-size: 14px;
    border-radius: 0;
    -moz-appearance: textfield;
}

/* Last Column (Remove & Price) */
.cart-item-last {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    min-width: 120px;
}

.remove-btn {
    font-size: 12px;
    color: #000;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.remove-btn:hover {
    color: #d00;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- 4. TOTALS SIDEBAR (Gray Box) --- */
.cart-totals-sidebar {
    position: sticky;
    top: 100px; /* Прилипання при скролі */
}

.totals-inner-box {
    background-color: #f0f0f0; /* Світло-сірий фон як на макеті */
    padding: 40px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    text-transform: uppercase;
}

.total-row span:first-child {
    color: #555;
}

.price-val {
    font-weight: 600;
    color: #000;
}

.delivery-note {
    font-size: 10px;
    font-weight: 700;
    color: #1a1a1a;
}

.checkout-button-black {
    display: block;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    margin-top: 30px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.checkout-button-black:hover {
    background: #333;
    color: #fff;
}

.woocommerce-notices-wrapper {
    display: none !important;
}

/* =========================================
   MOBILE RESPONSIVE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
    .product-quantity input.qty {
        height: auto;
    }
    
    .cart-layout-grid {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 0px;
    }

    .cart-header-row {
        margin-bottom: 20px;
    }
    
    /* Змінюємо вигляд картки товару */
    .cart-item-row {
        flex-direction: column; /* Вертикальний стек */
        gap: 15px;
        position: relative; /* Для абсолютного позиціонування ціни/видалення */
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
    }

    .cart-item-image {
        width: 100%; /* Фото на всю ширину */
    }

    .cart-item-image img {
        aspect-ratio: 1/1; /* Квадратне фото на мобільному (як в інсті) */
        width: 100%;
    }

    .cart-item-details {
        width: 100%;
    }

    .product-name a {
        font-size: 16px;
    }
    
    .cart-item-last {
        flex-direction: row; /* На мобільному ціна і видалити в один рядок? */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }

    /* Або, щоб зробити точно як на скріншоті (Screenshot 16.54.16) */
    /* На скріншоті: 
       - Фото велике
       - Під ним зліва назва, справа кнопка "Видалити"
       - Нижче опис
       - Ще нижче Кількість (зліва) і Ціна (справа)
    */
    
    /* Перебудовуємо візуально через Flex order або абсолюти */
    
    /* 1. Блок з назвою і мета-даними */
    .cart-item-details {
        position: relative;
    }

    /* 2. Кнопка видалити - переміщуємо візуально вгору до заголовка */
    .remove-btn {
        position: absolute;
        top: 0;
        right: 0;
    }
    
    /* 3. Кількість і ціна внизу */
    .product-quantity {
        margin-top: 15px;
    }

    .cart-item-last {
        flex-direction: row;
        align-items: center;
        width: 100%;
        /* Оскільки Remove ми забрали абсолютом, тут лишилася тільки ціна. 
           Треба підняти Quantity в цей ряд */
    }
    
    /* Хак для мобільного лейауту: Quantity в cart-item-details, а Price в cart-item-last.
       Зробимо їх на одному рівні візуально. */
    
    .cart-item-details {
        display: block; /* Скидаємо flex */
    }
    
    .product-quantity {
        display: inline-block;
        margin-top: 15px;
    }
    
    .cart-item-last {
        display: inline-block;
        float: right;
        min-width: auto;
        margin-top: 25px; /* Вирівнюємо з інпутом кількості */
    }
    
    .remove-btn {
        /* Позиціонуємо кнопку "Видалити" праворуч від Назви */
        position: absolute;
        top: -65px; /* Піднімаємо в блок details (експериментально підбирається) */
        right: 0;
        /* УВАГА: Це складний момент через структуру HTML. 
           Простіше буде просто поставити Remove під ціною або залишити стандартно */
    }
    
    /* Спрощений мобільний варіант (надійний): */
    .cart-item-last {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        margin-top: 10px;
    }
    
    .remove-btn {
        position: static; /* Повертаємо в потік */
        order: 2;
    }
    
    .cart-item-price {
        order: 1;
        font-size: 16px;
    }
    
    /* Totals Box на мобільному */
    .totals-inner-box {
        padding: 20px;
    }
}
.woocommerce {
    display: block !important;
}
/* --- КАСТОМНИЙ ПЕРЕМИКАЧ МОВ (POLYLANG SELECT) --- */
.lang-switch form,
.footer-lang form {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.lang-switch select,
.footer-lang select {
    /* Прибираємо стандартний дизайн браузера */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    background-color: transparent;
    border: none;
    font-family: var(--font-main);
    font-size: 16px; 
    font-weight: 700; /* Робимо жирним, як на макеті */
    color: #000;
    padding: 0 16px 0 0; /* Місце для нашої кастомної стрілки */
    margin: 0;
    cursor: pointer;
    text-transform: uppercase;
    outline: none;
    
    /* Додаємо кастомну мінімалістичну стрілку */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px; /* Розмір стрілки */
}

/* Прибираємо можливий пунктир при кліку у Firefox */
.lang-switch select:-moz-focusring,
.footer-lang select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}

/* Стилізація самих пунктів у списку (працює не в усіх браузерах, але покращує вигляд там, де підтримується) */
.lang-switch select option,
.footer-lang select option {
    font-weight: 500;
    color: #000;
    background: #fff;
    padding: 5px;
}
/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
    display: flex;
    justify-content: center;
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.08); /* Легка тінь зверху */
    border-radius: 12px 12px 0 0;
    transform: translateY(100%); /* Ховаємо внизу екрану */
    transition: transform 0.4s ease-out;
}

/* Клас, який буде плавно підіймати банер */
.cookie-banner-overlay.show {
    transform: translateY(0);
}

.cookie-banner-content {
    width: 100%;
    max-width: 600px; /* Обмежуємо ширину на десктопі */
    padding: 30px 20px 20px;
    position: relative;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.close-cookie {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: #999;
    font-size: 20px;
    transition: 0.3s;
    line-height: 1;
}
.close-cookie:hover {
    color: #000;
}

.cookie-text {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0 0 20px 0;
    text-align: left;
}

.btn-cookie-accept {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 30px; /* Робимо кнопку овальною, як на фото */
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-cookie-accept:hover {
    background: #333;
}

/* 1. Захищаємо батьківські контейнери WooCommerce */
.woocommerce-checkout .form-row .woocommerce-input-wrapper {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important; /* Критично для адаптиву в чекауті */
}

.woocommerce-input-wrapper .zen-ui-select {
    max-width: 100% !important;
    width: 100% !important;
}

/* 2. МАГІЯ GRID: створюємо жорстку сітку з 2 колонок */
.woocommerce-input-wrapper .zen-ui-select__value {
    display: grid !important;
    grid-template-columns: 1fr auto !important; /* 1fr для тексту, auto для іконки */
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important; /* Відстань між текстом та іконкою */
}

/* 3. Жорстке обрізання тексту в першій колонці */
.woocommerce-input-wrapper .zen-ui-select__value-text {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important; 
    min-width: 0 !important; /* Grid теж потребує цього для обрізання */
}

/* 4. Захист іконки в другій колонці */
.woocommerce-input-wrapper .zen-ui-select__value svg {
    display: block !important;
    width: 16px !important;
    min-width: 16px !important;
}


.lang-switch select,
.footer-lang select {
    pointer-events: none;
}