/* ============================================================
   OBSIDIAN BIOTECH — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Barlow+Condensed:wght@300;400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --bg:           #000000;
  --bg-surface:   #0d0d0d;
  --bg-card:      #111111;
  --bg-hover:     #1a1a1a;
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.2);
  --text:         #ffffff;
  --text-muted:   rgba(255,255,255,0.45);
  --text-dim:     rgba(255,255,255,0.25);
  --accent:       #ffffff;
  --accent-hover: rgba(255,255,255,0.85);
  --danger:       #ff4444;
  --success:      #44bb44;

  --font-head: 'Barlow Condensed', eurostile-extended, eurostile, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius:   4px;
  --radius-lg: 8px;
  --max-w:    1200px;
  --nav-h:    110px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__logo img { height: 90px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__cart-btn {
  position: relative;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 8px;
}
.nav__cart-btn:hover { color: var(--text); }
.nav__cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.nav__cart-count.visible { display: flex; }
.nav__menu-btn {
  display: none;
  color: var(--text);
  padding: 8px;
}
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 24px;
  z-index: 999;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.page-body { padding-top: var(--nav-h); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn--outline:hover {
  background: var(--bg-hover);
  border-color: var(--text);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 16px;
}
.btn--ghost:hover { color: var(--text); }
.btn--full { width: 100%; }
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 1px;
}
h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 3vw, 32px); }
h4 { font-size: 18px; letter-spacing: 2px; }
.label {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.disclaimer {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* --- Product Card --- */
.product-card { display: flex; flex-direction: column; }
.product-card__image {
  aspect-ratio: 1;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.product-card__image--placeholder {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.product-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card__name {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.product-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
}
.badge--variant {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}
.product-card__price {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  margin-top: auto;
  padding-top: 12px;
}
.product-card__price small {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}
.product-card__footer { padding: 0 20px 20px; }

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* --- Product Detail --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-detail__image {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.product-detail__image img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-detail__image--placeholder {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.product-detail__info { display: flex; flex-direction: column; gap: 28px; }
.product-detail__name {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}
.product-detail__description { color: var(--text-muted); line-height: 1.7; }

/* Variant selector */
.variant-selector { display: flex; flex-direction: column; gap: 12px; }
.variant-selector__label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); }
.variant-options { display: flex; gap: 12px; }
.variant-option {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.variant-option:hover { border-color: var(--border-hover); }
.variant-option.selected {
  border-color: var(--text);
  background: rgba(255,255,255,0.04);
}
.variant-option__name {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.variant-option__price {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
}
.variant-option__price small { font-size: 12px; font-weight: 400; color: var(--text-muted); }

/* Quantity */
.qty-selector { display: flex; flex-direction: column; gap: 12px; }
.qty-selector__label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}
.qty-control button {
  width: 44px; height: 44px;
  font-size: 18px;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.qty-control button:hover { color: var(--text); background: var(--bg-hover); }
.qty-control input {
  width: 56px; height: 44px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
}
.qty-control input:focus { outline: none; }

/* --- Hero --- */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.hero__content { max-width: 700px; display: flex; flex-direction: column; gap: 24px; }
.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__title { text-transform: uppercase; }
.hero__body { color: var(--text-muted); font-size: 17px; max-width: 520px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Page Header --- */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-header__eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.page-header__title { text-transform: uppercase; }

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--border); }

/* --- Forms --- */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); }
.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus { outline: none; border-color: var(--border-hover); }
.form-input::placeholder { color: var(--text-dim); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--text);
  gap: 16px;
}
.faq-question svg { flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__logo img { height: 28px; }
.footer__tagline { font-size: 13px; color: var(--text-muted); max-width: 240px; }
.footer__heading {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Snipcart overrides --- */
#snipcart { z-index: 10000 !important; }
.snipcart-modal__container { background: var(--bg) !important; }

/* --- Dashboard --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.dashboard-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.dashboard-nav { display: flex; flex-direction: column; gap: 4px; }
.dashboard-nav a {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.dashboard-nav a:hover, .dashboard-nav a.active {
  background: var(--bg-card);
  color: var(--text);
}
.dashboard-section { display: flex; flex-direction: column; gap: 24px; }
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 12px;
}
.order-status {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}
.order-status--processing { background: rgba(255,200,0,0.15); color: #ffc800; }
.order-status--shipped { background: rgba(0,150,255,0.15); color: #0096ff; }
.order-status--delivered { background: rgba(68,187,68,0.15); color: var(--success); }

/* --- Responsive --- */
@media (max-width: 991px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .product-detail__image { position: static; aspect-ratio: 4/3; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}
@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .hero { min-height: 60vh; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .variant-options { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 479px) {
  .container { padding: 0 16px; }
  h1 { font-size: 32px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
