:root {
  --primary: #0f6e5f;
  --primary-dark: #0b5347;
  --accent: #2f9e8f;
  --bg: #f6f9f8;
  --text: #1f2a28;
  --muted: #5a6b67;
  --white: #ffffff;
  --border: #e0e6e4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; }

header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo span { color: var(--accent); }

.logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav a:hover, nav a.active { color: var(--primary); }

.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: clamp(48px, 9vw, 84px) 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: var(--white);
  color: var(--primary-dark);
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stats-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--primary);
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) 24px;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.value-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.value-row h4 {
  color: var(--primary-dark);
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.value-row p {
  color: var(--muted);
  font-size: 0.9rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .about-wrap { grid-template-columns: 1fr; }
}

.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.section > p.lead {
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.feature-card h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-card p { color: var(--muted); font-size: 0.95rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 110, 95, 0.12);
}

.product-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--accent), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.product-emoji { font-size: 2.6rem; line-height: 1; }

.product-image.has-photo { background: #eef2f1; }

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-body h3 { color: var(--primary-dark); font-size: 1.15rem; }
.product-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }

.price-tag {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.contact-cta {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-cta:hover { background: var(--primary-dark); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

@media (max-width: 800px) {
  .contact-wrap { grid-template-columns: 1fr; }
  nav ul { gap: 16px; flex-wrap: wrap; }
  .nav-wrap { flex-direction: column; gap: 12px; }
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

label { font-weight: 600; font-size: 0.9rem; }

input, textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}

input::placeholder, textarea::placeholder { color: #9aa8a4; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 110, 95, 0.12);
}

textarea { resize: vertical; min-height: 130px; }

/* Contact form: stack each label above its field with tidy spacing */
.contact-wrap form > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-wrap form > div > label { color: var(--primary-dark); }

button[type="submit"] {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

button[type="submit"]:hover { background: var(--primary-dark); }

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.info-list strong { display: block; color: var(--primary-dark); margin-bottom: 4px; }

footer {
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}

footer a { color: var(--white); }

/* Admin */

.admin-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 24px;
}

.admin-card h1 { color: var(--primary-dark); margin-bottom: 8px; font-size: 1.6rem; }
.admin-card h2 { color: var(--primary-dark); font-size: 1.15rem; margin-bottom: 12px; }
.admin-card h4 { color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }

.admin-card form { border: none; padding: 0; gap: 14px; }

.admin-subcard {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-grid-3, .field-grid-1 {
  display: grid;
  gap: 12px;
  margin-bottom: 4px;
}

.field-grid-3 { grid-template-columns: 1fr 2fr; }
.field-grid-3 .span2 { grid-column: span 1; }
.field-grid-3 .span3 { grid-column: 1 / -1; }
.field-grid-1 { grid-template-columns: 1fr; }

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-tab {
  padding: 10px 18px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.admin-tab.active, .admin-tab:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.admin-error {
  background: #fdecea;
  color: #a12a1f;
  border: 1px solid #f3c3bd;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.admin-success {
  background: #e8f6f0;
  color: var(--primary-dark);
  border: 1px solid #bfe6d8;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 12px;
}

.link-button {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.link-button:hover { color: var(--primary); }

.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

.product-edit-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row-label {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.row-label-category { color: var(--primary-dark); font-size: 0.9rem; }

.btn-remove {
  background: none;
  border: 1px solid #e6b3ac;
  color: #a12a1f;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-remove:hover { background: #fdecea; }

.btn-add {
  align-self: flex-start;
  background: none;
  border: 1px dashed var(--accent);
  color: var(--primary-dark);
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-add:hover { background: #e8f6f0; border-style: solid; }

.btn-add-category { margin-top: 6px; }

.sr-only-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot field (bot trap) — visually removed but present in the DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact form banners */
.form-banner {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 28px;
  font-weight: 600;
}

.form-banner-success {
  background: #e8f6f0;
  color: var(--primary-dark);
  border: 1px solid #bfe6d8;
}

.form-banner-error {
  background: #fdecea;
  color: #a12a1f;
  border: 1px solid #f3c3bd;
}

/* Admin: messages inbox */
.count-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
}

.tab-badge {
  display: inline-block;
  background: #d64533;
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 4px;
  vertical-align: middle;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  background: var(--white);
}

.message-card.unread {
  border-left: 4px solid var(--primary);
  background: #f7fbfa;
}

.message-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.message-from strong { color: var(--primary-dark); }
.message-org { color: var(--muted); font-weight: 400; }

.badge-new {
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.message-date { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

.message-contact { font-size: 0.9rem; margin-top: 4px; }
.message-contact a { color: var(--primary); }

.message-meta { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

.message-body {
  margin-top: 10px;
  white-space: pre-wrap;
  color: var(--text);
  font-size: 0.95rem;
}

.message-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.message-actions form { border: none; padding: 0; margin: 0; background: none; }

.btn-secondary-sm {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-secondary-sm:hover { border-color: var(--primary); color: var(--primary); }

.image-field {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.image-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.image-controls input[type="file"] {
  border: 1px dashed var(--border);
  background: var(--white);
  padding: 8px;
  font-size: 0.85rem;
  width: 100%;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
}

.checkbox-label input { width: auto; }

.admin-thumb {
  width: 90px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #eef2f1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--muted);
  overflow: hidden;
}

.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-thumb-logo {
  width: 160px;
  height: 68px;
  object-fit: contain;
  font-size: 0.8rem;
  padding: 6px;
}

.admin-thumb-logo img { object-fit: contain; }

.feature-card, .step-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover, .step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 110, 95, 0.08);
}

@media (max-width: 560px) {
  .field-grid-3 { grid-template-columns: 1fr; }
  .field-grid-3 .span2, .field-grid-3 .span3 { grid-column: 1; }
  .image-field { flex-direction: column; }
  .admin-tabs { flex-wrap: wrap; }
  .admin-card { padding: 20px; }
  .btn { width: 100%; text-align: center; }
  .hero .btn { width: auto; }
}
