/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-dark:  #1a4731;
  --green:       #2d6a4f;
  --green-mid:   #40916c;
  --green-light: #52b788;
  --green-pale:  #eaf4ee;
  --gold:        #a07828;
  --gold-light:  #c9a84c;
  --gold-pale:   #f5eed8;
  --cream:       #faf6ed;
  --white:       #ffffff;
  --dark:        #1b1b1b;
  --muted:       #666666;
  --border:      #ddd8c8;
  --radius:      14px;
  --radius-sm:   9px;
}

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

/* ===== NAVBAR ===== */
.navbar {
  background: var(--green-dark);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-text {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-size: 1.3rem;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.logo-bn {
  color: var(--gold-light);
  font-size: 1rem;
}

.nav-tagline {
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.fb-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
  white-space: nowrap;
}

.fb-link:hover {
  background: rgba(255,255,255,0.2);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 60%, var(--green-mid) 100%);
  color: #ffffff;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid var(--gold-light);
  margin-bottom: 1rem;
  position: relative;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  position: relative;
}

.hero-tagline {
  color: var(--gold-light);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  position: relative;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ===== CATEGORIES ===== */
.categories {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.cat-btn {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.2s;
}

.cat-btn.active,
.cat-btn:hover {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.product-img {
  width: 100%;
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: var(--green-pale);
}

.product-body {
  padding: 0.85rem;
}

.product-name {
  font-weight: 500;
  font-size: 0.93rem;
  margin-bottom: 0.2rem;
  color: var(--dark);
}

.product-sub {
  color: var(--gold);
  font-size: 0.75rem;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.product-desc {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.product-unit {
  color: var(--muted);
  font-size: 0.77rem;
  margin-bottom: 0.5rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 500;
  color: var(--green);
  font-size: 1.1rem;
}

.buy-btn {
  background: var(--green);
  color: #ffffff;
  border: none;
  padding: 0.42rem 0.9rem;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.buy-btn:hover {
  background: var(--green-dark);
}

.badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  border: 1px solid #e8d9a0;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: 18px;
  padding: 1.6rem;
  width: 100%;
  max-width: 430px;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--green-dark);
  line-height: 1.2;
}

.modal .sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.order-summary {
  background: var(--green-pale);
  border: 1px solid #c3e0cc;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-summary .item-name {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--green-dark);
}

.order-summary .item-unit {
  color: var(--muted);
  font-size: 0.75rem;
}

.order-summary .item-price {
  font-weight: 500;
  color: var(--green);
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.28rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.52rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

.form-group textarea {
  resize: vertical;
  min-height: 68px;
}

.qty-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.qty-row input {
  width: 80px;
}

.unit-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.modal-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.btn-cancel {
  flex: 1;
  padding: 0.62rem;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
  transition: background 0.2s;
}

.btn-cancel:hover {
  background: var(--cream);
}

.btn-whatsapp {
  flex: 2;
  padding: 0.62rem;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

/* ===== FOOTER ===== */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 3px solid var(--gold);
}

.footer-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  margin-bottom: 0.7rem;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.footer-links {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 0.65rem 1rem; }
  .nav-logo { width: 42px; height: 42px; }
  .logo { font-size: 1.1rem; }
  .logo-bn { font-size: 0.9rem; }
  .fb-link span, .fb-link { font-size: 0.75rem; padding: 0.35rem 0.7rem; }
  .hero { padding: 2rem 1.2rem; }
  .hero-logo { width: 85px; height: 85px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-tagline { font-size: 0.88rem; }
  .products-grid { padding: 1rem; gap: 0.85rem; }
  .categories { padding: 0.8rem 1rem; gap: 0.4rem; }
  .cat-btn { font-size: 0.78rem; padding: 0.35rem 0.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.3rem; }
  .fb-link { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; padding: 0.8rem; }
  .product-img { height: 110px; font-size: 2.8rem; }
  .product-name { font-size: 0.85rem; }
  .buy-btn { font-size: 0.76rem; padding: 0.35rem 0.7rem; }
  .price { font-size: 0.95rem; }
}
