:root{
  --bg:#d1e7db;
  --surface:#FFFFFF;
  --text:#1A1A1A;
  --muted:#4A5A54;
  --brand:#1A3C34;
  --brand-dark:#0F2620;
  --brand-soft:#EBF2E9;
  --border:#B8CFC1;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; display:block;}
h1,h2,h3,h4{font-family:Georgia,serif;font-weight:normal;line-height:1.2;margin:0 0 .5rem;color:var(--brand-dark)}
h1{font-size:clamp(2rem,5vw,3.2rem)}
h2{font-size:clamp(1.6rem,4vw,2.4rem)}
p{margin:0 0 1rem}

/* Layout */
.wrap{max-width:1000px;margin:0 auto;padding:0 1.5rem}
.section{padding:4rem 0;border-bottom:1px solid var(--border)}
.section:last-of-type{border-bottom:0}
.section-center{text-align:center;margin-bottom:2.5rem;max-width:600px;margin-left:auto;margin-right:auto}
.muted{color:var(--muted)}

/* Header */
.site-header{
  background:var(--surface);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:20;
}
.header-inner{display:flex;justify-content:space-between;align-items:center;min-height:90px;}
.brand img{height:65px; width:auto; object-fit:contain;}
nav{display:flex;gap:1.5rem;}
nav a{color:var(--text);font-weight:500;font-size:.95rem;}
nav a:hover{color:var(--brand);text-decoration:none;}

@media(max-width:700px){
  .header-inner{flex-direction:column;padding:1rem 0;gap:1rem; min-height: auto;}
  nav{gap:1rem;font-size:.85rem; flex-wrap:wrap; justify-content:center;}
}

/* Hero */
.hero{
  text-align:center;
  padding:4rem 0 2rem;
  max-width:800px;
  margin:0 auto;
}
.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:.8rem;font-weight:600;color:var(--brand);margin-bottom:1rem;}
.hero p{font-size:1.15rem;color:var(--muted);max-width:600px;margin:1rem auto 2rem;}

/* Buttons */
.btns{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;align-items:center;}
.btn{
  display:inline-block;background:var(--surface);color:var(--text);
  padding:12px 24px;border-radius:6px;font-weight:600;font-size:.95rem;
  border:1px solid var(--border);cursor:pointer;transition:all .15s ease;text-align:center;
}
.btn:hover{background:var(--brand-soft);text-decoration:none;}
.btn-p{background:var(--brand);color:#fff;border-color:var(--brand);}
.btn-p:hover{background:var(--brand-dark);}
.btn-lg{padding:14px 32px;font-size:1.05rem;}
.link-quiet{color:var(--brand);font-weight:500;font-size:.95rem;text-decoration:underline;}

/* Pledge Section */
.pledge-section{
  background:var(--surface);border:1px solid var(--border);border-radius:12px;
  padding:2.5rem;margin:2rem auto 4rem;max-width:900px;text-align:center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.pledge-layout{
  display:flex;flex-wrap:wrap;gap:2rem;margin-top:2rem;
  background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:2rem;text-align:left;
}
.pledge-number{flex:1;min-width:200px;border-right:1px solid var(--border); display:flex; flex-direction:column; justify-content:center; align-items:center;}
.pledge-text{flex:2;min-width:280px;display:flex;flex-direction:column;justify-content:center;}
.big-number{font-family:Georgia, serif; font-size:3.5rem; font-weight:normal; color:var(--brand); line-height:1; margin-bottom:0.5rem;}
.label{font-size:.9rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600;}

@media(max-width:600px){
  .pledge-number{border-right:0;border-bottom:1px solid var(--border);padding-bottom:1.5rem;}
  .pledge-section{padding:1.5rem;}
  .pledge-layout{padding:1.5rem;}
  .big-number{font-size:2.5rem;}
}

/* Products Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
@media(min-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

.product-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}
.product-item:hover {
  transform: translateY(-2px);
}
.product-image-placeholder {
  background: var(--brand-soft);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Style for the actual product renders */
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center; /* Zooms in on the keyring on the left side */
}

/* Fallback for icons if no image is provided */
.product-icon {
  height: 100px;
  width: auto;
  opacity: 0.8;
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-info h3 { font-size: 1.4rem; margin-top: 0.5rem; margin-bottom: 0.5rem;}
.product-info p { font-size: 0.95rem; color: var(--muted); flex: 1; }
.price { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 600; color: var(--brand); margin-top: 1rem; margin-bottom: 0;}

.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #92400E;
  background: #FEF3C7;
  padding: .3rem .7rem;
  border-radius: 4px;
  align-self: flex-start;
}

/* Story Section */
.founder{
  max-width:720px;margin:0 auto;background:var(--surface);
  border:1px solid var(--border);padding:2.5rem;border-radius:12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.founder p{font-size:1.05rem;color:var(--text);}
.quote-box{
  background:var(--brand-soft);border-left:4px solid var(--brand);
  padding:1.5rem;margin:2rem 0;font-family:Georgia,serif;font-style:italic;font-size:1.15rem;color:var(--brand-dark);
}
.quote-box .cite{display:block;font-family:system-ui,sans-serif;font-style:normal;font-size:.85rem;font-weight:600;margin-top:1rem;color:var(--brand);text-transform:uppercase;letter-spacing:.05em;}
.sig{margin-top:2rem;border-top:1px solid var(--border);padding-top:1.5rem;}
.sig strong{font-family:Georgia,serif;font-size:1.4rem;color:var(--brand);display:block; font-weight: normal;}
.sig span{font-size:.85rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600;}
@media(max-width:600px){.founder{padding:1.5rem;}}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
@media(min-width: 500px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.contact-card:hover { 
  transform: translateY(-2px); 
  text-decoration: none; 
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.contact-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; color: var(--brand-dark);}
.contact-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer{background:var(--surface);border-top:1px solid var(--border);padding:3rem 0 1rem;}
.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem;margin-bottom:2rem;}
@media(max-width:600px){.footer-inner{grid-template-columns:1fr;}}
.footer-col h4{font-family:system-ui,sans-serif;font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;margin-bottom:1rem;color:var(--text); font-weight: 600;}
.footer-col a{display:block;color:var(--muted);font-size:.95rem;margin-bottom:.5rem;}
.footer-col a:hover{color:var(--brand);}
.footer-bottom{border-top:1px solid var(--border);padding-top:1.5rem;display:flex;justify-content:space-between;color:var(--muted);font-size:.85rem;flex-wrap:wrap;gap:1rem;}

/* Cookie Banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--brand-dark); color: #fff;
  padding: 1rem 1.5rem; display: none; justify-content: space-between; align-items: center; z-index: 1000;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}
.cookie-banner p { margin: 0; font-size: 0.9rem; max-width: 800px; }
.cookie-banner a { color: var(--brand-soft); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-btn { background: var(--brand-soft); color: var(--brand-dark); border: none; padding: 0.5rem 1rem; border-radius: 4px; font-weight: 600; cursor: pointer; }
.cookie-btn:hover { background: #fff; }
.cookie-btn.outline { background: transparent; color: var(--brand-soft); border: 1px solid var(--brand-soft); }
.cookie-btn.outline:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Legal Pages */
.legal-content{background:var(--surface);padding:2.5rem;border-radius:12px;border:1px solid var(--border);margin-top:2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.03); font-size: 0.95rem; line-height: 1.7;}
.legal-content h2{font-size:1.4rem;margin-top:2rem; margin-bottom: 0.5rem;}
.legal-content ul{padding-left:1.5rem;margin-bottom:1.5rem;}
.legal-content li{margin-bottom:0.5rem;}
@media(max-width:600px){.legal-content{padding:1.5rem;}}

/* Admin Dashboard Specific */
.admin-login { max-width: 400px; margin: 4rem auto; background: var(--surface); padding: 2rem; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.05); text-align: center;}
.admin-login input { width: 100%; padding: 12px; margin: 1rem 0; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; }

.admin-form-group { margin-bottom: 1rem; text-align: left; }
.admin-form-group label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--text); font-weight: 600;}
.admin-form-group input, .admin-form-group select, .admin-form-group textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 0.95rem; }
.admin-product-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid var(--border); }
.admin-product-row:last-child { border-bottom: none; }
.delete-btn { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; font-weight: bold; }
.delete-btn:hover { background: #FECACA; }

/* Welcome Popup */
.popup-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 38, 32, 0.7);
  display: flex; justify-content: center; align-items: center;
  z-index: 2000; padding: 1rem; backdrop-filter: blur(4px);
}
.popup-content {
  background: var(--surface); padding: 2.5rem 2rem; border-radius: 12px;
  max-width: 400px; width: 100%; text-align: center; position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.popup-close {
  position: absolute; top: 10px; right: 15px;
  background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer;
}
.popup-close:hover { color: var(--text); }
.popup-content h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.popup-content p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
