@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    background-color: #f8f6f2; /* ніжно-кремовий фон */
    color: #4e4039; /* темно-коричневий текст */
    
}

/* Заголовок сайту */
.site-header {
    background-color: #3a2c1a; /* теплий бежево-коричневий */
    padding: 20px 0;
    text-align: center;
    color: white;
}

.site-title {
    font-family: 'Pacifico', cursive;
    font-size: 36px;
    margin: 0;
    color: white;
} 

/* Логотип */
.logo {
    height: 50px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

nav {
    background-color: #eee4dc;
    text-align: center;
    padding: 12px 0;
}

nav a {
    display: inline-block;
    color: #4e4039;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: #a67c52;
}
/* Список товарів */
.product-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}



.product {
    background-color: #fff;
    border: 1px solid #d6ccc2;
    border-radius: 12px;
    padding: 15px;
    width: calc(20% - 20px); /* 4 товари в рядку */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product:hover {
    transform: scale(1.02);
}

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* Кнопка */
button {
    background-color: #745536;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background-color: #5a3d28;
}

/* Футер */
footer {
    text-align: center;
    padding: 15px 0;
    background-color: #eee4dc;
    font-size: 14px;
    color: #4e4039;
    margin-top: 40px;
}

.hair-accessory-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px auto;
    max-width: 900px;
    padding: 20px;
    gap: 30px;
}

.hair-accessory-text {
    flex: 1;
    font-size: 24px;
    font-weight: bold;
    color: #4e4039;
}

.hair-accessory-image {
    flex: 1;
    text-align: center;
}

.hair-accessory-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.assortment-section {
    text-align: center;
    margin: 40px 0;
}
.assortment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 елементи в рядку */
    gap: 30px;
    justify-items: center;
    margin-top: 20px;
}

.assortment-item img {
    width: 100px; /* було 80px — тепер більше */
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}
.assortment-item {
    background-color: #fff;
    border: 1px solid #ddd0c4;
    border-radius: 12px;
    width: 180px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

.assortment-item:hover {
    transform: scale(1.05);
}

.catalog-button {
    text-align: center;
    margin-top: 40px;
}

.catalog-button a {
    background-color: #745536;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.catalog-button a:hover {
    background-color: #5a3d28;
}

.registration-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: #4e4039;
}

.registration-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #4e4039;
}

.registration-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.registration-container input,
.registration-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    box-sizing: border-box;
}

.registration-container button {
    background-color: #745536;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.registration-container button:hover {
    background-color: #5a3d28;
}

.cart-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #4e4039;
    font-size: 16px;
}

.cart-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #4e4039;
}

.empty-cart {
    text-align: center;
    color: #999;
    font-style: italic;
}

.cart-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.cart-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.total {
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px;
    text-align: right;
}

.clear-cart-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #a67c52;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.clear-cart-btn:hover {
    background-color: #8a6444;
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    width: 260px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-weight: bold;
    animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* Посилання категорій (Браслети, Сережки) */
.assortment-section a {
    text-decoration: none;
    color: #5c3a2e;
    font-weight: 900;
    transition: 0.5s;
}


/* Анімація появи сторінки */


/* Сам ефект */
@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.cart-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-info button {
    background: #b08b6c;
    border: none;
    padding: 4px 8px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

.remove-btn {
    background: #a94444;
}

