/**
 * style.css - Современный дизайн для СервисПрайс
 * 
 * Основные компоненты:
 * - Адаптивный дизайн (мобильные устройства)
 * - Тёмная тема с акцентным синим цветом
 * - Стили для корзины, модальных окон, таблиц
 * - Анимации и переходы
 * - Вертикальное меню категорий
 */

:root {
    --primary: #0052cc;
    --primary-dark: #003d99;
    --primary-light: #e6f0ff;
    --secondary: #00b4d8;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f0ff 100%);
    min-height: 100vh;
    color: var(--gray-800);
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes slideInWarning {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== КНОПКА КОРЗИНЫ (FAB) ========== */
.cart-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
    z-index: 1000;
    border: none;
}

.cart-fab:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ========== МОДАЛЬНОЕ ОКНО КОРЗИНЫ ========== */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 520px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal.show {
    transform: translateX(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.cart-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-modal-header h2 i {
    color: var(--primary);
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.2s;
    padding: 8px;
}

.cart-modal-close:hover {
    color: var(--gray-600);
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-items {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: all 0.2s;
}

.cart-item:hover {
    background: var(--gray-100);
}

.cart-item-info {
    flex: 2;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.cart-item-article {
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-light);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-qty {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.cart-item-price {
    text-align: right;
    min-width: 100px;
}

.cart-item-price small {
    font-size: 0.7rem;
    color: var(--gray-500);
}

.cart-item-price strong {
    font-size: 1rem;
    color: var(--success);
}

.cart-item-delete {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.cart-item-delete:hover {
    color: var(--danger);
    background: #fef2f2;
}

.empty-cart {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-400);
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 16px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.cart-total strong {
    font-size: 1.25rem;
    color: var(--primary);
}

/* Форма заказа */
.order-form {
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
}

.order-form h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.required-star {
    color: var(--danger);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--gray-600);
}

.form-group label i {
    width: 20px;
    color: var(--primary);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.form-group input.error {
    border-color: var(--danger);
    background: #fef2f2;
}

.error-message {
    color: var(--danger);
    font-size: 0.7rem;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cart-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    background: white;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* ========== ОСНОВНОЙ КОНТЕЙНЕР ========== */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* ========== ШАПКА ========== */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 24px 32px;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.header-contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-contacts a {
    color: white;
    text-decoration: none;
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 12px;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 40px;
}

.stat-item span {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-item label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

.discount-info {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
}

/* ========== СТРОКА ПОИСКА ========== */
.search-bar {
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 45px 14px 45px;
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--gray-50);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.clear-search {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.clear-search:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.search-results-info {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--gray-500);
    padding: 8px;
    background: var(--gray-50);
    border-radius: 30px;
}

.highlight {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0 2px;
    border-radius: 4px;
    font-weight: 500;
}

/* ========== ВЕРТИКАЛЬНОЕ МЕНЮ КАТЕГОРИЙ ========== */
.category-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 24px 32px 32px 32px;
    background: white;
}

/* Сайдбар */
.category-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s;
}

.category-sidebar:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.category-sidebar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: #fafcff;
    border-bottom: 1px solid #eef2f6;
    flex-shrink: 0;
}

.category-sidebar-header i {
    font-size: 1.2rem;
    color: #0052cc;
}

.category-sidebar-header span {
    font-size: 1rem;
    font-weight: 700;
    color: #0a1628;
    letter-spacing: -0.3px;
}

.category-list {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
}

.category-list::-webkit-scrollbar {
    width: 5px;
}

.category-list::-webkit-scrollbar-track {
    background: transparent;
}

.category-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

.category-list::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Кнопки категорий */
.category-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 18px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
    position: relative;
    margin-bottom: 2px;
}

.category-btn:hover {
    background: #f1f5f9;
    color: #0a1628;
}

.category-btn:hover i {
    color: #0052cc;
}

.category-btn.active {
    background: #0052cc;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 82, 204, 0.25);
}

.category-btn.active i {
    color: white;
}

.category-btn i {
    width: 22px;
    font-size: 1.1rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.2s;
}

.category-btn .badge-count {
    margin-left: auto;
    background: #ef4444;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    min-width: 32px;
    text-align: center;
    transition: all 0.2s;
    letter-spacing: 0.2px;
}

.category-btn:hover .badge-count {
    background: #dc2626;
    transform: scale(1.05);
}

.category-btn.active .badge-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-btn.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 20%;
    width: 4px;
    height: 60%;
    background: white;
    border-radius: 0 3px 3px 0;
}

/* Контент */
.category-content {
    flex: 1;
    min-width: 0;
    padding-top: 0;
    margin-top: 0;
}

/* Кнопка для мобильных */
.category-mobile-toggle {
    display: none;
    width: 100%;
    padding: 12px 18px;
    background: #fafcff;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a1628;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.category-mobile-toggle:hover {
    background: #f1f5f9;
}

.category-mobile-toggle i {
    color: #0052cc;
    font-size: 1rem;
}

.category-mobile-toggle .toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.category-mobile-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}

/* ========== КОНТРОЛЬ ОСТАТКОВ ========== */
.quantity-input.stock-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    animation: shake 0.3s ease-in-out;
}

.global-stock-warning {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 12px;
    margin: 16px 20px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: slideInWarning 0.3s ease-out;
}

.global-stock-warning .warning-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    color: white;
}

.global-stock-warning .warning-content i {
    font-size: 22px;
    flex-shrink: 0;
}

.global-stock-warning .warning-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.global-stock-warning .warning-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    padding: 6px 10px;
    transition: all 0.2s;
}

.global-stock-warning .warning-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.cart-stock-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 10px;
    color: #92400e;
    font-size: 0.85rem;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.stock-zero-badge {
    background: #fee2e2;
    color: #991b1b;
}

.stock-low-badge {
    background: #fef3c7;
    color: #92400e;
}

.stock-ok-badge {
    background: #d1fae5;
    color: #065f46;
}

/* ========== ТАБЛИЦА ========== */
.tab-content {
    display: none;
    animation: fadeInContent 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.price-table th {
    text-align: left;
    padding: 14px 16px;
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.price-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.price-table tr:hover td {
    background: var(--gray-50);
}

.col-article {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

.col-name {
    font-weight: 600;
    color: var(--gray-800);
}

.col-desc {
    color: var(--gray-500);
    font-size: 0.8rem;
    max-width: 280px;
}

.price-cell {
    font-weight: 700;
    color: var(--success);
    white-space: nowrap;
}

/* Контролы количества */
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 4px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    color: var(--gray-600);
}

.quantity-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.quantity-btn.minus:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.quantity-btn.plus:hover {
    background: var(--success);
    border-color: var(--success);
}

.quantity-input {
    width: 55px;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: white;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.pagination-btn {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--gray-600);
    background: white;
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid var(--gray-200);
}

/* ========== ПОДВАЛ ========== */
.app-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 24px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-info i {
    color: var(--primary);
}

.contact-info a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: white;
}

.separator {
    color: var(--gray-600);
}

.copyright {
    font-size: 0.75rem;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 1024px) {
    .category-sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 20px;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .logo-area {
        justify-content: center;
    }
    .header-contacts {
        justify-content: center;
    }
    .stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .stat-divider {
        display: none;
    }
    .discount-info {
        font-size: 0.7rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .search-bar {
        padding: 16px;
    }

    .category-layout {
        flex-direction: column;
        gap: 16px;
        padding: 16px 18px;
    }

    .category-mobile-toggle {
        display: flex;
    }

    .category-sidebar {
        width: 100%;
        max-height: none;
        position: static;
        border-radius: 8px;
        display: none;
    }

    .category-sidebar.open {
        display: flex;
    }

    .category-sidebar-header {
        padding: 14px 18px;
    }

    .category-sidebar-header span {
        font-size: 0.95rem;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 16px;
        overflow-y: visible;
        max-height: none;
    }

    .category-btn {
        width: auto;
        padding: 8px 18px;
        font-size: 0.85rem;
        border-radius: 24px;
        flex-shrink: 0;
        gap: 8px;
        margin-bottom: 0;
    }

    .category-btn .badge-count {
        display: none;
    }

    .category-btn i {
        font-size: 0.85rem;
        width: 18px;
    }

    .category-btn.active::before {
        display: none;
    }

    .category-content {
        padding-top: 0;
        margin-top: 0;
    }

    .price-table td,
    .price-table th {
        padding: 12px 8px;
    }
    .col-desc {
        display: none;
    }
    .quantity-btn {
        width: 28px;
        height: 28px;
    }
    .quantity-input {
        width: 45px;
    }
    .cart-modal {
        max-width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .pagination-container {
        gap: 12px;
    }
    .pagination-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .pagination-info {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    .global-stock-warning {
        margin: 12px 16px;
    }
    .global-stock-warning .warning-content {
        padding: 12px 16px;
        gap: 10px;
    }
    .global-stock-warning .warning-text {
        font-size: 0.8rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-info {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-layout {
        padding: 12px 14px;
        gap: 12px;
    }
    .category-btn {
        font-size: 0.78rem;
        padding: 6px 14px;
    }
    .category-sidebar-header span {
        font-size: 0.85rem;
    }
    .category-mobile-toggle {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    .app-header {
        padding: 16px;
    }
    .cart-fab {
        width: 48px;
        height: 48px;
        font-size: 20px;
        bottom: 16px;
        right: 16px;
    }
}