/* ═══════════════════════════════════════════════════════════════════════════
   store-theme.css
   Shared dark-theme foundation for e-commerce pages:
   store.html · cart.html · checkout.html · my-orders.html · order-success.html
   Each page may override --max-width in its own :root block.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg-primary:   #0a0e1a;
  --bg-secondary: #0f1629;
  --bg-card:      linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(10, 14, 26, 0.95));
  --bg-card-hover:linear-gradient(145deg, rgba(20, 30, 50, 0.95), rgba(15, 20, 35, 0.98));
  --bg-glass:     rgba(15, 23, 42, 0.7);

  --accent-primary:   #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-tertiary:  #f472b6;
  --accent-gold:      #fbbf24;
  --accent-green:     #10b981;
  --accent-red:       #ef4444;

  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f472b6 100%);
  --gradient-gold:    linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);

  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-accent: rgba(0, 212, 255, 0.3);

  --shadow-md:   0 8px 25px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 15px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;

  /* Default layout — pages override this in their own :root */
  --max-width:    1200px;
  --header-height: 4rem;
}

/* ── Base Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* Ambient gradient overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ── Links ────────────────────────────────────────────────────────────────── */
a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent-tertiary);
}

/* ── Sticky Header ────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  font-size: 1.5rem;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-primary);
}

/* ── Main Content Area ────────────────────────────────────────────────────── */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
}

/* ── Card Shell ───────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Toast Notifications ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: st-slideIn 0.3s ease;
  min-width: 280px;
}

@keyframes st-slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.toast.success { border-color: var(--accent-green); }
.toast.error   { border-color: var(--accent-red);   }

.toast-icon    { font-size: 1.2rem; }
.toast-message { flex: 1; font-size: 0.9rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 48px;
}

/* ── Responsive: hide nav on mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
}
