:root {
  --earth: #1a1209;
  --soil: #2d1f0a;
  --harvest: #e8a020;
  --leaf: #3d7a3a;
  --leaf-light: #5aad55;
  --cream: #faf6ee;
  --warm-white: #fff9f0;
  --muted: #7a6a52;
  --card-bg: #ffffff;
  --border: #e8dfd0;
  --danger: #d64c2e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26,18,9,0.10);
  --shadow-card: 0 2px 12px rgba(26,18,9,0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--earth);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--earth);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--harvest);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: #fff;
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
}

.nav-whatsapp:hover {
  color: #25d366;
}

.cart-btn {
  background: var(--harvest);
  color: var(--earth);
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  white-space: nowrap;
}

.cart-btn:hover {
  background: #f5b030;
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--earth);
  color: var(--harvest);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── HERO ── */
.hero-strip {
  background: linear-gradient(135deg, var(--leaf) 0%, #2a5c27 100%);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-strip::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%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-strip h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 5vw, 36px);
  color: #fff;
  position: relative;
  margin-bottom: 6px;
}

.hero-strip p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  position: relative;
  margin-bottom: 14px;
}

.trust-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.trust-pill {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 12px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ── SEARCH ── */
.search-bar {
  background: #fff;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 90;
}

.search-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.search-inner input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 10px 16px 10px 44px;
  font-size: 14px;
  background: var(--cream);
  color: var(--earth);
  outline: none;
  transition: border-color .2s;
}

.search-inner input:focus {
  border-color: var(--leaf);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

/* ── CATEGORY TABS ── */
.cat-tabs {
  background: #fff;
  padding: 0 20px;
  border-bottom: 2px solid var(--border);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 109px;
  z-index: 89;
}

.cat-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  padding: 12px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}

.cat-tab.active,
.cat-tab:hover {
  color: var(--leaf);
  border-bottom-color: var(--leaf);
}

.cat-tab.active {
  font-weight: 600;
}

/* ── MAIN CONTENT ── */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 120px;
}

.category-section {
  margin-bottom: 36px;
}

.category-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── PRODUCTS ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: all .25s;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--leaf);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}


.product-card.added {
  border-color: var(--leaf);
  animation: pop .3s ease;
}


@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}




/*
.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
*/


.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, #e8f5e3, #d4edda);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}




.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




.product-body {
  padding: 10px 12px 12px;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--earth);
  margin-bottom: 2px;
  line-height: 1.3;
}



.product-unit {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--leaf);
  margin-bottom: 10px;
}


/*

/* ── CART / BUTTONS ── 
.qty-control {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  height: 34px;
}

.qty-btn {
  width: 34px;
  border: none;
  background: none;
  cursor: pointer;
}

.qty-num {
  flex: 1;
  text-align: center;
}

.add-btn {
  width: 100%;
  background: var(--leaf);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px;
}

*/

/* ------ Emoji ----- */
.emoji-fallback {
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}





/* ── STICKY CART ── 
.sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--earth);
  padding: 14px 20px;
  display: none;
  justify-content: space-between;
}

.sticky-cart.visible {
  display: flex;
}

/* ── CHECKOUT ── 
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,18,9,0.6);
  display: none;
}

.overlay.open {
  display: flex;
}

.checkout-sheet {
  background: var(--warm-white);
  width: 100%;
  max-width: 580px;
  border-radius: 24px 24px 0 0;
}

/* ── TOAST ── *
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--earth);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  opacity: 0;
  transition: .3s;
}

.toast.show {
  opacity: 1;
}

/* ── RESPONSIVE ── 
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  }
}
*/


/* START */

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  height: 34px;
}
.qty-btn {
  border: none;
  background: none;
  width: 34px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  color: var(--earth);
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
  .qty-btn:hover { background: var(--cream); }
  .qty-num {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--earth);
  min-width: 24px;
}
.add-btn {
  width: 100%;
  border: none;
  background: var(--leaf);
  color: #fff;
  border-radius: 50px;
  padding: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  height: 34px;
}
.add-btn:hover { background: var(--leaf-light); }

/* ── STICKY CART BAR ── */
.sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--earth);
  padding: 14px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sticky-cart.visible { display: flex; }
.cart-summary { color: #fff; }
.cart-summary .items { font-size: 12px; color: #aaa; }
.cart-summary .total { font-size: 18px; font-weight: 700; color: var(--harvest); }
.checkout-cta {
  background: var(--harvest);
  color: var(--earth);
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.checkout-cta:hover { background: #f5b030; transform: scale(1.02); }

/* ── CHECKOUT MODAL ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,18,9,0.6);
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.overlay.open { display: flex; }
.checkout-sheet {
  background: var(--warm-white);
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  animation: sheetUp .35s cubic-bezier(.32,1,.23,1);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-handle {
  width: 40px; height: 4px;
  background: #ddd;
  border-radius: 4px;
   margin: 12px auto 0;
}
.sheet-header {
  padding: 16px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--earth);
}
.sheet-close {
  background: var(--border);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--earth);
}

.sheet-body { padding: 20px 24px; }

/* Order Summary */
.order-summary {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.order-item:last-child { border-bottom: none; }
.order-item-name { font-weight: 500; color: var(--earth); }
.order-item-sub { font-size: 12px; color: var(--muted); }
.order-item-price { font-weight: 700; color: var(--leaf); white-space: nowrap; }
.order-total {
  background: var(--leaf);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
}

  /* Form */
.form-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  margin-top: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.form-group.half { margin-bottom: 0; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.form-group input,
.form-group select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--earth);
  background: #fff;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--leaf); }

.pay-btn {
  width: 100%;
  background: var(--leaf);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pay-btn:hover { background: var(--leaf-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(61,122,58,0.35); }
.whatsapp-btn {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
}
  .whatsapp-btn:hover { background: #1ebe5e; }
  .secure-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
    margin-bottom: 8px;
  }

  /* ── EMPTY STATE ── */
.empty-search {
  text-align: center;
  padding: 60px 20px;
  display: none;
}
.empty-search .emoji { font-size: 48px; margin-bottom: 12px; }
.empty-search p { color: var(--muted); }

  /* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--earth);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  white-space: nowrap;
  border-left: 3px solid var(--harvest);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-strip h1 { font-size: 22px; }
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
}
