body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #FFFFFF;
    padding: 15px 20px;
    border-bottom: 2px solid #FBB03B; /* Яркий оранжево-желтый */
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    text-decoration: none;
}

.header-spacer {
    flex-grow: 1; /* Заполняет все доступное пространство */
}

.logo {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

/* Мобильная адаптация для логотипа */
@media (max-width: 768px) {
    .logo-image {
        height: 48px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 42px;
        max-width: 140px;
    }
}

/* Устаревшие стили для текстового логотипа - оставлены для совместимости */
.logo-text {
    font-size: 36px;
    font-weight: 700;
    color: #FBB03B;
    display: block;
    text-transform: lowercase;
}

.logo-subtext {
    font-size: 12px;
    color: #FBB03B;
    display: block;
}

.header-title-business {
    color: #004080; /* Темно-синий */
    font-weight: 600; /* Полужирный */
    /* text-transform: none; /* Отменяет lowercase от .logo-text, если нужно */
}

.nav-button {
    color: #3A2A1F; /* Темно-коричневый */
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #FDE3A7; /* Светло-желтый для ховера */
}

/* Стили для кнопки корзины в шапке */
.cart-button {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FBB03B 0%, #e9a030 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(251, 176, 59, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-button::before {
    content: '🛒';
    margin-right: 8px;
    font-size: 16px;
}

#header-menu-button::before {
    content: '📋';
    margin-right: 8px;
    font-size: 16px;
}

.cart-button:hover {
    background: linear-gradient(135deg, #e9a030 0%, #d89025 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 176, 59, 0.4);
    color: white;
}

.cart-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(251, 176, 59, 0.3);
}

/* Стили для фиксированной кнопки корзины */
.fixed-cart-button {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #FBB03B 0%, #e9a030 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(251, 176, 59, 0.4);
    backdrop-filter: blur(10px);
}

.fixed-cart-button::before {
    content: '🛒';
    margin-right: 8px;
    font-size: 16px;
}

.fixed-cart-button#fixed-menu-button::before,
#fixed-menu-button::before {
    content: '📋';
    margin-right: 8px;
    font-size: 16px;
}

.fixed-cart-button:hover {
    background: linear-gradient(135deg, #e9a030 0%, #d89025 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(251, 176, 59, 0.5);
    color: white;
}

.fixed-cart-button:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(251, 176, 59, 0.4);
}

/* Новые стили для кнопок добавления в корзину на фото товара */
.product-image-cart-button {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #FBB03B;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    transition: transform 0.2s, background-color 0.2s;
    padding: 0;
    line-height: 1;
}

.product-image-cart-button:hover {
    background-color: #EAA02B;
    transform: scale(1.1);
}

.product-image-quantity-controls {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 10;
    border-radius: 18px;
    height: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0 3px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.product-image-quantity-controls .minus-btn,
.product-image-quantity-controls .plus-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #FBB03B;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.2s;
    z-index: 2;
}

/* Эффект при наведении на кнопки + и - */
.product-image-quantity-controls .minus-btn:hover,
.product-image-quantity-controls .plus-btn:hover {
    background-color: #EAA02B; /* Немного темнее при наведении */
    transform: scale(1.1); /* Немного увеличиваем при наведении */
}

/* Эффект при нажатии на кнопки */
.product-image-quantity-controls .minus-btn:active,
.product-image-quantity-controls .plus-btn:active {
    transform: scale(0.95); /* Немного уменьшаем при нажатии */
    background-color: #D99020; /* Еще темнее при нажатии */
}

.product-image-quantity-controls .item-in-cart-indicator {
    min-width: 25px;
    height: 30px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background-color: transparent;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 6px;
    margin: 0 4px;
}

/* Оверлей цены на изображении на детальной странице */
.product-detail-image {
    position: relative;
}
.product-detail-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
.product-image-price-overlay {
    position: absolute;
    left: 6px;
    bottom: 6px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #FDE3A7;
    border-radius: 8px;
    padding: 6px 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    z-index: 11; /* поверх изображения и чуть выше контролов */
    pointer-events: none; /* не перехватывать клики по изображению */
}
.product-image-price-overlay .product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* выравнивание влево по требованию */
    gap: 2px;
    white-space: nowrap; /* ₽ и число не переносятся */
}

#cart-info {
    white-space: nowrap; /* Дополнительно запрещаем перенос внутри самого текста */
    display: inline-block; /* Отображаем как блочный элемент */
}

/* Стили для кнопки "Очистить корзину" */
.clear-cart-button {
    background-color: #f5f5f5; /* Светло-серый цвет */
    color: #777777;
    padding: 15px 20px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    min-width: 150px;
    box-sizing: border-box; /* Чтобы размер был точно таким же, как у другой кнопки */
    height: 52px; /* Задаем фиксированную высоту */
    line-height: 20px; /* Для вертикального выравнивания текста */
}

.clear-cart-button:hover {
    background-color: #e9e9e9; /* Более темный серый при наведении */
}

/* Стили для ссылки на название товара */
.product-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-name-link:hover {
    color: #FBB03B;
}

/* Стили для контейнера кнопок в корзине */
.cart-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px; /* Расстояние между кнопками */
    flex-wrap: nowrap; /* Не переносить на новую строку */
}

/* Строчная раскладка: checkout тянется, очистка фиксированная иконка */
.cart-buttons-container .checkout-button {
    flex: 1 1 auto;
    min-width: 0 !important; /* разрешаем ужиматься на узких экранах */
    height: 44px; /* единая высота */
    display: inline-flex; /* для выравнивания текста и иконки */
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden; /* обрезаем длинный текст */
    text-overflow: ellipsis;
    white-space: nowrap; /* в одну строку */
}
.cart-buttons-container .checkout-button i { flex: 0 0 auto; }

.cart-buttons-container .clear-cart-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

main {
    flex-grow: 1;
    padding: 10px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-heading {
    color: #3A2A1F;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.page-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #FBB03B;
    margin: 10px auto 0;
}


.category-section .category-name,
.products-in-category-title {
    color: #3A2A1F;
    font-size: 24px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #FDE3A7;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Дополнительный класс для принудительного отображения по 2 товара в ряд */
.two-columns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Стили для горизонтальной полосы категорий */
.categories-bar-container {
    max-width: 1200px;
    margin: 20px auto 10px;
    padding: 0 20px;
}

.categories-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth; /* Плавная прокрутка */
}

.categories-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.category-item {
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-item:hover {
    background: linear-gradient(135deg, #FBB03B 0%, #e9a030 100%);
    border-color: #FBB03B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(251, 176, 59, 0.3);
}

.category-item.active {
    background: linear-gradient(135deg, #FBB03B 0%, #e9a030 100%);
    border-color: #FBB03B;
    color: white;
    box-shadow: 0 4px 8px rgba(251, 176, 59, 0.3);
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .categories-bar-container {
        margin: 15px auto 8px;
        padding: 0 15px;
    }
    
    .category-item {
        padding: 10px 16px;
        min-width: 70px;
    }
    
    .category-name {
        font-size: 13px;
    }
    
    /* Адаптивные стили для кнопок корзины */
    .cart-button {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .cart-button::before {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .fixed-cart-button {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 25px;
        top: 12px;
        right: 15px;
    }
    
    .fixed-cart-button::before {
        font-size: 14px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .categories-bar-container {
        margin: 10px auto 5px;
        padding: 0 10px;
    }
    
    .category-item {
        padding: 8px 14px;
        min-width: 60px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    /* Адаптивные стили для кнопок корзины на мобильных */
    .cart-button {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 18px;
    }
    
    .cart-button::before {
        font-size: 13px;
        margin-right: 5px;
    }
    
    .fixed-cart-button {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 20px;
        top: 10px;
        right: 10px;
    }
    
    .fixed-cart-button::before {
        font-size: 13px;
        margin-right: 5px;
    }
}

/* Стили для поисковой строки */
.search-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.search-form {
    position: relative; /* Добавлено для корректного позиционирования подсказок */
    width: 100%;
}

/* Стили для контейнера подсказок поиска */
#suggestions-container {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    /* Ширина и позиционирование относительно search-form, 
       чтобы соответствовать search-input (у которого border 2px) */
    width: calc(100% - 4px); 
    left: 2px;
    top: 100%; /* Располагается под search-input-container */
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000; /* Чтобы был поверх других элементов */
    display: none; /* По умолчанию скрыт */
}

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

#suggestions-container li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px; /* Размер шрифта для подсказок */
    color: #333;
}

#suggestions-container li:last-child {
    border-bottom: none;
}

#suggestions-container li:hover {
    background-color: #f5f5f5;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid #FBB03B;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 5px rgba(251, 176, 59, 0.5);
}

.search-button {
    position: absolute;
    right: 5px;
    background-color: #FBB03B;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: #e9a030;
}

/* Стили для результатов поиска */
.search-results-header {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-results-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.clear-search {
    color: #FBB03B;
    text-decoration: none;
    font-weight: 500;
}

.clear-search:hover {
    text-decoration: underline;
}

.no-products-found {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #666;
}

/* Стили для категории товара */
.product-category {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.product-card {
    background-color: #FFF;
    border: 1px solid #FDE3A7;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    overflow: hidden;
    height: 100%;
}

.product-card .product-image {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative; /* Для позиционирования кнопки + */
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card .product-name {
    font-size: 16px;
    font-weight: 700;
    color: #3A2A1F;
    margin-bottom: 8px;
    /* Убираем ограничения по высоте и обрезанию текста */
    min-height: auto;
    overflow: visible;
    display: block;
    /* Убираем ограничение на количество строк */
    /* -webkit-line-clamp: 2; */
    /* line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
}

.product-card .product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    /* Убираем ограничения по высоте и обрезанию текста */
    overflow: visible;
    display: block;
    /* Убираем ограничение на количество строк */
    /* -webkit-line-clamp: 2; */
    /* line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
    max-height: none;
}

.product-card .product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-card .product-price {
    font-size: 20px;
    font-weight: 700;
    color: #FBB03B;
    margin-bottom: 10px;
}

.product-card .add-to-cart-btn {
    background-color: #FBB03B;
    color: #FFFFFF;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    width: 100%; /* Занимает всю ширину */
    height: 40px; /* Уменьшенная высота */
    box-sizing: border-box;
}

.product-card .add-to-cart-btn:hover {
    background-color: #EAA02B; /* Более темный желтый */
}

/* Компактные карточки товаров только для публичной страницы со списком товаров */
/* Селекторы ограничены контейнером .products-section из `_product_grid_partial.html` */
.products-section .products-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* базово 2 в ряд */
    gap: 12px; /* меньше промежутки между карточками */
}

@media (min-width: 768px) {
    .products-section .products-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* 3 в ряд на планшетах */
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .products-section .products-grid {
        grid-template-columns: repeat(4, 1fr) !important; /* 4 в ряд на десктопе */
        gap: 16px;
    }
}

/* Уплотнение содержимого карточки */
.products-section .product-card {
    padding: 10px; /* было 15px */
}

.products-section .product-card .product-image {
    height: 100px; /* было 120px */
    margin-bottom: 8px; /* было 10px */
}

.products-section .product-card .product-name {
    font-size: 14px; /* было 16px */
    margin-bottom: 6px; /* было 8px */
}

.products-section .product-card .product-description {
    font-size: 13px; /* было 14px */
    margin-bottom: 8px; /* было 10px */
}

.products-section .product-card .product-price {
    font-size: 18px; /* было 20px */
    margin-bottom: 8px; /* было 10px */
}

/* Цены: каждая на своей строке, ₽ не переносится */
.products-section .product-price {
    display: flex;
    flex-direction: column;
    align-items: center; /* визуально центрируем в карточке */
    gap: 2px;
    white-space: nowrap; /* для случаев без span внутри */
}
.products-section .product-price .original-price,
.products-section .product-price .discounted-price,
.products-section .product-price .discount-badge {
    white-space: nowrap; /* не переносить число и ₽ */
}

/* Убираем остаточные margin-left из inline-стилей шаблонов/JS */
.products-section .product-price .original-price,
.products-section .product-price .discounted-price,
.products-section .product-price .discount-badge {
    margin-left: 0 !important;
}

.products-section .product-card .add-to-cart-btn {
    height: 36px; /* было 40px */
    font-size: 13px; /* было 14px */
}

.products-section .quantity-controls {
    height: 36px; /* было 40px */
}

.products-section .quantity-controls .cart-control-btn {
    width: 28px; /* было 30px */
    height: 28px; /* было 30px */
    font-size: 14px; /* было 16px */
}

.products-section .quantity-controls .item-in-cart-indicator {
    min-width: 22px; /* было 25px */
    font-size: 14px; /* было 15px */
}

/* Варианты (граммовки) — компактнее и в одну строку по возможности */
.products-section .product-variant-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 6px;
}

.products-section .product-variant-selector .variant-btn {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #FDE3A7;
    border-radius: 6px;
    background: #fff;
    color: #3A2A1F;
    cursor: pointer;
}

.products-section .product-variant-selector .variant-btn.active {
    background: #FBB03B;
    border-color: #FBB03B;
    color: #fff;
}

/* Детальная страница: выровнять дизайн с all_products */
.product-detail-container .product-variant-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 6px;
}

.product-detail-container .product-variant-selector .variant-btn {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #FDE3A7;
    border-radius: 6px;
    background: #fff;
    color: #3A2A1F;
    cursor: pointer;
}

.product-detail-container .product-variant-selector .variant-btn.active {
    background: #FBB03B;
    border-color: #FBB03B;
    color: #fff;
}

/* Цены на детальной странице — как на карточках */
.product-detail-container .product-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}
.product-detail-container .product-price .original-price,
.product-detail-container .product-price .discounted-price,
.product-detail-container .product-price .discount-badge {
    white-space: nowrap;
    margin-left: 0 !important;
}
.product-detail-container .product-price .original-price {
    color: #888;
    text-decoration: line-through;
    font-size: 1em;
}
.product-detail-container .product-price .discounted-price {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.15em;
}
.product-detail-container .product-price .discount-badge {
    background: #fff0f0;
    color: #d32f2f;
    font-weight: bold;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.95em;
}

.categories-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-link-card {
    display: block;
    background-color: #FBB03B;
    color: #FFFFFF;
    text-decoration: none;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-link-card:hover {
    transform: translateY(-5px);
    background-color: #EAA02B;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.back-to-all-link {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #3A2A1F;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.back-to-all-link:hover {
    background-color: #5c4d43;
}

/* Cart Styles */
.cart-items-list {
    margin-top: 20px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
.cart-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: none;
    min-height: 80px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden; /* prevent children from spilling */
    gap: 12px; /* consistent spacing between children */
}
.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #3A2A1F;
    margin-bottom: 4px;
    line-height: 1.3;
}
.cart-item-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #FBB03B;
}

.cart-item-price .original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.cart-item-price .discount-price {
    font-size: 14px;
    font-weight: 700;
    color: #e74c3c;
}
.cart-total {
    margin-top: 30px;
    text-align: right;
    font-size: 22px;
    font-weight: 700;
    color: #3A2A1F;
}
.cart-total-price {
    color: #FBB03B;
}
.checkout-button {
    display: inline-block;
    min-width: 150px;
    padding: 15px 20px;
    background-color: #FBB03B;
    color: #FFFFFF;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    height: 52px; /* Фиксированная высота, как у кнопки "Очистить корзину" */
    line-height: 20px; /* Для вертикального выравнивания текста */
}
.checkout-button:hover {
    background-color: #EAA02B;
}
.empty-cart-message {
    text-align: center;
    font-size: 18px;
}

/* Стили для элементов управления количеством на странице продуктов */
.quantity-controls {
    display: flex;
    flex-direction: row; /* Горизонтальное расположение */
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    width: 100%; /* Занимает всю ширину */
    height: 40px; /* Уменьшенная высота */
    box-sizing: border-box;
}

.quantity-controls .cart-control-btn {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: none;
    background-color: #FBB03B; /* Яркий оранжево-желтый цвет */
    color: #FFFFFF;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
    font-size: 16px;
    border-radius: 50%; /* Делаем кнопки круглыми */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.quantity-controls .cart-control-btn:hover {
    background-color: #EAA02B; /* Более темный оттенок при наведении */
    transform: scale(1.05); /* Небольшое увеличение при наведении */
}

.quantity-controls .item-in-cart-indicator {
    padding: 0 8px;
    background-color: #FFFFFF;
    min-width: 25px;
    text-align: center;
    line-height: 1.6;
    font-weight: bold;
    color: #3A2A1F;
    font-size: 15px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin: 0 5px;
    /* Убраны горизонтальные полоски */
    /* border-top: 1px solid #FBB03B; */
    /* border-bottom: 1px solid #FBB03B; */
}

/* Стили для кнопок плюс и минус */
.quantity-controls .minus-btn,
.quantity-controls .plus-btn {
    /* Круглые кнопки не требуют дополнительных стилей для углов */
    margin: 0 5px;
}

.empty-cart-message {
    color: #777;
    margin-top: 40px;
}

footer {
    position: relative;
    background: #f5f5f5;
    color: #333;
    padding: 14px 7px;
    text-align: center;
    margin-top: 18px;
    overflow: hidden;
    min-height: 71px;
    border-top: 1px solid #e0e0e0;
}

/* Фоновое SVG изображение */
footer .footer-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
}

footer .footer-svg-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.6) contrast(1.3) sepia(0.5) hue-rotate(30deg);
}

/* Контент подвала */
footer > div:not(.footer-svg-bg) {
    position: relative;
    z-index: 5;
    max-width: 424px;
    margin: 0 auto;
}

footer > div > div {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

footer h3 {
    margin: 0 0 7px 0;
    font-size: 17px;
    font-weight: 600;
    color: #FFC107;
}

footer p {
    margin: 0 0 7px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

footer a {
    color: #FF9800;
    text-decoration: none;
    font-size: 12px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 2px 0;
    font-weight: 500;
}

footer a:hover {
    border-bottom-color: #FF9800;
    color: #F57C00;
}

.footer-links {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFB74D, transparent);
    margin: 8px 0;
}

.footer-copyright {
    margin: 0;
    font-size: 10px;
    color: #888;
    opacity: 0.8;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    footer {
        padding: 30px 15px;
    }
    
    footer > div > div {
        padding: 20px;
        margin: 0 10px;
    }
    
    footer h3 {
        font-size: 20px;
    }
    
    footer p {
        font-size: 14px;
    }
    
    /* SVG фон на мобильных устройствах */
    footer::before {
        opacity: 0.05;
        background-size: contain;
    }
}

/* Дополнительные стили для корзины */
.cart-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: none;
    min-height: 80px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 0;
    margin-left: 0;
    order: 3;
}

.cart-item-details {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
    min-width: 0;
    order: 1;
    margin-right: auto; /* push subtotal+image cluster to the right */
}

.cart-item > .cart-item-image {
    /* Ensure only the wrapper participates in flex ordering and margins */
    order: 3;
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
}

.cart-item > .cart-item-image img.cart-item-image {
    /* Reset margins on the img to avoid double spacing */
    margin: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #3A2A1F;
    margin-bottom: 4px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cart-quantity-form {
    display: flex;
    align-items: center;
}

.quantity-input {
    width: 50px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

.update-quantity-btn, .remove-item-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.update-quantity-btn {
    background-color: #5cb85c; /* Зеленый */
    color: white;
}
.update-quantity-btn:hover {
    background-color: #4cae4c;
}

.remove-item-btn {
    background-color: #d9534f; /* Красный */
    color: white;
    font-size: 16px;
    line-height: 1; /* Для лучшего выравнивания крестика */
}
.remove-item-btn:hover {
    background-color: #c9302c;
}

.quantity-controls-cart-page {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    flex-shrink: 0;
}

.cart-control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FBB03B;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-control-btn:hover {
    background-color: #e09a2e;
    transform: scale(1.05);
}

.cart-control-btn.remove-btn {
    background-color: #e74c3c;
    font-size: 14px;
}

.cart-control-btn.remove-btn:hover {
    background-color: #c0392b;
}

.quantity-display {
    font-size: 14px;
    font-weight: 600;
    color: #3A2A1F;
    min-width: 20px;
    text-align: center;
}

.cart-item-subtotal {
    font-size: 14px;
    font-weight: 700;
    color: #3A2A1F;
    text-align: right;
    min-width: 60px;
    margin-left: auto; /* push subtotal+image cluster to the right safely */
    order: 2;
    flex-shrink: 0;
}

/* Счетчик товаров в шапке */
#cart-count {
    font-size: 0.9em;
    font-weight: bold;
    color: #3A2A1F; /* Темно-коричневый, как основной текст кнопок */
    margin-left: 5px;
    background-color: #FDE3A7; /* Светло-желтый фон */
    padding: 2px 6px;
    border-radius: 10px; /* Сделать его круглее */
}

/* Контейнер для кнопки "В корзину" и индикатора на карточке товара */
.add-to-cart-controls {
    display: flex;
    align-items: center;
    justify-content: center; /* Выравнивание по центру */
    gap: 10px; /* Пространство между кнопкой и текстом */
    margin-top: auto; /* Прижимает этот блок к низу карточки */
    padding-top: 10px; /* Небольшой отступ сверху, если контент карточки короткий */
}

/* Стили для новых контролов +/- на карточке товара */
.add-to-cart-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 10px;
    height: 45px; /* Фиксированная высота для всех состояний */
}

.cart-control-form {
    margin: 0; /* Убираем стандартные отступы у форм */
}

.cart-control-btn {
    background-color: #FBB03B; /* Основной желтый */
    color: #FFFFFF;
    border: none;
    width: 30px;  /* Фиксированная ширина */
    height: 30px; /* Фиксированная высота */
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%; /* Делаем кнопки круглыми */
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Для лучшего вертикального центрирования текста */
}

.cart-control-btn:hover {
    background-color: #EAA02B; /* Более темный желтый при ховере */
}

.item-in-cart-indicator {
    font-size: 0.95em; /* Чуть крупнее */
    color: #3A2A1F; /* Темно-коричневый */
    font-weight: 600;
    padding: 0 5px; /* Небольшие отступы по бокам */
    min-width: 100px; /* Минимальная ширина для текста "В корзине: X" */
    text-align: center;
}

/* Основная кнопка "В корзину", если товара еще нет в корзине */
.add-to-cart-form-main .add-to-cart-btn {
    /* Стили уже должны быть определены ранее, но можно переопределить если нужно */
    padding: 10px 20px; /* Восстанавливаем исходный паддинг, если он был изменен */
    border-radius: 5px; /* Восстанавливаем исходный border-radius */
    width: auto; /* Автоматическая ширина */
    height: auto; /* Автоматическая высота */
}

/* Стили для контролов +/- и кнопки удаления на странице корзины (cart.html) */
.quantity-controls-cart-page {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Расстояние между кнопками и текстом */
}

/* Стили для кнопок +/- используются существующие .cart-control-btn */
/* Стили для текста количества на странице корзины */
.item-quantity-text-cart-page {
    font-size: 1em;
    color: #3A2A1F;
    font-weight: 600;
    min-width: 40px; /* Чтобы не прыгал макет */
    text-align: center;
}

/* Стили для формы и кнопки "Удалить" (крестик) на странице корзины */
.remove-form-cart-page {
    margin: 0; /* Убираем отступы у формы */
}

.delete-btn {
    background-color: #ff4d4d; /* Красный фон */
    color: white; /* Белый цвет для крестика */
    border: none;
    font-size: 1.5em; /* Размер крестика */
    font-weight: bold;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1; /* Для лучшего вертикального выравнивания */
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
}

.delete-btn:hover {
    background-color: #ff3333; /* Более темный красный при наведении */
}

/* Выравнивание элементов внутри .cart-item */
.cart-item {
    display: flex;
    justify-content: flex-start; /* avoid stretching that can cause overflow with margins */
    align-items: center;
    padding: 15px 12px; /* add horizontal padding to keep content inside card */
    border-bottom: 1px solid #eee;
    gap: 12px; /* spacing between details, subtotal and image */
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    flex-grow: 1; /* Имя товара занимает доступное пространство */
}

.quantity-controls-cart-page {
    flex-shrink: 0; /* Контролы не сжимаются */
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.cart-controls-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
}

/* Адаптивные стили для планшетов */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .cart-item {
        padding: 10px 14px !important;
        min-height: 75px !important;
    }
    
    .cart-item-image {
        width: 50px !important;
        height: 50px !important;
    }
    
    .cart-item-name {
        font-size: 14px !important;
    }
    
    .cart-item-price {
        font-size: 13px !important;
    }
    
    .cart-control-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 15px !important;
    }
    
    .quantity-display {
        font-size: 13px !important;
    }
    
    .cart-item-subtotal {
        font-size: 13px !important;
        min-width: 55px !important;
    }
}

/* Адаптивные стили для мобильных устройств */
@media screen and (max-width: 767px) {
    /* Центрирование заголовка корзины */
    .page-heading {
        text-align: center !important;
    }
    
    /* Выравнивание всех элементов корзины по левому краю */
    .cart-items-list {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .cart-item {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 10px 12px !important;
        min-height: 70px !important;
        box-sizing: border-box !important; /* ensure padding stays within width */
        gap: 10px !important;
        overflow: hidden; /* Fix overflow */
    }
    
    .cart-item-image {
        width: 64px !important; /* larger mobile image */
        height: 64px !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        margin-left: 0 !important; /* rely on flex gap, avoid extra push to the right */
        order: 3 !important;
    }
    .cart-item > .cart-item-image img.cart-item-image {
        margin: 0 !important;
        width: 64px !important; /* match wrapper size */
        height: 64px !important;
        display: block !important;
    }
    
    .cart-item-details {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        min-height: 45px !important;
        justify-content: center !important;
        min-width: 0 !important;
        order: 1 !important;
    }
    
    .cart-item-name {
        text-align: left !important;
        width: 100% !important;
    }
    
    .cart-item-price {
        text-align: left !important;
        width: 100% !important;
    }
    
    .quantity-controls-cart-page {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding-left: 0 !important;
        flex: 0 1 auto !important; /* allow shrinking to prevent overflow */
        min-width: 0 !important;
    }
    
    .cart-control-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 14px !important;
    }
    
    .quantity-display {
        font-size: 12px !important;
        min-width: 18px !important;
    }
    
    .cart-item-subtotal {
        font-size: 12px !important;
        min-width: 50px !important;
        margin-left: auto !important; /* keep right-aligned on mobile without overflow */
        order: 2 !important;
        flex-shrink: 0 !important;
    }
    
    .cart-controls-container {
        display: flex !important;
        justify-content: flex-start !important;
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Стили для кнопок управления корзиной */
    .cart-control-btn.delete-btn,
    .cart-control-btn.minus-btn,
    .cart-control-btn.plus-btn {
        margin-left: 0 !important;
    }
    
    .cart-control-btn.delete-btn {
        margin-right: 5px !important;
    }
    
    .item-quantity-text-cart-page {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }
    
    .cart-item-subtotal {
        align-self: flex-start !important;
        margin-top: 10px !important;
        margin-left: 0 !important;
        text-align: left !important;
    }
    
    /* Выравнивание итоговых сумм по левому краю */
    .cart-total.left-aligned {
        width: 100% !important;
        text-align: left !important;
    }
    
    .original-total, .discounted-total {
        text-align: left !important;
        width: 100% !important;
    }
    
    /* Кнопки внизу корзины */
    .cart-buttons-container {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    .cart-buttons-container .checkout-button { flex: 1 1 auto !important; min-width: 0 !important; height: 40px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
    .cart-buttons-container .clear-cart-button { width: 40px !important; min-width: 40px !important; height: 40px !important; padding: 0 !important; }
}

.cart-control-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 5px;
}

.minus-btn {
    background-color: #FBB03B;
    color: white;
}

.minus-btn:hover {
    background-color: #e9a02c;
}

.plus-btn {
    background-color: #FBB03B;
    color: white;
}

.plus-btn:hover {
    background-color: #e9a02c;
}

.item-quantity-text-cart-page {
    margin: 0 8px;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
}

.cart-item-subtotal {
    min-width: 80px; /* Минимальная ширина для подытога */
    text-align: right;
    font-weight: bold;
    margin-right: 0; /* avoid pushing content outside on the right */
    margin-left: 12px; /* keep spacing from details */
}

.remove-form-cart-page {
    flex-shrink: 0; /* Кнопка удаления не сжимается */
}

/* Стили для выравнивания итогов влево */
.cart-total.left-aligned {
    text-align: left;
    margin-top: 20px;
}

.cart-total.left-aligned .original-total,
.cart-total.left-aligned .discounted-total {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-total.left-aligned .cart-total-price,
.cart-total.left-aligned .cart-discounted-price {
    color: #FBB03B;
    font-weight: bold;
}

/* Отображение итоговой суммы с доставкой с учётом скидки */
.price-old {
    color: #d9534f; /* красный */
    text-decoration: line-through;
    opacity: 0.85;
}

.price-current {
    color: inherit;
}

.price-accent {
    color: #d9534f; /* красный */
    font-weight: 700;
}

/* Стили для изображений в карточках товаров */
.product-card-image {
    width: 100%;
    height: 180px; /* Фиксированная высота для единообразия, подберите значение */
    object-fit: cover; /* Масштабирует изображение с сохранением пропорций, обрезая лишнее */
    border-top-left-radius: 8px; /* Скругление верхних углов, если у карточки есть */
    border-top-right-radius: 8px;
}

.product-card {
    /* display: flex; уже должен быть */
    /* flex-direction: column; уже должен быть */
    overflow: hidden; /* Если изображение выходит за рамки скругления */
}

.product-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-card-content .product-name {
    margin-top: 0;
    margin-bottom: 0.5em; /* Добавим отступ снизу для имени */
}

.product-description {
    font-size: 0.9em;
    color: #555;
    margin-top: 0;
    margin-bottom: 0.75em; /* Отступ снизу для описания */
    flex-grow: 1; /* Позволяет описанию занимать доступное место, если контент карточки разный по высоте */
    min-height: 3em; /* Минимальная высота для нескольких строк описания, чтобы карточки были ровнее */
}

.product-card-content .product-price {
    margin-top: auto; /* Прижимает цену и кнопки к низу, если описание короткое */
}

/* === Стили для товаров на стопе === */

.product-stopped {
    position: relative;
    opacity: 0.7;
    filter: grayscale(30%);
}

.stop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
    border-radius: 12px;
}

.stop-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse-stop 2s infinite;
}

.stop-badge i {
    font-size: 12px;
}

@keyframes pulse-stop {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.product-stopped .product-card-image {
    filter: grayscale(50%) brightness(0.8);
    transition: filter 0.3s ease;
}

.product-stopped:hover .product-card-image {
    filter: grayscale(30%) brightness(0.9);
}

.product-stopped .product-name {
    color: #6b7280;
}

.product-stopped .product-price {
    color: #9ca3af;
}

.product-stopped .product-description {
    color: #9ca3af;
}

.stop-message {
    color: #f59e0b !important;
    font-weight: 500;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
    margin-top: 8px;
}

.stop-message i {
    color: #f59e0b;
    font-size: 14px;
    animation: rotate-hourglass 2s ease-in-out infinite;
}

@keyframes rotate-hourglass {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

.product-name-text {
    color: #6b7280;
    text-decoration: none;
    cursor: default;
}

/* Мобильная адаптация для стоп-бейджа */
@media (max-width: 768px) {
    .stop-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .stop-badge i {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .stop-badge {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .stop-badge span {
        display: none; /* На маленьких экранах показываем только иконку */
    }
    
    .stop-badge i {
        font-size: 12px;
    }
}