@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #FAF6EC;
  --surface: #FFFFFF;
  --border: #E8E0CE;
  --ink: #14101F;
  --ink-soft: #6B6478;
  --ink-muted: #9C96A6;
  --purple: #6B2FBE;
  --purple-dark: #4F2192;
  --indigo: #2B1FA6;
  --teal: #3FD9C4;
  --teal-dark: #1F9E8F;
  --danger: #B23B3B;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: 1160px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  background: #0A0812;
  border-radius: 10px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-badge img { width: 30px; height: 30px; object-fit: contain; }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.1; letter-spacing: -0.01em; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.07em; }

.nav-links { display: flex; gap: 26px; align-items: center; font-size: 14px; font-weight: 500; }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--purple); }
.nav-cart { display: flex; align-items: center; gap: 6px; }
.badge {
  background: linear-gradient(135deg, var(--purple), var(--teal-dark));
  color: #fff; font-family: var(--font-mono); font-size: 11px;
  padding: 1px 6px; border-radius: 10px;
}

/* ---- Hero ---- */
.hero { padding: 64px 24px 48px; max-width: 1160px; margin: 0 auto; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--purple);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display); font-size: 46px; font-weight: 600;
  letter-spacing: -0.01em; margin: 0 0 16px; max-width: 640px;
}
.hero p { color: var(--ink-soft); font-size: 17px; max-width: 520px; margin: 0 0 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 22px; border-radius: 8px; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(107,47,190,0.28); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); background: transparent; box-shadow: none; transform: none; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---- Section heading ---- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 20px; }
.section-head h2 { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin: 0; }
.section-head a { font-size: 13px; color: var(--purple); font-weight: 600; }

/* ---- Category chips ---- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 20px; background: var(--surface);
  color: var(--ink-soft); transition: border-color 0.15s ease, color 0.15s ease;
}
.chip.active, .chip:hover { border-color: var(--purple); color: var(--purple); }

/* ---- Product grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,16,31,0.08); border-color: var(--border); }
.card-img {
  aspect-ratio: 4/3; background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; border-bottom: 1px solid var(--border);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-brand { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin: 0 0 10px; }
.spec-strip {
  display: flex; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border);
  margin: 4px 0 12px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft);
}
.spec-strip span { flex: 1; padding: 6px 0; text-align: center; border-right: 1px dashed var(--border); }
.spec-strip span:last-child { border-right: none; }
.card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-mono); font-weight: 500; font-size: 17px; color: var(--purple-dark); }
.price-old { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); text-decoration: line-through; margin-right: 6px; }
.stock-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-dark); margin-right: 5px; }
.stock-dot.out { background: var(--danger); }
.stock-label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }

/* ---- Product detail ---- */
.pd-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; padding: 40px 0 64px; }
.pd-gallery {
  aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-muted);
  font-family: var(--font-mono); font-size: 13px; overflow: hidden; cursor: zoom-in;
}
.pd-gallery img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
  transition: transform 0.35s ease;
}
.pd-gallery:hover img { transform: scale(1.18); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 64px; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); background: var(--surface); cursor: pointer; flex-shrink: 0;
  transition: border-color 0.15s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: var(--purple); }
.pd-thumb:hover { border-color: var(--purple); }

.pd-video-block { margin-top: 48px; }
.pd-video-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--purple); margin: 0 0 8px;
}
.pd-video-wrap {
  aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: #000;
}
.pd-video-wrap video { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin: 4px 0 8px; }
.pd-sku { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin-bottom: 20px; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.pd-price { font-family: var(--font-mono); font-size: 28px; font-weight: 500; color: var(--purple-dark); }
.pd-desc { color: var(--ink-soft); margin-bottom: 24px; }

.datasheet { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.datasheet-row { display: flex; font-size: 13px; border-bottom: 1px solid var(--border); }
.datasheet-row:last-child { border-bottom: none; }
.datasheet-row .k { width: 40%; padding: 10px 14px; background: var(--bg); font-family: var(--font-mono); color: var(--ink-soft); border-right: 1px solid var(--border); }
.datasheet-row .v { width: 60%; padding: 10px 14px; font-family: var(--font-mono); }

.variant-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.variant-pill {
  font-family: var(--font-mono); font-size: 12px; padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; background: var(--surface); transition: border-color 0.15s ease;
}
.variant-pill input { display: none; }
.variant-pill:has(input:checked) { border-color: var(--purple); color: var(--purple-dark); background: #F3ECFB; }

.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-row input { width: 60px; font-family: var(--font-mono); padding: 8px; border: 1px solid var(--border); border-radius: 8px; }

/* ---- Cart / Checkout ---- */
.cart-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-thumb {
  width: 72px; height: 72px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-family: var(--font-mono); font-size: 10px; overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; }
.cart-info .name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.cart-info .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--ink-soft); font-family: var(--font-mono); }
.summary-row.total { font-size: 18px; color: var(--ink); font-weight: 500; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }

/* ---- Forms ---- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; max-width: 440px; margin: 48px auto; }
.form-card h1 { font-family: var(--font-display); font-size: 25px; margin: 0 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 14px; background: var(--surface); color: var(--ink);
}
.field textarea { resize: vertical; }
.helptext { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.errorlist { color: var(--danger); font-size: 12px; list-style: none; padding: 0; margin: 4px 0 0; }
.form-footer { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 16px; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: #EAF8F4; color: var(--teal-dark); border: 1px solid #C6EEE4; }
.alert-error { background: #FBEAEA; color: var(--danger); border: 1px solid #F0C4C4; }

.empty-state { text-align: center; padding: 80px 24px; color: var(--ink-soft); }
.empty-state h2 { font-family: var(--font-display); color: var(--ink); }

.order-row {
  display: flex; justify-content: space-between; align-items: center; padding: 16px;
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; background: var(--surface);
}
.order-row .num { font-family: var(--font-mono); font-weight: 500; }
.status-pill { font-family: var(--font-mono); font-size: 11px; padding: 3px 10px; border-radius: 12px; text-transform: uppercase; background: var(--bg); color: var(--ink-soft); }
.status-pill.delivered { background: #EAF8F4; color: var(--teal-dark); }
.status-pill.cancelled { background: #FBEAEA; color: var(--danger); }

/* ---- Homepage sections ---- */
.section-block { margin: 56px 0; }
.about-section { margin: 24px 0 56px; }
.about-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.about-img { background: #0A0812; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.about-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.about-body { padding: 32px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.about-grid h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--purple); margin: 0 0 6px; }
.about-grid p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 20px; text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,16,31,0.08); border-color: var(--purple); }
.category-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, #F3ECFB, #E3FBF7);
  display: flex; align-items: center; justify-content: center; color: var(--purple-dark);
}
.category-icon svg { width: 26px; height: 26px; stroke: currentColor; }
.category-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.category-desc { font-size: 12.5px; color: var(--ink-muted); }

.shop-section { padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }

/* ---- Ad section ---- */
.ad-section { margin: 40px 0; }
.ad-eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--purple);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ad-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(20,16,31,0.04);
}
.ad-media-link { display: block; }
.ad-media { aspect-ratio: 16/9; background: #0A0812; overflow: hidden; }
.ad-media img, .ad-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-media-video video { object-fit: contain; background: #0A0812; }
.ad-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.ad-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-muted); border: 1px solid var(--border);
  border-radius: 10px; padding: 2px 8px; margin-bottom: 8px;
}
.ad-advertiser { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.ad-caption { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.ad-learn-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--purple); }

.ad-placeholder {
  aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 10px, var(--bg) 10px, var(--bg) 20px);
  padding: 24px; text-align: center;
}
.ad-placeholder-icon { color: var(--ink-muted); }
.ad-placeholder-icon svg { width: 34px; height: 34px; stroke: currentColor; }
.ad-placeholder-title { font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); font-size: 15px; }
.ad-placeholder-link { font-family: var(--font-mono); font-size: 12px; color: var(--purple); }
footer.site-footer {
  background: #0A0812; color: #D9D3E8; margin-top: 72px; padding: 56px 24px 28px;
}
.footer-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; object-fit: contain; }
.footer-brand-text { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #fff; }
.footer-tagline { color: #9C93B5; font-size: 13px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: #9C93B5; margin: 0 0 14px; }
.footer-col a, .footer-col p { display: block; color: #D9D3E8; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { max-width: 1160px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-family: var(--font-mono); font-size: 11px; color: #7A7189; text-align: center; }
.footer-bottom .powered { margin-top: 6px; }
.footer-bottom .powered a { color: var(--teal); }

/* ---- Social links ---- */
.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #D9D3E8;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-row a:hover { background: linear-gradient(135deg, var(--purple), var(--teal-dark)); color: #fff; transform: translateY(-2px); }
.social-row a svg { width: 17px; height: 17px; stroke: currentColor; }
.social-row-light a { background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft); }
.social-row-light a:hover { color: #fff; border-color: transparent; }

/* ---- Contact page ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0 64px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.contact-card h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--purple); margin: 0 0 8px; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.map-placeholder {
  background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 10px, var(--bg) 10px, var(--bg) 20px);
  border: 1px solid var(--border); border-radius: 12px; height: 220px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-muted);
  font-family: var(--font-mono); font-size: 12px;
}

/* ---- Chat widget ---- */
.chat-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--teal-dark));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 20px rgba(20,16,31,0.25);
  border: none; transition: transform 0.15s ease;
}
.chat-bubble:hover { transform: scale(1.06); }
.chat-bubble svg { width: 26px; height: 26px; }
.chat-unread-dot {
  position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--bg); display: none;
}
.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 50;
  width: 340px; max-width: calc(100vw - 48px); height: 440px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(20,16,31,0.22);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: #0A0812; color: #fff; padding: 14px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-header button { background: none; border: none; color: #D9D3E8; cursor: pointer; font-size: 16px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.chat-msg.mine { align-self: flex-end; background: linear-gradient(135deg, var(--purple), var(--indigo)); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg.theirs { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.chat-msg .meta { font-family: var(--font-mono); font-size: 9px; opacity: 0.7; margin-top: 3px; }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 20px; font-family: var(--font-body); font-size: 13px; }
.chat-input-row button {
  background: linear-gradient(135deg, var(--purple), var(--teal-dark)); color: #fff; border: none;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-empty { color: var(--ink-muted); font-size: 12px; text-align: center; margin-top: 30px; font-family: var(--font-mono); }

/* ---- Admin chat inbox ---- */
.inbox-layout { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-height: 520px; }
.inbox-list { border-right: 1px solid var(--border); background: var(--surface); overflow-y: auto; }
.inbox-thread-item { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.inbox-thread-item:hover, .inbox-thread-item.active { background: var(--bg); }
.inbox-thread-item .name { font-weight: 600; font-size: 14px; }
.inbox-thread-item .preview { font-size: 12px; color: var(--ink-soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-thread-item .unread-badge { background: var(--danger); color: #fff; font-size: 10px; font-family: var(--font-mono); border-radius: 10px; padding: 1px 6px; float: right; }
.inbox-conversation { display: flex; flex-direction: column; background: var(--bg); }

/* ---- Mobile nav toggle ---- */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--ink); width: 36px; height: 36px; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-close { display: none; }
.nav-overlay { display: none; }

/* =========================================================
   RESPONSIVE — TABLET (<=1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .pd-layout { gap: 32px; }
  .about-card { grid-template-columns: 1fr; }
  .about-img { min-height: 220px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .ad-grid { gap: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .contact-layout { gap: 32px; }
  .hero h1 { font-size: 38px; }
}

/* =========================================================
   RESPONSIVE — MOBILE & SMALL TABLET (<=760px)
   ========================================================= */
@media (max-width: 760px) {
  .pd-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 20px 36px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .container { padding: 0 16px; }

  /* Hamburger nav */
  .nav-inner { padding: 10px 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -280px; width: 260px; height: 100vh;
    background: var(--surface); flex-direction: column; align-items: flex-start;
    padding: 70px 24px 24px; gap: 4px; box-shadow: -12px 0 32px rgba(20,16,31,0.18);
    transition: right 0.25s ease; z-index: 50; overflow-y: auto;
  }
  .nav-links a, .nav-links .nav-cart {
    width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px;
  }
  .nav-links .btn { width: 100%; margin-top: 8px; }
  .nav-links.open { right: 0; }
  .nav-close {
    display: block; position: absolute; top: 16px; right: 18px; background: none; border: none;
    font-size: 26px; line-height: 1; color: var(--ink-soft); cursor: pointer;
  }
  .nav-overlay.open {
    display: block; position: fixed; inset: 0; background: rgba(10,8,18,0.4); z-index: 45;
  }

  /* Homepage sections */
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-body { padding: 22px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-grid { grid-template-columns: 1fr; }
  .shop-section { padding: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Product grid */
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .card-title { font-size: 14px; }
  .spec-strip { font-size: 10px; }

  /* Product detail */
  .pd-title { font-size: 24px; }
  .pd-price { font-size: 22px; }
  .variant-row { gap: 6px; }

  /* Cart */
  .cart-item { flex-wrap: wrap; }
  .cart-item form { width: 100%; margin-top: 8px; justify-content: flex-end; }

  /* Checkout / forms */
  .form-card { margin: 24px auto; padding: 24px 20px; }

  /* Chat widget */
  .chat-bubble { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .chat-panel { bottom: 82px; right: 16px; width: calc(100vw - 32px); height: 65vh; max-height: 460px; }

  /* Admin inbox */
  .inbox-layout { grid-template-columns: 1fr; min-height: 0; }
  .inbox-list { max-height: 220px; }

  footer.site-footer { padding: 40px 16px 24px; }
}

/* =========================================================
   RESPONSIVE — SMALL PHONES (<=420px)
   ========================================================= */
@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .category-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
  .logo-text { font-size: 16px; }
  .logo-badge { width: 36px; height: 36px; }
  .datasheet-row .k, .datasheet-row .v { padding: 8px 10px; font-size: 12px; }
  .chat-panel { height: 70vh; }
}

/* ---- Wishlist button ---- */
.wishlist-btn.active { color: var(--purple); border-color: var(--purple); background: #F3ECFB; }

/* ---- Reviews section ---- */
.reviews-section { margin: 48px 0 64px; }
.reviews-summary { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 2px; }
.star { color: var(--border); font-size: 15px; }
.star.filled { color: #E0A63E; }

.review-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; margin-bottom: 24px;
}
.review-form-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 12px; }
.star-picker input { display: none; }
.star-choice { font-size: 24px; color: var(--border); cursor: pointer; transition: color 0.1s ease; }
.star-picker input:checked ~ .star-choice,
.star-picker label:has(input:checked) ~ label .star-choice,
.star-picker label:hover .star-choice,
.star-picker label:hover ~ label .star-choice { color: #E0A63E; }
.review-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 14px; resize: vertical; margin-bottom: 12px;
}

.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.review-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-stars { display: flex; gap: 1px; }
.review-stars .star { font-size: 13px; }
.review-author { font-weight: 600; font-size: 13px; }
.review-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.review-comment { font-size: 14px; color: var(--ink-soft); margin: 0; }
