body {
    display: flex;
    flex-direction: column;
    /* min-height: 100vh; */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

main {
    flex: 1;
    margin-top: 10vh;
}

.Logo img {
    width: 100px;
    height: auto;
    border: 2px white;
    border-radius: 100px;
}

.Logo {
    transition: transform 0.3s ease;
}

.Logo:hover {
    transform: scale(1.1);
}

/* Слайдер */
.slider {
    width: 70%;
    height: 80vh;
    overflow: hidden;
    margin: 5px auto;
    border-radius: 4px;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 1s ease-in-out;
}
@media (max-width: 768px) {
    .slider {
        width: 100%;
        height: 100%;
    }
}


/* Слайдер */

header {
    background-color: black;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    height: 105px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease-in-out;
    opacity: 90%;
}

/* Навигация */

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu li {
    display: inline;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.nav-menu a.active {
    color: #D7A86E;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #D7A86E;
}

.burger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}


/* 📱 Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: black;
        width: 200px;
        border-radius: 10px;
        padding: 10px;
        text-align: right;
    }

    .nav-menu li {
        margin-bottom: 10px;
    }

    .burger {
        display: block;
    }

    /* Когда меню активно */
    .nav-menu.active {
        display: flex;
    }
} 

.hero {
    padding: 20px ;
    margin-top: 30px;
    background-color: #cd8451;
    color: #f9f9f9;
    display: flex;
}

.hero h1 {
    font-size: 36px;
    margin-top: 140px;
}

@media (max-width: 768px){
    .hero {
        background-color: #cd8451;
        margin-top: 20px;
        display: flex;
        justify-content: center;
        flex-direction: column;
        width: auto;
    }

    .hero h1 {
        font-size: 24px;
        margin-top: 10px;
    }

}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 200px;
}

.btn:hover {
    background-color: #CFAF6E;
    transform: scale(1.05);
}

.side-info {
    width: 400px;
    margin-left: 20px;
}

@media (max-width: 768px) {
    .side-info {
        width: auto;
        margin-left: auto;
    }

    .side-info a {
        width: 200px;
    }
}

/* Каталог */

.catalog-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 105px;
    background-color: rgb(144, 98, 67);
}


.catalog-container h2 {
    color: #f9f9f9;
    font-size: 32px;
    font-weight: bold;
}

.filter-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background-color: #d2a679;
}

.filter-btn {
    -webkit-appearance: none;
    appearance: none;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #8B4513;
    color: white;
}

.products {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px;
    margin-top: 110px;
    background-color: rgb(144, 98, 67);
}

.product-list {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;

}

.product {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    height: auto;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product:hover img {
    transform: rotate(-3deg) scale(1.05);
}

.product h3 {
    font-size: 18px;
    margin: 10px 0;
    color: black;
}

.products h2 {
    margin: 10px;
    color: white;
    font-size: 26px;
}

.product p {
    font-size: 14px;
    color: black;
}

#top-product {
    font-size: 18px;
    font-weight: bold;
}

.price {
    font-size: 16px;
    font-weight: bold;
    color: black;
    margin-bottom: 10px;
}


.product .btn {
    display: inline-block;
    margin-top: 15px;
    background: black;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 16px;
    transition: 0.3s;
    width: 65px;
}

@media (max-width: 768px) {
    .product img {
        width: 320px;
    }

    .product .btn {
        width: 75px;
    }

    .product:hover {
        transform: none;
        box-shadow: none;
    }

    .product:hover img {
        transform: none;
    }
}

.product .btn {
    transition: transform 0.2s ease, background 0.2s ease;
}

.product .btn:hover {
    background: #666;
    transform: scale(1.1);
}

.product .btn:active {
    transform: scale(1);
}

.modal {
    display: none;
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    z-index: 1000;
}

@media(max-width:768px) {
    .modal-content {
        margin-top: 140px;
    }
}

.modal-content {
    background: white;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.image-gallery img {
    border-radius: 4px;
    margin-left: 15px;
    margin-right: 15px;
    width: 300px;
    height: 400px;
}

.product button {
    display: inline-block;
    margin-top: 15px;
    background: black;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid;
    font-size: 16px;
    transition: 0.3s;
    cursor: pointer;
}

.product button:hover {
    background-color: #666;
    transform: scale(1.1);
}

/* Каталог */


/* Преимущества */
.advantages {
    text-align: center;
    padding: 50px 0px;
    background-color: white;
}

.advantages h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

.advantage-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.advantage {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
}

.advantage i {
    font-size: 40px;
    color: #8B4513;
    margin-bottom: 10px;
}

.advantage h3 {
    font-size: 20px;
    margin: 10px 0;
    color: #333;
}

.advantage p {
    font-size: 14px;
    color: #555;
}

@media (max-width: 768px) {
    .advantage-list {
        flex-direction: column;
        align-items: center;
    }

    .advantage {
        width: 100%;
        max-width: 300px;
    }
}
/* Преимущества */

/* Низ */
footer {
    background-color: black;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    background-color: black;
    color: white;
    padding: 20px;
    text-align: center;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
    position: relative;
    display: inline-block;
}

.social-icons a:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .catalog-container {
        margin-top: 110px;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product {
        width: 100%;
    }
    .btn {
        width: 100%;
    }
}
/* Низ */

/* Стили для модального окна корзины */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Поднимаем выше всего */
}

.cart-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    position: relative;
}

.close-cart {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    border: 1px solid lightgrey;
    border-radius: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.cart-total {
    font-size: 18px;
    margin: 15px 0;
}

.clear-cart {
    background: black;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.clear-cart:hover {
    background: #444;
}

.checkout-btn {
    background: black;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.checkout-btn:hover {
    background: #444;
}

.decrease-qty, .increase-qty, .remove-item {
    background: white;
    color: black;
    font-weight: bold;
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;

}

/* Стили для иконки корзины */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 24px;
    color: white;
}

/* 🔄 Анимация увеличения корзины при добавлении товара */
@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-icon i.animated {
    animation: cartBounce 0.3s ease-in-out;
}

/* 🎞 Плавное появление товара в корзине */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cart-item {
    opacity: 0; /* Изначально скрыт */
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease-out forwards;
}


.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    background: red;
    color: white;
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    text-align: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.cart-item-img {
    width: 70px; /* Делаем миниатюры */
    height: 70px;
    object-fit: cover; /* Чтобы не растягивались */
    border-radius: 8px;
}

.offers-list {
    display: flex;
    justify-content: space-around;
}

.offer img {
    width: 300px;
    height: 400px;
    margin-top: 20px;
}

@media(max-width: 768px) {
    .offer img {
        width: 190px;
        height: 350px;
    }
}

.special-offers {
    /* margin-bottom: 20px; */
    background: linear-gradient(to top,#F5E1DA, #795548);
}

.special-offers h2 {
    color: white;
}

.sale {
    background: red;
    color: white;
    border-radius: 4px;
    padding: 2px 2px;
}

/* Історія замовлень */

#orders-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px auto;
    padding: 0;
    list-style: none;
    align-items: start;
    grid-auto-rows: auto;
}

/* Кожне замовлення як окрема картка */
#orders-list li {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#orders-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Заголовок замовлення */
#orders-list li h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: #333;
}

/* Інформаційні параграфи */
#orders-list li p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #555;
}


/* Список товарів всередині замовлення */
#orders-list li ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

/* Список товару – кожен товар */
#orders-list li ul li {
    list-style: none;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #444;
}

#orders-list li img {
    border-radius: 8px;
    max-width: 80px;
    margin-right: 10px;
}

/* Додатковий контейнер для товарів, щоб картка виглядала більш структуровано */
.order-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

#orders-list li hr {
    display: none;
  }
  



/* 
.clear-orders {
    border-radius: 4px;
    background-color: white;
    color: black;
    border: 1px solid black;
    box-shadow: 0 2px 4px rgba(84, 27, 27, 0.1);
    transition: transform 0.3s ease;
    width: 250px;
    height: 40px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
}

.clear-orders:hover {
    background-color: red;
    transform: scale(1.1);
    transition: 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
} */

/* Мій кабінет */

.profile-main {
    margin-top: 80px;
}

.profile-main h2 {
    color: #f9f9f9;
    padding: 20px;
    text-align: center;
    height: 50px;
    font-size: 30px;
    background-color: #8B4513;
}

#logout-btn {
    width: 200px;
    background-color: black;
    color: #f9f9f9;
    border: 1px solid;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#logout-btn:hover {
    background-color: #f9f9f9;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#profile-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px auto;
    width: 300px;
    margin-top: 15px;
    gap: 5px;
}

#edit-profile-btn {
    width: 200px;
    background-color: black;
    color: #f9f9f9;
    border: 1px solid;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#edit-profile-btn:hover {
    background-color: #f9f9f9;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#profile-form {
    gap: 10px;
}
#profile-form button {
    width: 300px;
    background-color: black;
    color: #f9f9f9;
    border: 1px solid;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}
#profile-form button:hover {
    background-color: #f9f9f9;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


#new-displayName, #current-password, #new-password {
    border: 1px solid;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#delete-account-btn {
    width: 200px;
    background-color: red;
    color: #f9f9f9;
    border: 1px solid;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#delete-account-btn:hover {
    background-color: #f9f9f9;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Login form */

.login-card {
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 500px;
    height: 500px;
    margin: 150px auto;
}

#login-form {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 20px auto;
    width: 300px;
    margin-top: 15px;
    gap: 5px;
}

#sign-btn {
    background-color: black;
    color: #f9f9f9;
    border: 1px solid;
    border-radius: 4px;
    width: 160px;
    margin: 10px auto;
    padding: 8px;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    cursor: pointer;
}
#login-form input {
    font-size: 18px;
}

#sign-btn:hover {
    background-color: #f9f9f9;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-link {
    text-decoration: none;
}


.confirmed-order {
    margin-top: 200px;
    height: 200px;
}

@media (max-width: 767px) {
    body {
        background-color: white;
    }

    .login-card {
        width: 100%;
        height: 100%;
        background-color: #ffffff;
        margin-top: 200px;
    }
  }


/* Registration */

.registration-card {
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 500px;
    height: 500px;
    margin: 150px auto;
}

@media (max-width: 767px) {
    .registration-card {
        margin-top: 200px;
        width: 100%;
        height: 100%;
        background-color: #ffffff;
    }
}

#register-form {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 20px auto;
    width: 300px;
    margin-top: 15px;
    gap: 5px;
}
#register-form input {
    font-size: 18px;
}

#registr-btn {
    background-color: black;
    color: #f9f9f9;
    border: 1px solid;
    border-radius: 4px;
    width: 180px;
    margin: 10px auto;
    padding: 8px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    cursor: pointer;
    font-size: 18px;
}

#registr-btn:hover {
    background-color: #f9f9f9;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.register-link {
    text-decoration: none;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 40px; /* Отступ для кнопки */
    width: 100%;
}

.password-container button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3490db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cookie-banner */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    z-index: 1000;
    display: none;
}

.cookie-banner a {
    color: #4da6ff;
    text-decoration: underline;
}

.cookie-banner button {
    margin-left: 15px;
    padding: 8px 15px;
    border: none;
    background: #4da6ff;
    cursor: pointer;
    border-radius: 4px;
}

.cookie-banner button:hover {
    background: #75b7f9;
}

.privacy {
    color: #f9f9f9;
    font-size: 12px;
}

.privacy-registr {
    color: #666;
    font-size: 12px;
}