body {
    font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #777777;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #cc9966;
    /* Фирменный золотистый цвет Molla */
}

ul {
    list-style: none;
}
button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
}
.hero-section.cart {
    width: 100%;
    /* min-height: calc(100vh - 89px); */
    width: 100%;
    min-height: 250px;
    background-image: url('/public/static/img/project_mumie/cart/bg_cart.webp');
    /* background-attachment: fixed; */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 0;
    /*filter: grayscale(15);*/
}

.hero-section.cart:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(102, 101, 101, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   2. ВЕРХНЯЯ ПАНЕЛЬ (PROMO BAR)
   ========================================================================== */
.top-notice {
   
    padding: 10px 0;
    font-size: 13px;
    color: #333;
}

.notice-flex {
    display: flex;
    justify-content: flex-end;
    /* Сдвигаем вправо как на скрине */
}

.top-notice i {
    color: #cc9966;
    margin-right: 5px;
}
.shop_title {
    text-align: center;
    margin-top: 50px;
}
/* ==========================================================================
   3. ГЛАВНАЯ СЕТКА СТРАНИЦЫ (LAYOUT)
   ========================================================================== */
.shop-layout {
    display: flex;
    margin-top: 30px;
    gap: 30px;
}

/* Левая колонка - 25% */
.sidebar {
    flex: 0 0 250px;
}

/* Правая колонка - 75% */
.products-container {
    flex: 1;
}

/* ==========================================================================
   4. СТИЛИ БОКОВОЙ ПАНЕЛИ (SIDEBAR)
   ========================================================================== */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 20px;
}

.filter-title {
    font-weight: 500;
    color: #333333;
    font-size: 14px;
}

.clean-all-btn {
    font-size: 12px;
    color: #cc9966;
}

.filter-group {
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.group-title {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.group-title i {
    font-size: 10px;
    color: #999;
}

/* Списки фильтров (категории и чекбоксы) */
.filter-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.filter-list a {
    color: #666666;
}

.filter-list .count {
    font-size: 12px;
    color: #cccccc;
    background: #f8f8f8;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Стили чекбоксов размеров */
.checkbox-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.checkbox-list input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #cc9966;
}

/* Палитра круглых цветов */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   5. ВЕРХНЯЯ ПАНЕЛЬ СОРТИРОВКИ (TOOLBOX)
   ========================================================================== */
.toolbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 30px;
    font-size: 13px;
}

.toolbox-info span {
    color: #333;
    font-weight: 500;
}

.toolbox-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-select label {
    margin-right: 8px;
    color: #999;
}

.sort-select select {
    padding: 5px 10px;
    border: 1px solid #d7d7d7;
    outline: none;
    color: #666;
    background-color: #fff;
}

.view-modes {
    display: flex;
    gap: 5px;
}

.view-mode-btn {
    font-size: 16px;
    color: #ccc;
    padding: 5px;
}

.view-mode-btn.active,
.view-mode-btn:hover {
    color: #cc9966;
}

/* ==========================================================================
   6. КАРТОЧКА ТОВАРА (СТРОКА / LIST VIEW)
   ========================================================================== */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-row {
    display: flex;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 25px;
    align-items: stretch;
}

/* Левая часть: Картинка */
.product-media {
    flex: 0 0 200px;
    position: relative;
    margin-right: 30px;
}

.image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
}
.image_product {
    width: 210px;
    height: 210px;
}
/* Бейджик скидки (Красный круг Sale) */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ef837b;
    color: white;
    font-size: 11px;
    text-transform: uppercase;
    width: 50px;
    height: 50px;
    padding-top: 20px;
    text-align: center;
    border-radius: 50%;
    font-weight: 500;
    line-height: 1;
    z-index: 2;
}

/* Средняя часть: Текстовое описание */
.product-body {
    flex: 1;
    padding-right: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: #777777;
    font-weight: 300;
}
.full_desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: calc(1.5em * 4);
}
/* Правая часть: Цены и кнопка "В корзину" */
.product-sidebar {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-left: 1px dashed #e5e5e5;
    padding-left: 30px;
    text-align: center;
}

.product-price {
    font-size: 20px;
    color: #cc9966;
    margin-bottom: 15px;
    font-weight: 400;
}

/* Оформление цен со скидкой */
.new-price {
    color: #ef837b;
    margin-right: 8px;
}

.old-price {
    color: #cccccc;
    text-decoration: line-through;
    font-size: 16px;
}

/* Быстрый просмотр и Избранное */
.product-actions-secondary {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.action-link {
    font-size: 12px;
    color: #999999;
    transition: color 0.3s;
}
.action-link.stock{color:#159604}
.action-link i {
    margin-right: 4px;
}

.action-link:hover {
    color: #cc9966;
}

/* Главная кнопка Add to Cart */
.btn-add-cart {
    width: 100%;
    border: 1px solid #cc9966;
    color: #cc9966;
    padding: 11px 15px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .05em;
    transition: all 0.3s;
    background-color: #fff;
}

.btn-add-cart i {
    margin-right: 6px;
}

.btn-add-cart:hover {
    background-color: #cc9966;
    color: #ffffff;
}

/* ==========================================================================
   7. АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (RESPONSIVE)
   ========================================================================== */

/* 1. Планшеты и небольшие ноутбуки (Экран меньше 992px) */
@media (max-width: 992px) {
    .shop-layout {
        flex-direction: column;
        /* Боковая панель падает наверх или вниз */
        gap: 40px;
    }

    .sidebar {
        flex: 1 1 100%;
        /* Занимает всю ширину */
    }

    /* Раскладываем фильтры в ряд для экономии места на планшете */
    .sidebar-header {
        margin-bottom: 15px;
    }

    /* Сетка товаров занимает всю ширину */
    .products-container {
        width: 100%;
    }
}

/* 2. Мобильные телефоны (Экран меньше 768px) */
@media (max-width: 768px) {

    /* Фильтры: делаем их компактнее */
    .filter-group {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    /* Панель сортировки: переносим элементы друг под друга */
    .toolbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 20px;
    }

    .toolbox-action {
        width: 100%;
        justify-content: space-between;
    }

    /* 
       КАРТОЧКА ТОВАРА: Превращаем строку в вертикальный блок 
    */
    .product-row {
        flex-direction: column;
        /* Элементы встают друг под друга */
        align-items: center;
        text-align: center;
        gap: 15px;
        padding-bottom: 35px;
    }

    /* Картинка центруется */
    .product-media {
        margin-right: 0;
        width: 100%;
        max-width: 260px;
        /* Чтобы картинка не была гигантской */
    }

    .image-placeholder {
        height: 240px;
    }

    /* Текстовое описание */
    .product-body {
        padding-right: 0;
    }

    .product-title {
        font-size: 16px;
    }

    .product-desc {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    /* Правая колонка с кнопкой и ценой */
    .product-sidebar {
        flex: 1 1 100%;
        width: 100%;
        border-left: none;
        /* Убираем вертикальный пунктир */
        border-top: 1px dashed #e5e5e5;
        /* Добавляем горизонтальный пунктир сверху */
        padding-left: 0;
        padding-top: 20px;
    }

    .product-price {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .product-actions-secondary {
        justify-content: center;
        /* Центруем кнопки Wishlist и Quick View */
        margin-bottom: 15px;
    }

    .btn-add-cart {
        max-width: 280px;
        /* Ограничиваем ширину кнопки на телефоне */
        margin: 0 auto;
    }
}

/* 3. Совсем маленькие экраны (Экран меньше 480px) */
@media (max-width: 480px) {
    .color-palette {
        justify-content: center;
        /* Центруем цвета, если они не влезают */
    }

    .toolbox-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .view-modes {
        display: none;
        /* На телефонах переключатель вида обычно скрывают */
    }
}

@media (max-width: 768px) {
    /* ... ваши остальные мобильные стили для карточек товаров ... */

    /* 1. По умолчанию на мобилках прячем списки */
    .filter-group .filter-list,
    .filter-group .color-palette {
        display: none;
        padding-top: 10px;
    }

    /* 2. Когда добавляется класс .open, мы ПОКАЗЫВАЕМ список */
    .filter-group.open .filter-list {
        display: block;
    }

    /* Для палитры цветов при открытии используем flex, чтобы кружки стояли в ряд */
    .filter-group.open .color-palette {
        display: flex;
    }

    /* 3. Разворачиваем стрелочку вниз, когда блок открылся */
    .filter-group .group-title i {
        transition: transform 0.2s ease;
    }

    .filter-group.open .group-title i {
        transform: rotate(180deg);
    }
}

/* ==========================================================================
   4. СТИЛИ ДЛЯ КОМПЬЮТЕРОВ
   ========================================================================== */
.group-title {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: default;
}

/* На больших экранах SVG-стрелочка полностью скрыта */
.group-title .arrow-icon {
    display: none;
}


/* ==========================================================================
   7. АДАПТИВНОСТЬ (МОБИЛЬНЫЕ МЕНЬШЕ 769px)
   ========================================================================== */
@media (max-width: 768px) {

    .group-title {
        cursor: pointer;
    }

    /* Показываем SVG-стрелочку только на мобильных */
    .group-title .arrow-icon {
        display: block;
        color: #999999;
        transition: transform 0.3s ease, color 0.3s ease;
        /* Плавный поворот и смена цвета */
    }

    /* Когда блок открывается (класс .open), SVG плавно переворачивается «носом вверх» */
    .filter-group.open .group-title .arrow-icon {
        transform: rotate(180deg);
        color: #cc9966;
        /* Стрелочка становится золотистой */
    }

    /* Контент фильтров по умолчанию скрыт */
    .filter-group .filter-list,
    .filter-group .color-palette {
        display: none;
        padding-top: 10px;
    }

    /* Контент показывается при открытии */
    .filter-group.open .filter-list {
        display: block;
    }

    .filter-group.open .color-palette {
        display: flex;
    }
}


