:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e232d;
  --text: #f8fafc;
  --muted: #a3adc2;
  --primary: #ff6b2c;
  --primary-2: #ff8f5b;
  --line: rgba(255,255,255,.08);
  --ok: #26d07c;
  --shadow: 0 16px 40px rgba(0,0,0,.28);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #0d0f13 0%, #10141c 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 24px)); margin: 0 auto; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; backdrop-filter: blur(14px);
  background: rgba(12,14,18,.72); border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 14px; align-items: center; }
.brand__logo {
  width: 52px; height: 52px; border-radius: 18px;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #ffb082);
  color: #1d130c;
}
.brand h1 { margin: 0; font-size: 1.05rem; }
.brand p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.btn {
  border: 0; border-radius: 14px; padding: 14px 18px; cursor: pointer;
  font-weight: 700; transition: .2s transform, .2s opacity, .2s background;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; }
.btn--secondary { background: white; color: #181b21; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--block { width: 100%; }
.hero {
  position: relative; min-height: 460px; display: grid; align-items: end;
  background-image: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1600&q=80');
  background-size: cover; background-position: center;
}
.hero__overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(8,10,14,.82)); }
.hero__content {
  position: relative; z-index: 1; width: min(1200px, calc(100% - 24px)); margin: 0 auto; padding: 60px 0 44px;
}
.hero h2 { max-width: 680px; font-size: clamp(2rem, 5vw, 4rem); margin: 12px 0; }
.hero p { max-width: 560px; color: #d6dceb; font-size: 1.08rem; }
.hero__cta { display:flex; gap:12px; flex-wrap: wrap; }
.pill {
  display:inline-flex; padding: 8px 12px; border-radius: 999px; font-size: .88rem;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
}
.highlights {
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -38px; position: relative; z-index: 2;
}
.stat { padding: 22px; text-align: center; }
.stat strong { display:block; font-size:1.4rem; margin-bottom: 6px; }
.stat span { color: var(--muted); }
.layout { display:grid; grid-template-columns: 280px 1fr; gap: 18px; padding: 28px 0 60px; }
.sticky-box { position: sticky; top: 88px; padding: 18px; }
.sidebar h3 { margin: 0 0 10px; }
.input, select, textarea {
  width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 15px; outline: none; font: inherit;
}
.category-nav { display:flex; flex-direction: column; gap: 10px; }
.category-link {
  padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.category-link.active, .category-link:hover { color: white; border-color: rgba(255,107,44,.45); }
.section { margin-bottom: 28px; }
.section__head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 14px; }
.section__head h3, .section__head h2 { margin:0; }
.section__tag { padding: 8px 12px; border-radius: 999px; background: rgba(255,107,44,.1); color: #ffc4ae; border: 1px solid rgba(255,107,44,.2); font-size: .84rem; }
.product-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card { overflow:hidden; }
.product-card__image { height: 190px; background-size: cover; background-position: center; }
.product-card__body { padding: 16px; }
.product-card__top { display:flex; justify-content:space-between; gap:10px; align-items: flex-start; }
.product-card h4 { margin: 0 0 8px; font-size: 1.06rem; }
.product-card p { color: var(--muted); margin: 0 0 14px; min-height: 42px; font-size: .95rem; }
.product-card__footer { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.badge { padding: 6px 10px; border-radius:999px; font-size:.78rem; background: rgba(255,255,255,.08); border:1px solid var(--line); color: #ffd8c5; }
.price { font-weight: 800; }
.drawer, .modal { position: fixed; inset: 0; display:none; z-index: 100; }
.drawer.open, .modal.open { display:block; }
.drawer__backdrop, .modal__backdrop { position:absolute; inset:0; background: rgba(0,0,0,.6); }
.drawer__panel {
  position:absolute; right:0; top:0; height:100%; width:min(430px, 100%); background: #12161d; border-left:1px solid var(--line);
  display:flex; flex-direction:column;
}
.drawer__head, .drawer__footer { padding:18px; border-bottom:1px solid var(--line); }
.drawer__footer { border-bottom:0; border-top:1px solid var(--line); margin-top:auto; }
.icon-btn { background: transparent; color: var(--text); border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; }
.cart-items { padding: 16px; display:flex; flex-direction:column; gap:12px; overflow:auto; }
.cart-item { padding: 14px; display:grid; grid-template-columns: 1fr auto; gap: 12px; }
.cart-item small { color: var(--muted); display:block; margin-top: 6px; }
.summary-row { display:flex; justify-content:space-between; margin-bottom: 10px; }
.summary-row.total { font-size: 1.1rem; }
.cart-fab {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:white;
  border:0; border-radius: 999px; padding: 14px 16px; font-weight:800; cursor:pointer; box-shadow: var(--shadow);
}
.cart-fab--mobile { position: fixed; right: 16px; bottom: 16px; z-index: 70; }
.cart-fab--desktop { padding-inline: 18px; }
.modal__panel {
  position:relative; width:min(720px, calc(100% - 20px)); margin: 40px auto; background: #12161d; border-radius: 24px; border:1px solid var(--line);
  padding: 22px; max-height: calc(100vh - 80px); overflow:auto;
}
.modal__panel--small { width:min(640px, calc(100% - 20px)); }
.modal__close { position: sticky; top: 0; left: calc(100% - 42px); z-index: 3; }
.product-builder { display:grid; grid-template-columns: 280px 1fr; gap:20px; }
.product-builder__image { border-radius: 18px; min-height: 220px; background-size: cover; background-position:center; }
.option-group { margin-bottom: 14px; }
.option-group h4 { margin: 0 0 10px; }
.option-list { display:flex; flex-wrap:wrap; gap: 8px; }
.chip {
  padding: 10px 12px; border-radius: 999px; background: var(--panel-2); border:1px solid var(--line); cursor:pointer;
}
.chip.active { border-color: rgba(255,107,44,.6); background: rgba(255,107,44,.12); }
.checkout-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.muted { color: var(--muted); }
.admin-body { background: #0f1218; }
.admin-wrap { width:min(1100px, calc(100% - 24px)); margin: 24px auto; display:grid; gap:18px; }
.admin-card { padding: 20px; }
.admin-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-form { display:grid; gap: 12px; }
.admin-list { display:grid; gap: 10px; }
.admin-item { padding: 14px; display:flex; justify-content:space-between; gap:10px; align-items:center; }
@media (max-width: 980px) {
  .layout, .product-builder, .admin-grid, .checkout-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { display:none; }
}
@media (max-width: 720px) {
  .highlights, .layout, .product-grid, .product-builder, .checkout-grid, .admin-grid { grid-template-columns: 1fr; }
  .topbar { padding: 12px; }
  .topbar__actions .btn--ghost { display:none; }
  .cart-fab--desktop { display:none; }
  .hero { min-height: 400px; }
  .hero__content { padding-bottom: 30px; }
  .hero__cta { flex-direction: column; }
  .product-card__image { height: 210px; }
}
