:root {
  --ink: #101827;
  --muted: #667085;
  --line: #e7ebf1;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --brand: #ff5a1f;
  --brand-dark: #d9430d;
  --navy: #111c3a;
  --green: #18a058;
  --shadow: 0 24px 70px rgba(16, 24, 39, .12);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px clamp(16px, 5vw, 72px); background: rgba(255,255,255,.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(231,235,241,.85); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.03em; font-size: 1.2rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), #111c3a); box-shadow: 0 10px 26px rgba(255,90,31,.28); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 10px 14px; border-radius: 999px; color: #25314d; font-weight: 700; }
.main-nav a:hover, .main-nav a.active { background: #fff1eb; color: var(--brand-dark); }
.cart-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; margin-left: 4px; color: #fff; background: var(--brand); border-radius: 999px; font-size: .78rem; }
.mobile-menu { display: none; border: 0; background: var(--navy); color: #fff; border-radius: 12px; padding: 9px 12px; }
.app-shell { min-height: 72vh; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { width: min(1240px, calc(100% - 32px)); margin: 28px auto 20px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: stretch; }
.hero-copy { padding: clamp(28px, 6vw, 68px); min-height: 510px; border-radius: 34px; color: #fff; background: radial-gradient(circle at 15% 15%, rgba(255,255,255,.18), transparent 28%), linear-gradient(135deg, #111c3a, #1d2d58 52%, #ff5a1f); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-copy:after { content: ""; position: absolute; width: 280px; height: 280px; border: 46px solid rgba(255,255,255,.09); border-radius: 50%; right: -70px; bottom: -80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; background: rgba(255,255,255,.14); color: inherit; }
h1 { margin: 18px 0 14px; font-size: clamp(2.45rem, 6vw, 5.65rem); line-height: .94; letter-spacing: -.08em; }
.lead { color: rgba(255,255,255,.82); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; max-width: 650px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; border-radius: 999px; font-weight: 900; transition: .18s ease; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 14px 26px rgba(255,90,31,.28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: #eef1f6; color: var(--ink); }
.btn-danger { background: #fff0f0; color: #b42318; }
.hero-card { border-radius: 34px; background: #fff; box-shadow: var(--shadow); padding: 18px; display: grid; align-content: space-between; overflow: hidden; }
.hero-product-image { height: 360px; border-radius: 26px; background: linear-gradient(135deg, #f4f6fb, #fff1eb); object-fit: cover; width: 100%; }
.hero-product-meta { padding: 18px 6px 6px; display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.price { font-size: 1.35rem; font-weight: 950; color: var(--brand-dark); }
.section { padding: 38px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.055em; }
.muted { color: var(--muted); }
.category-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-tile { min-height: 150px; padding: 22px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--navy), #273b75); position: relative; overflow: hidden; }
.category-tile:nth-child(2) { background: linear-gradient(135deg, #202020, #ff5a1f); }
.category-tile:nth-child(3) { background: linear-gradient(135deg, #215c63, #89d3d1); }
.category-tile strong { font-size: 1.35rem; display: block; margin-bottom: 8px; }
.toolbar { position: sticky; top: 72px; z-index: 20; background: rgba(246,247,251,.92); backdrop-filter: blur(12px); padding: 14px 0; border-bottom: 1px solid rgba(231,235,241,.75); }
.filter-toggle { display: none; }
.filter-row { display: grid; grid-template-columns: 1fr 190px 170px auto; gap: 10px; }
.input, .select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 12px 14px; outline: none; }
.input:focus, .select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,90,31,.1); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 14px 40px rgba(16,24,39,.06); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card img { width: 100%; aspect-ratio: 1.18; object-fit: cover; background: #edf1f7; }
.product-body { padding: 18px; }
.product-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #eef4ff; color: #25498f; font-weight: 800; font-size: .82rem; }
.stock { color: var(--green); font-size: .86rem; font-weight: 800; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.detail-layout { display: grid; grid-template-columns: 1fr .9fr; gap: 28px; padding-top: 34px; }
.detail-image { border-radius: 34px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.detail-image img { width: 100%; min-height: 460px; object-fit: cover; }
.detail-panel { background: #fff; border-radius: 34px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.qty-control { display: inline-flex; align-items: center; gap: 10px; padding: 6px; border-radius: 999px; background: #f1f3f8; }
.qty-control button { width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer; background: #fff; font-weight: 900; }
.cart-layout, .checkout-layout, .admin-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; padding-top: 28px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: 0 12px 36px rgba(16,24,39,.06); }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 92px; height: 78px; object-fit: cover; border-radius: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0; }
.summary-row.total { font-size: 1.25rem; font-weight: 950; padding-top: 12px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .span-2 { grid-column: span 2; }
.status-steps { display: grid; gap: 12px; margin-top: 16px; }
.status-step { display: flex; gap: 12px; align-items: center; padding: 14px; background: #f7f9fc; border-radius: 16px; }
.status-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(24,160,88,.12); }
.login-wrap { min-height: 68vh; display: grid; place-items: center; padding: 34px 16px; }
.login-card { width: min(460px, 100%); background: #fff; border-radius: 30px; padding: 30px; box-shadow: var(--shadow); }
.admin-shell { width: min(1280px, calc(100% - 32px)); margin: 28px auto; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.stat-card strong { display: block; font-size: 2rem; letter-spacing: -.06em; margin-top: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.admin-form { display: grid; gap: 12px; }
.admin-product-grid { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 18px; }
.file-drop { border: 2px dashed #cdd5e1; background: #fbfcff; padding: 24px; border-radius: 22px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); padding: 12px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; box-shadow: var(--shadow); opacity: 0; transition: .22s ease; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { text-align: center; padding: 46px 16px; color: var(--muted); }
.drawer-backdrop { display: none; }
@media (max-width: 920px) {
  .hero, .detail-layout, .cart-layout, .checkout-layout, .admin-layout, .admin-product-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; }
  .category-rail, .product-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .mobile-menu { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 66px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .hero { margin-top: 16px; }
  .hero-copy, .hero-card, .detail-panel { border-radius: 24px; }
  h1 { font-size: 3rem; }
  .category-rail, .product-grid, .stats-grid, .form-grid { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; width: 100%; }
  .filter-row { display: none; grid-template-columns: 1fr; margin-top: 10px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
  .filter-row.open { display: grid; }
  .form-grid .span-2 { grid-column: auto; }
  .toolbar { top: 63px; }
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-item > .price { grid-column: 2; }
  .cart-item img { width: 76px; height: 66px; }
  .card-actions { grid-template-columns: 1fr; }
}
