body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-image: url("./images/back.jpg"); /* Исправлен путь */
    background-repeat: no-repeat;
    background-size: cover;
    color: #f5f5f5;
}

/* Хедер */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #000000f3;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 400px;
    height: auto;
}

/* Навигация */
nav {
    display: flex;
    justify-content: center;
    background: #000;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

nav li {
    display: inline-block;
}

.nav-icon {
    width: 60px;  /* Размер иконок */
    height: auto;
    transition: transform 0.3s ease-in-out;
    
}



/* Эффект увеличения при наведении */
.nav-icon:hover {
    transform: scale(1.2);
}

.nav-icon1:hover {
    transform: scale(1.2);
}

/* Контент */
main {
    padding: 50px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
}

/* Контейнер каталога и корзины */
.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* Каталог */
.catalog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    flex: 3;
}

/* Карточка товара */
.item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Картинка товара */
.item img {
    width: 265px;
    height: 250px;
    object-fit: cover;
}

/* Кнопки */


button:hover {
    background-color: #fff;
    color: #000;
}

button {
    padding: 12px 16px;
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    cursor: pointer;
    font-size: 13px; /* Увеличенный размер шрифта */
    text-transform: uppercase; /* По желанию — все буквы заглавные */
}


/* Корзина */
.cart {
    flex: 1;
    margin-left: 40px;
    padding: 20px;
    background-color: #333;
    border-radius: 10px;
}

.cart h2 {
    text-align: center;
}

#cart-list {
    list-style: none;
    padding: 0;
}

#cart-list li {
    margin: 10px 0;
}

#total {
    font-size: 1.3em;
    text-align: center;
    margin-top: 20px;
}


/* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Затемнение */
    backdrop-filter: blur(5px); /* Размытие фона */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Для анимации */
    transition: opacity 0.5s ease-in-out; /* Плавное появление */
}

/* Контейнер контента */
.modal-content {
    background: rgb(145, 142, 142);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    width: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Начальный масштаб */
    transition: transform 0.5s ease-in-out; /* Плавное увеличение */
}

/* Показываем окно */
.modal.show {
    display: flex;
    opacity: 1;
}

/* Делаем окно больше при открытии */
.modal-content.show {
    transform: translate(-50%, -50%) scale(1);
}

/* Опции выбора модели */
.model-options {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.model {
    cursor: pointer;
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

.model:hover {
    transform: scale(1.1);
}

.model img {
    width: 200px;
    height: auto;
    border-radius: 10px;
}

/* Кнопка отмены */
.modal-content button {
    margin-top: 10px;
    padding: 15px 15px;
    cursor: pointer;
    border: none;
    background-color: red;
    color: white;
    border-radius: 5px;
}

.modal-content button:hover {
    background-color: darkred;
}

.model p ,h2 {
    font-size: 25px; 
    font-weight: bold; 
    text-transform: uppercase; 
    text-align: center;
}

.remove-btn {
    font-size: 15px;
    padding: 10px 10px;
    background-color: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.remove-btn:hover {
    transform: scale(1.2);
    color: red;
}
