* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #333;
  -webkit-text-size-adjust: 100%;
}

a { text-decoration: none; color: inherit; }

/* HEADER */
.header {
  background: #1b4332;
  color: #fff;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: #b7e4c7;
  cursor: pointer;
}
.logo span { color: #fff; }
.header-nav { display: flex; gap: 14px; align-items: center; }
.header-nav a {
  color: #d8f3dc;
  font-size: 13px;
  transition: color .2s;
}

/* PRODUCTS GRID */
.section-title {
  margin: 24px 16px 12px;
  font-size: 18px;
  font-weight: 600;
}
.products-grid {
  padding: 0 16px 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  cursor: pointer;
}
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #f8f8f8;
  padding: 8px;
}
.product-card .info { padding: 12px; }
.product-card .category {
  font-size: 10px;
  color: #40916c;
  text-transform: uppercase;
  font-weight: 600;
}
.product-card .name {
  font-size: 13px;
  margin: 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price-old {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}
.product-card .price {
  font-size: 17px;
  font-weight: 700;
  color: #1b4332;
}
.product-card .discount {
  display: inline-block;
  background: #d8f3dc;
  color: #2d6a4f;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}

/* BTN */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.btn-primary { background: #14532d; color: #fff; }
.btn-secondary { background: #d8f3dc; color: #2d6a4f; margin-top: 10px; }

/* FORM PAGES */
.page-container {
  margin: 20px 16px;
  padding: 0;
}
.form-box {
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.form-box h2 {
  font-size: 20px;
  margin-bottom: 18px;
  color: #1b4332;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #444;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #14532d;
}

/* ORDER CONFIRMED */
.confirmed-box {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.confirmed-box .check {
  width: 64px;
  height: 64px;
  background: #d8f3dc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.confirmed-box h2 { color: #1b4332; margin-bottom: 8px; font-size: 20px; }
.confirmed-box p { color: #555; font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
.confirmed-box .order-code {
  font-size: 24px;
  font-weight: 700;
  color: #2d6a4f;
  background: #d8f3dc;
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-block;
  margin: 14px 0;
  letter-spacing: 2px;
}

/* APP PAGE */
.app-container {
  margin: 20px 16px;
  padding: 0;
}
.app-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  text-align: center;
}
.app-box .app-logo {
  width: 72px; height: 72px;
  background: #1b4332;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 32px;
  color: #b7e4c7;
  font-weight: 700;
}
.app-box h1 { font-size: 20px; color: #1b4332; margin-bottom: 6px; }
.app-box .subtitle { color: #666; font-size: 13px; margin-bottom: 20px; }
.app-box .search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.app-box .search-row input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  min-width: 0;
}
.app-box .search-row button {
  padding: 12px 16px;
  background: #14532d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.order-result {
  text-align: left;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
}
.order-result h3 { font-size: 15px; color: #1b4332; margin-bottom: 10px; }
.order-result .order-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}
.order-result .order-item .code {
  font-weight: 700;
  color: #2d6a4f;
  font-size: 14px;
}
.order-result .order-item .details {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
  line-height: 1.6;
}
.no-results {
  color: #999;
  font-size: 14px;
  margin-top: 14px;
}

/* FOOTER */
.footer {
  background: #14532d;
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  margin-top: 30px;
}
