

.container {
    width: 1250px;
}

/* Стилизация заголовка */
header {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон для заголовка */
    color: white;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 36px; /* Увеличьте размер шрифта для заголовка */
    margin: 0;
    padding: 10px;
}

header p {
    font-size: 18px; /* Увеличьте размер шрифта для подзаголовка */
    margin: 10px 0;
}

/* Добавление тени к заголовку */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0px -10px 20px rgba(0, 0, 0, 0.5);
    z-index: -1;
}


body {
    background-image: url('./img/bgrnd1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    
    
}
/* Стилизация товаров на странице с товарами */
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px;
}

.product {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    width: calc(33.33% - 40px);
    box-sizing: border-box;
}

.product img {
    height: 250px;
    max-width: 100%;
    border-radius: 10px;
}

.addToCart {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 5px;
}

.addToCart:hover {
    background-color: #45a049;
}

/* Стилизация кнопок "Главная" и "Корзина" */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    margin-right: 10px; /* Расстояние между кнопками */
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #4CAF50;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #45a049;
}

/* Стилизация футера */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    clear: both; /* Очищаем float-элементы */
}

/* Уменьшим прозрачность фона футера */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/bgrnd1.jpg'); /* Используем фон страницы */
    opacity: 0.5; /* Уменьшим прозрачность */
    z-index: -1;
}

/* Сделаем текст в футере менее заметным */
footer p {
    opacity: 0.7;
}

/* Уберем подчеркивание у ссылок в футере */
footer a {
    text-decoration: none;
    color: #4CAF50;
}

/* Изменяем цвет ссылок при наведении */
footer a:hover {
    color: #45a049;
}

.product svg {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.btnContainer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.btnContainer p {
    font-size: 20px;
}

.cont {
    width: 100%;
    display: flex;
    justify-content: center;
}

.total {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8);
    height: 100px;
    border-radius: 10px;
}

.total p {
    margin: 0;
}

.go {
    animation: bounce 1s linear;
    transition: 0.4s ease;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 
    40% {
        transform: translateY(-30px);
    } 
    60% {transform: translateY(-15px);} 
  }
  
