﻿/* 1. ПІДКЛЮЧЕННЯ ШРИФТІВ (завжди першим рядком) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@600&display=swap');
/* --- ОСНОВНІ НАЛАШТУВАННЯ --- */
:root {
    --primary-dark: #1a1a1a;
    --bg-milky: #f5f3ee;      /* Теплий молочний колір як на лого */
    --accent-soft: #e2dfd5;    /* М'який бежево-сірий для оффера */
    --white: #ffffff;
    --text-main: #2c2c2c;
    --text-muted: #666666;
    --accent-blue: #0057b7;    /* Для цін та посилань */
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. ПРИМУСОВЕ ПРИЗНАЧЕННЯ ШРИФТІВ */



body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ШАПКА (HEADER) --- */
.header {
    background-color: var(--bg-milky);
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky; /* Закріплення */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-wrapper {
    background: var(--white);
    width: 60px;  
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    flex-shrink: 0; 
}

/* Твоє налаштування логотипу без змін */
.logo {
    width: 14%;
    height: 90%;
    border-radius: 50%;
    object-fit: contain;
}

.callback-btn {
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px; 
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap; 
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .logo-wrapper {
        width: 50px;
        height: 50px;
    }
    .callback-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* --- ГОЛОВНИЙ ЕКРАН (HERO) --- */
.hero {
    background-color: var(--accent-soft);
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px; 
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.main-btn {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.main-btn:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Контейнер слайдера всередині картки */
.product-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 20px;
}

.product-slider {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.product-slide {
    min-width: 100%;
}

.product-slide img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

/* Кнопки стрілочки */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 14px;
    z-index: 5;
    transition: 0.3s;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-prev:hover, .slider-next:hover {
    background: #fff;
}

/* Контейнер для обмеження видимості */
.slider-container {
    position: relative; /* Це обов'язково для позиціювання кнопок */
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.07);
}

.slider {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    display: block;
}

/* Універсальні стилі кнопок для слайдерів */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); /* Напівпрозорий чорний */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* --- КАТАЛОГ --- */
.catalog {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary-dark);
    margin: 15px auto 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    padding: 20px;
    border-radius: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.product-card img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.price {
    margin: 15px 0 20px;
}

.old-price {
    text-decoration: line-through;
    color: #b0b0b0;
    font-size: 1rem;
    margin-right: 10px;
}

.new-price {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.4rem;
}

.details-btn {
    display: block;
    background: var(--primary-dark);
    color: var(--white);
    padding: 12px;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.details-btn:hover {
    background: var(--accent-soft);
}

/* --- ПЕРЕВАГИ (BENEFITS) --- */
.benefits {
    padding: 0px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.benefit-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-milky);
    border-radius: 35px;
    transition: var(--transition);
}

.benefit-icon {
    font-size: 45px;
    margin-bottom: 20px;
    display: block;
}

.benefit-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- ВІДГУКИ (SLIDER) --- */
.reviews {
    padding: 60px 0 15px;
    background: var(--white);
}

.slider-container {
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.07);
    background: #fff;
}

.slider {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- ПІДВАЛ (FOOTER) --- */
.footer {
    background: var(--bg-milky);
    padding: 60px 0 30px;
    text-align: center;
}

.socials {
    margin-bottom: 40px;
}

.socials a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

/* --- МОДАЛЬНЕ ВІКНО (CALLBACK) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: modalFadeUp 0.4s ease;
}

@keyframes modalFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-content h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 15px;
    outline: none;
}

.modal-content input:focus {
    border-color: var(--primary-dark);
}

/* --- АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ --- */
@media (max-width: 768px) {
    .hero {
        padding: 40px 15px;
        border-radius: 0 0 30px 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 30px 20px;
    }
}

/* Сторінка товару */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 20px;
}

.main-slider-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.main-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.main-slide img {
    width: 100%;
    display: block;
}

/* Форма замовлення */
.order-form {
    background: var(--bg-milky);
    padding: 30px;
    border-radius: 30px;
    margin-top: 30px;
}

.order-form input, .order-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
}

.autocomplete-list {
    background: white;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: absolute;
    width: 100%;
    z-index: 10;
}

.upsell-block {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px dashed var(--primary-dark);
}

@media (max-width: 768px) {
    .product-container { grid-template-columns: 1fr; }
}

.autocomplete-list {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: calc(100% - 40px);
    z-index: 100;
    max-height: 150px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
}

.autocomplete-item:hover {
    background: var(--bg-milky);
}

.np-fields {
    position: relative; /* Щоб список міст був під інпутом */
}

.product-page-bg { background-color: #fff; }

.product-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
    padding-bottom: 50px;
}

/* Галерея */
.product-gallery-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.product-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.product-price-block {
    text-align: center;
    margin-bottom: 20px;
}

/* Форма */
.checkout-box {
    background: var(--bg-milky);
    padding: 25px;
    border-radius: 35px;
    margin-top: 20px;
}

.checkout-box h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.checkout-box input, .checkout-box select {
    width: 100%;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 15px;
    border: 1px solid #eee;
    font-size: 1rem;
}

.order-submit-btn {
    width: 100%;
    background: var(--primary-dark);
    color: #fff;
    padding: 20px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
}

/* Слайдер на сторінці товару */
.main-slider-container { position: relative; overflow: hidden; border-radius: 20px; }
.main-slider { display: flex; transition: transform 0.5s ease-in-out; }
.main-slide { min-width: 100%; }
.main-slide img { width: 100%; display: block; }

@media (min-width: 769px) {
    .product-main {
        flex-direction: row;
        align-items: flex-start;
    }
    .product-gallery-section { width: 50%; }
    .product-details-section { width: 50%; }
    .product-title { text-align: left; }
    .product-price-block { text-align: left; }
}

/* Картка опису товару */
.product-description-card {
    background: #fdfcf9; /* Дуже світлий кремовий фон */
    padding: 25px;
    border-radius: 25px;
    border: 1px solid #eee;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.ethno-badge {
    display: inline-block;
    background: var(--primary-dark);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
}

/* Список переваг іконками */
.specs-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-icon {
    font-size: 20px;
    background: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.spec-item p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.size-tag {
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.9rem;
    color: #777;
}
/* --- СТИЛІ БЛОКУ "ЯК ЗАМОВИТИ" (ГОЛОВНА) --- */
.how-to-order {
    padding: 60px 0;
    background-color: #fdfcf9; /* Світлий беж */
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.step p {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

/* --- СТИЛІ БЛОКУ "ЩО ДАЛІ?" (СТОРІНКА ТОВАРУ) --- */
.product-steps-box {
    background: #fff;
    padding: 25px;
    border-radius: 25px;
    border: 1px solid #eee;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.product-steps-box h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-align: center;
}

.p-step {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
    color: #444;
}

.p-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.p-step strong {
    color: var(--primary-dark);
}
/* --- ФІКС ЦЕНТРУВАННЯ ТА ЗДВИГУ НА ПК --- */

/* Глобальне центрування всіх секцій */
section, main {
    width: 100%;
    display: block; /* Важливо: скидаємо флекс для всього контейнера */
    clear: both;
}

.container {
    max-width: 1200px;
    margin: 0 auto !important; /* Рівно посередині */
    padding: 0 20px;
    display: block; /* Скидаємо флекс, якщо він був */
}

/* Спеціально для сторінки товару (галерея + опис) */
.product-main {
    display: flex !important; /* Тут флекс потрібен, щоб фото і опис були поруч */
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding-top: 40px;
}

/* Виправлення для відгуків, щоб вони не тікали вбік */
.reviews .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центруємо заголовок та слайдер */
}

.slider-container {
    margin: 0 auto !important; /* Центруємо слайдер відгуків */
    width: 100%;
    max-width: 600px;
}

/* Виправлення форми замовлення на ПК */
.checkout-box {
    margin: 20px auto !important; /* Центруємо форму в її колонці */
    max-width: 500px;
    width: 100%;
}
.hero-section {
    /* Додаємо градієнт від чорного (0.5 - 50% прозорості) поверх фото */
    background: linear-gradient(rgb(64 64 64 / 50%), rgb(56 56 56 / 50%)), url(img/bag_hero.jpg) no-repeat center center;
    background-size: cover;
    padding: 120px 20px; /* Збільшив відступи для більшого об'єму */
    text-align: center;
    color: #ffffff;
    border-radius: 0 0 40px 40px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Легка тінь під літерами */
    max-width: 800px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-section .order-submit-btn {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #ffffff; /* Біла рамка виділить кнопку на темному фоні */
    padding: 15px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.hero-section .order-submit-btn:hover {
    background-color: #ffffff;
    color: #000000;
}