ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: whitesmoke;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.custom-header {
    background-color: white;
    padding: 16px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid #FFA500;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
    padding: 0 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.logo-container:hover {
    transform: scale(1.05);
}
.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.logo:hover {
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.4);
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.search-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 400px;
}

.search-box {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 25px 0 0 25px;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
}

.search-button {
    background: #FFA500;
    color: black;
    border: 1px solid #FFA500;
    border-radius: 0 25px 25px 0;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-button:hover {
    background: #FF8C00;
}


/* Адаптивность */
@media (max-width: 1200px) {
    .header-container {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .nav-buttons {
        order: 2;
    }

    .auth-buttons {
        order: 4;
        margin-left: auto;
    }
}
.custom-nav {
    margin-top: 16px;
    display: flex;
    gap: 16px;
}

.main-content {
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.sidebar {
    width: 250px;
}

.sidebar h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.main-content{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 20px;
    width: 97%;
}


.category-item {
    padding: 12px 16px;
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,165,0,0.1), transparent);
    transition: all 0.6s;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-color: rgba(255,165,0,0.3);
}

.category-item:hover::before {
    left: 100%;
}

.category-item a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.category-item.active {
    background: linear-gradient(145deg, #FFA500, #FF8C00);
    color: white;
    box-shadow: 0 4px 8px rgba(255,165,0,0.3);
}

.category-item.active a {
    color: white !important;
}
.category-item.active,
.category-item.active a {
    color: white; /* Например, #333 для темно-серого */
}

.sidebar {
    width: 250px;
    padding: 20px;
}

.categories-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 260px;
    padding: 12px 16px;
    background: linear-gradient(145deg, #FFA500, #FF8C00);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: linear-gradient(145deg, #FF8C00, #FF7000);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(90deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 0;
    border: 1px solid #eee;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-item {
    padding: 10px 5px;
    transition: all 0.2s;
    width: 220px; /* адаптивная ширина под контент */
    margin-left: auto;
    margin-right: auto; /* центрирует по горизонтали */
    text-align: center; /* текст по центру */
}

.category-item:hover {
    background-color: rgba(255,165,0,0.1);
}

.category-item.active {
    background-color: rgba(255,165,0,0.2);
    font-weight: 500;
}

.category-link {
    color: #333;
    text-decoration: none;
    display: block;
}

.category-item.active .category-link {
    color: #FF8C00;
}
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        padding: 10px;
    }

    .categories-dropdown {
        margin-bottom: 15px;
    }

    .dropdown-toggle {
        padding: 10px 12px;
        font-size: 14px;
    }
}
.sort-panel {
    position: relative;
    display: inline-block;
}

.sorting-dropdown {
    position: relative;
    width: 100%; /* Или нужная вам ширина */
    display: inline-flex; /* Чтобы кнопка и меню были в одном потоке */
    justify-content: flex-end; /* Выравнивание по правому краю */
}

.sort-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(145deg, #FFA500, #FF8C00);
    border: 1px solid white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.sort-dropdown-toggle:hover {
    background: linear-gradient(145deg, #FF8C00, #FF7000);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
}


.sort-icon {
    color: white;
    transition: transform 0.3s ease; /* Добавляем анимацию */
    transform-origin: center; /* Точка вращения по центру */
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 300px; /* Фиксированная ширина вместо auto */
    /* Остальные свойства остаются без изменений */
    background: white;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 10px;
    border: 1px solid #eee;
}

.sort-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-dropdown-toggle.active .sort-icon {
    transform: rotate(-90deg); /* Поворот на 90 градусов */
}

.filter-section {
    margin-bottom: 12px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.sort-category-item {
    padding: 12px 16px;
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sort-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,165,0,0.1), transparent);
    transition: all 0.6s;
}

.sort-category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-color: rgba(255,165,0,0.3);
}

.sort-category-item:hover::before {
    left: 100%;
}

.sort-category-item a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sort-category-item.active {
    background: linear-gradient(145deg, #FFA500, #FF8C00);
    color: white;
    box-shadow: 0 4px 8px rgba(255,165,0,0.3);
}

.sort-category-item.active a {
    color: white !important;
}
.sort-category-item.active,
.sort-category-item.active a {
    color: white; /* Например, #333 для темно-серого */
}


.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.price-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    pointer-events: auto !important;
}

.apply-filter {
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    padding: 12px;
    background: #FFA500;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.apply-filter:hover {
    background: #FF8C00;
    transition: background-color 0.3s ease;
}

.reset-filter {
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    padding: 12px;
    background:  #424242;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 8px;
}

.reset-filter:hover {
    background: #212121;
    transition: background-color 0.3s ease;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}


.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.2s;
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Занимаем всю доступную высоту */
}


.product-card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: auto;
    height: 200px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto; /* Центрируем изображение */
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Занимаем все доступное пространство */
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 8px;
    flex-shrink: 0; /* Не сжимаем заголовок */
    /* Ограничиваем текст 2 строками и добавляем многоточие */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px; /* Фиксированная высота для 2 строк */
}


.product-price {
    font-size: 20px;
    font-weight: bold;
    margin: 8px 0;
    flex-shrink: 0; /* Не сжимаем цену */
}

.product-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* Унифицированные стили для всех кнопок */
.btn, .nav-button, .search-button {
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn.register{
    background-color: #FFA500;
}

.btn.register::after{
    content: '';
    position: absolute;
    left: 15%;
    bottom: 2px;
    width: 70%;
    height: 2px;
    background-color: transparent;
    transform: scaleX(0);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn.register:hover::after{
    background-color: black;
    transform: scaleX(1);
}

.btn.logout{
    background-color: #FFA500;
}
.btn.logout::after{
    content: '';
    position: absolute;
    left: 15%;
    bottom: 2px;
    width: 70%;
    height: 2px;
    background-color: transparent;
    transform: scaleX(0);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn.logout:hover::after{
    background-color: black;
    transform: scaleX(1);
}

.btn::after, .nav-button::after, .search-button::after {
    content: '';
    position: absolute;
    left: 15%;
    bottom: 2px;
    width: 70%;
    height: 2px;
    background-color: transparent;
    transform: scaleX(0);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover::after, .nav-button:hover::after, .search-button:hover::after {
    background-color: #FFA500;
    transform: scaleX(1);
}

/* Базовые стили кнопок */
.btn {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: black;
}

.auth-buttons .btn {
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-button {
    padding: 8px 15px;
    color: black;
    background: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.btn.add-to-cart {
    flex: 1;
    background: #7341ff;
    color: white;
    border: none;
    padding: 14px;
    font-size: 15px;
    border-radius: 27px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn.add-to-cart:hover {
    background: #5d2dd9;
}

.btn.favorite {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    color: black;
}

.save-btn {
    background: #7341ff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
}

.delete-btn {
    background: #ff4444;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
}

.checkout-btn {
    background: #FFA500;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.submit-btn {
    background: #FFA500;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

/* Навигация и аутентификация */
.nav-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-form {
    margin: 0;
    padding: 0;
    display: inline;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
}

.modal-product-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-description {
    margin-top: 15px;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .products-edit-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        width: 90%;
    }

    .modal-product-image {
        width: 100%;
        height: auto;
    }

    .orders-table {
        width: 100%;
        margin: 20px 0;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-title {
        margin-bottom: 15px;
    }

    .modal-content {
        background-color: white;
        margin: 5% auto;
        padding: 25px;
        border-radius: 12px;
        width: 80%;
        max-width: 600px;
        position: relative;
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: 1fr;
    }

    .productt-card {
        width: 100%;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination a {
        padding: 6px 12px;
    }
}
/* Контактные карточки */
.contact-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: #FFA500;
    margin-bottom: 15px;
}

.contact-card ul {
    text-align: left;
    margin-top: 15px;
}

.contact-card li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-card a {
    color: #FFA500;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card a:hover {
    color: #FF8C00;
    text-decoration: underline;
}

/* Адаптивность для контактных карточек */
@media (max-width: 768px) {
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 350px;
    }
}

/* Стили для таблицы заказов */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.orders-table th,
.orders-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.orders-table th {
    background-color: #FFA500;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.orders-table tr:hover {
    background-color: #f9f9f9;
}

.orders-table tr:last-child td {
    border-bottom: none;
}

/* Стили для статусов заказов */
.status-new {
    color: #FFA500;
    font-weight: bold;
}

.status-processing {
    color: #7341ff;
    font-weight: bold;
}

.status-completed {
    color: #4CAF50;
    font-weight: bold;
}

.status-cancelled {
    color: #ff4444;
    font-weight: bold;
}

/* Стили для списка товаров в заказе */
.order-items-list {
    margin: 0;
    padding: 0;
}

.order-items-list li {
    padding: 4px 0;
    list-style-type: none;
}

/* Стиль для пустых заказов */
.empty-orders {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Адаптивность таблицы */
@media (max-width: 768px) {
    .orders-table {
        display: block;
        overflow-x: auto;
    }

    .orders-table th,
    .orders-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
}

.rating {
    display: flex;
    align-items: center;
    margin: 8px 0;
    flex-shrink: 0; /* Не сжимаем рейтинг */
}

.stars {
    display: flex;
}

.star {
    cursor: pointer;
    font-size: 20px;
    color: #ccc;
    transition: color 0.2s;
}

.star:hover, .star.filled {
    color: #FFA500;
}

.avg-rating {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
}
#map {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.map-container {
    margin-top: 30px;
}
.map-container h3 {
    margin-bottom: 15px;
}
/* Футер */
.site-footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h3 {
    color: #FFA500;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FFA500;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 30px;
    }
}
.products > div {
    text-align: center;
    margin: 50px 0;
}

.products > div p {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Основа слайдера */
.swiper {
    width: 1240px;
    height: 400px;
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    position: relative;
}

/* Слайды */
.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стрелки (главный фишечка) */
.swiper-button-prev,
.swiper-button-next {
    color: white !important;
    background: rgba(0,0,0,0.5);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Лёгкий blur для модного эффекта */
    border: 1px solid rgba(255,255,255,0.2);
}

/* Размер иконок стрелок */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px !important; /* Уменьшили */
}


.swiper-button-prev { left: 20px !important; }
.swiper-button-next { right: 20px !important; }

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255,153,0,0.7); /* Оранжевый при наведении */
    transform: scale(1.1);
}

/* Стили для точек (пагинации) */
.swiper-pagination {
    bottom: 15px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ff9900 !important;
    opacity: 0.6;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.3);
}

/* При наведении на точку - подсветка */
.swiper-pagination-bullet:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

/* Контент внутри слайда */
.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 10px;
    max-width: 40%;
}

/* Адаптив */
@media (max-width: 768px) {
    .swiper {
        height: 300px;
    }
    .slide-content {
        max-width: 80%;
        padding: 15px;
    }
    .swiper-button-prev,
    .swiper-button-next {
        width: 40px !important;
        height: 40px !important;
    }
}
/* Стили для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    width: 100%;
    grid-column: 1 / -1; /* Растягиваем на всю ширину grid-контейнера */
}

.page-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    background-color: white;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f5f5f5;
    border-color: #FFA500;
    color: #FF8C00;
}

.page-link.current {
    background-color: #FFA500;
    color: white;
    border-color: #FFA500;
    font-weight: 600;
}

.page-link.prev-next {
    padding: 0 16px;
}

@media (max-width: 480px) {
    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .page-link.prev-next {
        padding: 0 12px;
    }
}
/* Стили для кнопки избранного */
.favourite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2em;
}

.favourite-btn .heart-icon {
    color: #ccc;
    transition: color 0.3s;
}

.favourite-btn[data-is-favourite="true"] .heart-icon {
    color: red;
}
/* Стили для кнопки "В корзину" (как в предыдущем решении) */
.action-buttons .nav-button {
    padding: 12px 24px;
    background: linear-gradient(145deg, #FFA500, #FF8C00);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.action-buttons .nav-button:hover {
    background: linear-gradient(145deg, #FF8C00, #FF7000);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Стили для кнопки избранного - ТОЛЬКО сердечко без фона */
.action-buttons .favourite-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

.action-buttons .favourite-btn:hover {
    background: none !important;
    transform: none !important;
}
.action-buttons .favourite-btn::after {
    display: none !important;
}
.favourite-btn[data-is-favourite="true"] .heart-icon {
    color: red !important;
}

.action-buttons .favourite-btn .heart-icon {
    font-size: 1.5em;
    color: #ccc;
    transition: color 0.3s;
}

.action-buttons .favourite-btn[data-is-favourite="true"] .heart-icon {
    color: red;
}

/* Базовый контейнер для кнопок */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Прижимаем кнопки к низу */
    padding-top: 10px;
    flex-shrink: 0; /* Не сжимаем кнопки */
}
/* Стили для кнопок действий (как на index.html) */
.action-btn {
    padding: 12px 24px;
    background: linear-gradient(145deg, #FFA500, #FF8C00);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.action-btn:hover {
    background: linear-gradient(145deg, #FF8C00, #FF7000);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Стили для кнопок управления количеством в корзине */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.quantity-control .action-btn {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control .quantity {
    font-size: 18px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Стиль для кнопки удаления в избранном и корзине */
.remove-btn {
    background: linear-gradient(145deg, #FFA500, #FF8C00) !important;
}

.remove-btn:hover {
    background: linear-gradient(145deg, #FFA500, #FF8C00) !important;
}
/* Стили для контейнера действий в корзине */
.cart-item-actions {
    margin-top: auto; /* Прижимает к низу */
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* Обновленные стили для управления количеством */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px; /* Уменьшили расстояние между кнопками */
}

.quantity-control .action-btn {
    min-width: 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 14px;
}

.quantity-control .quantity {
    font-size: 16px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Кнопка удаления сделаем немного меньше */
.remove-btn {
    padding: 8px 16px !important;
    font-size: 14px;
}
.order-items-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    background-color: #f5f5f5;
    color: #333;
}

.status-awaiting-payment {
    background-color: #bbdefb !important;
    color: #0d47a1 !important;
    border: 1px solid #90caf9;
}

.status-processing {
    background-color: #fff3e0 !important;
    color: #e65100 !important;
    border: 1px solid #ffcc80;
}

.status-in-transit {
    background-color: #f3e5f5 ;
    color: #4a148c ;
    border: 1px solid #ce93d8;
}

.status-delivered {
    background-color: #e8f5e9 !important;
    color: #1b5e20 !important;
    border: 1px solid #a5d6a7;
}

.status-cancelled {
    background-color: #ffebee !important;
    color: #b71c1c !important;
    border: 1px solid #ef9a9a;
}
.auth-required {
    color: red;
    font-size: 14px;
    text-align: center;
}
/* Стили для выпадающего меню */
.categories-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.brands-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible; /* Убираем прокрутку */
    z-index: 1001;
}

.brands-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.brand-item {
    padding: 12px 20px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-item:hover {
    background-color: rgba(255, 165, 0, 0.1);
    color: #FF8C00;
}

.brand-item::after {
    content: '›';
    font-size: 20px;
    color: #999;
    transition: all 0.2s ease;
}

.brand-item:hover::after {
    color: #FF8C00;
    transform: translateX(3px);
}

/* Контейнер для категорий */
.categories-container {
    position: absolute;
    top: 0;
    left: 100%; /* Располагаем справа от бренда */
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    margin-left: 10px; /* Отступ между брендами и категориями */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible; /* Убираем прокрутку */
    z-index: 1002;
}

.category-link {
    display: block;
    padding: 10px 25px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
}

.category-link:hover {
    background-color: rgba(255, 165, 0, 0.1);
    color: #FF8C00;
    padding-left: 30px;
}

/* Анимация при наведении на бренд */
.brand-item:hover .categories-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .brands-menu {
        width: 250px;
    }

    .categories-container {
        width: 250px;
    }

    .brand-item,
    .category-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .categories-dropdown {
        width: 100%;
    }

    .brands-menu {
        width: 100%;
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        max-height: 60vh;
        border-radius: 12px 12px 0 0;
        transform: translateY(100%);
    }

    .brands-menu.active {
        transform: translateY(0);
    }

    .categories-container {
        width: 100%;
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        max-height: 60vh;
        border-radius: 12px 12px 0 0;
        transform: translateY(100%);
        margin-left: 0;
    }

    .brand-item:hover .categories-container {
        transform: translateY(0);
    }
}
/* Кнопка консультации */
/* Кнопка консультации */
.consultation-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(145deg, #3fa037, #3fa038); /* Градиент для фона */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
            0 6px 10px rgba(0, 0, 0, 0.15),
            0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 24px; /* Увеличиваем размер иконки */
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3); /* Прозрачная рамка */
}

.consultation-btn:hover {
    background: linear-gradient(145deg, #3fa037, #1b5e20); /* Меняем направление градиента */
    transform: translateY(-5px); /* Небольшой эффект "подпрыгивания" */
    box-shadow:
            0 8px 15px rgba(0, 0, 0, 0.2),
            0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(61, 224, 34, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(101, 223, 201, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(101, 223, 201, 0);
    }
}

.consultation-btn.pulse {
    animation: pulse 2s infinite;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.consultation-modal h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.consultation-modal p {
    font-size: 16px;
    margin-bottom: 20px;
}

.phone-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #45a049;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 370px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.submit-btn {
    background: linear-gradient(145deg, #3fa037, #1b5e20);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(145deg, #3fa037, #1b5e20);
    transform: scale(1.02);
}