/* B2B Depo - Ana Stil */
:root {
    --color-bg: #f4f6f9;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-primary: #163a5f;
    --color-primary-light: #2a5f94;
    --color-primary-dark: #0c2340;
    --color-accent: #ea580c;
    --color-accent-light: #ff7b2e;
    --color-success: #059669;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --color-info: #0284c7;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(15, 76, 129, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 76, 129, 0.12);
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Syne', system-ui, sans-serif;
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-light); }
img { max-width: 100%; height: auto; }

/* Auth / Landing */
.page-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #1a5276 100%);
    padding: 2rem;
}
.auth-container { width: 100%; max-width: 440px; }
.auth-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.auth-brand { text-align: center; margin-bottom: 2rem; }
.auth-brand .logo {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-primary);
    font-style: italic;
}
.auth-brand .tagline { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.auth-brand .city-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: #eff6ff;
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.page-landing {
    min-height: 100vh;
    background: linear-gradient(160deg, #0a3558 0%, var(--color-primary) 40%, #1e6b9e 100%);
    color: #fff;
}
.landing-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}
.landing-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1rem;
}
.landing-hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }
.landing-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}
.feature-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.15);
}
.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; opacity: 0.85; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}
.btn svg,
.btn .icon-svg {
    display: block;
    flex-shrink: 0;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-light); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-text-muted); }
.btn-ghost:hover { background: var(--color-bg); color: var(--color-text); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-success { background: var(--color-success); color: #fff; }
.btn-sm { padding: 0.4rem 0.7rem; font-size: 0.8rem; line-height: 1; }
.btn-lg { padding: 0.8rem 1.65rem; font-size: 1rem; line-height: 1; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--color-text); }
.form-label .required { color: var(--color-danger); }
.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}
.form-control.is-invalid { border-color: var(--color-danger); }
.form-error { color: var(--color-danger); font-size: 0.8rem; margin-top: 0.35rem; }
.form-hint { color: var(--color-text-muted); font-size: 0.8rem; margin-top: 0.35rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input { width: 18px; height: 18px; }

/* Panel layout */
body.panel-app {
    min-height: 100vh;
    background: var(--color-bg);
}
.panel-shell,
.panel-layout { display: flex; min-height: 100vh; width: 100%; }
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-primary-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition);
}
.sidebar-brand { padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand a { display: flex; align-items: center; gap: 0.75rem; color: #fff; }
.brand-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    background: none;
    border: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    gap: 0.25rem;
}
.brand-logo-img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 6px;
    background: #000;
}
.brand-logo-text {
    display: none;
}
.brand-text { font-weight: 700; font-size: 1.1rem; }
.brand-badge {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}
.brand-badge-isletme { color: #93c5fd; }
.sidebar-business {
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.15);
    font-size: 0.85rem;
}
.discount-tag {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.5rem;
    background: var(--color-success);
    border-radius: 4px;
    font-size: 0.75rem;
}
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.nav-item.active { border-left: 3px solid var(--color-accent); }
.nav-badge {
    margin-left: auto;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
}
.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-location { font-size: 0.75rem; opacity: 0.6; margin-bottom: 0.5rem; }
.nav-logout { color: #fca5a5 !important; }

.panel-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    height: var(--topbar-height);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}
.sidebar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.sidebar-toggle span {
    width: 22px; height: 2px;
    background: var(--color-text);
}
.topbar-title h1 { font-size: 1.25rem; font-weight: 700; }
.topbar-subtitle { font-size: 0.85rem; color: var(--color-text-muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.topbar-user { text-align: right; }
.user-name { display: block; font-weight: 600; font-size: 0.9rem; }
.user-role { font-size: 0.75rem; color: var(--color-text-muted); }

.panel-content { padding: 1.5rem; flex: 1; }

/* Cards & Stats */
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}
.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.card-header h2, .card-header h3 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 1.25rem; }
.card-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--color-border); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.stat-card .stat-label { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--color-primary); }
.stat-card .stat-change { font-size: 0.8rem; }
.stat-card.stat-warning .stat-value { color: var(--color-warning); }
.stat-card.stat-danger .stat-value { color: var(--color-danger); }
.stat-card.stat-success .stat-value { color: var(--color-success); }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.data-table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-muted);
    background: #f8fafc;
}
.data-table tbody tr:hover { background: #f8fafc; }
.data-table .actions { white-space: nowrap; display: flex; gap: 0.35rem; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}
.badge-primary { background: #dbeafe; color: var(--color-primary); }
.badge-success { background: #d1fae5; color: var(--color-success); }
.badge-warning { background: #fef3c7; color: var(--color-warning); }
.badge-danger { background: #fee2e2; color: var(--color-danger); }
.badge-info { background: #e0f2fe; color: var(--color-info); }
.badge-secondary { background: #f1f5f9; color: var(--color-text-muted); }
.badge-accent { background: #ffedd5; color: var(--color-accent); }

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-image {
    aspect-ratio: 4/3;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.product-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: 0.95rem; margin-bottom: 0.35rem; line-height: 1.4; }
.product-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--color-primary); margin-top: auto; }
.product-price .list-price {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 0.5rem;
}
.product-card-footer {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.qty-input {
    width: 70px;
    padding: 0.4rem;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* Filters */
.filters-bar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.filters-bar .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }

/* Cart */
.cart-table .product-thumb {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.cart-summary {
    max-width: 380px;
    margin-left: auto;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.cart-summary-row.total {
    font-size: 1.15rem;
    font-weight: 700;
    border-top: 2px solid var(--color-border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: var(--color-primary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-text-muted);
}
.empty-state svg { width: 64px; height: 64px; opacity: 0.4; margin-bottom: 1rem; }
.empty-state h3 { color: var(--color-text); margin-bottom: 0.5rem; }

/* Toast */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toast {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
    animation: slideIn 0.3s ease;
}
.toast-success { border-left: 4px solid var(--color-success); }
.toast-danger { border-left: 4px solid var(--color-danger); }
.toast-warning { border-left: 4px solid var(--color-warning); }
.toast-info { border-left: 4px solid var(--color-info); }
.toast-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; opacity: 0.5; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Pagination — store.css ile uyumlu (admin / genel sayfalar) */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}
.pagination-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
}
.pagination-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid rgba(15, 76, 129, 0.12);
    font-size: 0.8125rem;
}
.pagination-badge-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-primary);
}
.pagination-record-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-muted, #64748b);
}
.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 520px;
    padding: 0.5rem;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm, 0 4px 20px rgba(0, 0, 0, 0.06));
}
.pagination-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 129, 0.18);
    background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.08);
}
a.pagination-nav:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, var(--color-primary) 0%, #1a6bb5 100%);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.25);
}
.pagination-nav.is-disabled {
    opacity: 0.42;
    pointer-events: none;
    background: #f8fafc;
    color: var(--color-muted, #94a3b8);
    box-shadow: none;
}
.pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.5rem;
    flex: 1;
}
.pagination-page-link,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
a.pagination-page-link:hover {
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary);
}
.pagination-page.is-active .pagination-page-link {
    background: linear-gradient(145deg, var(--color-primary) 0%, #1a6bb5 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
    font-weight: 800;
}
.pagination-progress {
    width: 100%;
    max-width: 280px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-border);
    overflow: hidden;
}
.pagination-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-primary), #60a5fa);
}
.pagination-summary { margin: 0; font-size: 0.8125rem; color: var(--color-muted, #64748b); }
.pagination-summary strong { color: var(--color-primary); font-weight: 700; }
.pagination-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
}
a.pagination-link:hover { background: rgba(15, 76, 129, 0.08); color: var(--color-primary); }
.pagination-item.is-active .pagination-link {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(15, 76, 129, 0.25);
}
.pagination-item.is-disabled .pagination-link { opacity: 0.4; pointer-events: none; }
.pagination-icon { flex-shrink: 0; }
/* Eski markup uyumluluğu */
.pagination ul { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.pagination ul a,
.pagination li.active span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.45rem;
    height: 2.45rem;
    padding: 0 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.pagination ul a:hover { background: rgba(15, 76, 129, 0.08); color: var(--color-primary); border-color: var(--color-primary); }
.pagination li.active a,
.pagination li.active span {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Order detail */
.order-timeline { list-style: none; padding-left: 0; }
.order-timeline li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    border-left: 2px solid var(--color-border);
    position: relative;
    margin-left: 0.5rem;
}
.order-timeline li::before {
    content: '';
    width: 10px; height: 10px;
    background: var(--color-border);
    border-radius: 50%;
    position: absolute;
    left: -6px;
    top: 1rem;
}
.order-timeline li.active::before { background: var(--color-primary); }
.order-timeline li.active { border-left-color: var(--color-primary); }

/* Print */
@media print {
    .sidebar, .topbar, .btn, .filters-bar { display: none !important; }
    .panel-main { margin-left: 0 !important; }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .panel-main { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 1.5rem; }
}

/* Utilities */
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
}
.tab:hover { color: var(--color-primary); }
.tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.search-box { position: relative; }
.search-box input { padding-left: 2.5rem; }
.search-box::before {
    content: '';
    position: absolute;
    left: 0.85rem;
    top: 50%;
    width: 0.85rem;
    height: 0.85rem;
    margin-top: -0.55rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}
.search-box::after {
    content: '';
    position: absolute;
    left: 1.55rem;
    top: 50%;
    width: 0.45rem;
    height: 2px;
    margin-top: 0.15rem;
    background: currentColor;
    opacity: 0.4;
    transform: rotate(45deg);
    pointer-events: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.detail-item label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; display: block; }
.detail-item span { font-weight: 600; }

.stock-low { color: var(--color-danger); font-weight: 600; }
.stock-ok { color: var(--color-success); }

/* v2 - Breadcrumb */
.breadcrumb { margin-bottom: 1rem; font-size: 0.85rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 0.35rem; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 600; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th { width: 40%; text-align: left; padding: 0.6rem 0.75rem; background: #f8fafc; color: var(--color-text-muted); font-weight: 600; border: 1px solid var(--color-border); }
.spec-table td { padding: 0.6rem 0.75rem; border: 1px solid var(--color-border); }

/* Info chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; background: #f1f5f9; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
.chip-icon { font-size: 1rem; }

/* Progress bar */
.progress-bar { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--color-primary); border-radius: 4px; transition: width 0.3s; }

/* Mini chart bars */
.bar-chart { display: flex; align-items: flex-end; gap: 0.5rem; height: 120px; padding-top: 1rem; }
.bar-chart-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.bar-chart-bar { width: 100%; max-width: 40px; background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary)); border-radius: 4px 4px 0 0; min-height: 4px; }
.bar-chart-label { font-size: 0.65rem; color: var(--color-text-muted); text-align: center; }

/* Compare table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.compare-table th, .compare-table td { border: 1px solid var(--color-border); padding: 0.65rem; text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; background: #f8fafc; font-weight: 600; }
.compare-table thead th { background: var(--color-primary-dark); color: #fff; }

/* Ticket / chat */
.ticket-thread { max-height: 400px; overflow-y: auto; padding: 1rem; background: #f8fafc; border-radius: var(--radius); }
.ticket-msg { margin-bottom: 1rem; max-width: 85%; }
.ticket-msg.staff { margin-left: auto; }
.ticket-msg-bubble { padding: 0.75rem 1rem; border-radius: 12px; background: var(--color-surface); border: 1px solid var(--color-border); }
.ticket-msg.staff .ticket-msg-bubble { background: #dbeafe; border-color: #93c5fd; }
.ticket-msg-meta { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.25rem; }

/* FAQ accordion */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 0.5rem; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 1rem 1.25rem; background: var(--color-surface); border: none; font-family: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: space-between; }
.faq-question:hover { background: #f8fafc; }
.faq-answer { padding: 0 1.25rem 1rem; display: none; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { color: var(--color-primary); }

/* Timeline steps (order) */
.status-steps { display: flex; justify-content: space-between; margin: 1.5rem 0; position: relative; }
.status-steps::before { content: ''; position: absolute; top: 16px; left: 10%; right: 10%; height: 2px; background: var(--color-border); z-index: 0; }
.status-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.status-step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--color-border); color: var(--color-text-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.35rem; }
.status-step.done .status-step-dot { background: var(--color-success); color: #fff; }
.status-step.active .status-step-dot { background: var(--color-primary); color: #fff; box-shadow: 0 0 0 4px rgba(15,76,129,0.2); }
.status-step-label { font-size: 0.7rem; color: var(--color-text-muted); }

/* Tag pills on products */
.tag-pill { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; margin-right: 0.25rem; }
.tag-pill-accent { background: #ffedd5; color: var(--color-accent); }
.tag-pill-success { background: #d1fae5; color: var(--color-success); }
.tag-pill-danger { background: #fee2e2; color: var(--color-danger); }
.tag-pill-primary { background: #dbeafe; color: var(--color-primary); }
.tag-pill-info { background: #e0f2fe; color: var(--color-info); }

/* Panel info box */
.info-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; padding: 1rem; background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%); border-radius: var(--radius); border: 1px solid #dbeafe; margin-bottom: 1.5rem; }
.info-panel-item { text-align: center; }
.info-panel-item strong { display: block; font-size: 1.1rem; color: var(--color-primary); }
.info-panel-item span { font-size: 0.75rem; color: var(--color-text-muted); }

/* Sticky cart bar mobile */
.sticky-action-bar { position: sticky; bottom: 0; background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 0.75rem 1rem; display: none; gap: 0.5rem; z-index: 40; box-shadow: 0 -4px 12px rgba(0,0,0,0.08); }
@media (max-width: 768px) { .sticky-action-bar { display: flex; } }

/* Landing v2 sections */
.landing-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; padding: 2rem; background: rgba(0,0,0,0.2); }
.landing-stat strong { display: block; font-size: 2rem; }
.landing-stat span { font-size: 0.85rem; opacity: 0.85; }
.landing-process { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.process-step { text-align: center; padding: 1.5rem; background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.process-step-num { width: 36px; height: 36px; background: var(--color-accent); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 0.75rem; }

/* Global search */
.global-search { position: relative; min-width: 220px; max-width: 320px; }
.global-search-input { font-size: 0.85rem; padding: 0.45rem 0.75rem; }
.global-search-results {
    position: absolute; top: 100%; right: 0; left: 0;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
    max-height: 280px; overflow-y: auto; z-index: 200; margin-top: 4px;
}
.global-search-item { display: block; padding: 0.6rem 0.85rem; font-size: 0.85rem; color: var(--color-text); border-bottom: 1px solid #f1f5f9; }
.global-search-item:hover { background: #f8fafc; }
.global-search-item .type { font-size: 0.65rem; text-transform: uppercase; color: var(--color-text-muted); display: block; }
.global-search-empty { padding: 0.75rem; color: var(--color-text-muted); font-size: 0.85rem; }

/* Hero banners */
.banner-carousel { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.banner-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff; border-radius: var(--radius); padding: 1.5rem 2rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.banner-card h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.banner-card p { opacity: 0.9; font-size: 0.9rem; }

/* Bundle card */
.bundle-card {
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
}
.bundle-card-header { background: #eff6ff; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.bundle-savings { color: var(--color-success); font-weight: 700; font-size: 0.9rem; }
.bundle-items-list { list-style: none; padding: 1rem 1.25rem; font-size: 0.85rem; }
.bundle-items-list li { padding: 0.35rem 0; border-bottom: 1px solid #f1f5f9; }

/* List view catalog */
.catalog-list .product-card { flex-direction: row; }
.catalog-list .product-card-image { width: 120px; aspect-ratio: 1; flex-shrink: 0; }
.catalog-list .product-card-body { flex: 1; }
.view-toggle { display: flex; gap: 0.25rem; }
.view-toggle button { padding: 0.4rem 0.65rem; border: 1px solid var(--color-border); background: var(--color-surface); cursor: pointer; border-radius: var(--radius-sm); }
.view-toggle button.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Ledger */
.ledger-debit { color: var(--color-danger); }
.ledger-credit { color: var(--color-success); }

/* Quick actions grid */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.quick-action {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 1rem; background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); text-decoration: none; color: var(--color-text);
    transition: all var(--transition);
}
.quick-action:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); color: var(--color-primary); }
.quick-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--color-primary);
}
.quick-action span { font-size: 0.8rem; font-weight: 600; }

/* Quick filter pills */
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter-pill { padding: 0.4rem 0.9rem; border-radius: 20px; border: 1px solid var(--color-border); font-size: 0.85rem; background: var(--color-surface); color: var(--color-text); transition: all var(--transition); }
.filter-pill:hover, .filter-pill.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Data list */
.dl-grid { display: grid; gap: 0.5rem; }
.dl-row { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.dl-row dt { color: var(--color-text-muted); font-weight: 500; }
.dl-row dd { margin: 0; font-weight: 600; }

/* Sidebar section label */
.nav-section-label { padding: 0.5rem 1.25rem; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; margin-top: 0.5rem; }

/* dl-row mobile fix */
@media (max-width: 640px) {
    .dl-row {
        grid-template-columns: 1fr !important;
        gap: 0.15rem !important;
    }
    .dl-row dd {
        overflow-wrap: anywhere;
        word-break: break-word;
        min-width: 0;
    }
}
