:root {
  --white: #ffffff;
  --charcoal: #1A1A1A;
  --beige: #F5F5F0;
  --olive: #556B2F;
  --brown: #8B4513;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: var(--white); color: var(--charcoal); line-height: 1.6; }


/* Header & Nav */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}
.logo {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand-logo {
  display: block;
  width: auto;
  height: 35px;
  max-width: min(180px, 40vw);
  object-fit: contain;
}
header nav {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.header-icons {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}
nav a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.header-icons button {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (max-width: 600px) {
  header {
    padding: 14px 16px;
    grid-template-columns: 1fr auto 1fr;
  }
  nav a { margin: 0; font-size: 12px; }
  .header-icons { gap: 8px; }
  .header-icons button { font-size: 11px; letter-spacing: 0; }
  .brand-logo { height: 30px; max-width: 30vw; }
}

/* Hero */
.hero { background-color: var(--beige); padding: 100px 40px; text-align: center; }
.hero h1 { font-size: 3.5rem; font-weight: 300; margin-bottom: 15px; }
.hero p { color: var(--olive); font-size: 1.1rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

/* Grid & Filters */
.container { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.filters { display: flex; gap: 10px; margin-bottom: 40px; justify-content: center; }
.filter-btn { padding: 10px 25px; border: 1px solid var(--charcoal); background: transparent; cursor: pointer; border-radius: 30px; transition: 0.3s; font-weight: 600; }
.filter-btn.active, .filter-btn:hover { background: var(--charcoal); color: var(--white); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }
.product-card { cursor: pointer; transition: transform 0.3s; }
.product-card:hover { transform: translateY(-5px); }
.product-img { width: 100%; height: 400px; object-fit: cover; background: var(--beige); margin-bottom: 15px; }
.product-title { font-weight: 600; font-size: 1.1rem; margin-bottom: 5px; }
.product-price { color: var(--brown); font-weight: 400; font-size: 1.1rem; }

/* Cart Drawer */
.cart-drawer { position: fixed; right: -450px; top: 0; width: 400px; height: 100vh; background: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: 0.4s ease; padding: 30px; z-index: 1000; overflow-y: auto; }
.cart-drawer.open { right: 0; }
.cart-item { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 15px 0; }
.btn-primary { width: 100%; padding: 18px; background: var(--charcoal); color: var(--white); border: none; cursor: pointer; margin-top: 20px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transition: 0.3s; }
.btn-primary:hover { background: var(--olive); }

/* Modals */
.hidden { display: none !important; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 2000; }
.modal-content { background: var(--white); padding: 40px; width: 90%; max-width: 500px; border-radius: 8px; }

/* UPI */
.upi-box { text-align: center; padding: 30px; background: var(--beige); border-radius: 8px; margin: 20px 0; border: 1px dashed var(--olive); }
.qr-placeholder { width: 200px; height: 200px; background: var(--white); margin: 15px auto; display: flex; align-items: center; justify-content: center; border: 1px solid #ccc; font-size: 14px; color: var(--olive); }

/* Admin */
#admin-panel { padding: 40px; max-width: 1200px; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--beige); padding: 30px; border-radius: 8px; border-left: 5px solid var(--olive); }
.stat-card h3 { font-size: 1rem; color: var(--olive); margin-bottom: 10px; text-transform: uppercase; }
.stat-card p { font-size: 2.5rem; font-weight: 600; color: var(--charcoal); }
table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--white); }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: var(--beige); font-weight: 600; }

/* Added brand story and footer only; existing UI styles above are preserved. */
.brand-story {
  background: var(--beige);
  padding: 64px 24px;
  text-align: center;
}
.brand-story-inner {
  max-width: 760px;
  margin: 0 auto;
}
.brand-eyebrow {
  color: var(--olive);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.brand-story h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 16px;
}
.brand-story-inner > p:last-child {
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
}
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 32px;
  padding: 40px;
}
.footer-brand strong {
  font-size: 1.8rem;
  letter-spacing: 3px;
}
.footer-brand p,
.footer-about p,
.footer-credit p {
  color: #e7e7e2;
  font-size: 13px;
  line-height: 1.8;
}
.footer-about p:first-child {
  color: var(--white);
  margin-bottom: 8px;
}
.footer-credit {
  text-align: right;
}
.footer-credit a {
  color: var(--white);
  text-underline-offset: 3px;
}
@media (max-width: 700px) {
  .brand-story { padding: 48px 20px; }
  .brand-story h2 { font-size: 1.6rem; }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 20px;
  }
  .footer-credit { text-align: left; }
}
