/*
 * Alma Promotions Filters Styles
 * Стили для системы фильтрации акций
 */

/* Облако категорий */
.category-cloud-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    /* border-radius: 10px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    /* border: 1px solid #e9ecef; */
}

.category-cloud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--theme-3, #41C575);
}

.category-cloud-header label {
    font-weight: 700;
    color: var(--header, #0c2c1c);
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.category-cloud-header label i {
    color: var(--theme-3, #41C575);
}

.active-category-indicator {
    background: var(--theme-3, #41C575);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(65, 197, 117, 0.3);
}

/* Облако тегов */
.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-tag:hover {
    background: var(--bg-3, #F3F8F3);
    border-color: var(--theme-3, #41C575);
    color: var(--header, #0c2c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 197, 117, 0.2);
}

.category-tag.active {
    background: var(--theme-3, #41C575);
    border-color: var(--theme-3, #41C575);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 197, 117, 0.4);
}

.category-tag.active .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Стили для неактивных тегов с нулевым счетчиком */
.category-tag.disabled {
    opacity: 0.4;
    pointer-events: none;
    background: #f5f5f5;
    color: #ccc;
    transition: all 0.3s ease;
}

.category-tag.disabled .tag-count {
    color: #bbb;
}

.category-tag .tag-count {
    font-weight: 600;
    margin-left: 8px;
    font-size: 0.85em;
    padding: 2px 6px;
    background: rgba(65, 197, 117, 0.1);
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

/* Размеры тегов — все одинаковые, без разницы по количеству */
.category-tag.tag-large,
.category-tag.tag-medium,
.category-tag.tag-small {
    font-size: 0.9rem;
    padding: 8px 16px;
    font-weight: 500;
}

/* Название тега */
.tag-name {
    white-space: nowrap;
}

/* Счетчик товаров в теге */
.tag-count {
    background: #dee2e6;
    color: #6c757d;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-tag:hover .tag-count {
    background: var(--theme-3, #41C575);
    color: white;
}

/* Адаптивность для облака */
@media (max-width: 767px) {
    .category-cloud-section {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .category-cloud-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .category-cloud {
        gap: 6px;
    }
    
    .category-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .category-tag.tag-large,
    .category-tag.tag-medium,
    .category-tag.tag-small {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .tag-count {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}

/* Анимация появления тегов */
.category-tag {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Пульсация активного тега */
.category-tag.active {
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(65, 197, 117, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(65, 197, 117, 0.6);
    }
}

/* Заголовок фильтров */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #41C575;
}

.filter-header h4 {
    color: var(--header, #0c2c1c);
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.filter-header h4 i {
    color: var(--theme-3, #41C575);
}

/* Ряды фильтров */
.filter-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-row.main-filters {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.filter-row.secondary-filters {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Группа фильтра */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--header, #0c2c1c);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.filter-group label i {
    color: var(--theme-3, #41C575);
    width: 16px;
}

/* Стили элементов формы */
.filter-group .form-select,
.filter-group .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
    border-color: var(--theme-3, #41C575);
    box-shadow: 0 0 0 0.2rem rgba(65, 197, 117, 0.25);
    background-color: #fff;
}

.filter-group .form-select:hover,
.filter-group .form-control:hover {
    border-color: var(--theme-4, #79B900);
}

/* Контролы просмотра */
.view-controls {
    align-items: flex-end;
}

.view-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-toggle {
    display: flex;
    gap: 5px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 5px;
}

.grid-toggle input[type="radio"] {
    display: none;
}

.grid-toggle label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0;
}

.grid-toggle label:hover {
    background: var(--bg-3, #F3F8F3);
    color: var(--theme-3, #41C575);
}

.grid-toggle input[type="radio"]:checked + label {
    background: var(--theme-3, #41C575);
    color: white;
}

/* Сводка результатов */
.filter-results {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    margin-top: 10px;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6c757d;
    font-size: 0.95rem;
}

.results-info strong {
    color: var(--theme-3, #41C575);
    font-weight: 700;
}

.results-separator {
    color: #dee2e6;
    font-weight: bold;
}

/* Кнопка сброса */
#resetFilters {
    border: 2px solid #dc3545;
    color: #dc3545;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 16px;
}

#resetFilters:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* Активные фильтры индикация */
.filter-group.has-filter .form-select,
.filter-group.has-filter .form-control {
    border-color: var(--theme-3, #41C575);
    background: rgba(65, 197, 117, 0.05);
}

.filter-group.has-filter label {
    color: var(--theme-3, #41C575);
}

/* Поисковое поле */
#searchFilter {
    position: relative;
}

#searchFilter:focus {
    transform: translateY(-1px);
}

/* Анимация для smooth transitions */
.alma-filters-wrapper * {
    transition: all 0.3s ease;
}

/* Адаптивность */
@media (max-width: 1199px) {
    .filter-row.main-filters {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .filter-row.secondary-filters {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 991px) {
    .alma-filters-wrapper {
        padding: 20px;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filter-row.main-filters,
    .filter-row.secondary-filters {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .alma-filters-wrapper {
        padding: 15px;
    }
    
    .filter-row.main-filters,
    .filter-row.secondary-filters {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .view-controls {
        align-items: stretch;
    }
    
    .grid-toggle {
        justify-content: center;
    }
    
    .results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Улучшения для мобильных устройств */
@media (max-width: 575px) {
    .filter-header h4 {
        font-size: 1.1rem;
    }
    
    .filter-group label {
        font-size: 0.85rem;
    }
    
    .filter-group .form-select,
    .filter-group .form-control {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Стили для счетчика в опциях */
.filter-group select option {
    padding: 8px 12px;
}

/* Loading состояние */
.alma-filters-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

.alma-filters-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--theme-3, #41C575);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Подсказки */
.filter-group label[title] {
    cursor: help;
}

/* Стили для placeholder */
#searchFilter::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Focus indicators для доступности */
.filter-group .form-select:focus-visible,
.filter-group .form-control:focus-visible {
    outline: 2px solid var(--theme-3, #41C575);
    outline-offset: 2px;
}

.grid-toggle label:focus-visible {
    outline: 2px solid var(--theme-3, #41C575);
    outline-offset: 2px;
}

/* Стили для сообщения "товары не найдены" */
.alma-no-products-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--theme-3, #41C575);
    border-radius: 16px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alma-no-products-message .message-icon {
    width: 80px;
    height: 80px;
    background: var(--theme-3, #41C575);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(65, 197, 117, 0.3);
}

.alma-no-products-message .message-icon i {
    font-size: 2rem;
    color: white;
}

.alma-no-products-message h4 {
    color: var(--header, #0c2c1c);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.alma-no-products-message p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.alma-no-products-message ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: inline-block;
    text-align: left;
}

.alma-no-products-message ul li {
    color: #6c757d;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.alma-no-products-message ul li::before {
    content: "✓";
    color: var(--theme-3, #41C575);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.alma-no-products-message #quickReset {
    background: var(--theme-3, #41C575);
    border: 2px solid var(--theme-3, #41C575);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.alma-no-products-message #quickReset:hover {
    background: var(--theme-4, #79B900);
    border-color: var(--theme-4, #79B900);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 185, 0, 0.3);
}

/* Анимации */
.alma-no-products-message {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимации для товаров */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-item {
    animation: fadeIn 0.3s ease-out;
    transition: all 0.3s ease;
}

.promotion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Анимации для фильтров */
.filter-group {
    transition: all 0.3s ease;
}

.filter-group.has-filter {
    transform: translateY(-1px);
}

/* Пульсация для активного поиска */
.filter-group.has-filter.search-active {
    animation: searchPulse 1.5s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: rgba(65, 197, 117, 0.05);
    }
}

/* ===== ПАНЕЛЬ УПРАВЛЕНИЯ ===== */
/* Класс для скрытия фильтров */
.filters-hidden {
    display: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.filters-visible {
    display: flex !important;
    opacity: 1;
    max-height: 500px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Для secondary-filters используем block */
.secondary-filters.filters-visible {
    display: block !important;
}

/* ===== КОМПАКТНЫЕ ФИЛЬТРЫ В ОДИН РЯД ===== */
.compact-filters-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.filter-group.compact {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.compact-select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.95rem;
    background: white;
    color: var(--header, #0c2c1c);
    cursor: pointer;
    transition: all 0.3s ease;
}

.compact-select:hover {
    border-color: var(--theme-3, #41C575);
    box-shadow: 0 2px 6px rgba(65, 197, 117, 0.15);
}

.compact-select:focus {
    outline: none;
    border-color: var(--theme-3, #41C575);
    box-shadow: 0 0 0 3px rgba(65, 197, 117, 0.2);
}

/* Стиль для первой опции (placeholder) */
.compact-select option:first-child {
    color: #6c757d;
}

/* Когда выбрано значение, убираем серый цвет */
.compact-select:not([value=""]) {
    color: var(--header, #0c2c1c);
    font-weight: 500;
}

/* Поле поиска в компактном стиле */
.filter-group.compact.search-group {
    flex: 2; /* Поиск занимает больше места */
}

.filter-group.compact input.compact-select {
    background: white;
    border: 1px solid #ddd;
}

.filter-group.compact input.compact-select::placeholder {
    color: #6c757d;
    font-weight: normal;
}

.filter-group.compact input.compact-select:focus::placeholder {
    color: #adb5bd;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .compact-filters-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group.compact {
        width: 100%;
        min-width: 100%;
    }
}

.controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    z-index: 10;
    pointer-events: auto;
}

.controls-left {
    display: flex;
    align-items: center;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Кнопка фильтров */
.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    color: var(--header, #0c2c1c);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    user-select: none;
}

/* Вложенные элементы не должны блокировать клики */
.filter-toggle-btn * {
    pointer-events: none;
    user-select: none;
}

/* Эффект при нажатии */
.filter-toggle-btn:active {
    transform: scale(0.98);
}

.filter-toggle-btn i {
    color: var(--theme-3, #41C575);
}

.filter-toggle-btn:hover {
    background: var(--bg-3, #F3F8F3);
    border-color: var(--theme-3, #41C575);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(65, 197, 117, 0.2);
}

.filter-toggle-btn.active {
    background: var(--theme-3, #41C575);
    border-color: var(--theme-3, #41C575);
    color: white;
}

.filter-toggle-btn.active i {
    color: white;
}

/* Группы контролов */
.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-weight: 500;
    color: var(--header, #0c2c1c);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Селекты */
.items-per-page-select,
.sort-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    background: white;
    color: var(--header, #0c2c1c);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.items-per-page-select:hover,
.sort-select:hover {
    border-color: var(--theme-3, #41C575);
}

.items-per-page-select:focus,
.sort-select:focus {
    outline: none;
    border-color: var(--theme-3, #41C575);
    box-shadow: 0 0 0 2px rgba(65, 197, 117, 0.2);
}

/* Кнопки переключения видов */
.view-controls {
    border-left: 1px solid #e9ecef;
    padding-left: 20px;
    margin-left: 5px;
}

.view-toggle-group {
    display: flex;
    gap: 4px;
}

.view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle:first-child {
    border-radius: 6px 4px 4px 6px;
}

.view-toggle:last-child {
    border-radius: 4px 6px 6px 4px;
}

.view-toggle:hover {
    border-color: var(--theme-3, #41C575);
    background: var(--bg-3, #F3F8F3);
}

.view-toggle.active {
    background: var(--theme-3, #41C575);
    border-color: var(--theme-3, #41C575);
    color: white;
}

.cols-icon {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: -1px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .controls-panel {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .controls-right {
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
    }
    
    .control-group {
        flex: 1;
        min-width: 140px;
    }
    
    .view-controls {
        border-left: none;
        border-top: 1px solid #e9ecef;
        padding-left: 0;
        padding-top: 15px;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .items-per-page-select,
    .sort-select {
        flex: 1;
        min-width: 80px;
    }
}

/* ===== АДАПТИВНАЯ СЕТКА ТОВАРОВ ===== */
/* Сохраняем Bootstrap row, но добавляем контроль через data-атрибут */
.promotions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

/* Управление колонками через классы на .promotion-item */
.promotions-grid.cols-2 .promotion-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3 колонки (по умолчанию) */
.promotions-grid.cols-3 .promotion-item {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4 колонки */
.promotions-grid.cols-4 .promotion-item {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 5 колонок */
.promotions-grid.cols-5 .promotion-item {
    flex: 0 0 calc(20% - 16px);
    max-width: calc(20% - 16px);
    transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .promotions-grid.cols-5 .promotion-item {
        flex: 0 0 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }
    
    .promotions-grid.cols-4 .promotion-item {
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .promotions-grid.cols-5 .promotion-item,
    .promotions-grid.cols-4 .promotion-item,
    .promotions-grid.cols-3 .promotion-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    
    .promotions-grid.cols-2 .promotion-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Карточка товара в сетке - сохраняем оригинальные стили */
.promotion-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0 !important;
}

/* Убираем конфликт с Bootstrap */
.promotions-grid .promotion-item.col-lg-6,
.promotions-grid .promotion-item.col-md-6 {
    padding-left: 0;
    padding-right: 0;
}

/* Восстанавливаем оригинальные стили карточек */
.promotion-item .project-box-items-4 {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.promotion-item:hover .project-box-items-4 {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--theme-3, #41C575);
}

.promotion-item .project-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
}

.promotion-item .project-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-item .project-content-area {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promotion-item .content {
    flex: 1;
}

/* Адаптивность для сообщения */
@media (max-width: 767px) {
    .alma-no-products-message {
        padding: 30px 20px;
        margin: 20px 10px;
    }
    
    .alma-no-products-message .message-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .alma-no-products-message .message-icon i {
        font-size: 1.5rem;
    }
    
    .alma-no-products-message h4 {
        font-size: 1.25rem;
    }
    
    .alma-no-products-message p {
        font-size: 0.9rem;
    }
}