/* ──────────────────────────────────────────────────────────────
  Extracted styles from index.html
────────────────────────────────────────────────────────────── */

/* ─── COLOUR PALETTE ─────────────────────────────────────── */
:root {
  --cream:        #F7F0E6;   /* page background */
  --warm-white:   #FDFAF5;   /* card backgrounds */
  --olive:        #5C6B3A;   /* primary green */
  --olive-light:  #7A8C52;
  --terra:        #C4633A;   /* accent orange-red */
  --terra-light:  #E07B52;
  --brown:        #3D2B1F;   /* dark text / nav */
  --brown-light:  #6B4C3B;
  --sage:         #A8B89A;   /* muted green */
  --gold:         #D4A847;   /* highlight gold */
  --text:         #2C1F14;   /* body text */
}

/* ─── RESET & BASE ───────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
nav {
  background: var(--brown);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--gold); }
.logo span { color: var(--cream); font-style: italic; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--sage); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--cream); }
.admin-btn { background: var(--terra) !important; color: var(--cream) !important;
  padding: 8px 18px; border-radius: 6px; cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase; }

/* ─── HERO SECTION ───────────────────────────────────────── */
.hero { background: var(--brown); color: var(--cream); padding: 80px 40px;
  text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(196,99,58,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(92,107,58,0.3) 0%, transparent 55%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(212,168,71,0.2); border: 1px solid var(--gold);
  color: var(--gold); font-size: 0.75rem; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 24px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--terra-light); }
.hero p { font-size: 1.1rem; color: var(--sage); line-height: 1.7;
  max-width: 520px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-primary { background: var(--terra); color: var(--cream); padding: 14px 32px;
  border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 1rem;
  font-weight: 500; cursor: pointer; transition: background 0.2s, transform 0.15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--terra-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--cream); padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,0.3); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; cursor: pointer;
  transition: border-color 0.2s, background 0.2s; }
.btn-secondary:hover { border-color: var(--cream); background: rgba(255,255,255,0.05); }

/* ─── LIVE STATS BAR ──────────────────────────────────────── */
/* Numbers are pulled from localStorage and updated on each order */
.stats-bar { background: var(--olive); padding: 20px 40px;
  display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat { text-align: center; color: var(--cream); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

/* ─── SECTION LAYOUT ──────────────────────────────────────── */
.section { padding: 70px 40px; max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem;
  color: var(--brown); margin-bottom: 12px; }
.section-header p { color: var(--brown-light); font-size: 1rem; }
.divider { width: 60px; height: 3px; background: var(--terra); margin: 14px auto; border-radius: 2px; }

/* ─── PRODUCT CARDS ───────────────────────────────────────── */
.box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.box-card { background: var(--warm-white); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(92,107,58,0.15); transition: box-shadow 0.2s, transform 0.2s; position: relative; }
.box-card:hover { box-shadow: 0 12px 40px rgba(61,43,31,0.12); transform: translateY(-3px); }
.box-card-image { height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative; }
.box-card-image.preorder  { background: linear-gradient(135deg, #D4A847 0%, #C4633A 100%); }
.box-card-image.donate    { background: linear-gradient(135deg, #5C6B3A 0%, #3D5C2A 100%); }
.box-card-image.family    { background: linear-gradient(135deg, #8B5E3C 0%, #6B3F2A 100%); }
.box-badge { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.95);
  color: var(--brown); font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 10px; border-radius: 50px; }
.box-card-body { padding: 24px; }
.box-type { font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; color: var(--terra); margin-bottom: 6px; }
.box-card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem;
  color: var(--brown); margin-bottom: 10px; }
.box-card-body p { font-size: 0.9rem; color: var(--brown-light); line-height: 1.6; margin-bottom: 16px; }
.box-items { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.box-item-tag { background: var(--cream); border: 1px solid rgba(92,107,58,0.2);
  font-size: 0.75rem; color: var(--olive); padding: 3px 10px; border-radius: 50px; }
.box-price-row { display: flex; justify-content: space-between; align-items: center; }
.box-price { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--brown); }
.box-price span { font-size: 0.9rem; font-family: 'DM Sans', sans-serif; color: var(--brown-light); }
.order-btn { background: var(--olive); color: var(--cream); padding: 10px 22px;
  border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  font-weight: 500; cursor: pointer; transition: background 0.2s; }
.order-btn:hover { background: var(--olive-light); }
.order-btn.donate-btn { background: var(--terra); }
.order-btn.donate-btn:hover { background: var(--terra-light); }

/* ─── ORDER MODAL ─────────────────────────────────────────── */
/* Full-screen overlay with centred modal card */
.modal-overlay { display: none; position: fixed; inset: 0;
  background: rgba(61,43,31,0.7); z-index: 1000;
  align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal { background: var(--warm-white); border-radius: 20px; padding: 40px;
  max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--brown-light); }
.modal h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--brown); margin-bottom: 6px; }
.modal-subtitle { color: var(--brown-light); font-size: 0.9rem; margin-bottom: 28px; }

/* ─── FORM ELEMENTS ───────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--brown); margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 11px 14px;
  border: 1.5px solid rgba(92,107,58,0.25); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text);
  background: white; transition: border-color 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--olive); }
.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--olive);
  background: none; color: var(--olive); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s; flex-shrink: 0; }
.qty-btn:hover { background: var(--olive); color: white; }
.qty-display { font-size: 1.2rem; font-weight: 600; min-width: 30px; text-align: center; }

/* ─── ORDER SUMMARY BOX ───────────────────────────────────── */
.order-summary { background: var(--cream); border-radius: 10px; padding: 16px; margin: 20px 0; }
.summary-row { display: flex; justify-content: space-between;
  font-size: 0.9rem; margin-bottom: 6px; color: var(--brown-light); }
.summary-row.total { font-weight: 600; color: var(--brown); font-size: 1rem;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(92,107,58,0.2); margin-bottom: 0; }

/* ─── STRIPE CARD ELEMENT ─────────────────────────────────── */
/* Stripe injects an iframe into #card-element */
.payment-section { margin-top: 20px; }
.payment-section h3 { font-size: 0.9rem; font-weight: 600; color: var(--brown);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
#card-element { padding: 12px 14px; border: 1.5px solid rgba(92,107,58,0.25);
  border-radius: 8px; background: white; }
#card-errors { color: #c0392b; font-size: 0.85rem; margin-top: 8px; min-height: 20px; }
.stripe-note { font-size: 0.75rem; color: var(--brown-light); margin-top: 8px;
  display: flex; align-items: center; gap: 4px; }
.submit-btn { width: 100%; background: var(--terra); color: white; padding: 15px;
  border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 1rem;
  font-weight: 600; cursor: pointer; margin-top: 20px; transition: background 0.2s, transform 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.submit-btn:hover:not(:disabled) { background: var(--terra-light); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── TOAST NOTIFICATION ──────────────────────────────────── */
/* Appears bottom-right to confirm emails / telegram sent */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--olive);
  color: white; padding: 14px 20px; border-radius: 10px; font-size: 0.9rem;
  z-index: 9999; display: none; animation: fadeInUp 0.3s ease;
  max-width: 320px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.toast.error { background: #c0392b; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ─── SUCCESS SCREEN ──────────────────────────────────────── */
.success-screen { text-align: center; padding: 20px; }
.success-icon { width: 72px; height: 72px; background: linear-gradient(135deg, var(--olive), var(--olive-light));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 20px; }
.success-screen h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--brown); margin-bottom: 10px; }
.success-screen p { color: var(--brown-light); line-height: 1.6; margin-bottom: 24px; }
.order-ref { background: var(--cream); border-radius: 8px; padding: 12px 20px;
  font-family: monospace; font-size: 1rem; color: var(--olive); letter-spacing: 2px;
  margin-bottom: 24px; display: inline-block; }

/* ─── ADMIN PANEL ─────────────────────────────────────────── */
#admin-section { display: none; background: var(--brown); min-height: 100vh; padding: 40px; }
#admin-section.visible { display: block; }
.admin-header { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.admin-header h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); }
admin-header p { color: var(--sage); font-size: 0.9rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 36px; }
.admin-stat-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 20px; }
.admin-stat-card .num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold); margin-bottom: 4px; }
.admin-stat-card .lbl { color: var(--sage); font-size: 0.85rem; }
.orders-table { background: rgba(255,255,255,0.04); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
thead { background: rgba(255,255,255,0.08); }
th { text-align: left; padding: 14px 18px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: var(--sage); }
td { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; color: var(--cream); }
tr:hover td { background: rgba(255,255,255,0.03); }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 500; }
.status-preorder { background: rgba(212,168,71,0.2); color: var(--gold); }
.status-donate   { background: rgba(92,107,58,0.3); color: #A8C87A; }
.clear-btn { background: rgba(196,99,58,0.25); border: 1px solid rgba(196,99,58,0.4);
  color: var(--terra-light); padding: 8px 18px; border-radius: 6px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; transition: background 0.2s; }
.clear-btn:hover { background: rgba(196,99,58,0.4); }
.no-orders { text-align: center; padding: 40px; color: var(--sage); }

/* ─── HOW IT WORKS ────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 10px; }
.step { text-align: center; padding: 10px; }
.step-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--olive), var(--olive-light));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 16px; }
.step h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--brown); margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--brown-light); line-height: 1.6; }

/* ─── ADMIN LOGIN OVERLAY ─────────────────────────────────── */
#admin-login { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
#admin-login.active { display: flex; }
.login-box { background: var(--warm-white); border-radius: 16px; padding: 36px;
  max-width: 360px; width: 100%; text-align: center; }
.login-box h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--brown); margin-bottom: 8px; }
.login-box p { color: var(--brown-light); font-size: 0.875rem; margin-bottom: 24px; }
.login-error { color: #c0392b; font-size: 0.85rem; margin-top: 10px; min-height: 20px; }

/* ─── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--brown); color: var(--sage); text-align: center; padding: 30px 40px; font-size: 0.85rem; }
footer strong { color: var(--gold); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media(max-width: 600px) {
  nav { padding: 14px 20px; }
  .hero { padding: 50px 20px; }
  .section { padding: 50px 20px; }
  .stats-bar { gap: 30px; }
  .modal { padding: 28px 22px; }
  #admin-section { padding: 24px 16px; }
}
