/* Основные стили */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f8f5;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Шапка сайта */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #25a25a;
    text-decoration: none;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(37, 162, 90, 0.15) 0%, rgba(37, 162, 90, 0.25) 100%);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(37, 162, 90, 0.15);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.logo:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    transition: all 0.6s ease;
}

.logo:hover {
    box-shadow: 0 4px 15px rgba(37, 162, 90, 0.25);
    transform: translateY(-2px);
    background: linear-gradient(to right, rgba(37, 162, 90, 0.2) 0%, rgba(37, 162, 90, 0.3) 100%);
}

.logo:hover:before {
    left: 100%;
}

.logo-basket-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25a25a, #219452);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    transition: all 0.5s ease;
    position: relative;
    box-shadow: 0 3px 8px rgba(33, 148, 82, 0.2);
}

.logo:hover .logo-basket-circle {
    background: linear-gradient(135deg, #219452, #25a25a);
    transform: rotate(10deg) scale(1.05);
}

.logo i {
    font-size: 24px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-1px);
    margin: 0;
    line-height: 0;
    transition: all 0.4s ease;
}

.logo:hover i {
    transform: translate(-50%, -50%) translateY(-1px) scale(1.1);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    background: linear-gradient(to right, #25a25a, #219452);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    line-height: 1.1;
    transition: all 0.4s ease;
}

.logo:hover .logo-main {
    transform: translateX(3px);
    background: linear-gradient(to right, #219452, #25a25a);
    -webkit-background-clip: text;
    background-clip: text;
}

.gradient-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, 
        rgba(37, 162, 90, 0.3) 0%, 
        rgba(37, 162, 90, 0.8) 50%,
        rgba(37, 162, 90, 0.3) 100%);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.logo:hover .gradient-line {
    background: linear-gradient(to right, 
        rgba(37, 162, 90, 0.4) 0%, 
        rgba(37, 162, 90, 1) 50%,
        rgba(37, 162, 90, 0.4) 100%);
    width: 105%;
}

.halal-text {
    display: block;
    font-size: 14px;
    color: #219452;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    align-self: center;
    transition: all 0.4s ease;
    width: 100%;
    margin-right: 0;
}

.logo:hover .halal-text {
    transform: translateY(2px);
}

.search-bar {
    display: flex;
    width: 50%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 3px 12px rgba(37, 162, 90, 0.15);
    transform: translateY(-1px);
}

.search-bar input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid #eee;
    border-right: none;
    border-radius: 30px 0 0 30px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.search-bar input:focus {
    border-color: rgba(37, 162, 90, 0.3);
}

.search-bar button {
    padding: 12px 25px;
    background-color: #25a25a;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button i {
    margin-right: 6px;
}

.search-bar button:hover {
    background-color: #219452;
}

.cart-icon {
    font-size: 16px;
    color: #25a25a;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25a25a;
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.cart-icon:hover .cart-icon-circle {
    background-color: #219452;
    transform: scale(1.05);
}

.cart-icon i {
    font-size: 18px;
}

/* Основной контент */
.main-content {
    display: flex;
    margin-top: 20px;
}

/* Боковая панель с категориями */
.sidebar {
    width: 300px;
    background-color: #fff;
    padding: 20px;
    margin-right: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #25a25a;
    padding-bottom: 12px;
}

.sidebar h2 {
    font-size: 20px;
    margin: 0;
    color: #333;
    font-weight: 600;
}

.toggle-categories {
    background: none;
    border: none;
    color: #25a25a;
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-categories:hover {
    background-color: rgba(37, 162, 90, 0.1);
}

.toggle-categories i {
    transition: transform 0.3s ease;
}

.toggle-categories.collapsed i {
    transform: rotate(180deg);
}

.category-list {
    padding: 0;
    margin-top: 15px;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, transform 0.3s ease;
}

.category-list.collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    margin-top: 0;
}

.category-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s;
    padding: 5px 10px;
    width: 100%;
}

.category-item:hover {
    background-color: #ebf7f0;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(37, 162, 90, 0.1);
}

/* Кастомный стиль для чекбоксов */
.category-item input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d9d9d9;
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    flex-shrink: 0;
    min-width: 20px;
}

.category-item input[type="checkbox"]:checked {
    background-color: #25a25a;
    border-color: #25a25a;
}

.category-item input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.category-item input[type="checkbox"]:hover {
    border-color: #25a25a;
    box-shadow: 0 0 0 1px rgba(37, 162, 90, 0.2);
}

.category-item label {
    color: #444;
    cursor: pointer;
    font-weight: 500;
    padding: 10px 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    min-width: 0;
}

.category-item input[type="checkbox"]:checked + label {
    color: #25a25a;
    font-weight: 600;
}

/* Активная категория */
.category-item.active {
    background-color: #ebf7f0;
    border-left: 3px solid #25a25a;
    padding-left: 12px;
}

.category-item input[type="checkbox"]:checked ~ .category-item {
    background-color: #ebf7f0;
}

.filter-btn {
    width: 100%;
    background-color: #25a25a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: #219452;
}

/* Стили для блока с информацией о фильтре */
.filter-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 3px solid #25a25a;
}

.filter-info p {
    margin: 0;
    color: #555;
    font-size: 16px;
}

.selected-category {
    display: inline-block;
    background-color: #ebf7f0;
    color: #219452;
    padding: 3px 8px;
    margin: 2px;
    border-radius: 4px;
    font-weight: 500;
}

/* Сетка товаров */
.product-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Обновленные стили для карточки товара */
.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(37, 162, 90, 0));
    transition: all 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 162, 90, 0.15);
}

.product-card:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(37, 162, 90, 0.08));
}

/* Для интересного эффекта при наведении на кнопку внутри карточки */
.product-card:hover .add-to-cart {
    background-color: #219452;
}

.product-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.product-card:hover .product-image {
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.02);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    height: 80px;
    overflow: hidden;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.product-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 2px 0;
}

.price {
    color: #333;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.item-total-price {
    color: #219452;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    display: none;
}

.product-card.in-cart .item-total-price {
    display: block;
}

.product-card.in-cart .price {
    font-size: 14px;
    color: #333;
}

.add-to-cart {
    background-color: #25a25a;
    color: white;
    border: none;
    padding: 8px 15px;
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #219452;
}

/* Стили для блока количества */
.quantity-control {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    height: 36px;
    margin: 10px 0;
}

.product-card.in-cart .add-to-cart {
    display: none;
}

.product-card.in-cart .quantity-control {
    display: flex;
}

.quantity-delete {
    background-color: #e74c3c;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.quantity-btn {
    background-color: #25a25a;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.quantity-btn:hover {
    background-color: #219452;
}

.quantity-delete:hover {
    background-color: #c0392b;
}

.quantity-input {
    width: 100%;
    height: 36px;
    text-align: center;
    border: none;
    background: white;
    font-weight: bold;
    font-size: 16px;
    padding: 0;
    /* Убираем стрелки для Chrome, Safari, Edge, Opera */
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Убираем стрелки для Firefox */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input-container {
    display: flex;
    width: 45px; /* Увеличиваем ширину с 36px до 45px для вмещения дополнительной цифры */
    background: white;
    flex-grow: 1;
    align-items: center;
}

.quantity-unit {
    padding: 0 10px 0 5px;
    font-size: 14px;
    color: #666;
    background: white;
    height: 36px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Стили для отображения единицы измерения */
.unit-price {
    font-size: 14px;
    color: #666;
    margin: 0 0 2px 0;
    line-height: 1.1;
}

/* Стили для блока наличия товаров */
.product-stock {
    margin: 2px 0 10px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1;
}

.in-stock {
    color: #219452;
}

.low-stock {
    color: #ff9800;
}

.out-of-stock {
    color: #dc3545;
}

/* Стиль для кнопки "Нет в наличии" */
.out-of-stock-button {
    background-color: #e9e9e9;
    color: #666;
    border: none;
    padding: 8px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: not-allowed;
    width: 100%;
    margin: 0;
}

/* Корзина в шапке */
.cart-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    margin-left: 5px;
    position: relative;
    top: -10px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-standarts {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .footer-brands, 
    .footer-standarts {
        text-align: center;
        width: 100%;
    }
    
    .brand-logos, 
    .standart-logos {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        width: 100%;
    }
    
    .search-bar {
        width: 100%;
        margin: 15px 0;
    }
    
    .main-content {
        flex-direction: column;
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }
    
    .cart-item-image {
        margin-bottom: 15px;
        max-width: 100%;
    }
    
    .cart-item-details {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .cart-item-quantity {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .cart-item-total {
        width: 100%;
        text-align: left;
    }
    
    .cart-summary {
        flex-direction: column;
        max-width: 100%;
    }
    
    .cart-total {
        margin-bottom: 15px;
    }

    .product-card {
        max-width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sorting-controls {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-select {
        flex-grow: 1;
        margin-left: 10px;
    }

    .floating-cart-button {
        padding: 10px 16px;
        bottom: 15px;
        right: 15px;
    }
    
    .floating-cart-text {
        display: none;
    }
    
    .floating-cart-icon {
        margin-right: 0;
        font-size: 20px;
    }

    /* Мобильный футер */
    .footer-content {
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }
    
    .footer-info {
        padding-left: 0;
        text-align: center;
        margin-top: 30px;
        width: 100%;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .contact-item {
        justify-content: center;
        width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    /* Стили для брендов и стандартов */
    .footer-brands, 
    .footer-standarts {
        width: 100%;
        margin: 0 0 30px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-brands h3,
    .footer-standarts h3 {
        margin-bottom: 20px;
        text-align: center;
        width: auto;
    }
    
    .brand-logos,
    .standart-logos {
        gap: 20px;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        padding: 0;
    }
    
    .brand-logo,
    .standart-logo {
        height: 80px;
        width: 80px;
    }
    
    .dagestan-logo,
    .slavniy-logo {
        height: 90px;
        width: 90px;
    }
    
    .vkusnenko-logo {
        width: 120px;
        max-width: 120px;
        height: 80px;
    }
    
    .contact-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-item {
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 0;
        align-items: center;
        margin-bottom: 15px;
        width: 100%;
        text-align: left;
    }
    
    .contact-item i {
        width: 25px;
        min-width: 25px;
        display: flex;
        justify-content: center;
        margin-right: 15px;
        color: #25a25a;
    }
    
    /* Стили для футера в целом */
    footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        padding: 0;
        margin-bottom: 0;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .price {
        font-size: 14px;
    }
    
    .add-to-cart {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Новый медиа-запрос для сверхмалых экранов (например, Galaxy Z Fold) */
@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr; /* Одна колонка для очень узких экранов */
        gap: 8px;
    }
    
    .product-title {
        font-size: 13px;
        height: 60px; /* Уменьшаем высоту заголовка */
    }
    
    .product-info {
        padding: 8px;
    }
    
    .price {
        font-size: 13px;
    }
    
    .add-to-cart {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    /* Оптимизация шапки */
    .header-content {
        padding: 8px;
    }
    
    .logo {
        font-size: 20px;
        padding: 6px 10px;
    }
    
    .search-bar input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-bar button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Оптимизация сайдбара */
    .sidebar {
        padding: 10px;
    }
    
    .category-item {
        padding: 4px 8px;
        font-size: 13px;
    }
}

/* Сообщение об отсутствии товаров */
.no-products {
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumbs a {
    color: #25a25a;
    text-decoration: none;
}

.breadcrumbs span {
    color: #999;
    margin: 0 5px;
}

/* Кнопка вернуться */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #25a25a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.btn:hover {
    background-color: #219452;
}

/* Анимация кнопок */
.quantity-btn, .quantity-delete, .add-to-cart {
    transition: all 0.2s ease;
}

.quantity-btn:active, .quantity-delete:active, .add-to-cart:active {
    transform: scale(0.95);
}

/* Стили для тумблера фильтрации товаров по наличию */
.stock-filter-container {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 40px;
}

.stock-filter-container:hover {
    box-shadow: 0 4px 8px rgba(37, 162, 90, 0.1);
    border-color: rgba(37, 162, 90, 0.2);
}

.stock-filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.stock-filter-text {
    margin-right: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: 0.4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .toggle-slider {
    background-color: #25a25a;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #25a25a;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Стили для контейнера с фильтром и сортировкой в одну линию */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stock-filter-container {
        margin-bottom: 0;
    }

    .sorting-controls {
        width: 100%;
    }
}

/* Стили для сортировки */
.sorting-controls {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 40px;
}

.sorting-controls:hover {
    box-shadow: 0 4px 8px rgba(37, 162, 90, 0.1);
    border-color: rgba(37, 162, 90, 0.2);
}

.sorting-controls label {
    margin-right: 10px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2325a25a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.sort-select:hover, .sort-select:focus {
    border-color: #25a25a;
    background-color: #fff;
}

.sort-select option {
    padding: 8px;
}

/* Фиксированная кнопка корзины */
.floating-cart-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #25a25a, #219452);
    color: white;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 162, 90, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-cart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(37, 162, 90, 0.4);
    background: linear-gradient(135deg, #219452, #1d8549);
}

.floating-cart-icon {
    font-size: 24px;
    position: relative;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-text {
    font-weight: 600;
    font-size: 16px;
}

.floating-cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .floating-cart-button {
        padding: 10px 16px;
        bottom: 15px;
        right: 15px;
    }
    
    .floating-cart-text {
        display: none;
    }
    
    .floating-cart-icon {
        margin-right: 0;
        font-size: 20px;
    }
}

/* Общие стили для логотипов брендов и стандартов */
.brand-logo,
.standart-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
    padding: 5px;
    box-shadow: none;
    transition: all 0.3s ease;
    height: 90px;
    width: 90px;
    overflow: visible;
}

.brand-logo:hover,
.standart-logo:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.dagestan-logo,
.slavniy-logo {
    height: 100px;
    width: 100px;
}

.vkusnenko-logo {
    width: 140px;
    max-width: 140px;
    height: 90px;
}

.brand-logo-img,
.standart-logo-img,
.halal-cert-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: transparent;
    mix-blend-mode: multiply;
}

.brand-logo:hover .brand-logo-img,
.standart-logo:hover .standart-logo-img,
.brand-logo:hover .halal-cert-logo {
    transform: scale(1.03);
}

/* Стили для главного меню */
.main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.main-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu li a {
    display: block;
    padding: 15px 30px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    text-align: center;
}

.main-menu li a:hover {
    color: #25a25a;
    background-color: rgba(37, 162, 90, 0.05);
}

.main-menu li.active a {
    color: #25a25a;
    border-bottom: 3px solid #25a25a;
    background-color: rgba(37, 162, 90, 0.08);
}

/* Стиль для активного пункта меню Каталог */
.main-menu li.active a[href$="catalog"] {
    color: #25a25a !important;
    position: relative;
    font-weight: 600;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .main-menu ul {
        flex-direction: row;
        width: 100%;
    }
    
    .main-menu li {
        flex: 1;
    }
    
    .main-menu li a {
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* Стили для страницы О компании */
.about-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(37, 162, 90, 0.2);
}

.about-section p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* Стили для блока с историей и логотипом */
.about-history-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.about-history-text {
    flex: 3;
}

.about-history-logo {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faida-logo {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.faida-logo:hover {
    transform: scale(1.02);
    box-shadow: none;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .about-history-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-history-text,
    .about-history-logo {
        flex: 1;
        width: 100%;
    }
    
    .faida-logo {
        max-width: 80%;
        margin: 0 auto;
    }
}

.values-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.values-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 162, 90, 0.1);
    background-color: #ebf7f0;
}

.values-list li i {
    color: #25a25a;
    font-size: 24px;
    margin-right: 15px;
    margin-top: 5px;
}

.values-list li div {
    flex: 1;
}

.values-list li h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.values-list li p {
    margin: 0;
    color: #666;
}

.brands-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.brand-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 162, 90, 0.1);
}

.brand-item img {
    max-width: 150px;
    max-height: 100px;
    margin-bottom: 15px;
    object-fit: contain;
}

.brand-item h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.brand-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.contact-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 162, 90, 0.1);
    background-color: #ebf7f0;
}

.contact-card i {
    font-size: 24px;
    color: #25a25a;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.contact-card p {
    margin: 0 0 5px 0;
    color: #666;
}

.contact-card a {
    color: #25a25a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: #219452;
    text-decoration: none;
}

/* Стили для страницы Доставка */
.delivery-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.delivery-section {
    margin-bottom: 40px;
}

.delivery-section:last-child {
    margin-bottom: 0;
}

.delivery-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(37, 162, 90, 0.2);
}

.delivery-section p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* Сетка для блоков информации о доставке */
.delivery-info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delivery-info-row {
    display: flex;
    gap: 20px;
}

.delivery-info-row .delivery-info-box {
    flex: 1;
}

/* Стили для блоков информации о доставке */
.delivery-info-container {
    margin-top: 20px;
}

.delivery-info-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .delivery-info-row {
        flex-direction: column;
    }
}

.delivery-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 162, 90, 0.1);
    background-color: #ebf7f0;
}

.info-icon {
    font-size: 24px;
    color: #25a25a;
    margin-bottom: 15px;
    text-align: center;
}

.info-icon i {
    background-color: rgba(37, 162, 90, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
}

.info-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    text-align: center;
}

.info-content ul {
    padding-left: 20px;
    margin: 0;
}

.info-content li {
    margin-bottom: 8px;
    color: #555;
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.step {
    position: relative;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 162, 90, 0.1);
    background-color: #ebf7f0;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 30px;
    height: 30px;
    background-color: #25a25a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.step-content {
    margin-top: 10px;
}

.step h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.step p {
    margin: 0;
    color: #666;
}

.additional-info {
    margin-top: 20px;
}

.info-item {
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.info-item h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-item p {
    margin: 0;
    line-height: 1.5;
}

/* Адаптивность для страниц О компании и Доставка */
@media (max-width: 992px) {
    .values-list, 
    .brands-showcase, 
    .contact-details,
    .delivery-info-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .values-list, 
    .contact-details,
    .additional-info {
        grid-template-columns: 1fr;
    }
    
    .brands-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .brands-showcase,
    .delivery-info-container,
    .order-steps {
        grid-template-columns: 1fr;
    }
}

/* Стили для дополнительной информации на странице доставки */
.additional-info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.additional-info-row .info-item {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .additional-info-row {
        flex-direction: column;
    }
}

/* Стили для заголовка страницы с сортировкой */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
    flex: 1;
}

.sorting-controls {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.sorting-controls:hover {
    box-shadow: 0 4px 8px rgba(37, 162, 90, 0.1);
    border-color: rgba(37, 162, 90, 0.2);
}

.sorting-controls label {
    margin-right: 10px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2325a25a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.sort-select:hover, .sort-select:focus {
    border-color: #25a25a;
    background-color: #fff;
}

.sort-select option {
    padding: 8px;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
}

.footer-info {
    flex: 1;
    text-align: left;
    padding-left: 30px;
}

.footer-info p {
    margin: 5px 0;
    color: #555;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.footer-copyright p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

/* Контактная информация */
.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
    color: #555;
    flex-wrap: nowrap;
}

.contact-item i {
    color: #25a25a;
    font-size: 16px;
    width: 25px;
    margin-right: 10px;
}

.contact-item a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #25a25a;
    text-decoration: none;
}

/* Стили для телефонных номеров и WhatsApp */
.phone-number-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.phone-number-container:last-child {
    margin-bottom: 0;
}

.phone-number {
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
    color: #333 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-number:hover {
    color: #25a25a !important;
    text-decoration: none;
}

.whatsapp-link {
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    background-color: transparent;
    color: #25d366 !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: visible;
    border: none;
    vertical-align: middle;
}

.whatsapp-link:hover {
    background-color: transparent;
    transform: translateY(-2px);
}

.whatsapp-link i {
    color: #25d366 !important;
    font-size: 13px;
    width: auto;
    margin: 0;
    position: relative;
    z-index: 2;
}

.whatsapp-link:hover i {
    color: #22c55e !important;
}

/* Логотипы брендов */
.footer-brands {
    flex: 1;
    text-align: center;
}

.footer-brands h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.footer-brands h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, 
        rgba(37, 162, 90, 0.3) 0%, 
        rgba(37, 162, 90, 0.8) 50%,
        rgba(37, 162, 90, 0.3) 100%);
    margin: 0 auto;
}

.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 30px;
    margin: 0 auto;
}

/* Стили для секции стандартов качества */
.footer-standarts {
    flex: 1;
    margin-left: 20px;
    text-align: center;
}

.footer-standarts h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.footer-standarts h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, 
        rgba(37, 162, 90, 0.3) 0%, 
        rgba(37, 162, 90, 0.8) 50%,
        rgba(37, 162, 90, 0.3) 100%);
    margin: 0 auto;
}

.standart-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 30px;
    margin: 0 auto;
}

/* Стили для страницы корзины */
.cart-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex-grow: 1;
    margin-right: 20px;
}

.cart-item-title {
    font-size: 16px;
    margin: 0 0 5px 0;
}

.cart-item-price {
    color: #333;
    font-weight: bold;
    margin: 0;
}

.cart-item-quantity {
    width: 180px;
    margin-right: 20px;
}

.cart-item-quantity .quantity-control {
    display: flex;
    width: 100%;
    margin: 0;
}

.cart-item-total {
    width: 100px;
    text-align: right;
    font-weight: bold;
    font-size: 18px;
    color: #219452;
}

.cart-summary {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.order-comment-container {
    margin-bottom: 20px;
}

.order-comment-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.order-comment-container textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}

.order-comment-container textarea:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.cart-total span:last-child {
    color: #25a25a;
}

.checkout-btn {
    background-color: #25a25a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #219452;
}

/* Стили для кнопок в корзине */
.cart-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cart-buttons button {
    border-radius: 4px;
    font-size: 16px;
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.clear-cart-btn {
    background-color: #fff;
    color: #f44336;
    border: 2px solid #f44336;
}

.clear-cart-btn:hover {
    background-color: #fff8f8;
    color: #d32f2f;
    border-color: #d32f2f;
}

.cart-buttons .checkout-btn {
    background-color: #25a25a;
    color: white;
    border: none;
    margin-top: 0;
}

.cart-buttons .checkout-btn:hover {
    background-color: #219452;
}

.cart-empty {
    text-align: center;
    padding: 60px 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    max-width: 500px;
}

.empty-cart-icon {
    margin-bottom: 20px;
}

.empty-cart-icon i {
    font-size: 80px;
    color: #d3d3d3;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 50%;
    display: inline-block;
}

.cart-empty h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.cart-empty p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #777;
}

.cart-empty .btn-primary {
    background-color: #25a25a;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.cart-empty .btn-primary:hover {
    background-color: #219452;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Стили для модального окна */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90%;
    width: 450px;
    position: relative;
}

.modal-icon {
    margin-bottom: 15px;
}

.modal-icon i {
    font-size: 3rem;
    color: #25a25a;
    background: #eafaf1;
    padding: 15px;
    border-radius: 50%;
}

#custom-modal h3 {
    margin: 0 0 15px;
    font-size: 1.5rem;
    color: #333;
}

#custom-modal p {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.5;
}

.modal-btn {
    background-color: #25a25a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background-color: #219452;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Стили для модального окна с подтверждением */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cancel-btn {
    background-color: #e74c3c;
}

.cancel-btn:hover {
    background-color: #c0392b;
}

.ok-btn {
    background-color: #25a25a;
}

.ok-btn:hover {
    background-color: #219452;
}

#confirm-modal .modal-icon i {
    color: #f39c12;
    background: #fef5e7;
}

.contact-item i.fa-clock {
    color: #f39c12;
}

.contact-item #working-hours {
    display: inline-block;
    background-color: #f8f9fa;
    border-left: 3px solid #25a25a;
    padding: 3px 10px;
    margin-left: 5px;
    border-radius: 3px;
    font-weight: 500;
}

.content {
    flex-grow: 1;
}

.full-width {
    width: 100%;
}

/* Стили для ссылок на товары */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-link:hover {
    color: inherit;
}

/* Стили для страницы детального просмотра товара */
.product-detail {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.product-detail-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.product-detail-image {
    flex: 0 0 40%;
    padding: 20px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 5px;
}

.product-detail-info {
    flex: 0 0 60%;
    padding: 20px;
}

.product-detail-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-detail-code {
    color: #777;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-detail-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-detail-price {
    display: flex;
    flex-direction: column;
}

.price-large {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.product-total-price {
    font-size: 18px;
    font-weight: 600;
    color: #25a25a;
    margin-top: 10px;
    margin-bottom: 0;
}

.product-stock-large {
    font-size: 16px;
    font-weight: bold;
}

.product-detail-cart {
    margin-bottom: 25px;
}

.quantity-control-large {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 30px;
    padding: 5px 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.add-to-cart-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    padding: 12px 25px;
    background-color: #25a25a;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-large:hover {
    background-color: #1e8a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 162, 90, 0.25);
}

.add-to-cart-large i {
    margin-right: 10px;
}

.out-of-stock-button-large {
    width: 100%;
    max-width: 300px;
    padding: 12px 25px;
    background-color: #e5e5e5;
    color: #999;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: not-allowed;
}

.product-detail-category {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.product-detail-category a {
    color: #25a25a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-detail-category a:hover {
    color: #1e8a4a;
    text-decoration: underline;
}

/* Стили для вкладок */
.product-detail-tabs {
    margin-bottom: 30px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 25px;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    top: 1px;
}

.tab-button:hover {
    background-color: #f0f0f0;
    color: #333;
}

.tab-button.active {
    background-color: white;
    color: #25a25a;
    border-bottom: 1px solid white;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: white;
}

.tab-content.active {
    display: block;
}

.product-description {
    line-height: 1.6;
    color: #555;
}

.product-description p {
    margin-bottom: 15px;
}

/* Стили для таблицы характеристик */
.characteristics-table {
    width: 100%;
    border-collapse: collapse;
}

.characteristics-table tr {
    border-bottom: 1px solid #eee;
}

.characteristics-table tr:last-child {
    border-bottom: none;
}

.characteristics-table th {
    text-align: left;
    padding: 12px;
    width: 40%;
    font-weight: 600;
    color: #666;
    background-color: #f8f8f8;
}

.characteristics-table td {
    padding: 12px;
    color: #333;
}

/* Стили для раздела "Похожие товары" */
.related-products {
    margin-top: 40px;
}

.related-products h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Стили для сообщения о том, что товар не найден */
.product-not-found {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.product-not-found h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.product-not-found p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

@media (max-width: 992px) {
    .product-detail-grid {
        flex-direction: column;
    }
    
    .product-detail-image,
    .product-detail-info {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 15px;
    }
    
    .product-detail-image,
    .product-detail-info {
        padding: 10px;
    }
    
    .product-detail-title {
        font-size: 20px;
    }
    
    .price-large {
        font-size: 24px;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .tabs-header {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-button {
        border-radius: 5px;
        margin-bottom: 5px;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    
    .tab-button.active {
        border-bottom: 1px solid #eee;
    }
    
    .tab-content {
        border-top: 1px solid #eee;
        border-radius: 5px;
    }
    
    .characteristics-table th,
    .characteristics-table td {
        padding: 8px;
        font-size: 14px;
    }
}

.product-detail-cart .quantity-control {
    width: 100%;
    max-width: 300px;
    height: 40px;
    background-color: #f8f8f8;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-detail-cart .quantity-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.product-detail-cart .quantity-delete {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.product-detail-cart .quantity-input {
    height: 40px;
    font-size: 18px;
}

.product-detail-cart .quantity-unit {
    height: 40px;
    font-size: 16px;
    padding: 0 15px 0 5px;
    background: white;
}

.product-detail-quantity {
    margin-bottom: 15px;
    font-size: 16px;
    background-color: #f8f8f8;
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-detail-quantity span:first-child {
    font-weight: 500;
    color: #666;
}

.product-detail-quantity span:last-child {
    font-weight: 600;
    color: #25a25a;
}

/* Стили для элементов авторизации */
.main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-button {
    background-color: #4caf50;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    min-width: 100px;
    text-align: center;
    white-space: nowrap;
}

.auth-button:hover {
    background-color: #45a049;
}

.logout-button {
    background-color: #f44336;
}

.logout-button:hover {
    background-color: #d32f2f;
}

.user-greeting {
    font-size: 14px;
    color: #333;
    margin-right: 10px;
}

/* Адаптивная верстка для элементов авторизации */
@media (max-width: 768px) {
    .main-menu {
        flex-direction: column;
    }
    
    .auth-menu {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* Стили для страниц авторизации */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.75rem;
}

.auth-button-large {
    width: 100%;
    padding: 0.75rem;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-button-large:hover {
    background-color: #45a049;
}

.auth-message {
    margin: 1rem 0;
    padding: 0.5rem;
    display: none;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: #4caf50;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.verification-form {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

/* Стили для уведомления о WhatsApp */
.whatsapp-notice {
    color: #25D366;
    margin-top: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.whatsapp-notice i {
    margin-right: 5px;
    font-size: 1.1rem;
}

/* Стили для элементов авторизации */
.main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Стили для личного кабинета */
.profile-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.profile-avatar {
    font-size: 3rem;
    color: #25a25a;
    margin-right: 1.5rem;
}

.profile-info {
    display: block;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.profile-info h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.profile-info p {
    margin: 0.25rem 0;
    color: #666;
}

.profile-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background-color: #f9f9f9;
    border: none;
    border-radius: 4px 4px 0 0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tab-button:hover {
    background-color: #f0f0f0;
    color: #333;
}

.tab-button.active {
    background-color: #25a25a;
    color: white;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 1rem 0;
}

.tab-content.active {
    display: block;
}

.profile-form {
    max-width: 500px;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Стили для истории заказов */
.orders-list {
    margin-top: 1rem;
}

.order-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f8f8f8;
}

.order-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-id {
    font-weight: bold;
    color: #333;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.order-status.новый {
    background-color: #e3f2fd;
    color: #1565c0;
}

.order-status.обработан {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.order-status.доставлен {
    background-color: #25a25a;
    color: white;
}

.order-status.отменен {
    background-color: #ffebee;
    color: #c62828;
}

.order-products {
    padding: 1rem;
}

.order-product {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-product:last-child {
    border-bottom: none;
}

.order-product-info {
    display: flex;
    flex-direction: column;
}

.order-product-name {
    font-weight: 500;
    color: #333;
}

.order-product-quantity {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.order-product-price {
    font-weight: 600;
    color: #25a25a;
}

.order-comment {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #4caf50;
}

.comment-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9rem;
}

.comment-text {
    color: #333;
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.4;
}

.order-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.order-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.order-total-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #25a25a;
}

.loading-orders {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading-orders i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #25a25a;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 1.5rem;
}

.error-message {
    padding: 1.5rem;
    text-align: center;
    color: #c62828;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Адаптивные стили для личного кабинета */
@media (max-width: 768px) {
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .order-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .order-info {
        width: 100%;
        justify-content: space-between;
    }
}

/* Стили для страницы ошибки */
.error-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.error-icon {
    font-size: 64px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-container h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.error-container p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.error-actions .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #32c200;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.error-actions .btn:hover {
    background-color: #28a700;
}

/* Стили для отображения роли пользователя */
.user-role {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 5px;
}

.user-role.admin {
    background-color: #e74c3c;
    color: white;
}

.user-role.moderator {
    background-color: #3498db;
    color: white;
}

.user-role.user {
    background-color: #2ecc71;
    color: white;
}

/* Стили для админ-панели */
.admin-panel {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.panel-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.order-sub-info {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.panel-body {
    padding: 1.5rem;
}

.admin-panel .table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-panel .table thead th {
    background-color: #f8f9fa;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.admin-panel .table tbody tr {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.admin-panel .table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    z-index: 1;
    position: relative;
}

.admin-panel .table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border: none;
}

.btn-action {
    background-color: #25a25a;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    background-color: #219452;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 162, 90, 0.2);
}

/* Бейджи статусов */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-new { background-color: #e3f2fd; color: #1565c0; }
.status-pending { background-color: #fff8e1; color: #f57f17; }
.status-paid { background-color: #e8f5e9; color: #2e7d32; }
.status-delivered { background-color: #e0f2f1; color: #00695c; }
.status-cancelled { background-color: #ffebee; color: #c62828; }
.status-default { background-color: #f5f5f5; color: #616161; }

/* Форма смены роли */
.role-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-form .form-select {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Стили для страницы деталей заказа */
.detail-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
}

.detail-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.detail-card h4 i {
    margin-right: 0.75rem;
    color: #25a25a;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li span {
    color: #6c757d;
}

.order-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
    align-items: center;
}

.item-name { font-weight: 500; }
.item-details { color: #6c757d; font-size: 0.9rem; }
.item-total { font-weight: 600; }


.payment-link-container {
    padding: 1rem;
    background-color: #e8f5e9;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
}

.payment-link-container h5 { font-weight: 600; color: #2e7d32; }
.payment-link-container p { font-size: 0.9rem; color: #388e3c; }

.payment-link-container .input-group {
    display: flex;
}

.payment-link-container .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.payment-link-container .btn-action {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.qr-code { text-align: center; margin-top: 1rem; }

.form-group-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}
.form-group-inline .form-control { flex-grow: 1; }

.btn-action-secondary {
    background-color: #6c757d;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-action-secondary:hover {
    background-color: #5a6268;
    color: white;
}

.btn-action-warning {
    background-color: #f57f17;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-action-warning:hover {
    background-color: #e67e22;
    color: white;
}

.regenerate-form {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .panel-body {
        padding: 1rem;
    }

    .detail-card {
        padding: 1rem;
    }

    .detail-card h4 {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
        border: 1px solid #dee2e6;
        border-radius: 8px;
    }

    .table {
        min-width: 600px; /* Минимальная ширина, чтобы таблица не сжималась слишком сильно */
        margin-bottom: 0;
    }

    .role-form {
        flex-direction: column;
        align-items: stretch;
    }
    .role-form .form-select, .role-form .btn-action {
        width: 100%;
    }

    .order-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }
    .item-total {
        font-size: 1.1rem;
    }

    .main-menu {
        flex-direction: column; /* Ставим элементы друг под другом */
        align-items: stretch; 
        justify-content: center;
        gap: 15px; /* Отступ между блоком ссылок и блоком кнопок */
    }

    .main-menu ul {
        /* display: none; <-- Убираем это правило, чтобы вернуть ссылки */
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        padding: 0;
        list-style: none;
        margin: 0;
    }

    .main-menu .auth-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%; /* Занимает всю ширину */
    }

    .main-menu a:not(:last-child) {
        margin-right: 0; /* Убираем старый отступ */
    }
    
    .main-menu .auth-button {
        padding: 8px 12px; /* Уменьшаем кнопки */
        font-size: 0.9rem;
        text-align: center; /* Центрируем текст в кнопках */
    }
}

/* Стили для кнопки закрытия в уведомлениях (alerts) */
.alert .btn-close {
    padding: 0;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: .25rem;
    opacity: .5;
    width: 1em;
    height: 1em;
    box-sizing: content-box;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Стили для уведомлений (alerts) */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .375rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger, .alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-dismissible {
    padding-right: 3.5rem; /* Место для кнопки закрытия */
}
  