/* === Общий стиль === */
body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

/* === Шапка сайта === */
header {
    background: linear-gradient(to bottom, #b71c1c, #d32f2f);
    padding: 20px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === Логотип (увеличенный размер) === */
.logo-container img {
    height: 80px;
}

/* === Навигация === */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    padding: 8px 15px;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    background: #ff5252;
    color: #fff;
}

/* === Основная информация компании === */
.company-info {
    text-align: center;
    padding: 60px 20px;
}

.company-info h1 {
    font-size: 2.8em;
    color: #222;
}

.company-info p {
    font-size: 1.2em;
    color: #555;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
}

/* === Анимация под описанием компании === */
.animation-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* === Холст для точек === */
#animationCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* === Компактные карточки товаров === */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === Контейнер для изображений (фиксированный размер) === */
.product-image {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 5px;
}

/* === Фиксированный размер картинок === */
.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.1em;
    color: #222;
    margin: 5px 0;
}

.product-card p {
    font-size: 0.9em;
    color: #666;
}

/* === Кнопка покупки === */
.product-card button {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 5px;
}

.product-card button:hover {
    background: #b71c1c;
}

/* === Страница брендов === */
.brands {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
}

.brands h1 {
    font-size: 2.5em;
    color: #222;
}

.brands p {
    font-size: 1.2em;
    color: #555;
}

/* === Список брендов в один столбец === */
.brand-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px auto;
    max-width: 600px;
}

/* === Карточка бренда === */
.brand-card {
    background: white;
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.brand-card img {
    max-width: 120px;
    height: auto;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.brand-card h3 {
    font-size: 1.3em;
    color: #333;
    flex-grow: 1;
}

/* === Эффекты при наведении === */
.brand-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* === Футер === */
footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(to bottom, #d32f2f, #b71c1c);
    color: white;
    margin-top: 40px;
}

/* === Адаптивность === */
@media (max-width: 900px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-list {
        flex-direction: column;
        align-items: center;
    }

    .brand-card {
        width: 300px;
    }
}

@media (max-width: 600px) {
    .product-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .brand-card {
        width: 90%;
    }

    .logo-container img {
        height: 70px;
    }
}
/* === Всплывающее сообщение о недоступности корзины === */
.cart-message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.cart-message-content {
    background: white;
    color: black;
    padding: 15px;
    border-radius: 10px;
}

.close-message {
    background: #d32f2f;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.close-message:hover {
    background: #ff5252;
}
/* === Стиль страницы контактов === */
.contact {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.contact h1 {
    font-size: 2.5em;
    color: #222;
}

.contact p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
}

/* === Контейнер для контактов === */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* === Карточка контакта === */
.contact-card {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card h3 {
    color: #d32f2f;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 1.1em;
    color: #333;
}

.contact-card a {
    text-decoration: none;
    color: #d32f2f;
    font-weight: bold;
}

.contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}
/* === Всплывающее окно информации о бренде === */
#brand-info {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: none;
    font-size: 14px;
    max-width: 300px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease-in-out;
}/* === Стиль для страницы New Arrivals === */
.new-arrivals {
    max-width: 1000px;
    margin: 40px auto;
    text-align: center;
    padding: 20px;
}

.new-arrivals h1 {
    font-size: 2.5em;
    color: #222;
}

.new-arrivals p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
}

/* === Контент блока New Arrivals === */
.new-arrivals-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

/* === Картинка New Arrivals === */
.new-arrivals-content img {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

/* === Текстовый блок справа от картинки === */
.new-arrivals-text {
    text-align: left;
    max-width: 550px;
}

.new-arrivals-text h2 {
    color: #d32f2f;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.new-arrivals-text h3 {
    font-size: 1.4em;
    color: #222;
    margin-top: 15px;
}

.new-arrivals-text p {
    font-size: 1em;
    color: #444;
    line-height: 1.6;
}

.new-arrivals-text ul {
    list-style: none;
    padding: 0;
}

.new-arrivals-text ul li {
    font-size: 1em;
    margin: 5px 0;
    color: #333;
}

/* === Адаптивность === */
@media (max-width: 900px) {
    .new-arrivals-content {
        flex-direction: column;
        text-align: center;
    }

    .new-arrivals-content img {
        max-width: 100%;
    }

    .new-arrivals-text {
        max-width: 100%;
        text-align: center;
    }
}
