/* ============================================================
   夜宵铺子 - 网站版样式
   参考 dingdan/admin.css 设计：极简黑白灰 + 圆角 + 扁平化
   ============================================================ */

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

:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface-alt: #f9fafb;
    --text: #1a1a2e;
    --text-sub: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --primary: #1a1a2e;
    --primary-light: #374151;
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --max-width: 1200px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 14px;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ========== 顶部导航栏 ========== */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 20px;
}
.navbar-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-brand .brand-icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}
.navbar-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}
.navbar-search input {
    width: 100%;
    height: 36px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-alt);
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}
.navbar-search input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(26,26,46,0.06);
}
.navbar-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.navbar-nav a, .navbar-nav button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
    transition: all 0.18s;
    border: none;
    background: none;
    white-space: nowrap;
}
.navbar-nav a:hover, .navbar-nav button:hover {
    background: var(--surface-alt);
    color: var(--text);
}
.navbar-nav .btn-primary-nav {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
}
.navbar-nav .btn-primary-nav:hover {
    background: var(--primary-light);
    color: #fff;
}
.navbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.navbar-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    color: var(--text);
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}
.mobile-menu.active { display: block; }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}

/* ========== 主容器 ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}
.page-header {
    margin-bottom: 24px;
}
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.page-subtitle {
    font-size: 13px;
    color: var(--text-sub);
}

/* ========== 页面布局：侧边栏 + 内容区 ========== */
.page-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ========== 分类侧边栏 ========== */
.category-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-category {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-sub);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.sidebar-category:hover {
    background: var(--surface-alt);
    color: var(--text);
}
.sidebar-category.active {
    background: var(--surface-alt);
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

/* ========== 内容区 ========== */
.content-area {
    flex: 1;
    min-width: 0;
}

/* ========== 商品网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.25s;
    cursor: pointer;
    border: 1px solid transparent;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}
.product-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-alt);
}
.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-card-body {
    padding: 14px;
}
.product-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 39px;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
}
.product-card-price .original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}
.product-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.18s;
    flex-shrink: 0;
}
.product-card-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}
.product-card-tags {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}
.product-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}
.product-tag.hot {
    background: #fee2e2;
    color: #dc2626;
}
.product-tag.new {
    background: #dbeafe;
    color: #2563eb;
}

/* ========== 商品详情页 ========== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}
.product-detail-image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-alt);
}
.product-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.product-detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}
.product-detail-price {
    background: var(--surface-alt);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.product-detail-price .current {
    font-size: 28px;
    font-weight: 700;
    color: var(--danger);
}
.product-detail-price .original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
}
.product-detail-desc {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 选项组 */
.option-group {
    margin-bottom: 18px;
}
.option-group-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.option-value {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s;
    background: var(--surface);
    color: var(--text-sub);
    user-select: none;
}
.option-value:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.option-value.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.option-value .price-tag {
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.8;
}

/* 数量选择器 */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.quantity-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--surface-alt);
    font-size: 18px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.18s;
}
.quantity-btn:hover { background: var(--border); }
.quantity-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.18s;
    white-space: nowrap;
    cursor: pointer;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    flex: 1;
}
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.btn-outline { background: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { height: 50px; padding: 0 32px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: all 0.18s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}
textarea.form-control {
    height: auto;
    padding: 10px 14px;
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 5l3 3 3-3' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ========== 卡片 ========== */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

/* ========== 订单列表 ========== */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.order-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    background: var(--surface-alt);
}
.order-card-header .order-no {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
}
.order-card-body {
    padding: 16px 18px;
}
.order-item {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.order-item:last-child { border-bottom: none; }
.order-item-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-alt);
}
.order-item-info {
    flex: 1;
    min-width: 0;
}
.order-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.order-item-options {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.order-item-quantity {
    font-size: 12px;
    color: var(--text-muted);
}
.order-card-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-total {
    font-size: 14px;
    color: var(--text);
}
.order-total strong {
    font-size: 18px;
    color: var(--danger);
}
.order-actions {
    display: flex;
    gap: 8px;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-paid { background: #d1fae5; color: #065f46; }
.status-delivering { background: #dbeafe; color: #1e40af; }
.status-completed { background: #f3f4f6; color: #4b5563; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.category-tab.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.category-tab:hover:not(.active) {
    background: var(--surface-alt) !important;
    border-color: var(--text-muted) !important;
}

/* ========== 购物车侧边栏 ========== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--surface);
    z-index: 3001;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active {
    transform: translateX(0);
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.cart-header h3 {
    font-size: 16px;
    font-weight: 700;
}
.cart-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-sub);
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-alt);
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.cart-item-options {
    font-size: 11px;
    color: var(--text-muted);
}
.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
}
.cart-item-remove {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}
.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface-alt);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}
.cart-total .price {
    font-size: 22px;
    color: var(--danger);
    font-weight: 700;
}
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.cart-empty svg {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* ========== 登录/注册页 ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 20px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
}
.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    margin-bottom: 32px;
}
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 24px;
}
.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-sub);
}
.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* ========== Toast提示 ========== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    padding: 12px 24px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease;
    pointer-events: auto;
    white-space: nowrap;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
.toast.info { background: var(--accent); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.3;
}
.empty-state p {
    font-size: 14px;
    margin-bottom: 16px;
}

/* ========== 加载动画 ========== */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 模态框 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    padding: 20px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 17px;
    font-weight: 700;
}
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-sub);
}
.modal-body {
    padding: 20px 24px;
}
.modal-footer {
    padding: 0 24px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-detail-image img {
        height: 300px;
    }
}
@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
    }
    .category-sidebar {
        width: 100%;
        position: static;
        border-radius: var(--radius);
    }
    .sidebar-title {
        display: none;
    }
    #sidebarCategories {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    #sidebarCategories::-webkit-scrollbar { display: none; }
    .sidebar-category {
        display: inline-flex;
        align-items: center;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
        color: var(--text-sub);
        background: var(--surface);
        border: 1px solid var(--border);
        white-space: nowrap;
        flex-shrink: 0;
        width: auto;
        border-left: 1px solid var(--border);
    }
    .sidebar-category.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        border-left-color: var(--primary);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card-body {
        padding: 10px;
    }
    .product-card-name {
        font-size: 13px;
    }
    .product-card-price {
        font-size: 15px;
    }
    .navbar-search {
        display: none;
    }
    .navbar-nav .hide-mobile {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .container {
        padding: 12px;
    }
    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
    }
    .auth-card {
        padding: 24px;
    }
}
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .action-buttons {
        flex-direction: column;
    }
}