body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
}
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}
header {
    background: #000000;
    color: #ffffff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #ffffff 3px solid;
}
header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}
header ul {
    margin: 0;
    padding: 0;
}
header li {
    float: left;
    display: inline;
    padding: 0 20px 0 20px;
}
footer {
    background: #000000;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-wrap: wrap; /* Added for better responsiveness */
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Optional: Add a max-width for larger screens */
    margin: 0 auto; /* Center the container */
}

footer .footer-info {
    flex: 1;
    text-align: left;
    margin-bottom: 10px; /* Add some spacing for mobile view */
}

footer .footer-info a {
    color: #ffffff;
    text-decoration: none;
}

footer .footer-links {
    flex: 1;
    text-align: center; /* Adjusted for better layout */
    margin-bottom: 10px; /* Add some spacing for mobile view */
}

footer .footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

footer .social-icons {
    flex: 1;
    text-align: right;
    margin-bottom: 10px; /* Add some spacing for mobile view */
}

footer .social-icons a {
    display: inline-block;
    margin-left: 10px;
}

footer .social-icons img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

/* Media query for responsiveness */
@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
        align-items: center; /* Center items on smaller screens */
    }

    footer .footer-info,
    footer .footer-links,
    footer .social-icons {
        flex: none; /* Remove flex properties */
        text-align: center; /* Center text */
        margin-bottom: 10px; /* Add spacing */
    }

    footer .footer-links a {
        display: block; /* Stack links vertically */
        margin: 5px 0;
    }
}
footer {
    background: #000000;
    color: #ffffff;
    padding: 30px 0;
    font-size: 14px;
}

footer .container {
    width: 80%;
    margin: auto;
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap; /* Разрешаем перенос на новую строку, если не помещается */
    justify-content: space-between;
    margin-bottom: 20px;
}

footer .footer-section {
    width: 22%; /* Примерно 4 колонки */
    margin-bottom: 20px;
    text-align: left;
}

footer .footer-section h4 {
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e8491d; /* Цвет акцента */
    padding-bottom: 5px;
}

footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-section li {
    margin-bottom: 5px;
}

footer .footer-section a {
    color: #ffffff;
    text-decoration: none;
}

footer .social a {
    display: inline-block;
    margin-right: 10px;
}

footer .social img {
    width: 30px;
    height: 30px;
}

footer .copyright {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

/* Адаптивность */
@media (max-width: 768px) {
    footer .footer-content {
        flex-direction: column;
    }

    footer .footer-section {
        width: 100%;
        text-align: center;
    }
}
  /* Стили для модального окна */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.privacy-content {
    line-height: 1.6;
}

.privacy-content h2 {
    color: #2c3e50;
    margin-top: 20px;
}

.privacy-content p {
    margin-bottom: 15px;
}

.privacy-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.privacy-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px 0;
}

.privacy-btn:hover {
    background-color: #2980b9;
}
/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Стили для шапки */
header {
    background: #000000;
    color: #000000;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e8491d;
}

.header-right {
    display: flex;
    align-items: center;
}

.auth a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
}

.auth a:hover {
    text-decoration: underline;
}

.search {
    margin-left: 20px;
    display: flex;
}

.search input {
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search button {
    padding: 8px 12px;
    background: #e8491d;
    color: #ffffff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.cart-icon {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
}

.cart-icon i {
    font-size: 24px;
    color: #ffffff;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e8491d;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #000000;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Стили для форм */
.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-content input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.modal-content button {
    padding: 12px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background-color: #e8491d;
}

/* Стили для корзины */
.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #e8491d;
    font-weight: bold;
}

.cart-item-remove {
    color: #999;
    cursor: pointer;
    font-size: 20px;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    margin-bottom: 20px;
}

/* Стили для платежной системы */
.payment-methods {
    margin: 20px 0;
}

.payment-methods h3 {
    margin-bottom: 15px;
}

.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 120px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #e8491d;
}

.payment-option.selected {
    border-color: #e8491d;
    background-color: #fff0f0;
}

.payment-option img {
    width: 80px;
    height: 50px;
    object-fit: contain;
}

.payment-form {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.payment-form.active {
    display: block;
}

.payment-form label {
    display: block;
    margin-bottom: 5px;
}

.payment-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.payment-form-row {
    display: flex;
    gap: 15px;
}

.payment-form-row .form-group {
    flex: 1;
}

.payment-success {
    display: none;
    text-align: center;
    padding: 20px;
}

.payment-success i {
    color: #4CAF50;
    font-size: 50px;
    margin-bottom: 20px;
}

.payment-success h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

/* Стили для секции "О нас" */
.about {
    padding: 60px 0;
    background-color: #fff;
}

.about .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about h2 {
    margin-bottom: 30px;
    text-align: center;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px 5px 0;
    }
    
    .header-right {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .search {
        margin-left: 0;
        flex-grow: 1;
        margin-right: 15px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .payment-options {
        justify-content: center;
    }
}
.contact-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
textarea {
    height: 150px;
    resize: vertical;
}
button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
button:hover {
    background-color: #000000;
}
.success-message {
    display: none;
    color: #4CAF50;
    font-weight: bold;
    margin-top: 10px;
}

        /* Стили для кнопки чата */
        .chat-toggle {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: linear-gradient(135deg, #000000, #000000);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 12px 20px;
            font-size: 16px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            z-index: 1000;
            transition: all 0.3s ease;
        }
        
        .chat-toggle:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.25);
        }
        
        .chat-toggle::before {
            content: "💬";
            margin-right: 8px;
            font-size: 20px;
        }
        
        /* Стили для формы чата */
        .chat-form {
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 320px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.15);
            overflow: hidden;
            transform: translateY(20px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1001;
        }
        
        .chat-form.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }
        
        .chat-header {
            background: linear-gradient(135deg, #000000, #000000);
            color: white;
            padding: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .operator-info {
            display: flex;
            align-items: center;
        }
        
        .operator-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
            object-fit: cover;
            border: 2px solid white;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 22px;
            cursor: pointer;
            padding: 5px;
        }
        
        .chat-body {
            padding: 15px;
            max-height: 300px;
            overflow-y: auto;
            background: #f9f9f9;
        }
        
        .message {
            margin-bottom: 12px;
            max-width: 80%;
            padding: 10px 14px;
            border-radius: 18px;
            font-size: 14px;
            line-height: 1.4;
            position: relative;
        }
        
        .operator-message {
            background: #e5e5ea;
            border-top-left-radius: 4px;
            margin-right: auto;
        }
        
        .user-message {
            background: #000000;
            color: white;
            border-top-right-radius: 4px;
            margin-left: auto;
        }
        
        .message-time {
            font-size: 11px;
            color: rgba(0,0,0,0.4);
            margin-top: 4px;
            text-align: right;
        }
        
        .user-message .message-time {
            color: rgba(255,255,255,0.7);
        }
        
        .typing-indicator {
            display: none;
            background: #e5e5ea;
            padding: 10px 14px;
            border-radius: 18px;
            font-size: 12px;
            color: #555;
            width: fit-content;
            margin-bottom: 12px;
            border-top-left-radius: 4px;
        }
        
        .chat-footer {
            padding: 12px;
            background: white;
            border-top: 1px solid #eee;
            display: flex;
        }
        
        .message-input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 24px;
            outline: none;
            font-size: 14px;
            transition: border 0.3s;
        }
        
        .message-input:focus {
            border-color: #000000;
        }
        
        .file-btn {
            background: none;
            border: none;
            color: #555;
            font-size: 20px;
            cursor: pointer;
            margin-right: 8px;
            transition: color 0.3s;
        }
        
        .file-btn:hover {
            color: #000000;
        }
        
        .send-btn {
            background: #000000;
            color: white;
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            margin-left: 8px;
            transition:  0.3s;
        }
        
        .send-btn:hover {
            background: #000000;
        }
        
        .file-input {
            display: none;
        }
        
        .preview-image {
            max-width: 100%;
            max-height: 150px;
            border-radius: 8px;
            margin-top: 10px;
            display: block;
        }
          
        
        .logo {
            color: white;
            font-size: 24px;
            font-weight: bold;
            padding: 15px 0;
            text-decoration: none;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-item {
            position: relative;
        }
        
        
        
        .nav-link:hover {
            background-color: rgba(255,255,255,0.1);
        }
        
        /* Стили для выпадающего меню каталога */
        .catalog-menu {
            position: absolute;
            top: 100%;
            left: 0;
            width: 900px;
            background-color: white;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
            display: none;
            z-index: 1000;
            padding: 20px;
        }
        
        .nav-item:hover .catalog-menu {
            display: block;
        }
        
        .catalog-columns {
            display: flex;
            flex-wrap: wrap;
        }
        
        .catalog-column {
            flex: 1;
            min-width: 200px;
            padding: 0 10px;
        }
        
        .catalog-title {
            font-weight: bold;
            color: #333;
            margin-bottom: 15px;
            padding-bottom: 5px;
            border-bottom: 2px solid #4CAF50;
        }
        
        .catalog-list {
            list-style: none;
        }
        
        .catalog-list li {
            margin-bottom: 8px;
        }
        
        .catalog-list a {
            color: #555;
            text-decoration: none;
            transition: color 0.3s;
            display: block;
            padding: 5px 0;
        }
        
        .catalog-list a:hover {
            color: #4CAF50;
        }
        
        /* Иконка стрелки */
        .has-dropdown::after {
            content: "▼";
            font-size: 10px;
            margin-left: 5px;
            display: inline-block;
            transition: transform 0.3s;
        }
        
        .nav-item:hover .has-dropdown::after {
            transform: rotate(180deg);
        }
        
        /* Баннер в меню */
        .menu-banner {
            flex: 0 0 250px;
            background: #f9f9f9;
            border-radius: 8px;
            padding: 15px;
            margin-left: 20px;
        }
        
        .menu-banner img {
            width: 100%;
            border-radius: 5px;
            margin-bottom: 10px;
        }
        
        .banner-title {
            font-weight: bold;
            color: #4CAF50;
            margin-bottom: 5px;
        }
        
        .banner-text {
            font-size: 14px;
            color: #666;
        }
        /* Добавьте в ваш style.css */
#privacyBtn {
    cursor: pointer;
}

/* Или для всех ссылок в footer-links */
.footer-links a {
    cursor: pointer;
}
/* Стили для блока преимуществ */
.advantages {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.advantage-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
}

.advantage-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}
.advantage-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}
/* Стили для заголовка раздела */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #000000;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, #000000, transparent);
    margin: 20px auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #000000;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Адаптивность для заголовка */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
}
.section-title {
    position: relative;
    font-size: 2.8rem;
    color: #f5f5f5;
    font-weight: 900;
    z-index: 1;
}

.section-title:before {
    content: attr(data-text);
    position: absolute;
    color: #f5f5f5;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%);
    top: -20px;
    font-size: 4rem;
    opacity: 0.1;
}
.section-title {
    background: linear-gradient(45deg, #000000, #000000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.section-title i {
    color: #f1c40f;
    margin-right: 10px;
}
/* Общие стили для всех заголовков секций */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #000000;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, #000000, transparent);
    margin: 20px auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #000000;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Специфические стили для разных секций */

/* Герой (главный баннер) */
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
/* Увеличиваем отступ после секции категорий */
.categories {
    padding: 80px 0 100px; /* Увеличиваем нижний padding с 80px до 100px */
    background-color: #f9f9f9;
}

/* Или можно добавить margin-bottom к контейнеру категорий */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px; /* Добавляем отступ снизу */
}
/* Каталог */
.categories h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.categories h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #000000;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* О нас */
.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.about h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #000000;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
}

/* Форма обратной связи */
.contact-form h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.contact-form h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #000000;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Модальные окна */
.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.modal-content h2:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: #000000;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-title, 
    .categories h2,
    .about h2,
    .contact-form h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .about h3 {
        font-size: 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.8rem;
    }
}
/* Стили для формы обратной связи */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form .section-header {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #000000;
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Стили для кнопки отправки */
.text-center {
    text-align: center;
}

.submit-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Сообщение об успешной отправке */
.success-message {
    display: none;
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
        margin: 20px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}
/* Стили для секции категорий */
.categories {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-item:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 20px;
    text-align: center;
}

.category-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
}

.category-link {
    display: inline-block;
    padding: 10px 20px;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.category-link:hover {
    background: transparent;
    color: #000000;
}

/* Адаптивность */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
/* Стили для кнопки "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000000;
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Адаптация при открытом чате */
.chat-form.active ~ .scroll-to-top {
    display: none !important;
}
.category-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}
    /* Общие стили для меню */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* Стили для навигации */
        header {
            background-color: #000;
            color: #fff;
            padding: 15px 0;
            position: relative;
            z-index: 1000;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            position: relative;
            margin-right: 20px;
        }
        
        nav ul li a {
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            padding: 10px 15px;
            display: block;
            transition: all 0.3s ease;
        }
        
        nav ul li a:hover {
            color: #ccc;
        }
        
        /* Мобильная адаптация */
@media (max-width: 768px) {
    /* Шапка */
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul li {
        margin: 5px 0;
        text-align: center;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    
    .auth {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .search {
        width: 100%;
        margin: 10px 0;
    }
    
    .search input {
        width: 70%;
    }
    
    .search button {
        width: 30%;
    }
    
    .cart-icon {
        margin: 15px auto 0;
    }
    
    /* Категории */
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    /* О нас */
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        width: 100%;
    }
    
    .about-image {
        margin-top: 20px;
    }
    
    /* Преимущества */
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    
    /* Форма обратной связи */
    .contact-form {
        padding: 15px;
        margin: 15px;
    }
    
    /* Подвал */
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    footer .footer-info,
    footer .footer-links,
    footer .social-icons {
        margin-bottom: 20px;
        width: 100%;
    }
    
    footer .footer-links {
        display: flex;
        flex-direction: column;
    }
    
    footer .social-icons {
        justify-content: center;
    }
    
    /* Модальные окна */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    /* Корзина */
    .payment-options {
        flex-direction: column;
    }
    
    .payment-option {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Чат */
    .chat-form {
        width: 90%;
        right: 5%;
        bottom: 70px;
    }
    
    .chat-toggle {
        right: 10px;
        bottom: 10px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Кнопка наверх */
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 60px;
        right: 10px;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .payment-form-row {
        flex-direction: column;
    }
    
    .category-item {
        margin-bottom: 20px;
    }
    
    .chat-body {
        max-height: 200px;
    }
    
    .message-input {
        font-size: 14px;
    }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        margin: 2% auto;
        max-height: 90vh;
    }
    
    .chat-form {
        height: 70vh;
    }
    
    .chat-body {
        max-height: calc(70vh - 120px);
    }
}
/* Мобильная адаптация шапки */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
        position: relative;
    }
    
    header .container {
        flex-direction: column;
        align-items: stretch;
        width: 95%;
    }
    
    .logo {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .logo a {
        font-size: 22px;
    }
    
    /* Навигация */
    nav {
        order: 3; /* Перемещаем навигацию вниз */
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    nav ul li a {
        padding: 10px;
        display: block;
        font-size: 15px;
    }
    
    /* Правая часть шапки */
    .header-right {
        flex-direction: column;
        order: 2;
        margin-top: 15px;
    }
    
    .auth {
        display: flex;
        justify-content: space-around;
        margin-bottom: 15px;
    }
    
    .auth a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .search {
        width: 100%;
        margin: 0 0 15px 0;
        order: 1;
    }
    
    .search input {
        width: 75%;
        padding: 10px;
    }
    
    .search button {
        width: 25%;
        padding: 10px;
    }
    
    .cart-icon {
        margin: 10px auto 0;
        order: 2;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .logo a {
        font-size: 20px;
    }
    
    nav ul li a {
        font-size: 14px;
        padding: 8px;
    }
    
    .auth {
        flex-direction: column;
    }
    
    .auth a {
        text-align: center;
        margin: 5px 0;
    }
    
    .search input {
        width: 70%;
    }
    
    .search button {
        width: 30%;
    }
}
/* Стиль для информации о сборке */
        .build-info {
            position: fixed;
            left: 10px;
            bottom: 10px;
            font-size: 12px;
            color: #999;
            background-color: rgba(0, 0, 0, 0.7);
            padding: 2px 5px;
            border-radius: 3px;
            z-index: 1000;
        }

/* Общие стили для раздела */
.delivery-payment {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.delivery-payment .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили заголовка раздела */
.delivery-payment .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.delivery-payment .section-title {
    font-size: 36px;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 700;
}

.delivery-payment .section-divider {
    width: 80px;
    height: 3px;
    background: #000000;
    margin: 0 auto 20px;
}

.delivery-payment .section-subtitle {
    font-size: 18px;
    color: #000000;
    margin-bottom: 30px;
}

/* Стили для контента доставки и оплаты */
.delivery-payment-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.delivery-info, .payment-info {
    width: 48%;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.delivery-info h3, .payment-info h3 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.delivery-info h3:after, .payment-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #000000;
}

/* Стили для методов доставки и оплаты */
.delivery-methods, .payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.delivery-method, .payment-method {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.delivery-method:hover, .payment-method:hover {
    transform: translateY(-5px);
}

.delivery-method i, .payment-method i {
    font-size: 28px;
    color: #000000;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
    padding-top: 5px;
}

.method-content {
    flex: 1;
}

.delivery-method h4, .payment-method h4 {
    font-size: 18px;
    color: #000000;
    margin-bottom: 8px;
    font-weight: 600;
}

.delivery-method p, .payment-method p {
    font-size: 15px;
    color: #000000;
    line-height: 1.6;
}

/* Стили для условий доставки */
.delivery-terms {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.delivery-terms h3 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.delivery-terms h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #000000;
}

.delivery-terms ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.delivery-terms li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
}

.delivery-terms li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #27ae60;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .delivery-info, .payment-info {
        width: 100%;
    }
    
    .delivery-method, .payment-method {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .delivery-payment {
        padding: 40px 0;
    }
    
    .delivery-payment .section-title {
        font-size: 30px;
    }
    
    .delivery-info h3, .payment-info h3, .delivery-terms h3 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .delivery-payment .section-title {
        font-size: 26px;
    }
    
    .delivery-method, .payment-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .delivery-method i, .payment-method i {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
/* Стили для раздела "О нас" */
#about {
    padding: 80px 0;
    background-color: hsla(0, 0%, 100%, 0.945);
}

#about .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#about .section-header {
    text-align: center;
    margin-bottom: 50px;
}

#about .section-title {
    font-size: 36px;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

#about .section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #000000;
}

#about .section-divider {
    margin: 20px 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 28px;
    color: #000000;
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #000000;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 20px;
    text-align: justify;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    #about {
        padding: 60px 0;
    }
    
    #about .section-title {
        font-size: 30px;
    }
    
    .about-text h3 {
        font-size: 24px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #about .section-title {
        font-size: 26px;
    }
    
    .about-text h3 {
        font-size: 22px;
    }
    
    .about-text p {
        font-size: 15px;
    }
}
  /* Стили для раздела Контакты */
.contacts {
    padding: 80px 0;
    background-color: #ffffff;
}

.contacts-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 28px;
    color: #000000;
    margin-bottom: 15px;
    display: block;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #000000;
}

.contact-item p {
    margin-bottom: 10px;
    color: #555;
}

.contact-item a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #e8491d;
    text-decoration: underline;
}

.contact-map {
    flex: 1;
    min-width: 300px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 30px;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #000000;
    color: white;
}

.social-link i {
    margin-right: 10px;
    font-size: 18px;
}

.contact-departments {
    margin-top: 50px;
}

.contact-departments h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #000000;
    position: relative;
}

.contact-departments h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #000000;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.department {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.department:hover {
    transform: translateY(-5px);
}

.department h4 {
    font-size: 20px;
    color: #000000;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.department h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #000000;
}

.department p {
    margin-bottom: 10px;
    color: #555;
}

.department i {
    margin-right: 10px;
    color: #000000;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts {
        padding: 60px 0;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contacts {
        padding: 50px 0;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
} 
/* Стили для поиска */
.search {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 200px;
    transition: width 0.3s;
}

.search input:focus {
    border-color: #4a76a8;
    width: 250px;
}


.search button:hover {
    background: #3a5f8a;
}

/* Стили для результатов поиска */
.search-results {
    margin: 20px 0;
}



.search-result-item:hover {
    background: #f9f9f9;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}
/* Стили для выпадающих подсказок */
.search {
  position: relative;
}

.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 10px;
}

.suggestions-section {
  margin-bottom: 15px;
}

.suggestions-section h4 {
  margin: 0 0 8px 0;
  color: #4a76a8;
  font-size: 14px;
}

.search-suggestions a {
  display: block;
  padding: 5px 10px;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
}

.search-suggestions a:hover {
  background-color: #f5f5f5;
  color: #4a76a8;
}
/*catalog________________________
/* Стили для каталога товаров */

/* Хлебные крошки */
.breadcrumbs {
    padding: 15px 0;
    background-color: #f5f5f5;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #000000;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #666;
}

/* Заголовок каталога */
.catalog-header {
    padding: 40px 0 30px;
    background-color: #fff;
}

/* Управление каталогом (фильтры/сортировка) */
.catalog-controls {
    padding: 15px 0;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-toggle {
    display: none;
    padding: 8px 15px;
    background-color: #000000;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.filter-toggle i {
    margin-right: 8px;
}

.sorting {
    display: flex;
    align-items: center;
}

.sorting label {
    margin-right: 10px;
    font-size: 14px;
    color: #666;
}

.sorting select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

/* Основной макет каталога */
.catalog-layout {
    display: flex;
    margin-top: 30px;
}

.catalog-filters {
    width: 250px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-right: 30px;
    transition: all 0.3s ease;
}

.catalog-products {
    flex: 1;
}

/* Стили для фильтров */
.filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 18px;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 600;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.filter-list a:hover, .filter-list a.active {
    color: #000000;
    font-weight: 500;
}

.filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.filter-list input[type="checkbox"] {
    margin-right: 10px;
}

/* Ценовой диапазон */
.price-range {
    margin-top: 15px;
}

.price-inputs {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.price-inputs input {
    width: 45%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.price-inputs span {
    margin: 0 10px;
    color: #666;
}

.price-apply {
    width: 100%;
    padding: 8px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.price-apply:hover {
    background-color: #333;
}

/* Поиск по брендам */
.brand-search {
    margin-bottom: 15px;
}

.brand-search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Характеристики */
.filter-options {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group h4 {
    font-size: 15px;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 500;
}

.option-list {
    list-style: none;
    padding-left: 5px;
}

.option-list li {
    margin-bottom: 8px;
}

/* Кнопка сброса фильтров */
.reset-filters {
    width: 100%;
    padding: 10px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.reset-filters:hover {
    background-color: #eee;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.product-badge.new {
    background-color: #27ae60;
}

.product-badge.out-of-stock {
    background-color: #e74c3c;
}

.quick-view {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    border: none;
    cursor: pointer;
    transition: bottom 0.3s;
    font-size: 14px;
}

.product-card:hover .quick-view {
    bottom: 0;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 14px;
    line-height: 1;
}

.stars::before {
    content: '★★★★★';
    letter-spacing: 2px;
    background: linear-gradient(90deg, #f1c40f var(--percent), #ddd var(--percent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-count {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.product-features {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 0;
}

.product-features li {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.product-features li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000000;
}

.product-price {
    margin-bottom: 15px;
}

.product-current-price {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.product-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.add-to-cart {
    flex: 1;
    padding: 10px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.add-to-cart:hover {
    background-color: #333;
}

.add-to-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.add-to-favorites {
    width: 40px;
    margin-left: 10px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-favorites:hover {
    background-color: #eee;
    color: #e74c3c;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.pagination button {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:hover:not(:disabled) {
    background-color: #f5f5f5;
    border-color: #000000;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    margin: 0 15px;
    font-size: 14px;
    color: #666;
}

/* Баннер в каталоге */
.catalog-banner {
    background: linear-gradient(135deg, #000000, #000000);
    color: white;
    padding: 40px 0;
    margin-top: 50px;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.banner-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.banner-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #000000;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.banner-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Адаптивность каталога */
@media (max-width: 992px) {
    .catalog-layout {
        flex-direction: column;
    }
    
    .catalog-filters {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        display: none;
    }
    
    .catalog-filters.active {
        display: block;
    }
    
    .filter-toggle {
        display: inline-flex;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-name {
        font-size: 15px;
    }
    
    .product-current-price {
        font-size: 16px;
    }
    
    .catalog-banner {
        padding: 30px 0;
    }
    
    .banner-content h3 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-name {
        height: 36px;
        font-size: 14px;
    }
    
    .product-features {
        display: none;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-favorites {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        padding: 8px;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sorting {
        margin-top: 15px;
        width: 100%;
    }
    
    .sorting select {
        width: 100%;
    }
}
/* стили для пользователя
/* Стили для каталога */
.catalog-page {
    padding: 30px 0;
}

.catalog-container {
    display: flex;
    gap: 30px;
}

.filters-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stars-filter {
    cursor: pointer;
    color: #ffc107;
    font-size: 14px;
}

.stars-filter:hover {
    text-decoration: underline;
}

.rating-count {
    color: #666;
    font-size: 12px;
}

.apply-filters, .reset-filters {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.apply-filters {
    background-color: #000000;
    color: white;
}

.reset-filters {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.products-area {
    flex-grow: 1;
}

.sort-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    background: none;
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.view-btn.active {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card.list-view {
    display: flex;
    height: 200px;
}

.product-image {
    height: 200px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card.list-view .product-image {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 15px;
}

.product-card.list-view .product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-brand {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #d32f2f;
    margin: 10px 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.product-rating .stars {
    color: #ffc107;
}

.product-rating .count {
    font-size: 12px;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex-grow: 1;
    padding: 8px 12px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.add-to-cart:hover {
    background-color: #000000;
}

.wishlist-btn {
    width: 36px;
    height: 36px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wishlist-btn:hover {
    background-color: #e9ecef;
}

.product-availability {
    font-size: 14px;
    margin-top: 5px;
}

.in-stock {
    color: #388e3c;
}

.out-of-stock {
    color: #d32f2f;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: rgb(0, 0, 0);
    cursor: pointer;
    border-radius: 4px;
}

.pagination button.active {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

.pagination button:hover:not(.active) {
    background-color: #f0f0f0;
}
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
}
/* Стили для корзины */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.cart-item-total {
    font-weight: bold;
    color: #d32f2f;
    margin-top: 5px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-actions button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
}

.cart-item-actions button:hover {
    background-color: #f5f5f5;
}

.cart-item-actions .remove-btn {
    color: #d32f2f;
    border-color: #ffcdd2;
    margin-left: 10px;
}

.cart-total {
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Стили для форм оплаты */
.payment-methods {
    margin-top: 20px;
}

.payment-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #000000;
}

.payment-option.selected {
    border-color: #000000;
    background-color: rgba(0, 0, 0, 0.467)
} 
.payment-option img {
    height: 30px;
    margin-bottom: 5px;
}

.payment-form {
    display: none;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.payment-form-row {
    display: flex;
    gap: 15px;
}

.payment-form-row .form-group {
    flex: 1;
}

.payment-form button {
    width: 100%;
    padding: 10px;
    background-color: #000000;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.payment-success {
    display: none;
    text-align: center;
    padding: 20px;
}

.payment-success i {
    font-size: 50px;
    color: #4caf50;
    margin-bottom: 15px;
}

.payment-success h3 {
    color: #4caf50;
    margin-bottom: 10px;
}

.payment-success button {
    padding: 10px 20px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}
.error {
    padding: 20px;
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: 4px;
    color: #c62828;
    grid-column: 1 / -1;
    text-align: center;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
 .catalog-banner {
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                        url('images/catalog-banner.jpg') center/cover no-repeat;
            color: white;
            padding: 100px 0;
            text-align: center;
            margin-bottom: 50px;
        }
        
        .banner-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .catalog-banner h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        }
        
        .catalog-banner p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        }
        
        .banner-button {
            display: inline-block;
            background-color: #000000;
            color: white;
            padding: 12px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            border: 2px solid #000000;
        }
        
        .banner-button:hover {
            background-color: transparent;
            color: white;
            border-color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        @media (max-width: 768px) {
            .catalog-banner {
                padding: 60px 20px;
            }
            
            .catalog-banner h1 {
                font-size: 2rem;
            }
            
            .catalog-banner p {
                font-size: 1rem;
            }
        }
        /* Стили для форм */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button[type="submit"] {
    background: #000000;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

button[type="submit"]:hover {
    background: #000000;
}

.user-greeting {
    margin-right: 10px;
    font-weight: bold;
}

/* Анимация toast-уведомлений */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;}