/* Renergence Shop — matches training portal design tokens */

:root {
  --font-title: 'Libre Baskerville', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --thread-renergence: #0D1164;
  --accent-renergence: #4A6FFF;
  --text-primary: #1e1a28;
  --text-body: #383340;
  --text-muted: #827a89;
  --surface-card: #ffffff;
  --border: #e4dde2;
  --bg: #f8f6fa;
}

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

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

/* Hero */
.shop-hero {
  background: linear-gradient(135deg, #0D1164 0%, #1a0d3d 50%, #640D5F 100%);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.shop-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* Main */
.shop-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.shop-section {
  margin-bottom: 3rem;
}

.shop-section h2 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

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

.product-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: var(--accent-renergence);
  box-shadow: 0 4px 16px rgba(13, 17, 100, 0.08);
}

.product-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--thread-renergence);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--thread-renergence);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1a1e7a;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-card {
  background: var(--surface-card);
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  position: relative;
}

.modal-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.modal-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.modal-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.modal-card input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.modal-card input[type="email"]:focus {
  border-color: var(--accent-renergence);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

/* Result pages (success/cancel) */
.result-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.result-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  text-align: center;
}

.result-card h1 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.result-card p {
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

/* Footer */
.shop-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.shop-footer a {
  color: var(--accent-renergence);
  text-decoration: none;
}

.shop-footer a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}
