:root{
  --bg:#f7f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;
  --brand:#0b1b2b;
  --brand-2:#111827;
  --accent:#0ea5e9;
  --accent-2:#22c55e;
  --danger:#ef4444;
  --radius:18px;
  --shadow:0 6px 22px rgba(15, 23, 42, .08);
  font-synthesis: style;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
header{
  position:sticky;top:0;z-index:20;
  background:#fff;border-bottom:1px solid var(--line);
}
.nav{
  height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.brand{font-weight:700;letter-spacing:.3px}
.nav-right{display:flex;align-items:center;gap:8px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line);
  background:#fff;cursor:pointer;font-weight:600;font-size:14px;
}
.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn.ghost{background:transparent}
.btn.small{height:32px;font-size:13px}
.btn:disabled{opacity:.6;cursor:not-allowed}
.badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:22px;height:22px;border-radius:999px;background:var(--brand);color:#fff;
  font-size:12px;font-weight:700;padding:0 6px;
}

/* Hero */
.hero{
  margin:18px 0 8px;
  background:linear-gradient(180deg,#ffffff, #f4f6fb);
  border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);
  display:grid;grid-template-columns:1.2fr .8fr;gap:14px;overflow:hidden;
}
.hero-content{padding:28px}
.hero h1{margin:0 0 8px;font-size:32px}
.hero p{margin:0 0 14px;color:var(--muted)}
.hero-actions{display:flex;gap:8px;flex-wrap:wrap}
.hero-img{
  min-height:220px;background:#eee;background-size:cover;background-position:center;
}
.hero-img img{width:100%;height:100%;object-fit:cover}

/* Shop */
.section-title{margin:22px 0 10px;font-size:20px}
.grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;
}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;
}
.card-img{aspect-ratio:16/10;background:#f1f5f9}
.card-img img{width:100%;height:100%;object-fit:contain}
.card-body{padding:14px 14px 10px;display:flex;flex-direction:column;gap:6px;flex:1}
.card-title{font-weight:700}
.price{font-weight:800}
.subtitle{font-size:13px;color:var(--muted)}
.specs{font-size:12.5px;color:#111827}
.specs .label{color:var(--muted)}
.specs ul{margin:6px 0 0 16px}
.card-actions{display:flex;gap:8px;padding:0 14px 14px}

/* Cart drawer */
.cart-drawer{
  position:fixed;top:0;right:-420px;width:400px;max-width:95vw;height:100vh;
  background:#fff;border-left:1px solid var(--line);box-shadow:var(--shadow);
  transition:right .25s ease;z-index:50;display:flex;flex-direction:column;
}
.cart-drawer.open{right:0}
.cart-header{padding:14px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.cart-items{padding:10px 14px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:10px}
.cart-item{
  display:grid;grid-template-columns:64px 1fr auto;gap:8px;align-items:center;
  border:1px solid var(--line);border-radius:12px;padding:6px;
}
.cart-item img{width:64px;height:48px;object-fit:contain;background:#f8fafc;border-radius:8px}
.cart-footer{border-top:1px solid var(--line);padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.total-row{display:flex;justify-content:space-between;font-weight:800}

/* Modal */
.modal-backdrop{
  position:fixed;inset:0;background:rgba(15,23,42,.5);display:none;align-items:center;justify-content:center;z-index:60;
}
.modal-backdrop.show{display:flex}
.modal{
  width:min(640px,95vw);background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);
  padding:16px;
}
.modal h3{margin:0 0 8px}
.modal .row{display:flex;gap:10px;flex-wrap:wrap}
.modal label{font-size:13px;color:var(--muted);font-weight:700}
input, textarea, select{
  width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;font-size:14px;font-family:inherit;
}
textarea{min-height:120px;resize:vertical}

/* Quote dropdown */
.dropdown{position:relative;display:inline-block}
.dropdown-menu{
  position:absolute;top:44px;right:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);
  min-width:180px;display:none;overflow:hidden;z-index:30;
}
.dropdown-menu.show{display:block}
.dropdown-menu button{
  width:100%;border:0;background:#fff;padding:10px 12px;text-align:left;cursor:pointer;font-weight:600;
}
.dropdown-menu button:hover{background:#f8fafc}

@media (max-width: 900px){
  .hero{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 560px){
  .grid{grid-template-columns:1fr}
  .hero h1{font-size:26px}
}