:root {
    --navy: #071b45;
    --navy2: #0b2b66;
    --blue: #064fd6;
    --gold: #ffc527;
    --purple: #5d20b6;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
    --bg: #f6f8fc;
    --success: #16a34a;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 16px;
    --shadow: 0 10px 25px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(15, 23, 42, .06); position: sticky; top: 0; z-index: 50; }
.top-header { height: 88px; display: grid; grid-template-columns: 250px 1fr 420px; gap: 24px; align-items: center; padding: 0 36px; }
.brand img { height: 72px; width: auto; object-fit: contain; }
.search-form { display: grid; grid-template-columns: 1fr 180px 64px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.search-form input, .search-form select { border: 0; padding: 16px; outline: none; color: var(--text); background: #fff; }
.search-form select { border-left: 1px solid var(--line); }
.search-form button { border: 0; background: var(--navy); color: #fff; cursor: pointer; font-weight: 700; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; font-size: 14px; }
.support { color: var(--text); line-height: 1.35; }
.mini-link { font-weight: 700; position: relative; padding: 10px 4px; }
.mini-link span { background: var(--gold); color: var(--text); border-radius: 999px; font-size: 12px; padding: 2px 7px; margin-left: 4px; }
.main-nav { display: flex; align-items: center; gap: 30px; height: 58px; padding: 0 36px; background: var(--navy); color: #fff; }
.main-nav a { font-weight: 700; opacity: .95; }
.main-nav a:hover { color: var(--gold); }
.alert { max-width: 1480px; margin: 18px auto 0; padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.container { max-width: 1480px; margin: 0 auto; padding: 28px 32px; }
.hero-layout { display: grid; grid-template-columns: 260px 1fr 330px; gap: 22px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.side-card { padding: 10px; }
.category-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; border-bottom: 1px solid #f0f1f5; font-weight: 700; color: var(--text); }
.category-link:hover, .category-link.active { background: #fff7df; color: var(--navy); }
.reseller-banner { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 22px; border-radius: var(--radius); margin-top: 14px; overflow: hidden; min-height: 160px; }
.reseller-banner h3 { margin: 0 0 8px; font-size: 20px; }
.reseller-banner p { margin: 0 0 16px; color: #dbeafe; }
.btn, .btn-outline, .btn-danger, .btn-light { border: 0; padding: 12px 18px; border-radius: 10px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn { background: var(--blue); color: #fff; }
.btn:hover { filter: brightness(.95); }
.btn-outline { background: #fff; color: var(--blue); border: 1px solid #b8c7e8; }
.btn-light { background: #eff6ff; color: var(--blue); }
.btn-danger { background: var(--danger); color: #fff; }
.hero-banner { position: relative; overflow: hidden; min-height: 420px; padding: 46px 34px; background: linear-gradient(90deg, #f7f0ff, #ffffff); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero-banner h1 { font-size: 42px; line-height: 1.16; margin: 8px 0 14px; max-width: 560px; }
.hero-banner p { color: #334155; line-height: 1.6; font-size: 17px; }
.eyebrow { color: var(--blue); text-transform: uppercase; font-weight: 800; letter-spacing: .02em; }
.hero-buttons { display: flex; gap: 14px; margin-top: 22px; }
.hero-art { min-height: 260px; border-radius: 22px; background: radial-gradient(circle at 30% 50%, #fde7f3, transparent 34%), radial-gradient(circle at 70% 55%, #ffe8b2, transparent 30%), #fff; display: flex; align-items: center; justify-content: center; font-size: 92px; gap: 10px; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.feature-row strong { color: var(--text); display: block; }
.cart-summary { padding: 20px; }
.cart-summary h3, .section-title h2 { margin: 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.product-thumb { width: 58px; height: 58px; border-radius: 10px; background: #f5f7fb; display: flex; align-items: center; justify-content: center; font-size: 30px; border: 1px solid var(--line); }
.cart-line strong { display: block; margin-bottom: 4px; }
.cart-line small { color: var(--muted); }
.total-row { display: flex; justify-content: space-between; padding: 8px 0; color: #334155; }
.total-row.big { font-size: 22px; font-weight: 900; color: var(--text); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; }
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.pay-badge { border: 1px solid var(--line); border-radius: 8px; padding: 9px; text-align: center; font-weight: 800; font-size: 13px; background: #fff; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 16px; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-card { padding: 16px; text-align: center; }
.category-card .icon { height: 72px; border-radius: 14px; background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 42px; margin-bottom: 10px; }
.category-card strong { display: block; }
.category-card span { color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.product-card { overflow: hidden; transition: .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .12); }
.product-img { height: 170px; background: #fbf7fb; display: flex; align-items: center; justify-content: center; font-size: 70px; position: relative; }
.discount { position: absolute; top: 10px; left: 10px; background: #ef4444; color: #fff; border-radius: 7px; padding: 5px 8px; font-weight: 800; font-size: 12px; }
.product-body { padding: 14px; }
.product-body h4 { margin: 0 0 6px; }
.product-body .cat { color: var(--muted); font-size: 12px; }
.rating { color: #f59e0b; font-size: 13px; margin: 6px 0; }
.price { color: var(--blue); font-weight: 900; font-size: 16px; }
.old-price { color: #94a3b8; text-decoration: line-through; font-size: 12px; margin-left: 8px; }
.add-form { display: grid; grid-template-columns: 64px 1fr; gap: 8px; margin-top: 12px; }
.add-form input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px; }
.add-form select { grid-column: span 2; border: 1px solid var(--line); border-radius: 9px; padding: 9px; }
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg, #071b45, #061225); color: #fff; padding: 22px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo img { height: 70px; margin-bottom: 28px; }
.admin-menu a { display: flex; padding: 14px 16px; border-radius: 12px; margin-bottom: 8px; font-weight: 700; color: #e5edf7; }
.admin-menu a:hover, .admin-menu a.active { background: rgba(255,255,255,.1); border-left: 4px solid var(--gold); }
.admin-content { padding: 24px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-search { flex: 1; max-width: 520px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 20px; display: flex; gap: 16px; align-items: center; }
.stat-icon { width: 58px; height: 58px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eef2ff; font-size: 28px; }
.stat-card h3 { margin: 0; font-size: 28px; }
.stat-card p { margin: 0 0 8px; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-top: 18px; }
.chart-box { height: 300px; padding: 22px; }
.fake-chart { height: 220px; background: linear-gradient(180deg, rgba(37,99,235,.16), rgba(37,99,235,.02)); border-bottom: 2px solid #dbe7ff; border-left: 2px solid #dbe7ff; border-radius: 12px; position: relative; overflow: hidden; }
.fake-chart::after { content: ''; position: absolute; left: 20px; right: 20px; top: 110px; height: 4px; background: var(--blue); transform: skewY(-12deg); box-shadow: 120px -25px 0 var(--blue), 240px 10px 0 var(--blue), 360px -42px 0 var(--blue), 500px 5px 0 var(--blue); }
.donut { width: 190px; height: 190px; border-radius: 50%; background: conic-gradient(#2563eb 0 25%, #fbbf24 25% 58%, #10b981 58% 82%, #8b5cf6 82% 100%); margin: 20px auto; position: relative; }
.donut::after { content: ''; position: absolute; inset: 48px; background: #fff; border-radius: 50%; }
.table-card { padding: 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { color: #334155; font-weight: 900; background: #f8fafc; }
.badge { display: inline-block; padding: 6px 11px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.processing { background: #dbeafe; color: #1d4ed8; }
.badge.shipped, .badge.delivered, .badge.paid { background: #dcfce7; color: #166534; }
.badge.cancelled { background: #e5e7eb; color: #475569; }
.form-card { max-width: 1000px; padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group label { display: block; font-weight: 800; margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 13px; outline: none; background: #fff; }
.form-group.full { grid-column: 1 / -1; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-left { background: linear-gradient(135deg, #071b45, #0b2b66); color: #fff; padding: 54px 70px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-left img { width: 240px; background: #fff; border-radius: 12px; padding: 8px; margin-bottom: 40px; }
.login-left h1 { font-size: 46px; margin: 0 0 18px; }
.login-left p { color: #dbeafe; font-size: 18px; line-height: 1.7; }
.login-products { margin-top: 40px; font-size: 88px; }
.login-right { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { width: 100%; max-width: 560px; padding: 42px; }
.login-card h2 { text-align: center; font-size: 34px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 24px; }
.checkout-card { padding: 24px; }
.payment-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.payment-choice { border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; font-weight: 800; background: #fff; cursor: pointer; }
.payment-choice input { margin-right: 6px; }
.account-layout { display: grid; grid-template-columns: 250px 1fr 330px; gap: 22px; }
.profile-side { padding: 20px; }
.avatar { width: 72px; height: 72px; background: #e8f0ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--blue); margin-bottom: 10px; }
.account-menu a { display: block; padding: 14px 12px; border-radius: 10px; font-weight: 800; margin-top: 6px; }
.account-menu a:hover, .account-menu a.active { background: #fff7df; }
.order-items { display: flex; gap: 6px; }
.small-thumb { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; justify-content: center; background: #fff; }
.info-card { padding: 20px; margin-bottom: 16px; }
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 36px; padding: 26px 36px; color: #334155; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1480px; margin: 0 auto 18px; gap: 20px; }
.site-footer p { text-align: center; margin: 0; color: var(--muted); }
.empty { padding: 34px; text-align: center; color: var(--muted); }
@media (max-width: 1180px) {
    .top-header { grid-template-columns: 210px 1fr; height: auto; padding: 16px; }
    .header-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .hero-layout, .checkout-layout, .account-layout, .dashboard-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .top-header, .search-form, .hero-banner, .form-grid, .payment-options, .footer-grid, .stat-grid { grid-template-columns: 1fr; }
    .main-nav { overflow-x: auto; gap: 18px; padding: 0 16px; }
    .container { padding: 18px 14px; }
    .hero-banner h1 { font-size: 32px; }
    .product-grid, .category-grid { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .login-page { grid-template-columns: 1fr; }
    .login-left { padding: 34px 24px; }
}
