/* Сортировка */
:root {
    --shop-primary: var(--primary);
    --shop-primary-hover: var(--primary-hover, #4338ca);
    --shop-secondary: var(--bg-dark, #f8fafc);
    --shop-border: var(--border-color);
    --shop-text: var(--text-primary);
    --shop-text-light: var(--text-secondary);
}

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.sort-dropdown {
    position: relative;
    min-width: 250px;
}

.sort-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.sort-dropdown-header:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.sort-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
}

.chevron {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.sort-dropdown.open .chevron {
    transform: rotate(180deg);
}

/* Выпадающий список */
.sort-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.sort-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.sort-option:last-child {
    margin-bottom: 0;
}

.sort-option:hover {
    background: rgba(99, 102, 241, 0.1);
}

.sort-option.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.sort-option i:first-child {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.sort-option.active i:first-child {
    color: var(--primary);
}

.sort-option span {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.check-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    opacity: 0;
}

.sort-option.active .check-icon {
    opacity: 1;
}

.products-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.products-count strong {
    color: var(--text-primary);
    font-weight: 600;
}

.shop-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.htmx-request .shop-loading,
.shop-loading.htmx-request {
    display: flex;
}

/* Для мобильных */
@media (max-width: 768px) {
    .sort-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .sort-dropdown {
        min-width: 100%;
    }

    .products-count {
        text-align: center;
    }
}

/* ===== СТИЛИ МАГАЗИНА ===== */

/* Контейнер магазина */
.shop-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Герой секция */
.shop-hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.shop-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.shop-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: transparent;
    border-radius: var(--border-radius-md);
    min-width: 120px;
}

.hero-stats .stat-item {
    cursor: default;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.hero-stats .stat-item:hover {
    box-shadow: none;
    transform: none;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Сетка магазина */
.shop-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

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

/* ===== ПАНЕЛЬ ФИЛЬТРОВ ===== */
.filters-panel {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: static;
    /* ВСЕГДА статичный, не sticky */
}

/* На ПК делаем фильтры sticky, но не на мобильных */
@media (min-width: 1025px) {
    .filters-panel {
        position: sticky;
        top: 1rem;
    }
}

.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title [data-icon] {
    color: var(--primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.filter-option:hover {
    background: var(--bg-dark);
    border-color: var(--border-color);
}

.filter-option.active {
    background: rgba(var(--primary-rgb, 99, 102, 241), 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.filter-option.active [data-icon] {
    color: var(--primary);
}

.hidden-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.option-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.filter-option.active .option-count {
    background: transparent;
    color: var(--primary);
}

.price-range {
    padding: 0.5rem 0;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.price-input {
    position: relative;
}

.price-input input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.price-input input:focus {
    border-color: var(--primary);
    outline: none;
}

/* ===== БЛОК СОРТИРОВКИ В ФИЛЬТРАХ ===== */
/* Обычный статичный блок, НИКОГДА не sticky */
.filter-section .sort-dropdown {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
}

.filter-section .sort-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    /* Статичное позиционирование */
    z-index: 10;
}

.filter-section .sort-button:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.filter-section .sort-label {
    flex: 1;
    text-align: left;
    font-size: 0.875rem;
}

.filter-section .sort-chevron {
    transition: transform 0.2s ease;
}

.filter-section .sort-dropdown.open .sort-chevron {
    transform: rotate(180deg);
}

/* Выпадающий список - позиционируем АБСОЛЮТНО внутри фильтров */
.filter-section .sort-options {
    position: absolute;
    top: 100%;
    /* Прямо под кнопкой */
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    /* Высокий z-index чтобы был над другими элементами */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.filter-section .sort-dropdown.open .sort-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-section .sort-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    text-decoration: none;
    color: var(--text-primary);
}

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

.filter-section .sort-option:hover {
    background: rgba(99, 102, 241, 0.1);
}

.filter-section .sort-option.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.filter-section .sort-option [data-icon] {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.filter-section .sort-option.active [data-icon] {
    color: var(--primary);
}

.filter-section .sort-option span:last-child {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: relative;
    /* Статичное позиционирование */
    z-index: 1;
    /* Ниже чем сортировка */
}

.filter-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* ===== ОБЛАСТЬ ТОВАРОВ ===== */
.products-area {
    background: transparent;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

/* НА МОБИЛЬНЫХ - заголовок товаров фиксированный */
@media (max-width: 1024px) {
    .products-header {
        position: sticky;
        top: 60px;
        z-index: 90;
        background: var(--bg-card);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin: 0 -1rem 1.5rem -1rem !important;
        padding: 1rem;
        width: calc(100% + 2rem);
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .products-header.scrolled {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
}

.results-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.results-count strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Контент товаров */
.products-content {
    margin-top: 0.5rem;
}

/* Сетка товаров - ПРЕМИУМ СТИЛЬ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Карточка товара - ПРЕМИУМ СТИЛЬ */
.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-md);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-badges {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.badge [data-icon] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.badge-discount {
    background: #ef4444;
    color: white;
}

.badge-featured {
    background: var(--primary);
    color: white;
}

.badge-stock {
    background: #10b981;
    color: white;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(45, 157, 120, 0.18) 0%, rgba(45, 157, 120, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-image-full {
    padding: 0;
}

.product-img-full {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.5rem 0;
}

.product-card-body {
    padding: 0.75rem 1.5rem 1.25rem;
}

.product-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    min-height: 44px;
}

.product-meta.product-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.product-meta.product-meta-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-meta.product-meta-list [data-icon] {
    color: var(--primary-dark);
}

.product-img-placeholder {
    font-size: 3rem;
    color: var(--primary-dark);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.product-img-placeholder [data-icon] {
    width: 64px;
    height: 64px;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.protocol-badge {
    position: absolute;
    bottom: -20px;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 99, 102, 241), 0.4);
    z-index: 2;
    border: 3px solid var(--bg-card);
    line-height: 1;
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.product-protocol {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(var(--primary-rgb, 45, 157, 120), 0.1);
    color: var(--primary-dark);
    border-radius: 20px;
    font-weight: 600;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-stock [data-icon] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.in-stock {
    color: #10b981;
}

.out-stock {
    color: #ef4444;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 54px;
    flex: 1;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.spec {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.spec [data-icon] {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-pricing {
    margin-bottom: 1.25rem;
    text-align: center;
    padding: 1rem;
    background: rgba(var(--primary-rgb, 99, 102, 241), 0.05);
    border-radius: 12px;
}

.price-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.price-old {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.25rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: nowrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.product-actions .btn [data-icon] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.product-actions .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb, 99, 102, 241), 0.05);
    transform: translateY(-2px);
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 99, 102, 241), 0.3);
}

.product-actions .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 45, 157, 120), 0.4);
}

.product-actions .btn-primary:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Состояние "нет товаров" */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.empty-icon [data-icon] {
    width: 48px;
    height: 48px;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-description {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.page-link,
.page-current {
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: var(--bg-card);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-current {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.page-link [data-icon] {
    width: 16px;
    height: 16px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: var(--bg-darker);
        border: none;
        border-radius: 0;
        padding: 1rem;
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .filters-panel.active {
        transform: translateX(0);
    }

    .filters-close-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .filters-close-btn h3 {
        font-size: 1.25rem;
        margin: 0;
    }

    .filters-close-btn button {
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-buttons {
        margin-top: auto;
    }

    .shop-hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        min-width: 100px;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        position: relative;
    }

    .filters-toggle-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

    .filters-toggle-btn:hover {
        background: var(--primary-dark);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .price-inputs {
        grid-template-columns: 1fr;
    }
}