/* ═══════════════════════════════════════════════════
   Tirze Pharma — Global Styles
   ═══════════════════════════════════════════════════ */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f0a1a;
  --dark-card: #1a1128;
  --dark-surface: #231836;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(124, 58, 237, 0.2);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

/* ─── Navbar ─────────────────────────────────── */
.navbar {
  background: rgba(15, 10, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  padding: 0 2rem;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-size: 1.4rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  display: flex; align-items: center; gap: 8px;
}
.navbar-brand span { font-size: 1.6rem; }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a { color: var(--text); font-weight: 500; font-size: .9rem; }
.navbar-links a:hover { color: var(--primary-light); }
.nav-cart {
  position: relative; background: var(--dark-surface);
  padding: 8px 14px; border-radius: 8px;
  display: flex; align-items: center; gap: 6px;
}
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Hero ────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--dark) 0%, #1a0f2e 50%, #0d1b2a 100%);
  padding: 4rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(124,58,237,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(14,165,233,0.1) 0%, transparent 50%);
  animation: heroFloat 12s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-20px)} }
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(124,58,237,0.2);
  border: 1px solid var(--border); padding: 6px 16px; border-radius: 20px;
  font-size: .8rem; color: var(--primary-light); margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 .highlight { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 550px; margin-left: auto; margin-right: auto; }

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: all .3s;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,58,237,0.6); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline {
  background: transparent; border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ─── Section ─────────────────────────────────── */
.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 2rem; }
.section-subtitle { color: var(--text-muted); text-align: center; margin-top: -1rem; margin-bottom: 2rem; }

/* ─── Product Grid ────────────────────────────── */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; transition: all .3s;
  position: relative;
}
.product-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.2);
}
.product-card-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--primary); color: #fff;
  font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 6px;
}
.product-card-img {
  width: 100%; height: 160px; object-fit: contain;
  margin-bottom: 1rem; border-radius: 8px;
  background: var(--dark-surface); display: flex; align-items: center; justify-content: center;
}
.product-card-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.product-card-dose { color: var(--text-muted); font-size: .85rem; margin-bottom: 12px; }
.product-card-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.product-card-price .current { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.product-card-price .old { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; }
.product-card-stock { font-size: .75rem; color: var(--success); margin-bottom: 12px; }
.product-card-stock.out { color: var(--danger); }

/* ─── Trust Section ───────────────────────────── */
.trust-section { background: var(--dark-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 3rem 2rem;
}
.trust-item { text-align: center; }
.trust-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.trust-item h3 { font-size: 1rem; margin-bottom: 4px; }
.trust-item p { color: var(--text-muted); font-size: .85rem; }

/* ─── FAQ ─────────────────────────────────────── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden;
}
.faq-q {
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s;
}
.faq-q:hover { background: var(--dark-surface); }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--primary-light); }
.faq-q.active::after { content: '−'; }
.faq-a { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: all .3s; color: var(--text-muted); }
.faq-a.open { padding: 1rem 1.5rem; max-height: 300px; border-top: 1px solid var(--border); }

/* ─── Forms ───────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 4px; font-size: .9rem; }
.form-control {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--dark-card);
  color: var(--text); font-size: .95rem; transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-error { color: var(--danger); font-size: .8rem; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── Alerts ──────────────────────────────────── */
.alert {
  padding: 12px 20px; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem;
}
.alert-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-danger { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.alert-info { background: rgba(14,165,233,0.15); border: 1px solid rgba(14,165,233,0.3); color: #7dd3fc; }

/* ─── Footer ──────────────────────────────────── */
.footer {
  background: var(--dark-card); border-top: 1px solid var(--border);
  padding: 2rem; text-align: center; color: var(--text-muted); font-size: .8rem;
}
.footer a { color: var(--primary-light); }

/* ─── Cards / Auth ────────────────────────────── */
.auth-container { max-width: 440px; margin: 3rem auto; padding: 0 1rem; }
.auth-card {
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.auth-card h2 { text-align: center; margin-bottom: 1.5rem; }
.auth-links { text-align: center; margin-top: 1rem; font-size: .9rem; }
.auth-links a { color: var(--primary-light); }

/* ─── Page Header ─────────────────────────────── */
.page-header {
  background: var(--dark-card); border-bottom: 1px solid var(--border);
  padding: 2rem; text-align: center;
}
.page-header h1 { font-size: 1.6rem; font-weight: 700; }

/* ─── Utilities ───────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .justify-between { justify-content: space-between; } .items-center { align-items: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.d-none { display: none; }

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .navbar-inner { padding: 0 1rem; }
  .navbar-links { gap: 1rem; font-size: .85rem; }
  .hero { padding: 2.5rem 1rem; }
  .section { padding: 2rem 1rem; }
  .products-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
