:root {
  --primary: #ef4f1f;
  --primary-dark: #cf3d12;
  --secondary: #172033;
  --accent: #ffc857;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #172033;
  --muted: #687385;
  --line: #e3e8ef;
  --success: #16875b;
  --danger: #c93737;
  --radius: 18px;
  --shadow: 0 12px 35px rgba(23, 32, 51, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Tahoma, Arial, sans-serif; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.topbar { background: var(--secondary); color: #fff; font-size: 13px; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { min-height: 78px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 24px; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(239,79,31,.24); }
.nav { display: flex; justify-content: center; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.nav a:hover { color: var(--primary); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { min-width: 46px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.cart-count { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 11px; }
.hero { padding: 54px 0 26px; }
.hero-grid { border-radius: 28px; overflow: hidden; background: var(--secondary); color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 420px; box-shadow: var(--shadow); }
.hero-copy { padding: 58px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--accent); font-size: 13px; font-weight: 800; }
h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.25; margin: 18px 0; }
.hero p { color: #dce3ee; max-width: 650px; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 13px; padding: 13px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: #fff; color: var(--secondary); }
.btn-outline { background: transparent; color: var(--secondary); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.hero-visual { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(255,200,87,.28), transparent 50%); }
.hero-wheel { width: 270px; height: 270px; border-radius: 50%; border: 42px solid #090e18; box-shadow: inset 0 0 0 18px #3f4a5d, 0 30px 60px rgba(0,0,0,.34); position: relative; }
.hero-wheel::before, .hero-wheel::after { content:""; position:absolute; inset:50%; width:170px; height:22px; background:#8a98ab; transform-origin:0 50%; border-radius:999px; }
.hero-wheel::before { transform: rotate(45deg) translate(-50%,-50%); }
.hero-wheel::after { transform: rotate(135deg) translate(-50%,-50%); }
.section { padding: 32px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 28px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-card { background: #fff; border: 1px solid var(--line); padding: 20px 14px; border-radius: var(--radius); text-align: center; transition: .2s; }
.category-card:hover { transform: translateY(-3px); border-color: rgba(239,79,31,.35); box-shadow: var(--shadow); }
.category-icon { width: 58px; height: 58px; border-radius: 18px; background: #fff2ed; color: var(--primary); display: grid; place-items: center; margin: 0 auto 12px; font-size: 25px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 1 / .82; background: #f1f4f8; display: grid; place-items: center; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 16px; display: flex; flex: 1; flex-direction: column; }
.product-meta { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.product-title { font-size: 16px; margin: 8px 0 10px; line-height: 1.55; min-height: 50px; }
.price-row { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.price { font-size: 18px; font-weight: 900; }
.old-price { display: block; color: #9aa4b2; text-decoration: line-through; font-size: 12px; }
.add-cart { width: 44px; height: 44px; border: 0; border-radius: 13px; background: var(--primary); color: #fff; font-size: 20px; }
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-success { color: #0f6b46; background: #e2f6ee; }
.badge-danger { color: #9a2929; background: #fde8e8; }
.badge-neutral { color: #4f5b68; background: #edf0f4; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature strong { display: block; margin-bottom: 6px; }
.feature span { color: var(--muted); font-size: 13px; }
.filters { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px; display:grid; grid-template-columns: 2fr 1fr 1fr auto; gap:12px; margin-bottom:20px; }
.form-control { width:100%; border:1px solid #d8dee7; background:#fff; border-radius:12px; min-height:46px; padding:10px 12px; outline:none; }
.form-control:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(239,79,31,.1); }
textarea.form-control { min-height:110px; resize:vertical; }
.product-detail { display:grid; grid-template-columns: 1fr 1.05fr; gap:32px; align-items:start; }
.detail-image { background:#fff; border:1px solid var(--line); border-radius:24px; overflow:hidden; }
.detail-card { background:#fff; border:1px solid var(--line); border-radius:24px; padding:28px; }
.detail-card h1 { font-size:32px; margin:0 0 12px; }
.detail-description { color:var(--muted); }
.detail-price { font-size:28px; font-weight:900; margin:18px 0; }
.qty-row { display:flex; align-items:center; gap:12px; margin:20px 0; }
.qty-input { width:80px; }
.spec-table { width:100%; border-collapse:collapse; }
.spec-table td { padding:12px; border-bottom:1px solid var(--line); }
.spec-table td:first-child { color:var(--muted); width:35%; }
.notice { border-radius:14px; padding:14px 16px; background:#fff8e8; border:1px solid #f4d98f; color:#6c5417; }
.cart-layout, .checkout-layout { display:grid; grid-template-columns:1.4fr .6fr; gap:22px; align-items:start; }
.panel { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.cart-item { display:grid; grid-template-columns:90px 1fr auto; gap:16px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); }
.cart-item img { width:90px; height:75px; object-fit:cover; border-radius:12px; background:#f3f5f8; }
.cart-item:last-child { border-bottom:0; }
.summary-line { display:flex; justify-content:space-between; gap:12px; padding:10px 0; }
.summary-total { border-top:1px solid var(--line); margin-top:6px; padding-top:16px; font-size:18px; font-weight:900; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-group label { display:block; margin-bottom:6px; font-size:13px; font-weight:800; }
.form-group.full { grid-column:1 / -1; }
.payment-options { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.payment-option { border:1px solid var(--line); border-radius:13px; padding:12px; }
.payment-option input { margin-left:6px; }
.footer { margin-top:50px; background:var(--secondary); color:#fff; padding:44px 0 20px; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
.footer p, .footer a { color:#cbd4e1; }
.footer-links { display:grid; gap:8px; }
.copyright { border-top:1px solid rgba(255,255,255,.12); margin-top:30px; padding-top:18px; color:#aeb9ca; font-size:12px; }
.empty { text-align:center; padding:45px 20px; color:var(--muted); }
.alert { padding:13px 15px; border-radius:12px; margin:12px 0; }
.alert-success { color:#0e6644; background:#e1f7ed; border:1px solid #bce8d7; }
.alert-danger { color:#8d2525; background:#fdeaea; border:1px solid #f2caca; }
.admin-shell { display:grid; grid-template-columns:230px 1fr; min-height:100vh; }
.admin-sidebar { background:var(--secondary); color:#fff; padding:25px 16px; }
.admin-sidebar .brand { margin-bottom:28px; }
.admin-menu { display:grid; gap:7px; }
.admin-menu a { padding:11px 13px; border-radius:11px; color:#dbe3ee; }
.admin-menu a:hover, .admin-menu a.active { background:rgba(255,255,255,.1); color:#fff; }
.admin-main { padding:28px; }
.admin-top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.stat { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; }
.stat span { color:var(--muted); font-size:12px; }
.stat strong { display:block; font-size:28px; margin-top:8px; }
.table-wrap { overflow:auto; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
table.admin-table { width:100%; border-collapse:collapse; min-width:760px; }
.admin-table th, .admin-table td { text-align:right; padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
.admin-table th { background:#f7f9fb; font-size:12px; }
.login-box { width:min(440px,calc(100% - 30px)); margin:9vh auto; background:#fff; border:1px solid var(--line); border-radius:24px; padding:28px; box-shadow:var(--shadow); }
.code { direction:ltr; text-align:left; background:#101827; color:#dce5f2; border-radius:12px; padding:14px; overflow:auto; font-family:Consolas,monospace; font-size:12px; }
@media (max-width: 980px) {
  .header-inner { grid-template-columns:1fr auto; }
  .nav { display:none; }
  .hero-grid { grid-template-columns:1fr; }
  .hero-visual { min-height:300px; }
  .category-grid { grid-template-columns:repeat(3,1fr); }
  .product-grid { grid-template-columns:repeat(3,1fr); }
  .features { grid-template-columns:repeat(2,1fr); }
  .product-detail, .cart-layout, .checkout-layout { grid-template-columns:1fr; }
  .admin-shell { grid-template-columns:1fr; }
  .admin-sidebar { position:static; }
  .stats { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 680px) {
  .container { width:min(100% - 22px,1180px); }
  .topbar-inner { justify-content:center; }
  .topbar-inner span:last-child { display:none; }
  .header-inner { min-height:66px; gap:8px; }
  .brand { font-size:19px; }
  .brand-mark { width:38px; height:38px; }
  .header-actions .label { display:none; }
  .hero { padding-top:20px; }
  .hero-copy { padding:32px 22px; }
  .hero-visual { min-height:240px; }
  .hero-wheel { width:190px; height:190px; border-width:30px; }
  .category-grid { grid-template-columns:repeat(2,1fr); }
  .product-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .product-body { padding:12px; }
  .product-title { font-size:14px; min-height:66px; }
  .filters { grid-template-columns:1fr; }
  .features { grid-template-columns:1fr; }
  .detail-card { padding:20px; }
  .detail-card h1 { font-size:25px; }
  .form-grid { grid-template-columns:1fr; }
  .form-group.full { grid-column:auto; }
  .payment-options { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .stats { grid-template-columns:1fr; }
  .admin-main { padding:16px; }
}
