:root {
  --bg: #0b0d10;
  --surface: #14181f;
  --border: #232a35;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
body { background: var(--bg); color: var(--text); line-height: 1.5; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.topbar { border-bottom: 1px solid var(--border); background: rgba(11,13,16,0.95); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: 1px; }
.logo span { color: var(--accent); }
nav a { color: var(--muted); text-decoration: none; margin: 0 12px; font-size: 0.95rem; }
nav a:hover { color: var(--text); }

.cart-trigger { background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); text-align: center; }
.badge { display: inline-block; background: rgba(59,130,246,0.15); color: var(--accent); padding: 4px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: 2.3rem; max-width: 700px; margin: 0 auto 16px; }
.hero p { color: var(--muted); max-width: 580px; margin: 0 auto 28px; }

.btn-primary { display: inline-block; background: var(--accent); color: #fff; border: none; padding: 12px 22px; border-radius: 6px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary:hover { background: var(--accent-hover); }
.full-width { width: 100%; margin-top: 12px; }

.section { padding: 56px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.filter-btn { background: var(--surface); color: var(--muted); border: 1px solid var(--border); padding: 6px 14px; border-radius: 6px; cursor: pointer; }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.card-tag { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; font-weight: 700; }
.card h3 { margin: 8px 0; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; }
.price { font-size: 1.2rem; font-weight: 700; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; border-top: 1px solid var(--border); }
.info-card { background: var(--surface); padding: 22px; border-radius: 8px; border: 1px solid var(--border); }
.info-card h3 { margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 0.9rem; }

.faq-item { background: var(--surface); border: 1px solid var(--border); padding: 18px; border-radius: 8px; margin-top: 14px; }
.faq-item p { color: var(--muted); margin-top: 6px; font-size: 0.92rem; }

.drawer { position: fixed; top: 0; right: 0; width: 100%; max-width: 420px; height: 100vh; background: var(--surface); border-left: 1px solid var(--border); z-index: 50; display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
.hidden { display: none !important; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.close-btn { background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }
.drawer-body { flex: 1; padding: 16px 0; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.total-row { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: 16px; }

#checkout-form input, #checkout-form textarea, #checkout-form select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 10px; border-radius: 6px; margin: 8px 0; font-size: 0.9rem;
}
.checkbox-label { display: flex; gap: 8px; font-size: 0.8rem; color: var(--muted); margin-top: 8px; align-items: flex-start; }
.checkbox-label input { width: auto !important; margin-top: 3px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-content { background: var(--surface); border: 1px solid var(--border); padding: 28px; border-radius: 10px; max-width: 480px; width: 100%; }
.payment-box { background: var(--bg); border: 1px solid var(--border); padding: 14px; border-radius: 6px; margin: 16px 0; font-size: 0.9rem; word-break: break-all; }
.footer { border-top: 1px solid var(--border); padding: 28px 0; text-align: center; color: var(--muted); font-size: 0.85rem; }

.card-img { width: 100%; height: 190px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.thumb-row { display: flex; gap: 8px; margin-bottom: 12px; }
.thumb-img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: 0.65; border: 1px solid var(--border); }
.thumb-img.active-thumb, .thumb-img:hover { opacity: 1; border-color: var(--accent); }
