* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fff;
    color: #333;
    text-align: center;
}

/* ===== HEADER ===== */
.header {
    width: 100%;
    background: white;
    transition: all 0.3s ease;
}

/* состояние когда закрепился */


html {
    scroll-behavior: smooth;
}

.top-title {
    font-size: 27px;
    color: #555;
    margin-bottom: 25px;
    padding: 20px;
}

/* NAV */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* MENU */
.menu {
    display: flex;
    gap: 15px;
}

/* КНОПКИ МЕНЮ */
.menu a {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 6px 10px;   /* замість width/height */

    text-decoration: none;
    border-radius: 10px;

    background: #e0e0e0;
    color: black;

    font-size: 14px;
    white-space: nowrap; /* щоб текст не ламався */

    transition: 0.3s;
}

.menu {
    display: flex;
    flex-wrap: wrap;   /* дозволяє перенос */
    gap: 8px;
}

@media (max-width: 400px) {
    .menu a {
        font-size: 12px;
        padding: 5px 8px;
    }
}


.menu a:hover {
    background: #ff2d6f;
    color: white;
    transform: translateY(-2px);
}

/* LOGO */
.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* ===== SECTION ===== */
.section {
    padding: 20px;
}

/* ===== CARD ===== */
.card {
    width: 412.4px;
    height: 377.99px;

    margin: 15px auto;
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 3px 10px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* КАРТИНКА */
.card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 10px;
}

/* ТЕКСТ */
.card h3 {
    margin: 10px 0 5px;
}

.card p {
    margin: 4px 0;
}

/* КНОПКА В КАРТОЧКЕ */
.card button {
    margin-top: auto;
    margin-bottom: 10px;

    width: 95.1125px;
    padding: 10px;

    border: none;
    background: linear-gradient(135deg, rgb(109, 142, 232), rgb(87, 118, 201));
    color: white;

    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover {
    background: #e91e63;
}

.card button:active {
    transform: scale(0.95);
}

/* ===== КОРЗИНА ===== */
/* ЗАГОЛОВОК */
/* ===== КОРЗИНА ===== */

.cart-title {
    margin: 20px 0;
}

/* КОНТЕЙНЕР */
.cart-container {
    width: 95%;
    max-width: 500px;
    margin: auto;
}

/* СПИСОК */
.cart-items {
    margin-bottom: 20px;
}

/* ТОВАР */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;

    gap: 10px;
}

/* ІНФО */
.cart-info {
    flex: 1;
    text-align: left;
}

/* КНОПКИ + - */
.cart-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-controls button {
    padding: 5px 8px;
    border: none;
    background: #ff69b4;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

/* ВИДАЛИТИ */
.remove-btn {
    background: red;
    color: white;
    border: none;
    padding: 5px 7px;
    border-radius: 5px;
    cursor: pointer;
}

/* БЛОК ЗАМОВЛЕННЯ */
.cart-summary {
    background: #f3f3f3;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

/* КНОПКА */
.checkout-btn {
    display: block;
    background: #ff2d6f;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    margin: 10px 0;
}

/* НАЗАД */
.back-link {
    display: block;
    text-decoration: none;
    color: #333;
}

/* ===== ПУСТАЯ КОРЗИНА ===== */
.empty-cart {
    min-height: 70vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;
    gap: 15px;
}

/* КНОПКА В ПУСТОЙ */
.go-shop {
    background: #ff2d6f;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 400px) {

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-controls {
        margin-top: 5px;
    }

    .remove-btn {
        align-self: flex-end;
    }
}



/* ===== ФОРМА ===== */
form {
    width: 90%;
    max-width: 400px;
    margin: 20px auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

input {
    width: 100%;
    padding: 12px;

    border: 1px solid #ccc;
    border-radius: 8px;

    font-size: 14px;
}

/* КНОПКА ФОРМИ */
form button {
    width: auto;
    padding: 12px 20px;

    background: #ff69b4;
    color: white;

    border: none;
    border-radius: 8px;

    cursor: pointer;
}

form button:hover {
    background: #e91e63;
}

.forw {
    display: inline-block;
    margin: 20px auto;

    padding: 10px 15px;
    background: #333;
    color: white;

    text-decoration: none;
    border-radius: 8px;
}

/* ===== НАЗАД ===== */
.back {
    display: inline-block;
    margin: 20px auto;

    padding: 10px 15px;
    background: #333;
    color: white;

    text-decoration: none;
    border-radius: 8px;
}

.back:hover {
    background: #ff69b4;
}

/* ===== SUCCESS ===== */
#success {
    font-weight: bold;
}

/* ===== МОБИЛКА ===== */
@media (max-width: 420px) {
    .card {
        width: 100%;
        height: auto;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        margin-top: 10px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #2b2b2b;
    color: #ddd;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 400px;
    margin: auto;
}

.footer-title {
    color: #ff2d6f;
    margin-bottom: 10px;
}

.footer-text {
    margin-bottom: 20px;
    line-height: 1.4;
}

.footer h3 {
    color: #ff2d6f;
    margin: 20px 0 10px;
}

/* соцмережі */
.socials {
    display: flex;
    justify-content: center;   /* центр по горизонталі */
    align-items: center;

    gap: 10px;
    margin-bottom: 15px;

    flex-wrap: wrap;           /* перенос на маленьких екранах */
}

/* посилання */
.socials a {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 6px 12px;
    background: #444;

    border-radius: 20px;

    color: #ddd;
    text-decoration: none;

    font-size: 14px;
    transition: 0.3s;
}

.socials a:hover {
    background: #ff2d6f;
    color: white;
}


.footer hr {
    border: none;
    border-top: 1px solid #444;
    margin: 20px 0;
}

.copyright {
    font-size: 12px;
    color: #aaa;
}

@media (max-width: 400px) {
    .socials a {
        font-size: 12px;
        padding: 5px 10px;
    }
}


/* ===== PAYMENT / DELIVERY CARDS ===== */
.payment-card,
.delivery-card,
.delivery-zones-card {
    width: 90%;
    max-width: 379px;   /* обмеження, але не фікс */
    
    background: #ffffff;
    margin: 20px auto;
    padding: 20px;

    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: left;

    border-left: 5px solid #f3e6ea;
}

.payment-card h2,
.delivery-card h2,
.delivery-zones-card h2 {
    color: #ff4fa3;
    margin-bottom: 15px;
    font-size: 18px;
}

.payment-card ul,
.delivery-card ul,
.delivery-zones-card ul {
    padding-left: 20px;
}

.payment-card li,
.delivery-card li,
.delivery-zones-card li {
    margin-bottom: 8px;
    font-size: 14px;
}

.delivery-hero {
    background: #f3e6ea;
    text-align: center;
    padding: 40px 15px;
    margin-top: 20px;
}

.delivery-hero h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.delivery-hero p {
    font-size: 16px;
    color: #555;
    line-height: 1.4;
}

@media (min-width: 500px) {
    .delivery-hero h1 {
        font-size: 36px;
    }

    .delivery-hero p {
        font-size: 18px;
    }
}


