:root {
  /* Theme Colors */
  --bg: #f7f5f0;          
  --card-bg: #fffbf6;     
  --primary: #5c4033;     
  --primary-hover: #4a332a;
  --accent: #c2a689;      
  --text-main: #2b221e;   
  --text-muted: #78685f;  
  --border: #e6e0d6;
  --success: #6b8e23;
  --danger: #d9534f;
  
  --radius: 12px;
  --container: 1100px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(#e3ddd3 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .brand-name, .btn {
  font-family: 'Outfit', sans-serif;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Updated Product Grid to fit 4 on one line */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

@media(min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card Styles */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(92, 64, 51, 0.12);
  border-color: var(--accent);
}

.card.popular {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 40px rgba(194, 166, 137, 0.2);
}

.card.most-popular {
  border: 2px solid var(--primary);
  background: #fffdfa;
  box-shadow: 0 10px 40px rgba(92, 64, 51, 0.15);
}

/* Donation Card Specifics */
.donation-wrapper {
  max-width: 400px;
  margin: 40px auto 0; /* Center horizontally */
}

.card.donation {
  border: 1px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
  background: linear-gradient(to bottom, #fffbf0, #fff);
}
.card.donation:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  transform: translateY(-3px);
}

.card-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 1.1rem; margin-bottom: 4px; color: var(--primary); }
.card-type { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px; }
.price { font-weight: 700; font-size: 1.1rem; }

/* Stats Section */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border);
  display: none;
}
@media(min-width: 600px) {
  .stat-divider { display: block; }
}

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--primary); font-weight: 700; font-size: 1.25rem;
}
.logo-symbol {
  display: flex; align-items: flex-end;
  font-size: 1.5rem; line-height: 1;
  color: var(--primary);
}
.stick-svg {
  width: 18px; height: 10px; margin-left: 2px; margin-bottom: 4px;
  color: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 6px;}

/* Hero Section */
.hero {
  padding: 80px 0 60px; text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.badge {
  background: #efebe4; color: var(--primary);
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1; margin: 20px 0; color: var(--primary);
}
.lede { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-weight: 600; text-decoration: none; cursor: pointer; transition: .2s; border: none; font-size: 1rem;
}
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(92, 64, 51, 0.2); }
.btn.primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn.secondary { background: #e3ddd3; color: var(--primary); }
.btn.secondary:hover { background: #d6cfc2; }
.btn.outline { background: transparent; border: 1px solid var(--border); color: var(--primary); }
.btn.outline:hover { border-color: var(--primary); background: #fff; }
.btn.full-width { width: 100%; }
.btn.sm { padding: 8px 16px; font-size: 0.9rem; border-radius: 20px;}

.section { padding: 60px 0; }
.features .feature-item { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(43, 34, 30, 0.6); backdrop-filter: blur(4px);
  z-index: 999; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.3s; padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-content {
  background: var(--card-bg); width: 100%; max-width: 600px;
  border-radius: 16px; overflow: hidden; display: block;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: scale(0.95); transition: 0.3s; padding: 30px;
}
.modal-overlay.open .modal-content { transform: scale(1); }
.modal-close {
  position: absolute; top: 15px; right: 15px; z-index: 2;
  background: rgba(255,255,255,0.8); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* Payment Modal Specifics */
.payment-options { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
@media(min-width: 520px) { .payment-options { grid-template-columns: 1fr 1fr; } }

.pay-btn {
  display: flex; align-items: center; gap: 12px; padding: 15px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  font-size: 1rem; cursor: pointer; transition: 0.2s; color: var(--primary);
  font-family: 'Inter', sans-serif; font-weight: 500;
}
.pay-btn:hover { border-color: var(--primary); background: #fcfbf9; }
.payment-details-box {
  margin-top: 20px; padding: 20px; background: #f9f9f9; border-radius: 8px; border: 1px solid var(--border);
  text-align: center; font-size: 0.95rem;
}
.payment-details-box.hidden { display: none; }
.pay-row {
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0 4px;
}
.pay-tag { font-family: monospace; font-size: 1.1rem; background: #eee; padding: 4px 8px; border-radius: 4px; display: inline-block; margin: 5px 0; }
.copy-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--primary); transition: 0.2s;
}
.copy-btn:hover { background: #fcfbf9; border-color: var(--accent); }

/* Toasts */
.toast-container {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: rgba(255,255,255,0.96); border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px; box-shadow: 0 14px 40px rgba(0,0,0,0.14); font-weight: 700; color: var(--primary); pointer-events: none;
}

/* Utils */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }