:root {
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #81c784;
  --accent-color: #f4b942;

  --bg-main: #f4f6f4;
  --surface: #ffffff;
  --surface-soft: #eef6ef;

  --text-main: #263238;
  --text-muted: #667085;

  --border-color: #dcdde1;

  --danger: #e74c3c;
  --success: #2e7d32;

  --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 70px;
  padding: 10px 4%;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;

  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
}

.brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text {
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand-info small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;

  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;

  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;

  transition: 0.25s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.cart-btn {
  position: relative;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border-color);
  border-radius: 10px;

  background: white;
  color: var(--primary-dark);

  transition: 0.2s;
}

.icon-btn:hover,
.cart-btn:hover {
  background: var(--surface-soft);
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;

  min-width: 20px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50px;

  background: var(--danger);
  color: white;

  font-size: 0.65rem;
  font-weight: 800;
}

/* CATALOG */
.catalog-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 22px;
  align-items: start;
}
.filter-card {
  position: sticky;
  top: 90px;
  padding: 20px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.filter-header h3 {
  font-size: 1rem;
}
.filter-reset-btn {
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
}
.filter-group {
  margin-bottom: 25px;
}
.filter-group h4 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 0.86rem;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
  font-size: 0.82rem;
  cursor: pointer;
}
.filter-option input {
  accent-color: var(--primary-color);
}
.filter-help {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.72rem;
}
.catalog-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.catalog-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.catalog-search i {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.catalog-search input {
  width: 100%;
  height: 45px;
  padding: 0 15px 0 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  outline: none;
}
.sort-select {
  min-width: 175px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: white;
  padding: 0 12px;
  outline: none;
}
.catalog-result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: 0.25s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.12);
}
.product-img-wrapper {
  position: relative;
}
.product-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 50px;
  background: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
}
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 17px;
}
.product-meta {
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.product-title {
  margin: 5px 0;
  font-size: 1rem;
  line-height: 1.35;
}
.product-description {
  min-height: 48px;
  color: var(--text-muted);
  font-size: 0.76rem;
}
.product-price {
  margin: 12px 0;
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 800;
}
.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: auto;
}
.btn-add-cart,
.btn-detail {
  min-height: 40px;
  border-radius: 8px;
  font-weight: 700;
}
.btn-add-cart {
  border: 0;
  background: var(--primary-color);
  color: white;
}
.btn-detail {
  padding: 0 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
}

/* QR SCANNER */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.scanner-card,
.checker-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.scanner-card h3,
.checker-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #2c5f2d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.scanner-placeholder {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 3rem 1rem;
  text-align: center;
  color: #888;
  transition: all 0.3s;
}
.scanner-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}
.scanner-area {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  min-height: 300px;
}
.scanner-buttons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.scanner-buttons button {
  flex: 1;
  min-width: 120px;
}
.scanner-status {
  padding: 0.75rem;
  border-radius: 8px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.scanner-active {
  background: #e6f4ea;
  color: #2c5f2d;
}
.scanner-success {
  background: #e6f4ea;
  color: #2c5f2d;
}
.scanner-error {
  background: #ffebee;
  color: #c62828;
}
.input-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.form-input {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: #2c5f2d;
}
.hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #888;
}
kbd {
  background: #f5f5f5;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-family: monospace;
}
.verification-result-wrapper {
  margin-top: 1.5rem;
}
.verification-valid {
  background: #e6f4ea;
  border-left: 4px solid #2c5f2d;
  padding: 1.25rem;
  border-radius: 8px;
}
.verification-invalid {
  background: #ffebee;
  border-left: 4px solid #c62828;
  padding: 1.25rem;
  border-radius: 8px;
}
.verification-pending {
  background: #fff8e1;
  border-left: 4px solid #b26a00;
  padding: 1.25rem;
  border-radius: 8px;
}
.verification-pending .verification-result-icon {
  color: #b26a00;
}
/* Sumber resmi (URL Kementan) dan info netral — dibedakan dari data internal */
.verification-resmi {
  background: #e8f0fe;
  border-left: 4px solid #1a4f9c;
  padding: 1.25rem;
  border-radius: 8px;
}
.verification-resmi .verification-result-icon {
  color: #1a4f9c;
}
.verification-info {
  background: #f3f4f6;
  border-left: 4px solid #6b7280;
  padding: 1.25rem;
  border-radius: 8px;
}
.verification-info .verification-result-icon {
  color: #6b7280;
}
.verification-catatan {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
#cekManualForm {
  margin-top: 0.5rem;
}
.verification-result {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.verification-result-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.verification-valid .verification-result-icon {
  color: #2c5f2d;
}
.verification-invalid .verification-result-icon {
  color: #c62828;
}
.verification-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}
.verification-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.5rem;
  border-radius: 4px;
  flex-wrap: wrap;
}
.verification-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.verification-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.gallery-card {
  overflow: hidden;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 0.25s;
}
.gallery-card:hover {
  transform: translateY(-5px);
}
.gallery-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.gallery-card:focus-visible {
  outline: 3px solid var(--primary-color, #2c5f2d);
  outline-offset: 2px;
}
.gallery-info {
  padding: 15px;
  overflow-wrap: anywhere;
}
.gallery-info h3 {
  font-size: 0.95rem;
}
.gallery-info p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* GUIDE */
.guide-section {
  padding: 70px 20px;
  background: white;
}
.guide-container {
  width: min(1100px, 92%);
  margin: 0 auto;
  max-height: 360px;
  overflow: hidden;
  position: relative;
}
.guide-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(transparent, white);
  pointer-events: none;
}
.guide-container.unlocked {
  max-height: none;
}
.guide-container.unlocked::after {
  display: none;
}
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.guide-card {
  position: relative;
  padding: 25px 20px 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface-soft);
}
.guide-number {
  position: absolute;
  top: -12px;
  left: 15px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
}
.guide-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.guide-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.blur-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  z-index: 2;
}
.guide-paywall-box {
  width: min(700px, 92%);
  margin: 30px auto 0;
  padding: 30px;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  color: white;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.2);
}
.guide-paywall-box.hidden {
  display: none;
}
.guide-paywall-box i {
  font-size: 1.6rem;
}
.guide-paywall-box h3 {
  font-size: 1.3rem;
  margin: 10px 0;
}
.guide-paywall-box p {
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

/* FARMER */
.farmer-section {
  width: min(1200px, 92%);
  margin: 70px auto;
}
.farmer-container {
  padding: 35px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1px solid var(--primary-light);
}
.farmer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.farmer-card {
  padding: 28px 30px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.farmer-card > i {
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 1.5rem;
}
.farmer-card h3 {
  margin-bottom: 6px;
}
.farmer-card p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.farmer-card form {
  display: grid;
  gap: 9px;
}
.info-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.info-card li:last-child {
  margin-bottom: 0;
}
.info-card li i {
  color: var(--primary-color);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.info-card li a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
.info-card li a:hover,
.info-card li a:focus {
  text-decoration: underline;
}
.info-card .btn-wa {
  margin-top: 20px;
}

/* TESTIMONIAL */
.testimonial-section {
  width: min(1100px, 92%);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.testimonial-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 13px;
}
.testimonial-card .stars {
  color: #f4b942;
  margin-bottom: 8px;
}
.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.testimonial-card strong {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
}
.testimonial-form-card {
  margin-top: 25px;
  padding: 25px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}
.testimonial-form-card form {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}
.testimonial-form-card input,
.testimonial-form-card textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
}
.testimonial-more {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}
.testimonial-more[hidden] {
  display: none;
}
.rating-kosong {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Input rating bintang (radio asli disembunyikan secara visual, tetap bisa difokus keyboard) */
.rating-input {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.rating-input legend {
  float: left;
  margin-right: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.rating-stars {
  display: inline-flex;
  gap: 2px;
}
.rating-stars label {
  position: relative;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 6px;
}
.testimonial-form-card .rating-stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
}
.rating-stars i {
  font-size: 1.5rem;
  color: #c9c9c9;
  transition:
    color 0.15s,
    transform 0.15s;
}
.rating-stars label.aktif i,
.rating-stars label:hover i {
  color: #f4b942;
}
.rating-stars label:hover i {
  transform: scale(1.1);
}
.rating-stars label:has(input:focus-visible) {
  outline: 2px solid #2c5f2d;
  outline-offset: 1px;
}
.rating-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.rating-input.rating-error .rating-text {
  color: var(--danger);
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .rating-stars i {
    transition: none;
  }
  .rating-stars label:hover i {
    transform: none;
  }
}

/* FOOTER */
footer {
  padding: 40px 20px 90px;
  background: #263238;
  color: white;
  text-align: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-logo div {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.footer-logo span {
  opacity: 0.7;
  font-size: 0.75rem;
}
footer > p {
  margin: 15px 0;
  opacity: 0.75;
  font-size: 0.8rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-links button {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.75rem;
}
.footer-bottom {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
}
/* Akses admin: gaya sama dengan tombol footer, tidak menonjol tapi jelas terlihat */
.footer-links .footer-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.75rem;
  text-decoration: none;
}
.footer-links .footer-admin i {
  font-size: 0.7rem;
  opacity: 0.8;
}
.footer-links .footer-admin:hover {
  background: rgba(255, 255, 255, 0.16);
}
.footer-links .footer-admin:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h3 {
  font-size: 1rem;
}
.modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* CART */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: var(--bg-main);
  border-radius: 9px;
  flex-wrap: wrap;
}
.cart-item-info {
  min-width: 0;
}
.cart-item-info strong {
  display: block;
  font-size: 0.8rem;
}
.cart-item-info span {
  color: var(--text-muted);
  font-size: 0.7rem;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 5px;
}
.qty-control button {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 6px;
  background: white;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}
.cart-total-row strong {
  color: var(--primary-dark);
}
.checkout-fields {
  display: grid;
  gap: 9px;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  background: #25d366;
  color: white;
  font-weight: 700;
  font-size: 0.65rem;
  font-weight: 800;
}

.mobile-menu-btn {
  display: none;

  border: 0;
  background: transparent;

  color: var(--primary-dark);
  font-size: 1.4rem;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 510px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 70px 20px;

  overflow: hidden;

  background:
    linear-gradient(rgba(27, 94, 32, 0.88), rgba(46, 125, 50, 0.88)),
    url("../../WhatsApp Image 2026-09-08 at 11.19.26.jpeg");

  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;

  width: min(850px, 100%);

  text-align: center;
  color: white;
}

.hero-logo-wrapper {
  display: inline-flex;

  padding: 5px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(5px);
}

.hero-logo {
  width: 105px;
  height: 105px;

  border-radius: 50%;
  object-fit: cover;

  border: 4px solid white;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-label,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-top: 20px;

  padding: 7px 13px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.16);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero h1 {
  margin: 15px 0 12px;

  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.hero p {
  max-width: 750px;

  margin: auto;

  font-size: 1rem;

  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  justify-content: center;

  gap: 12px;
  margin-top: 28px;

  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 46px;

  padding: 0 20px;

  border-radius: 10px;

  font-weight: 700;
  text-decoration: none;

  transition: 0.25s;
}

.hero-btn.primary {
  background: white;
  color: var(--primary-dark);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.12);

  color: white;

  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-btn:hover {
  transform: translateY(-3px);
}

/* =========================================================
   QUICK INFO
========================================================= */

.quick-info {
  width: min(1150px, 92%);

  margin: -40px auto 40px;

  position: relative;
  z-index: 5;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 15px;
}

.quick-card {
  display: flex;
  align-items: center;

  gap: 13px;
  padding: 18px;

  background: white;

  border: 1px solid var(--border-color);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.quick-card > i {
  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--surface-soft);
  color: var(--primary-color);

  font-size: 1.1rem;
}

.quick-card strong {
  display: block;
  font-size: 0.88rem;
}

.quick-card span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* =========================================================
   SECTION
========================================================= */

.tools-section,
.catalog-section,
.gallery-section,
.news-section,
.testimonial-section,
.farmer-section {
  width: min(1200px, 92%);
  margin: 70px auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-label {
  margin-top: 0;

  background: var(--surface-soft);
  color: var(--primary-dark);
}

.section-heading h2 {
  margin-top: 10px;

  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-heading p {
  max-width: 700px;

  margin: 8px auto 0;

  color: var(--text-muted);
}

/* =========================================================
   TOOLS
========================================================= */

.widgets-wrapper {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;
}

.calc-box,
.checker-box {
  position: relative;

  padding: 28px;

  background: white;

  border: 1px solid var(--border-color);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.tool-icon {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 12px;

  border-radius: 13px;

  background: var(--surface-soft);
  color: var(--primary-color);

  font-size: 1.35rem;
  line-height: 1;

  font-style: normal;
  text-align: center;
}

.tool-icon::before {
  display: block;
  line-height: 1;
}

.calc-header h3,
.checker-header h3 {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.calc-header p,
.checker-header p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.calc-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 12px;

  margin: 20px 0;
}

.form-group {
  display: flex;
  flex-direction: column;

  gap: 6px;

  margin-bottom: 12px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea,
.checkout-fields input,
.checkout-fields select,
.checkout-fields textarea,
.admin-tab-content input,
.admin-tab-content select,
.admin-tab-content textarea,
.farmer-card input,
.farmer-card textarea {
  width: 100%;

  padding: 11px 12px;

  border: 1px solid var(--border-color);
  border-radius: 9px;

  outline: none;

  background: white;
  color: var(--text-main);

  font-size: 0.88rem;

  transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.checkout-fields input:focus,
.checkout-fields textarea:focus {
  border-color: var(--primary-color);

  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.input-with-unit {
  display: flex;
  align-items: center;
}

.input-with-unit input {
  border-radius: 9px 0 0 9px;
}

.input-with-unit span {
  padding: 11px 12px;

  background: var(--surface-soft);

  border: 1px solid var(--border-color);
  border-left: 0;

  border-radius: 0 9px 9px 0;

  font-size: 0.8rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 11px 17px;

  border: 0;
  border-radius: 9px;

  background: var(--primary-color);
  color: white;

  font-weight: 700;

  transition: 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.full-btn {
  width: 100%;
}

.calc-result,
.checker-result {
  margin-top: 15px;

  font-size: 0.86rem;
}

/* =========================================================
   CATALOG
========================================================= */

.catalog-layout {
  display: grid;

  grid-template-columns: 245px 1fr;

  gap: 22px;

  align-items: start;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.filter-card {
  position: sticky;
  top: 90px;

  padding: 20px;

  background: white;

  border: 1px solid var(--border-color);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 20px;
}

.filter-header h3 {
  font-size: 1rem;
}

.filter-reset-btn {
  border: 0;

  background: transparent;

  color: var(--primary-color);

  font-size: 0.75rem;
  font-weight: 700;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h4 {
  margin-bottom: 10px;

  color: var(--primary-dark);

  font-size: 0.86rem;
}

.filter-option {
  display: flex;
  align-items: center;

  gap: 8px;

  margin: 9px 0;

  font-size: 0.82rem;

  cursor: pointer;
}

.filter-option input {
  accent-color: var(--primary-color);
}

.filter-help {
  display: flex;

  gap: 8px;

  padding: 12px;

  border-radius: 10px;

  background: var(--surface-soft);

  color: var(--text-muted);

  font-size: 0.72rem;
}

.catalog-toolbar {
  display: flex;

  gap: 10px;

  margin-bottom: 12px;

  flex-wrap: wrap;
}

.catalog-search {
  position: relative;

  flex: 1;

  min-width: 200px;
}

.catalog-search i {
  position: absolute;

  top: 50%;
  left: 13px;

  transform: translateY(-50%);

  color: var(--text-muted);
}

.catalog-search input {
  width: 100%;
  height: 45px;

  padding: 0 15px 0 40px;

  border: 1px solid var(--border-color);
  border-radius: 10px;

  outline: none;
}

.sort-select {
  min-width: 175px;

  border: 1px solid var(--border-color);
  border-radius: 10px;

  background: white;

  padding: 0 12px;

  outline: none;
}

.catalog-result-row {
  display: flex;
  justify-content: space-between;

  margin-bottom: 14px;

  color: var(--text-muted);

  font-size: 0.8rem;

  flex-wrap: wrap;
  gap: 8px;
}

.products-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 17px;
}

.product-card {
  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: white;

  border: 1px solid var(--border-color);
  border-radius: var(--radius);

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);

  transition: 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.12);
}

.product-img-wrapper {
  position: relative;
}

.product-img {
  width: 100%;
  height: 190px;

  object-fit: cover;
}

.product-badge {
  position: absolute;

  top: 10px;
  left: 10px;

  padding: 5px 9px;

  border-radius: 50px;

  background: var(--primary-color);
  color: white;

  font-size: 0.7rem;
  font-weight: 800;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;

  padding: 17px;
}

.product-meta {
  color: var(--primary-color);

  font-size: 0.72rem;
  font-weight: 800;

  text-transform: uppercase;
}

.product-title {
  margin: 5px 0;

  font-size: 1rem;
  line-height: 1.35;
}

.product-description {
  min-height: 48px;

  color: var(--text-muted);

  font-size: 0.76rem;
}

.product-price {
  margin: 12px 0;

  color: var(--primary-dark);

  font-size: 1.05rem;
  font-weight: 800;
}

.product-actions {
  display: grid;

  grid-template-columns: 1fr auto;

  gap: 7px;

  margin-top: auto;
}

.btn-add-cart,
.btn-detail {
  min-height: 40px;

  border-radius: 8px;

  font-weight: 700;
}

.btn-add-cart {
  border: 0;

  background: var(--primary-color);
  color: white;
}

.btn-detail {
  padding: 0 12px;

  border: 1px solid var(--border-color);

  background: var(--bg-main);
  color: var(--text-main);
}

/* =========================================================
   QR SCANNER
========================================================= */

.qr-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 2rem;

  margin-top: 2rem;
}

.scanner-card,
.checker-card {
  background: #fff;

  border-radius: 16px;

  padding: 2rem;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.scanner-card h3,
.checker-card h3 {
  font-size: 1.25rem;

  margin-bottom: 1.5rem;

  color: #2c5f2d;

  display: flex;
  align-items: center;

  gap: 0.5rem;
}

.scanner-placeholder {
  border: 2px dashed #ccc;

  border-radius: 12px;

  padding: 3rem 1rem;

  text-align: center;

  color: #888;

  transition: all 0.3s;
}

.scanner-placeholder i {
  font-size: 3rem;

  margin-bottom: 1rem;

  color: #ccc;
}

.scanner-area {
  border-radius: 12px;

  overflow: hidden;

  background: #000;

  min-height: 300px;
}

.scanner-buttons {
  display: flex;

  gap: 1rem;

  margin: 1rem 0;

  flex-wrap: wrap;
}

.scanner-buttons button {
  flex: 1;

  min-width: 120px;
}

.scanner-status {
  padding: 0.75rem;

  border-radius: 8px;

  margin: 1rem 0;

  display: flex;
  align-items: center;

  gap: 0.5rem;

  font-size: 0.9rem;

  flex-wrap: wrap;
}

.scanner-active {
  background: #e6f4ea;
  color: #2c5f2d;
}

.scanner-success {
  background: #e6f4ea;
  color: #2c5f2d;
}

.scanner-error {
  background: #ffebee;
  color: #c62828;
}

.input-group {
  display: flex;

  gap: 0.75rem;

  flex-wrap: wrap;
}

.form-input {
  flex: 1;

  min-width: 200px;

  padding: 0.875rem 1rem;

  border: 2px solid #e0e0e0;

  border-radius: 8px;

  font-size: 1rem;

  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;

  border-color: #2c5f2d;
}

.hint {
  margin-top: 0.5rem;

  font-size: 0.85rem;

  color: #888;
}

kbd {
  background: #f5f5f5;

  padding: 0.125rem 0.5rem;

  border-radius: 4px;

  border: 1px solid #ddd;

  font-family: monospace;
}

.verification-result-wrapper {
  margin-top: 1.5rem;
}

.verification-valid {
  background: #e6f4ea;

  border-left: 4px solid #2c5f2d;

  padding: 1.25rem;

  border-radius: 8px;
}

.verification-invalid {
  background: #ffebee;

  border-left: 4px solid #c62828;

  padding: 1.25rem;

  border-radius: 8px;
}

.verification-pending {
  background: #fff8e1;

  border-left: 4px solid #b26a00;

  padding: 1.25rem;

  border-radius: 8px;
}

.verification-pending .verification-result-icon {
  color: #b26a00;
}

.verification-result {
  display: flex;

  gap: 1rem;

  align-items: flex-start;

  flex-wrap: wrap;
}

.verification-result-icon {
  font-size: 2rem;

  flex-shrink: 0;
}

.verification-valid .verification-result-icon {
  color: #2c5f2d;
}

.verification-invalid .verification-result-icon {
  color: #c62828;
}

.verification-label {
  font-size: 0.75rem;

  text-transform: uppercase;

  letter-spacing: 1px;

  opacity: 0.7;
}

.verification-code {
  display: flex;

  align-items: center;

  gap: 0.5rem;

  margin: 0.5rem 0;

  font-family: monospace;

  background: rgba(255, 255, 255, 0.7);

  padding: 0.5rem;

  border-radius: 4px;

  flex-wrap: wrap;
}

.verification-meta {
  display: flex;

  gap: 1.5rem;

  margin-top: 0.75rem;

  font-size: 0.9rem;

  flex-wrap: wrap;
}

.verification-meta span {
  display: flex;

  align-items: center;

  gap: 0.375rem;
}

/* =========================================================
   GALLERY
========================================================= */

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 17px;
}

.gallery-card {
  overflow: hidden;

  background: white;

  border-radius: var(--radius);

  border: 1px solid var(--border-color);

  box-shadow: var(--shadow);

  cursor: pointer;

  transition: 0.25s;
}

.gallery-card:hover {
  transform: translateY(-5px);
}

.gallery-card img {
  display: block;

  width: 100%;
  height: 220px;

  object-fit: cover;
}

.gallery-card:focus-visible {
  outline: 3px solid var(--primary-color, #2c5f2d);

  outline-offset: 2px;
}

.gallery-info {
  padding: 15px;

  overflow-wrap: anywhere;
}

.gallery-info h3 {
  font-size: 0.95rem;
}

.gallery-info p {
  margin-top: 4px;

  color: var(--text-muted);

  font-size: 0.76rem;
}

/* =========================================================
   GUIDE / PANDUAN
========================================================= */

.guide-section {
  padding: 56px 20px 64px;

  background: white;
}

.guide-container {
  width: min(1100px, 92%);

  margin: 0 auto;

  position: relative;

  /*
       Jangan menggunakan height tetap.
       Container mengikuti isi.
    */
  height: auto;

  max-height: 360px;

  overflow: hidden;
}

.guide-container::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 130px;

  background: linear-gradient(transparent, white);

  pointer-events: none;
}

.guide-container.unlocked {
  max-height: none;

  overflow: visible;
}

.guide-container.unlocked::after {
  display: none;
}

/* =========================================================
   GRID CARD PANDUAN
   PERBAIKAN UTAMA:
   card mengikuti isi teks
========================================================= */

.guide-steps-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;

  align-items: start;

  /*
       PENTING:
       jangan gunakan 1fr karena membuat
       card memenuhi tinggi baris.
    */
  grid-auto-rows: auto !important;
}

/* =========================================================
   CARD PANDUAN
========================================================= */

.guide-card {
  position: relative;

  display: grid;

  grid-template-columns: 28px minmax(0, 1fr);

  column-gap: 12px;

  align-items: start;

  align-content: start;

  align-self: start;

  width: 100%;

  /*
       PENTING:
       tinggi mengikuti isi.
    */
  height: auto !important;

  min-height: 0 !important;

  padding: 20px 20px 22px;

  border: 1px solid rgba(46, 125, 50, 0.14);

  border-radius: var(--radius);

  background: var(--surface-soft);

  overflow: hidden;

  box-shadow: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-2px);

  border-color: rgba(46, 125, 50, 0.25);

  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.08);
}

/* =========================================================
   NOMOR PANDUAN
========================================================= */

.guide-number {
  position: static;

  width: 28px;
  height: 28px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: var(--primary-color);

  color: white;

  font-size: 0.75rem;

  font-weight: 800;

  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

/* =========================================================
   JUDUL PANDUAN
========================================================= */

.guide-card h3 {
  margin: 0;

  padding-top: 3px;

  color: var(--text-main);

  font-size: 1rem;

  font-weight: 700;

  line-height: 1.35;

  /*
       Supaya judul panjang tetap rapi.
    */
  overflow-wrap: break-word;

  word-break: normal;
}

/* =========================================================
   TEKS PANDUAN
========================================================= */

.guide-card p {
  grid-column: 1 / -1;

  margin: 12px 0 0;

  padding: 0;

  color: var(--text-muted);

  font-size: 0.85rem;

  line-height: 1.65;

  text-align: left;

  /*
       Mencegah teks keluar dari card.
    */
  overflow-wrap: break-word;

  word-break: normal;
}

/* =========================================================
   LIST DALAM PANDUAN
========================================================= */

.guide-card ul {
  grid-column: 1 / -1;

  margin: 10px 0 0;

  padding-left: 20px;

  color: var(--text-muted);

  font-size: 0.85rem;

  line-height: 1.65;
}

.guide-card li {
  margin-bottom: 6px;
}

.guide-card li:last-child {
  margin-bottom: 0;
}

/* =========================================================
   PARAGRAPH TAMBAHAN
========================================================= */

.guide-card p + p {
  margin-top: 10px;
}

/* =========================================================
   BLUR / LOCK GUIDE
========================================================= */

.blur-content {
  filter: blur(5px);

  user-select: none;

  pointer-events: none;
}

.lock-overlay {
  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.85);

  border-radius: 12px;

  z-index: 2;
}

.guide-paywall-box {
  width: min(700px, 92%);

  margin: 30px auto 0;

  padding: 30px;

  text-align: center;

  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );

  color: white;

  border-radius: 15px;

  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.2);
}

.guide-paywall-box.hidden {
  display: none;
}

.guide-paywall-box i {
  font-size: 1.6rem;
}

.guide-paywall-box h3 {
  font-size: 1.3rem;

  margin: 10px 0;
}

.guide-paywall-box p {
  opacity: 0.9;

  max-width: 500px;

  margin: 0 auto;
}

/* =========================================================
   FARMER
========================================================= */

.farmer-section {
  width: min(1200px, 92%);

  margin: 70px auto;
}

.farmer-container {
  padding: 35px;

  border-radius: 20px;

  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);

  border: 1px solid var(--primary-light);
}

.farmer-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 20px;

  max-width: 640px;

  margin: 0 auto;
}

.farmer-card {
  padding: 28px 30px;

  background: white;

  border-radius: 14px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.farmer-card > i {
  margin-bottom: 10px;

  color: var(--primary-color);

  font-size: 1.5rem;
}

.farmer-card h3 {
  margin-bottom: 6px;
}

.farmer-card p {
  margin-bottom: 18px;

  color: var(--text-muted);

  font-size: 0.82rem;
}

.farmer-card form {
  display: grid;

  gap: 9px;
}

.info-card ul {
  list-style: none;

  margin: 0;
  padding: 0;
}

.info-card li {
  display: flex;
  align-items: flex-start;

  gap: 10px;

  margin: 0 0 14px;

  font-size: 0.9rem;

  line-height: 1.45;

  overflow-wrap: anywhere;
}

.info-card li:last-child {
  margin-bottom: 0;
}

.info-card li i {
  color: var(--primary-color);

  width: 18px;

  text-align: center;

  flex-shrink: 0;

  margin-top: 3px;
}

.info-card li a {
  color: var(--primary-color);

  font-weight: 600;

  text-decoration: none;

  word-break: break-word;
}

.info-card li a:hover,
.info-card li a:focus {
  text-decoration: underline;
}

.info-card .btn-wa {
  margin-top: 20px;
}

/* =========================================================
   TESTIMONIAL
========================================================= */

.testimonial-section {
  width: min(1100px, 92%);
}

.testimonial-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px;
}

.testimonial-card {
  padding: 20px;

  background: white;

  border: 1px solid var(--border-color);

  border-radius: 13px;
}

.testimonial-card .stars {
  color: #f4b942;

  margin-bottom: 8px;
}

.testimonial-card p {
  color: var(--text-muted);

  font-size: 0.8rem;
}

.testimonial-card strong {
  display: block;

  margin-top: 10px;

  font-size: 0.8rem;
}

.testimonial-form-card {
  margin-top: 25px;

  padding: 25px;

  background: white;

  border: 1px solid var(--border-color);

  border-radius: 14px;
}

.testimonial-form-card form {
  display: grid;

  gap: 10px;

  margin-top: 15px;
}

.testimonial-form-card input,
.testimonial-form-card textarea {
  width: 100%;

  padding: 11px;

  border: 1px solid var(--border-color);

  border-radius: 9px;
}

.testimonial-more {
  display: flex;

  justify-content: center;

  margin-top: 15px;
}

.testimonial-more[hidden] {
  display: none;
}

.rating-kosong {
  color: var(--text-muted);

  font-size: 0.75rem;

  font-style: italic;
}

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}

.rating-input {
  border: 0;

  padding: 0;
  margin: 0;

  min-width: 0;

  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 4px 10px;
}

.rating-input legend {
  float: left;

  margin-right: 6px;

  font-size: 0.85rem;

  font-weight: 600;
}

.rating-stars {
  display: inline-flex;

  gap: 2px;
}

.rating-stars label {
  position: relative;

  cursor: pointer;

  padding: 4px;

  line-height: 1;

  border-radius: 6px;
}

.testimonial-form-card .rating-stars input {
  position: absolute;

  opacity: 0;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: 0;

  border: 0;
}

.rating-stars i {
  font-size: 1.5rem;

  color: #c9c9c9;

  transition:
    color 0.15s,
    transform 0.15s;
}

.rating-stars label.aktif i,
.rating-stars label:hover i {
  color: #f4b942;
}

.rating-stars label:hover i {
  transform: scale(1.1);
}

.rating-stars label:has(input:focus-visible) {
  outline: 2px solid #2c5f2d;

  outline-offset: 1px;
}

.rating-text {
  font-size: 0.8rem;

  color: var(--text-muted);
}

.rating-input.rating-error .rating-text {
  color: var(--danger);

  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .rating-stars i {
    transition: none;
  }

  .rating-stars label:hover i {
    transform: none;
  }
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 40px 20px 90px;

  background: #263238;

  color: white;

  text-align: center;
}

.footer-logo {
  display: inline-flex;

  align-items: center;

  gap: 10px;
}

.footer-logo img {
  width: 50px;
  height: 50px;

  border-radius: 50%;

  object-fit: cover;
}

.footer-logo div {
  display: flex;

  flex-direction: column;

  text-align: left;
}

.footer-logo span {
  opacity: 0.7;

  font-size: 0.75rem;
}

footer > p {
  margin: 15px 0;

  opacity: 0.75;

  font-size: 0.8rem;
}

.footer-links {
  display: flex;

  justify-content: center;

  gap: 8px;

  flex-wrap: wrap;
}

.footer-links button {
  padding: 8px 12px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.08);

  color: white;

  font-size: 0.75rem;
}

.footer-bottom {
  margin-top: 25px;

  padding-top: 15px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  color: rgba(255, 255, 255, 0.55);

  font-size: 0.7rem;
}

.footer-links .footer-admin {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 8px 12px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.08);

  color: white;

  font-size: 0.75rem;

  text-decoration: none;
}

.footer-links .footer-admin i {
  font-size: 0.7rem;

  opacity: 0.8;
}

.footer-links .footer-admin:hover {
  background: rgba(255, 255, 255, 0.16);
}

.footer-links .footer-admin:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);

  outline-offset: 2px;
}

/* =========================================================
   MODAL
========================================================= */

.modal-overlay {
  position: fixed;

  inset: 0;

  z-index: 3000;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 15px;

  background: rgba(0, 0, 0, 0.55);

  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;

  max-width: 500px;

  max-height: 90vh;

  overflow-y: auto;

  padding: 22px;

  background: white;

  border-radius: 15px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  padding-bottom: 12px;

  margin-bottom: 15px;

  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1rem;
}

.modal-close {
  border: 0;

  background: transparent;

  font-size: 1.5rem;

  color: var(--text-muted);
}

/* =========================================================
   CART
========================================================= */

.cart-items {
  display: flex;

  flex-direction: column;

  gap: 10px;

  max-height: 280px;

  overflow-y: auto;
}

.cart-item-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  padding: 12px;

  background: var(--bg-main);

  border-radius: 9px;

  flex-wrap: wrap;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info strong {
  display: block;

  font-size: 0.8rem;
}

.cart-item-info span {
  color: var(--text-muted);

  font-size: 0.7rem;
}

.qty-control {
  display: flex;

  align-items: center;

  gap: 5px;
}

.qty-control button {
  width: 27px;
  height: 27px;

  border: 0;

  border-radius: 6px;

  background: white;
}

.cart-total-row {
  display: flex;

  justify-content: space-between;

  margin: 15px 0;

  padding-top: 15px;

  border-top: 1px solid var(--border-color);
}

.cart-total-row strong {
  color: var(--primary-dark);
}

.checkout-fields {
  display: grid;

  gap: 9px;
}

.btn-wa {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 43px;

  margin-top: 8px;

  border: 0;

  border-radius: 9px;

  background: #25d366;

  color: white;

  font-weight: 700;
}

/* =========================================================
   ADMIN
========================================================= */

.admin-modal-card {
  max-width: 800px;
}

.admin-stats {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 10px;

  margin-bottom: 20px;
}

.admin-stats > div {
  padding: 13px;

  border-radius: 10px;

  background: var(--surface-soft);

  text-align: center;
}

.admin-stats i {
  display: block;

  color: var(--primary-color);
}

.admin-stats strong {
  display: block;

  margin: 3px 0;

  font-size: 0.9rem;
}

.admin-stats span {
  color: var(--text-muted);

  font-size: 0.68rem;
}

.admin-tabs {
  display: flex;

  gap: 6px;

  margin-bottom: 15px;

  overflow-x: auto;
}

.admin-tab-btn {
  flex: 0 0 auto;

  padding: 9px 12px;

  border: 1px solid var(--border-color);

  border-radius: 8px;

  background: white;

  font-size: 0.75rem;

  font-weight: 700;
}

.admin-tab-btn.active {
  background: var(--primary-color);

  color: white;

  border-color: var(--primary-color);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-tab-content form {
  display: grid;

  gap: 9px;
}

.admin-order {
  padding: 15px;

  margin-bottom: 10px;

  border: 1px solid var(--border-color);

  border-radius: 10px;

  background: var(--bg-main);

  font-size: 0.78rem;
}

.admin-order-buttons {
  display: flex;

  gap: 6px;

  flex-wrap: wrap;

  margin-top: 10px;
}

.admin-order-buttons button {
  padding: 6px 9px;

  border: 0;

  border-radius: 6px;

  color: white;

  font-size: 0.7rem;
}

/* =========================================================
   SUCCESS
========================================================= */

.success-card {
  text-align: center;
}

.success-icon {
  margin-bottom: 10px;

  color: var(--primary-color);

  font-size: 3rem;
}

.success-card strong {
  display: block;

  margin: 10px 0 20px;

  color: var(--primary-dark);

  font-size: 1.3rem;
}

/* =========================================================
   GALLERY MODAL
========================================================= */

.gallery-modal-inner {
  position: relative;

  width: min(900px, 95vw);

  text-align: center;

  color: white;
}

.gallery-modal-inner img {
  width: 100%;

  max-height: 75vh;

  object-fit: contain;

  border-radius: 12px;
}

.gallery-modal-inner h3 {
  margin-top: 10px;
}

.gallery-close {
  position: absolute;

  top: -40px;
  right: 0;

  border: 0;

  background: transparent;

  color: white;

  font-size: 2rem;
}

/* =========================================================
   FLOATING WHATSAPP
========================================================= */

.floating-wa {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 1500;

  width: 56px;
  height: 56px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #25d366;

  color: white;

  font-size: 1.7rem;

  text-decoration: none;

  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);

  transition: 0.25s;
}

.floating-wa:hover {
  transform: scale(1.1);

  background-color: #20bd5a;
}

/* =========================================================
   MOBILE NAV & TOAST
========================================================= */

.mobile-bottom-nav {
  display: none;
}

.toast-container {
  position: fixed;

  right: 20px;
  bottom: 20px;

  z-index: 5000;

  display: flex;

  flex-direction: column;

  gap: 8px;
}

.toast {
  min-width: 250px;

  padding: 12px 15px;

  border-radius: 10px;

  background: #263238;

  color: white;

  box-shadow: var(--shadow);

  font-size: 0.8rem;

  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE DASAR
========================================================= */

@media (max-width: 1050px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .guide-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    grid-auto-rows: auto !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }

  .navbar {
    min-height: 62px;

    padding: 8px 15px;
  }

  .brand-logo {
    width: 39px;
    height: 39px;
  }

  .brand-text {
    font-size: 0.76rem;
  }

  .brand-info small {
    font-size: 0.62rem;
  }

  .mobile-menu-btn {
    display: block;

    margin-left: auto;
    margin-right: 7px;
  }

  .nav-links {
    position: absolute;

    top: 62px;

    left: 0;
    right: 0;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 8px;

    background: white;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    padding: 12px;

    border-radius: 8px;
  }

  .nav-links li a:hover {
    background: var(--surface-soft);
  }

  .hero {
    min-height: 490px;

    padding: 50px 18px;
  }

  .hero-logo {
    width: 85px;
    height: 85px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  .hero-buttons {
    flex-direction: column;

    width: 100%;
  }

  .hero-btn {
    width: 100%;
  }

  .quick-info {
    grid-template-columns: repeat(2, 1fr);

    width: 94%;

    margin-top: -25px;

    gap: 8px;
  }

  .quick-card {
    padding: 12px;

    gap: 8px;
  }

  .quick-card > i {
    width: 35px;
    height: 35px;

    font-size: 0.9rem;
  }

  .quick-card strong {
    font-size: 0.7rem;
  }

  .quick-card span {
    font-size: 0.62rem;
  }

  .tools-section,
  .catalog-section,
  .gallery-section,
  .testimonial-section,
  .farmer-section {
    width: 94%;

    margin: 50px auto;
  }

  .widgets-wrapper {
    grid-template-columns: 1fr;
  }

  .calc-box,
  .checker-box {
    padding: 20px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filter-card {
    position: static;
  }

  .catalog-toolbar {
    flex-direction: column;
  }

  .sort-select {
    height: 44px;

    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;
  }

  .product-img {
    height: 150px;
  }

  .product-body {
    padding: 12px;
  }

  .product-title {
    font-size: 0.82rem;
  }

  .product-price {
    font-size: 0.88rem;
  }

  .product-description {
    font-size: 0.68rem;

    min-height: 40px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .btn-detail {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .gallery-card img {
    height: 150px;
  }

  .gallery-info {
    padding: 10px;
  }

  .gallery-info h3 {
    font-size: 0.78rem;
  }

  .gallery-info p {
    font-size: 0.65rem;
  }

  .farmer-container {
    padding: 22px 16px;
  }

  .farmer-grid {
    grid-template-columns: 1fr;

    max-width: 100%;
  }

  .farmer-card {
    padding: 22px 20px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  footer {
    padding-bottom: 80px;
  }

  .mobile-bottom-nav {
    display: flex;

    position: fixed;

    bottom: 0;
    left: 0;
    right: 0;

    height: 60px;

    background: white;

    border-top: 1px solid var(--border-color);

    z-index: 1200;
  }
}

/* =========================================================
   STATUS DATA API
========================================================= */

.data-status {
  grid-column: 1 / -1;

  text-align: center;

  color: var(--text-muted);

  padding: 20px;
}

.data-status.data-error {
  color: var(--danger);
}

.data-status .btn-primary {
  margin-top: 10px;
}

/* =========================================================
   UI REFINEMENT
========================================================= */

:root {
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  --shadow-soft: 0 8px 24px rgba(16, 24, 40, 0.06);

  --shadow-hover: 0 16px 34px rgba(27, 94, 32, 0.13);
}

/* =========================================================
   NAVBAR REFINEMENT
========================================================= */

.navbar {
  min-height: 72px;

  border-bottom-color: rgba(0, 0, 0, 0.05);

  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);

  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);

  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
}

.brand-wrapper {
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;

  flex-shrink: 0;

  transition: transform 0.35s var(--ease-out);
}

.brand-wrapper:hover .brand-logo {
  transform: rotate(-6deg) scale(1.04);
}

.brand-text {
  font-size: 1.02rem;

  letter-spacing: -0.01em;
}

.brand-info small {
  margin-top: 1px;

  letter-spacing: 0.01em;
}

.cart-btn {
  border-radius: 12px;

  transition:
    transform 0.2s var(--ease-out),
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cart-btn i {
  transition: transform 0.25s var(--ease-out);
}

.cart-btn:hover {
  border-color: var(--primary-light);

  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.14);
}

.cart-btn:hover i {
  transform: scale(1.1);
}

.cart-btn:active {
  transform: translateY(0) scale(0.94);

  box-shadow: none;
}

.cart-btn:focus-visible,
.mobile-menu-btn:focus-visible,
.hero-btn:focus-visible,
.floating-wa:focus-visible {
  outline: 3px solid rgba(129, 199, 132, 0.7);

  outline-offset: 3px;
}

.badge {
  border: 2px solid white;

  box-sizing: content-box;

  min-width: 16px;

  height: 16px;

  padding: 0 2px;
}

.badge.bump {
  animation: badgeBump 0.4s var(--ease-out);
}

@keyframes badgeBump {
  0% {
    scale: 1;
  }

  40% {
    scale: 1.3;
  }

  100% {
    scale: 1;
  }
}

.mobile-menu-btn {
  width: 42px;
  height: 42px;

  border-radius: 10px;

  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.mobile-menu-btn:active {
  transform: scale(0.94);
}

/* =========================================================
   DESKTOP NAV
========================================================= */

@media (min-width: 769px) {
  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    position: relative;

    padding: 8px 12px;

    border-radius: 8px;

    transition:
      color 0.25s ease,
      background-color 0.25s ease;
  }

  .nav-links a i {
    color: var(--primary-color);

    opacity: 0.7;

    font-size: 0.85em;

    transition: opacity 0.25s ease;
  }

  .nav-links a::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 3px;

    height: 2px;

    border-radius: 2px;

    background: var(--primary-color);

    transform: scaleX(0);

    transform-origin: center;

    transition: transform 0.3s var(--ease-out);
  }

  .nav-links a:hover {
    color: var(--primary-dark);

    background: var(--surface-soft);
  }

  .nav-links a:hover i {
    opacity: 1;
  }

  .nav-links a:hover::after {
    transform: scaleX(1);
  }
}

@media (min-width: 769px) and (max-width: 1050px) {
  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 8px 8px;
  }

  .nav-links a::after {
    left: 8px;
    right: 8px;
  }
}

/* =========================================================
   HERO REFINEMENT
========================================================= */

.hero {
  min-height: 560px;

  padding: 80px 20px 110px;

  background: #1e6a23;

  isolation: isolate;
}

.hero::before {
  content: "";

  position: absolute;

  inset: -15% 0;

  z-index: -2;

  background: url("../../WhatsApp Image 2026-09-08 at 11.19.26.jpeg") center /
    cover no-repeat;

  translate: 0 var(--hero-shift, 0px);

  animation: heroZoom 26s ease-in-out infinite alternate;

  will-change: transform;
}

.hero::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: -1;

  background:
    radial-gradient(
      ellipse 70% 60% at 50% 42%,
      rgba(27, 94, 32, 0) 0%,
      rgba(12, 45, 15, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(24, 84, 29, 0.9) 0%,
      rgba(40, 118, 45, 0.86) 55%,
      rgba(27, 94, 32, 0.93) 100%
    );
}

@keyframes heroZoom {
  from {
    scale: 1;
  }

  to {
    scale: 1.07;
  }
}

.hero-content {
  display: flex;

  flex-direction: column;

  align-items: center;

  width: min(820px, 100%);
}

.hero-logo-wrapper {
  padding: 6px;

  background: rgba(255, 255, 255, 0.14);

  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);

  animation: heroFadeScale 0.9s var(--ease-out) 0.1s both;
}

.hero-logo {
  width: 100px;
  height: 100px;

  border-width: 3px;

  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.hero-label {
  margin-top: 22px;

  padding: 7px 15px;

  background: rgba(255, 255, 255, 0.12);

  border: 1px solid rgba(255, 255, 255, 0.24);

  backdrop-filter: blur(6px);

  letter-spacing: 0.04em;

  animation: heroFadeUp 0.7s var(--ease-out) 0.3s both;
}

.hero h1 {
  margin: 18px 0 16px;

  max-width: 100%;

  font-size: clamp(2.1rem, 5.2vw, 3.6rem);

  line-height: 1.08;

  letter-spacing: -0.02em;

  text-wrap: balance;

  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.16);

  animation: heroFadeUp 0.8s var(--ease-out) 0.45s both;
}

.hero p {
  max-width: 600px;

  font-size: 1.08rem;

  line-height: 1.7;

  color: rgba(255, 255, 255, 0.9);

  opacity: 1;

  text-wrap: pretty;

  animation: heroFadeUp 0.8s var(--ease-out) 0.62s both;
}

.hero-buttons {
  gap: 14px;

  margin-top: 32px;

  animation: heroFadeUp 0.8s var(--ease-out) 0.8s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;

    translate: 0 18px;
  }

  to {
    opacity: 1;

    translate: none;
  }
}

@keyframes heroFadeScale {
  from {
    opacity: 0;

    scale: 0.9;
  }

  to {
    opacity: 1;

    scale: 1;
  }
}

/* =========================================================
   HERO BUTTON
========================================================= */

.hero-btn {
  min-height: 50px;

  padding: 0 26px;

  border-radius: 12px;

  font-size: 0.98rem;

  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.hero-btn.primary {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.hero-btn.primary:hover {
  background: #f1f8f1;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hero-btn.secondary {
  border-color: rgba(255, 255, 255, 0.45);

  backdrop-filter: blur(4px);
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);

  border-color: rgba(255, 255, 255, 0.8);
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn:active {
  transform: translateY(0) scale(0.98);

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);

  transition-duration: 0.08s;
}

/* =========================================================
   FEATURE CARDS
========================================================= */

.quick-info {
  margin: -48px auto 48px;

  gap: 18px;
}

.quick-card {
  gap: 14px;

  padding: 20px;

  min-width: 0;

  border-color: rgba(16, 24, 40, 0.06);

  border-radius: 16px;

  box-shadow: var(--shadow-soft);

  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.quick-card:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-hover);

  border-color: rgba(46, 125, 50, 0.2);
}

.quick-card > i {
  flex-shrink: 0;

  width: 48px;
  height: 48px;

  border-radius: 14px;

  font-size: 1.15rem;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.35s var(--ease-out);
}

.quick-card:hover > i {
  background: var(--primary-color);

  color: white;

  transform: scale(1.06) rotate(-4deg);
}

.quick-card > div {
  min-width: 0;
}

.quick-card strong {
  font-size: 0.95rem;

  line-height: 1.3;

  margin-bottom: 3px;
}

.quick-card span {
  display: block;

  font-size: 0.8rem;

  line-height: 1.45;
}

/* =========================================================
   SCROLL REVEAL
========================================================= */

.js-reveal .reveal {
  opacity: 0;

  translate: 0 20px;

  transition:
    opacity 0.65s var(--ease-out) var(--reveal-delay, 0ms),
    translate 0.65s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.js-reveal .reveal.is-visible {
  opacity: 1;

  translate: none;
}

/* =========================================================
   FLOATING WHATSAPP REFINEMENT
========================================================= */

.floating-wa {
  box-shadow:
    0 8px 22px rgba(37, 211, 102, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease,
    background-color 0.25s ease;

  animation: waFloat 3.6s ease-in-out 1.2s infinite;
}

.floating-wa:hover {
  transform: scale(1.07);

  box-shadow:
    0 12px 28px rgba(37, 211, 102, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.14);
}

.floating-wa:active {
  transform: scale(0.96);
}

@keyframes waFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -4px;
  }
}

.toast-container {
  bottom: 92px;
}

/* =========================================================
   OVERFLOW SECTION ALAT
========================================================= */

.widgets-wrapper > * {
  min-width: 0;
}

.qr-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

/* =========================================================
   RESPONSIVE REFINEMENT
========================================================= */

@media (max-width: 1050px) {
  .quick-info {
    gap: 12px;
  }

  .quick-card {
    padding: 16px;

    gap: 12px;
  }

  .quick-card > i {
    width: 42px;
    height: 42px;

    font-size: 1rem;
  }

  .quick-card strong {
    font-size: 0.86rem;
  }

  .quick-card span {
    font-size: 0.74rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 64px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 0.82rem;
  }

  .brand-info small {
    font-size: 0.64rem;
  }

  .nav-links {
    top: 64px;
  }

  .hero {
    min-height: 0;

    padding: 56px 20px 84px;
  }

  .hero-logo {
    width: 84px;
    height: 84px;
  }

  .hero-label {
    margin-top: 18px;

    font-size: 0.74rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 7.4vw, 2.4rem);

    margin: 14px 0 12px;
  }

  .hero p {
    font-size: 0.95rem;

    line-height: 1.65;
  }

  .hero-buttons {
    width: 100%;

    max-width: 380px;

    margin-top: 26px;

    gap: 10px;
  }

  .quick-info {
    width: 92%;

    margin: -40px auto 36px;

    gap: 10px;
  }

  .quick-card {
    padding: 14px;

    gap: 12px;
  }

  .quick-card > i {
    width: 38px;
    height: 38px;

    border-radius: 11px;

    font-size: 0.92rem;
  }

  .quick-card strong {
    font-size: 0.82rem;
  }

  .quick-card span {
    font-size: 0.72rem;
  }

  .scanner-card,
  .checker-card {
    padding: 1.25rem;
  }

  .floating-wa {
    right: 16px;
    bottom: 16px;

    width: 52px;
    height: 52px;

    font-size: 1.55rem;
  }

  .toast-container {
    left: 16px;
    right: 16px;

    bottom: 80px;
  }

  .toast {
    min-width: 0;
  }
}

@media (min-width: 521px) and (max-width: 768px) {
  .hero-buttons {
    flex-direction: row;

    justify-content: center;

    max-width: none;
  }

  .hero-btn {
    width: auto;
  }
}

@media (max-width: 520px) {
  .quick-card {
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .farmer-container {
    padding: 18px 12px;
  }

  .farmer-card {
    padding: 18px 15px;
  }

  .info-card li {
    font-size: 0.85rem;
  }
}

/* =========================================================
   AKSESIBILITAS
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    animation-delay: 0s !important;

    transition-duration: 0.01ms !important;

    transition-delay: 0s !important;
  }

  .hero::before {
    animation: none;

    translate: none;
  }

  .floating-wa {
    animation: none;
  }

  .js-reveal .reveal {
    opacity: 1;

    translate: none;
  }
}

/* =========================================================
   AKSES PANDUAN
   FORM VERIFIKASI PESANAN
========================================================= */

.guide-container:not(.unlocked) {
  display: grid;

  max-height: none;
}

.guide-container:not(.unlocked) > .guide-steps-grid,
.guide-container:not(.unlocked) > .lock-overlay {
  grid-area: 1 / 1;
}

.guide-container:not(.unlocked) > .guide-steps-grid {
  max-height: 360px;

  overflow: hidden;
}

.guide-container:not(.unlocked) > .lock-overlay {
  position: relative;

  inset: auto;

  padding: 10px 0 40px;
}

.guide-paywall-box .guide-akses-form i,
.guide-paywall-box .guide-akses-link i {
  font-size: inherit;
}

.guide-akses-form {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  max-width: 520px;

  margin: 16px auto 0;
}

.guide-akses-form input {
  flex: 1 1 180px;

  min-width: 0;

  padding: 11px 13px;

  border: 0;

  border-radius: 10px;

  color: var(--text-main);

  font-size: 0.88rem;

  outline: none;
}

.guide-akses-form input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

/* Warna & hover mengikuti .btn-primary (kotak akses kini berlatar putih) */
.guide-akses-form .btn-primary {
  flex: 1 1 100%;

  min-height: 44px;
}

.guide-akses-form .btn-primary:disabled {
  opacity: 0.75;

  cursor: wait;

  transform: none;
}

.guide-paywall-box .guide-akses-pesan {
  max-width: 520px;

  margin: 10px auto 0;

  padding: 9px 12px;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.15);

  font-size: 0.82rem;

  opacity: 1;

  text-align: left;
}

.guide-paywall-box .guide-akses-pesan:empty {
  display: none;
}

.guide-paywall-box .guide-akses-pesan.is-warning {
  background: #fff8e1;

  color: #7a5200;
}

.guide-paywall-box .guide-akses-pesan.is-error {
  background: #ffebee;

  color: #b71c1c;
}

.guide-akses-link {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  margin-top: 12px;

  color: white;

  font-size: 0.85rem;

  font-weight: 700;

  text-decoration: underline;

  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .guide-paywall-box {
    padding: 22px 18px;
  }
}

/* =========================================================
   CATALOG AND CHECKOUT EXPERIENCE
========================================================= */

:root {
  --corporate-green: #2e7d32;
  --corporate-dark: #1b5e20;
  --corporate-light: #81c784;
  --corporate-gold: #f4b942;
  --corporate-ink: #20312a;
  --corporate-muted: #66756c;
  --corporate-line: #e4ebe5;
  --corporate-surface: #f5f8f5;
  --corporate-shadow: 0 18px 48px rgba(24, 55, 31, 0.09);
}

html {
  scroll-padding-top: 88px;
}

body {
  color: var(--corporate-ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.navbar {
  min-height: 78px;
  padding-inline: clamp(18px, 4.5vw, 72px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(27, 94, 32, 0.09);
  box-shadow: 0 5px 24px rgba(24, 55, 31, 0.055);
}

.brand-logo {
  border: 0;
  border-radius: 12px;
  object-fit: contain;
}

.brand-text {
  color: var(--corporate-dark);
  letter-spacing: 0.04em;
}

.brand-info small {
  color: var(--corporate-muted);
  letter-spacing: 0.09em;
}

.nav-links {
  gap: clamp(2px, 0.5vw, 9px);
}

.nav-links a {
  padding: 9px 10px;
  border-radius: 9px;
  color: #34473a;
  font-size: 0.81rem;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--corporate-dark);
  background: #eff6ef;
}

.nav-shop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  color: #fff;
  background: var(--corporate-green);
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-shop-cta:hover {
  transform: translateY(-1px);
  background: var(--corporate-dark);
  box-shadow: 0 7px 18px rgba(46, 125, 50, 0.2);
}

.nav-mobile-shop {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(670px, calc(100vh - 78px));
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(68px, 9vw, 132px) clamp(20px, 8vw, 128px) 48px;
  color: white;
  background:
    linear-gradient(
      90deg,
      rgba(13, 42, 21, 0.88) 0%,
      rgba(22, 65, 31, 0.68) 54%,
      rgba(22, 65, 31, 0.2) 100%
    ),
    url("../../DAUN.jpeg") center 48% / cover no-repeat,
    var(--corporate-dark);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -65%;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.035),
    0 0 0 96px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.hero-content {
  width: min(760px, 100%);
  animation: corporate-rise 0.65s ease both;
}

.hero-label,
.section-label,
.modal-eyebrow {
  display: inline-block;
  color: var(--corporate-green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-label {
  margin-bottom: 18px;
  color: #d8efd9;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-content > p {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 9px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn.primary {
  border-color: var(--corporate-gold);
  color: #26341e;
  background: var(--corporate-gold);
}

.hero-btn.primary:hover {
  background: #ffd06c;
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-btn.secondary:hover {
  color: var(--corporate-dark);
  background: #fff;
}

.hero-stats {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 8vw, 90px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-stats > div {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 20px 0 0;
}

.hero-stats > div + div {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats strong {
  color: #fff;
  font-size: 0.91rem;
}

.hero-stats span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.77rem;
}

.about-section,
.benefits-section,
.catalog-section,
.tools-section,
.guide-section,
.gallery-section,
.farmer-section,
.testimonial-section {
  padding: clamp(68px, 8vw, 108px) clamp(20px, 6vw, 88px);
}

.about-section,
.gallery-section,
.farmer-section,
.testimonial-section {
  background: #fff;
}

.about-layout {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  margin: 0 auto;
}

.about-image-wrap {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--corporate-surface);
  box-shadow: var(--corporate-shadow);
}

.about-image-wrap > img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-image-wrap:hover > img {
  transform: scale(1.035);
}

.about-image-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: #fff;
  background: rgba(20, 53, 27, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.87rem;
  font-weight: 650;
}

.about-image-caption i {
  color: var(--corporate-gold);
}

.about-copy h2,
.section-heading h2 {
  color: var(--corporate-ink);
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-wrap: balance;
}

.about-copy h2 {
  margin: 10px 0 16px;
}

.about-copy > p {
  margin-top: 12px;
  color: var(--corporate-muted);
  line-height: 1.8;
}

.about-copy .about-lead {
  color: #34473a;
  font-size: 1.06rem;
  font-weight: 600;
}

.company-pillars {
  display: grid;
  gap: 14px;
  margin-top: 25px;
}

.company-pillars article {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.pillar-icon,
.benefit-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 11px;
  color: var(--corporate-green);
  background: #edf6ee;
}

.company-pillars h3 {
  color: var(--corporate-ink);
  font-size: 0.94rem;
}

.company-pillars p {
  color: var(--corporate-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.benefits-section {
  background: #f5f8f5;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2 {
  margin-top: 10px;
}

.section-heading > p {
  max-width: 660px;
  margin: 12px auto 0;
  color: var(--corporate-muted);
  line-height: 1.75;
}

.benefits-grid {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin: 0 auto;
}

.benefit-card {
  padding: 24px;
  border: 1px solid var(--corporate-line);
  border-radius: 13px;
  background: #fff;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: #c6ddc8;
  box-shadow: 0 12px 28px rgba(24, 55, 31, 0.08);
}

.benefit-card > span {
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  font-size: 1.05rem;
}

.benefit-card h3 {
  margin-bottom: 7px;
  color: var(--corporate-ink);
  font-size: 1rem;
}

.benefit-card p {
  color: var(--corporate-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.catalog-section {
  background: #fff;
}

.catalog-section .section-heading {
  margin-bottom: 30px;
}

.filter-card,
.catalog-toolbar {
  border: 1px solid var(--corporate-line);
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(24, 55, 31, 0.045);
}

.filter-card {
  background: #fff;
}

.filter-header h3,
.filter-group h4 {
  color: var(--corporate-ink);
}

.filter-option {
  color: var(--corporate-muted);
}

.catalog-toolbar {
  margin-bottom: 17px;
  background: #fff;
}

.products-grid {
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--corporate-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(24, 55, 31, 0.045);
  transition:
    transform 0.23s ease,
    box-shadow 0.23s ease,
    border-color 0.23s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #c8dfca;
  box-shadow: 0 16px 34px rgba(24, 55, 31, 0.11);
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  background: #f3f6f2;
}

.product-img {
  transition: transform 0.45s ease;
}

.product-card:hover .product-img {
  transform: scale(1.045);
}

.product-body {
  padding: 17px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--corporate-dark);
  background: #eef6ef;
  font-size: 0.68rem;
  font-weight: 700;
}

.product-title {
  margin-top: 10px;
  color: var(--corporate-ink);
  font-size: 1rem;
  line-height: 1.4;
}

.product-description {
  color: var(--corporate-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.product-price {
  display: block;
  margin-top: 12px;
  color: var(--corporate-dark);
  font-size: 1.08rem;
}

.product-stok {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #44744a;
  font-size: 0.76rem;
}

.product-stok i {
  font-size: 0.45rem;
}

.product-stok.is-empty,
.detail-product-stock.is-empty {
  color: #ad443e;
}

.product-actions,
.detail-product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 15px;
}

.btn-add-cart,
.btn-detail,
.btn-detail-buy {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--corporate-green);
  border-radius: 8px;
  color: #fff;
  background: var(--corporate-green);
  font-size: 0.8rem;
  font-weight: 750;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn-add-cart:hover,
.btn-detail:hover,
.btn-detail-buy:hover {
  transform: translateY(-1px);
  background: var(--corporate-dark);
}

.btn-add-cart:disabled,
.btn-detail:disabled,
.btn-detail-buy:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.product-actions .btn-add-cart {
  min-height: 40px;
}

.product-actions .btn-detail {
  min-height: 38px;
  color: var(--corporate-green);
  background: #fff;
}

.product-actions .btn-detail:hover {
  color: var(--corporate-dark);
  background: #f0f7f0;
}

.product-quick-view {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--corporate-dark);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-quick-view:hover {
  color: #fff;
  background: var(--corporate-green);
}

.tools-section {
  background: #f5f8f5;
}

.tools-section .section-heading,
.guide-section .section-heading,
.gallery-section .section-heading,
.news-section .section-heading,
.farmer-section .section-heading,
.testimonial-section .section-heading {
  margin-bottom: 34px;
}

.checker-box,
.scanner-card {
  border-color: var(--corporate-line);
  border-radius: 14px;
  box-shadow: var(--corporate-shadow);
}

.guide-section {
  background: #fff;
}

.gallery-section,
.news-section {
  background: #f5f8f5;
}

.gallery-grid {
  gap: 16px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.news-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--corporate-line);
  background: white;
  box-shadow: var(--corporate-shadow);
}

.news-image-wrap {
  display: block;
  height: 220px;
  overflow: hidden;
  background: #edf3ee;
}

.news-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-body {
  padding: 18px;
}

.news-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #edf7ef;
  color: var(--corporate-green);
  font-size: 0.76rem;
  font-weight: 700;
}

.news-body h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.45;
}

.news-body h3 a {
  color: #1b2d20;
}

.news-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: #5d6d62;
  font-size: 0.78rem;
}

.gallery-item,
.gallery-card {
  overflow: hidden;
  border-radius: 12px;
}

.farmer-section {
  background: #fff;
}

.farmer-grid {
  width: min(920px, 100%);
  margin: 0 auto;
}

.farmer-card {
  border: 1px solid var(--corporate-line);
  border-radius: 14px;
  box-shadow: var(--corporate-shadow);
}

.testimonial-section {
  background: #f5f8f5;
}

.modal-overlay {
  padding: 18px;
  background: rgba(15, 31, 20, 0.62);
  backdrop-filter: blur(4px);
}

.modal-card,
.product-detail-modal {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(6, 25, 10, 0.27);
}

.modal-card {
  width: min(540px, 100%);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: 24px;
}

.modal-header {
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--corporate-line);
}

.modal-header h3 {
  margin-top: 5px;
  color: var(--corporate-ink);
  font-size: 1.25rem;
}

.modal-close {
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--corporate-muted);
  background: #f1f5f1;
}

.cart-items {
  max-height: 38vh;
  overflow-y: auto;
}

.cart-empty {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px 12px;
  color: var(--corporate-muted);
  text-align: center;
}

.cart-empty > i {
  margin-bottom: 5px;
  color: #9bbc9e;
  font-size: 2rem;
}

.cart-empty strong {
  color: var(--corporate-ink);
}

.cart-empty span {
  font-size: 0.84rem;
}

.cart-empty a {
  margin-top: 4px;
  color: var(--corporate-green);
  font-size: 0.84rem;
  font-weight: 750;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--corporate-line);
}

.cart-item-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.cart-item-info img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 9px;
  object-fit: cover;
}

.cart-item-info > div {
  min-width: 0;
}

.cart-item-info > div > strong,
.cart-item-info > div > span {
  display: block;
}

.cart-item-info > div > strong {
  overflow-wrap: anywhere;
  color: var(--corporate-ink);
  font-size: 0.87rem;
}

.cart-item-info > div > span {
  color: var(--corporate-muted);
  font-size: 0.76rem;
}

.cart-item-info > div > .cart-item-subtotal {
  margin-top: 3px;
  color: var(--corporate-dark);
}

.qty-control {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.qty-control button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--corporate-line);
  border-radius: 7px;
  color: var(--corporate-dark);
  background: #fff;
}

.qty-control button:hover {
  background: #eef6ef;
}

.qty-control span {
  min-width: 20px;
  color: var(--corporate-ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.qty-control .cart-remove {
  margin-left: 4px;
  color: #b5443d;
}

.cart-total-row {
  margin: 16px 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--corporate-line);
  color: var(--corporate-muted);
  font-size: 0.9rem;
}

.cart-total-row strong {
  color: var(--corporate-dark);
  font-size: 1.15rem;
}

.checkout-fields {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.checkout-fields[hidden] {
  display: none;
}

.checkout-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 5px;
}

.checkout-heading span {
  color: var(--corporate-green);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.checkout-heading strong {
  color: var(--corporate-ink);
}

.checkout-heading small {
  color: var(--corporate-muted);
  font-size: 0.78rem;
}

.checkout-fields label,
.detail-product-quantity {
  color: #415348;
  font-size: 0.8rem;
  font-weight: 700;
}

.checkout-fields input,
.checkout-fields textarea,
.checkout-fields select,
.detail-product-quantity input {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #dce5dd;
  border-radius: 8px;
  outline: none;
  color: var(--corporate-ink);
  background: #fff;
}

.checkout-fields input:focus,
.checkout-fields textarea:focus,
.checkout-fields select:focus,
.detail-product-quantity input:focus {
  border-color: var(--corporate-green);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.11);
}

.checkout-fields textarea {
  resize: vertical;
}

.full-btn {
  width: 100%;
  min-height: 47px;
  border: 0;
  border-radius: 9px;
  font-weight: 750;
}

.product-detail-modal {
  position: relative;
  display: grid;
  width: min(900px, 100%);
  max-height: min(88vh, 760px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: auto;
  background: #fff;
}

.detail-modal-close {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #34473a;
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.5rem;
}

.detail-product-image {
  min-height: 430px;
  background: #f3f6f2;
}

.detail-product-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-product-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.detail-product-content h2 {
  margin-top: 9px;
  color: var(--corporate-ink);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.detail-product-description {
  margin-top: 10px;
  color: var(--corporate-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.detail-product-specs {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 19px;
}

.detail-product-specs > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: #f3f7f3;
}

.detail-product-specs span {
  color: var(--corporate-muted);
  font-size: 0.68rem;
}

.detail-product-specs strong {
  color: var(--corporate-ink);
  font-size: 0.77rem;
  overflow-wrap: anywhere;
}

.detail-product-price {
  margin-top: 19px;
  color: var(--corporate-dark);
  font-size: 1.35rem;
}

.detail-product-stock {
  margin-top: 3px;
  color: #44744a;
  font-size: 0.82rem;
}

.detail-product-quantity {
  display: grid;
  width: 120px;
  gap: 6px;
  margin-top: 14px;
}

.detail-product-quantity input {
  min-height: 40px;
}

.detail-product-actions {
  width: 100%;
  grid-template-columns: 1fr 1fr;
  margin-top: 17px;
}

footer {
  background: #163d20;
}

.floating-wa {
  box-shadow: 0 9px 24px rgba(24, 55, 31, 0.23);
}

@keyframes corporate-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .navbar {
    padding-inline: 20px;
  }

  .brand-wrapper {
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 0.85rem;
  }

  .brand-info small {
    font-size: 0.62rem;
  }

  .nav-links a {
    padding: 7px 6px;
    font-size: 0.72rem;
  }

  .nav-shop-cta {
    display: none;
  }

  .nav-mobile-shop {
    display: list-item;
  }

  .nav-mobile-shop a {
    color: var(--corporate-green);
    font-weight: 800;
  }
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 30px;
  }

  .about-image-wrap,
  .about-image-wrap > img {
    min-height: 390px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
  }

  .nav-shop-cta {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 8px 20px;
    border-top: 1px solid var(--corporate-line);
    background: #fff;
    box-shadow: 0 16px 28px rgba(20, 45, 26, 0.12);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
    font-size: 0.86rem;
  }

  .nav-mobile-shop {
    display: list-item;
    margin-top: 5px;
    border-top: 1px solid var(--corporate-line);
  }

  .nav-mobile-shop a {
    color: var(--corporate-green);
    font-weight: 800;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  .navbar {
    min-height: 64px;
    padding: 8px 14px;
  }

  .nav-links {
    top: 64px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    border-top: 1px solid var(--corporate-line);
    box-shadow: 0 16px 28px rgba(20, 45, 26, 0.12);
  }

  .nav-shop-cta {
    display: none;
  }

  .nav-links a {
    padding: 12px;
    font-size: 0.88rem;
  }

  .nav-mobile-shop {
    display: block;
    margin-top: 5px;
    border-top: 1px solid var(--corporate-line);
  }

  .nav-mobile-shop a {
    color: var(--corporate-green);
    font-weight: 800;
  }

  .hero {
    min-height: 0;
    padding: 80px 22px 28px;
    background-position:
      center,
      58% center;
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 9vw, 3.4rem);
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 44px;
  }

  .hero-stats > div {
    min-height: 72px;
    padding: 12px 10px 10px 0;
  }

  .hero-stats > div + div {
    padding-left: 12px;
  }

  .hero-stats > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-stats > div:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .about-section,
  .benefits-section,
  .catalog-section,
  .tools-section,
  .guide-section,
  .gallery-section,
  .farmer-section,
  .testimonial-section {
    padding: 66px 20px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image-wrap,
  .about-image-wrap > img {
    min-height: 330px;
    max-height: 470px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .benefit-card {
    padding: 19px;
  }

  .product-detail-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .detail-product-image,
  .detail-product-image img {
    min-height: 0;
    max-height: 38vh;
  }

  .detail-product-content {
    padding: 24px;
  }

  .modal-card {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .brand-wrapper {
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 0.78rem;
  }

  .brand-info small {
    font-size: 0.58rem;
  }

  .nav-actions {
    gap: 5px;
  }

  .cart-btn,
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-inline: 18px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-btn {
    width: 100%;
  }

  .hero-stats strong {
    font-size: 0.82rem;
  }

  .hero-stats span {
    font-size: 0.7rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    gap: 10px;
  }

  .cart-item-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .qty-control {
    align-self: flex-end;
  }

  .detail-product-actions {
    grid-template-columns: 1fr;
  }

  .detail-product-specs {
    gap: 5px;
  }

  .detail-product-specs > div {
    padding: 8px 6px;
  }

  .detail-product-specs strong {
    font-size: 0.7rem;
  }
}

.farmer-grid {
  max-width: 1080px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.contact-form-card form {
  display: grid;
  gap: 9px;
}

.contact-form-card label {
  color: var(--corporate-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--corporate-line);
  border-radius: 9px;
  color: var(--corporate-ink);
  background: #fff;
  font: inherit;
}

.contact-form-card textarea {
  resize: vertical;
}

#kontakStatus {
  min-height: 1.25em;
  color: var(--corporate-dark);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .farmer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   PANDUAN - VISUAL REFINEMENT
========================================================= */

.guide-section {
  padding: 56px 20px 64px;
}

.guide-section .section-heading {
  margin-bottom: 28px;
}

.guide-section .section-heading h2 {
  margin-top: 12px;

  font-size: clamp(1.45rem, 2.6vw, 1.9rem);

  line-height: 1.25;

  letter-spacing: -0.01em;

  text-wrap: balance;
}

.guide-section .section-heading p {
  margin-top: 6px;
}

/* =========================================================
   PANDUAN - FIX RUANG KOSONG
========================================================= */

.guide-steps-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;

  align-items: start;

  /*
       INI YANG PALING PENTING.
       Jangan gunakan:
       grid-auto-rows: 1fr;

       Karena 1fr membuat semua card mengikuti
       tinggi baris yang besar.
    */
  grid-auto-rows: auto !important;
}

.guide-card {
  position: relative;

  display: grid;

  grid-template-columns: 28px minmax(0, 1fr);

  column-gap: 12px;

  align-items: start;

  align-content: start;

  align-self: start;

  width: 100%;

  height: auto !important;

  min-height: 0 !important;

  padding: 20px 20px 22px;

  border-color: rgba(46, 125, 50, 0.14);

  border-radius: var(--radius);

  background: var(--surface-soft);

  overflow: hidden;
}

.guide-number {
  position: static;

  width: 28px;
  height: 28px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.guide-card h3 {
  margin: 0;

  padding-top: 3px;

  color: var(--text-main);

  font-size: 1rem;

  font-weight: 700;

  line-height: 1.35;
}

.guide-card p {
  grid-column: 1 / -1;

  margin: 12px 0 0;

  padding: 0;

  font-size: 0.85rem;

  line-height: 1.65;

  color: var(--text-muted);

  text-align: left;

  overflow-wrap: break-word;

  word-break: normal;
}

/* =========================================================
   JIKA ADA LIST DI DALAM PANDUAN
========================================================= */

.guide-card ul {
  grid-column: 1 / -1;

  margin: 10px 0 0;

  padding-left: 20px;

  color: var(--text-muted);

  font-size: 0.85rem;

  line-height: 1.65;
}

.guide-card li {
  margin-bottom: 6px;
}

.guide-card li:last-child {
  margin-bottom: 0;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) and (min-width: 601px) {
  .guide-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;

    grid-auto-rows: auto !important;
  }

  .guide-card {
    height: auto !important;

    min-height: 0 !important;

    align-self: start;
  }
}

/* =========================================================
   HP
========================================================= */

@media (max-width: 600px) {
  .guide-section {
    padding: 44px 16px 52px;
  }

  .guide-section .section-heading {
    margin-bottom: 22px;
  }

  .guide-container {
    width: 100%;

    height: auto;
  }

  .guide-steps-grid {
    grid-template-columns: 1fr;

    gap: 12px;

    grid-auto-rows: auto !important;
  }

  .guide-card {
    height: auto !important;

    min-height: 0 !important;

    padding: 16px 16px 18px;
  }

  .guide-card h3 {
    font-size: 0.95rem;
  }

  .guide-card p {
    margin-top: 10px;

    font-size: 0.84rem;

    line-height: 1.6;
  }

  .guide-card ul {
    font-size: 0.84rem;

    line-height: 1.6;
  }
}

/* =========================================================
   KATALOG - STOK DATABASE
========================================================= */

.product-stok {
  margin: -6px 0 12px;

  color: var(--text-muted);

  font-size: 0.74rem;

  font-weight: 600;
}

.product-badge.badge-habis {
  background: var(--text-muted);
}

.product-card.stok-habis .product-img {
  filter: grayscale(0.6);

  opacity: 0.75;
}

.product-card.stok-habis .product-stok {
  color: var(--danger);
}

.btn-add-cart:disabled {
  background: var(--border-color);

  color: var(--text-muted);

  cursor: not-allowed;
}

.product-img.img-cadangan {
  object-fit: contain;

  padding: 18px;

  background: var(--surface-soft);
}

@media (max-width: 768px) {
  .product-stok {
    font-size: 0.68rem;

    margin: -4px 0 10px;
  }
}
/* =========================================================
   PANDUAN PRODUKSI - PERBAIKAN TOTAL
   Beken Seeds
========================================================= */

/* SECTION UTAMA */
.guide-section {
  width: 100%;
  padding: 70px 20px 80px;
  background: #ffffff;
  overflow: hidden;
}

/* CONTAINER */
.guide-container {
  width: min(1100px, 100%);
  margin: 0 auto;
  max-width: 1100px;

  max-height: none !important;
  overflow: visible !important;

  position: relative;
}

/* =========================================================
   HEADER PANDUAN
========================================================= */

.guide-heading {
  width: 100%;
  text-align: center;

  margin-bottom: 38px;

  padding: 0 15px;
}

.guide-badge {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 9px 22px;

  margin-bottom: 16px;

  background: #e5f3e8;

  color: #26783b;

  border-radius: 30px;

  font-size: 14px;

  font-weight: 700;

  letter-spacing: 0.5px;
}

.guide-badge i {
  font-size: 18px;
}

.guide-heading h2 {
  margin: 0;

  font-size: clamp(32px, 4vw, 46px);

  line-height: 1.15;

  color: #166534;

  font-weight: 800;
}

.guide-heading p {
  margin: 14px auto 0;

  max-width: 760px;

  color: #687b96;

  font-size: 18px;

  line-height: 1.7;
}

/* =========================================================
   GRID CARD
========================================================= */

.guide-steps-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 22px;

  width: 100%;

  align-items: start;

  grid-auto-rows: auto !important;
}

/* =========================================================
   CARD
========================================================= */

.guide-card {
  position: relative;

  width: 100%;

  min-width: 0 !important;

  height: auto !important;

  min-height: 0 !important;

  align-self: start;

  box-sizing: border-box;

  padding: 24px 24px 26px;

  background: #f4faf5;

  border: 1px solid #c8e2ce;

  border-radius: 18px;

  overflow: hidden;

  display: block;

  box-shadow: 0 8px 24px rgba(35, 91, 49, 0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-3px);

  border-color: #9dcca7;

  box-shadow: 0 14px 30px rgba(35, 91, 49, 0.1);
}

/* =========================================================
   HEADER CARD
========================================================= */

.guide-card-header {
  display: flex;

  align-items: center;

  width: 100%;

  min-width: 0;

  gap: 14px;

  margin-bottom: 18px;
}

/* NOMOR */
.guide-number {
  flex: 0 0 44px;

  width: 44px;

  height: 44px;

  min-width: 44px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: #2e7d32;

  color: #ffffff;

  font-size: 19px;

  font-weight: 800;

  line-height: 1;

  box-shadow: 0 0 0 7px rgba(46, 125, 50, 0.1);
}

/* =========================================================
   JUDUL CARD
========================================================= */

.guide-title {
  display: flex;

  align-items: center;

  gap: 10px;

  min-width: 0;

  flex: 1;
}

.guide-title i {
  flex: 0 0 auto;

  font-size: 27px;

  color: #176b38;
}

.guide-title h3 {
  margin: 0;

  min-width: 0;

  color: #26333b;

  font-size: 21px;

  font-weight: 800;

  line-height: 1.3;

  word-break: normal;

  overflow-wrap: normal;
}

/* =========================================================
   DESKRIPSI
========================================================= */

.guide-description {
  width: 100%;

  margin: 0 0 20px;

  color: #697b96;

  font-size: 16px;

  line-height: 1.8;

  word-break: normal;

  overflow-wrap: break-word;
}

/* =========================================================
   INFO BOX
========================================================= */

.guide-info-box {
  width: 100%;

  min-width: 0;

  box-sizing: border-box;

  padding: 20px;

  background: #e8f5eb;

  border-radius: 15px;
}

/* =========================================================
   JUDUL INFO
========================================================= */

.guide-info-title {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  width: 100%;

  min-width: 0;

  margin-bottom: 14px;
}

.guide-info-title i {
  flex: 0 0 auto;

  margin-top: 2px;

  color: #166534;

  font-size: 20px;
}

.guide-info-title h4 {
  margin: 0;

  color: #166534;

  font-size: 18px;

  font-weight: 800;

  line-height: 1.4;

  min-width: 0;

  word-break: normal;
}

/* =========================================================
   CHECK LIST
========================================================= */

.guide-check-list {
  list-style: none;

  margin: 0;

  padding: 0;

  width: 100%;
}

.guide-check-list li {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  width: 100%;

  min-width: 0;

  margin: 0 0 10px;

  padding: 0;

  color: #526a80;

  font-size: 15.5px;

  line-height: 1.65;

  word-break: normal;

  overflow-wrap: break-word;
}

.guide-check-list li:last-child {
  margin-bottom: 0;
}

.guide-check-list li i {
  flex: 0 0 auto;

  margin-top: 4px;

  color: #2e7d32;

  font-size: 16px;
}

.guide-check-list li span {
  display: block;

  min-width: 0;

  flex: 1;

  word-break: normal;

  overflow-wrap: break-word;
}

/* =========================================================
   PENTING
   MENCEGAH TEXT TURUN SATU HURUF
========================================================= */

.guide-card,
.guide-card *,
.guide-card-header,
.guide-title,
.guide-info-box,
.guide-info-title,
.guide-check-list,
.guide-check-list li {
  box-sizing: border-box;
}

.guide-card {
  min-width: 0 !important;
}

.guide-title h3,
.guide-description,
.guide-info-title h4,
.guide-check-list li span {
  max-width: 100%;

  white-space: normal;

  word-break: normal;

  overflow-wrap: break-word;

  hyphens: none;
}

/* =========================================================
   MATIKAN RULE LAMA YANG MEMAKSA TINGGI CARD SAMA
========================================================= */

@media (min-width: 601px) {
  .guide-steps-grid {
    grid-auto-rows: auto !important;

    align-items: start !important;
  }

  .guide-card {
    height: auto !important;

    min-height: 0 !important;

    max-height: none !important;

    align-self: start !important;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .guide-section {
    padding: 60px 18px 70px;
  }

  .guide-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
  }

  .guide-card {
    padding: 22px 20px 23px;
  }

  .guide-title h3 {
    font-size: 19px;
  }

  .guide-description {
    font-size: 15.5px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {
  .guide-section {
    padding: 50px 15px 60px;
  }

  .guide-container {
    width: 100%;
  }

  .guide-heading {
    margin-bottom: 28px;

    padding: 0 5px;
  }

  .guide-badge {
    font-size: 12px;

    padding: 8px 16px;
  }

  .guide-heading h2 {
    font-size: 30px;
  }

  .guide-heading p {
    font-size: 15px;

    line-height: 1.6;
  }

  .guide-steps-grid {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .guide-card {
    width: 100%;

    padding: 20px 18px 21px;

    border-radius: 15px;
  }

  .guide-card-header {
    gap: 12px;

    margin-bottom: 15px;
  }

  .guide-number {
    flex-basis: 40px;

    width: 40px;

    height: 40px;

    min-width: 40px;

    font-size: 17px;
  }

  .guide-title {
    gap: 8px;
  }

  .guide-title i {
    font-size: 22px;
  }

  .guide-title h3 {
    font-size: 18px;

    line-height: 1.35;
  }

  .guide-description {
    font-size: 15px;

    line-height: 1.7;

    margin-bottom: 17px;
  }

  .guide-info-box {
    padding: 16px;
  }

  .guide-info-title {
    gap: 9px;

    margin-bottom: 12px;
  }

  .guide-info-title i {
    font-size: 18px;
  }

  .guide-info-title h4 {
    font-size: 16px;
  }

  .guide-check-list li {
    font-size: 14.5px;

    line-height: 1.6;

    gap: 8px;

    margin-bottom: 9px;
  }
}

/* =========================================================
   MOBILE KECIL
========================================================= */

@media (max-width: 400px) {
  .guide-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .guide-heading h2 {
    font-size: 27px;
  }

  .guide-card {
    padding: 18px 15px 19px;
  }

  .guide-number {
    flex-basis: 37px;

    width: 37px;

    height: 37px;

    min-width: 37px;
  }

  .guide-title h3 {
    font-size: 17px;
  }

  .guide-info-box {
    padding: 14px;
  }
}
/* =========================================================
   FIX PANDUAN PRODUKSI CARD 1 - 6
   Semua card menjadi grid 3 kolom
========================================================= */

/* GRID UTAMA */
.guide-steps-grid {
  display: grid !important;

  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

  gap: 22px !important;

  width: 100% !important;

  align-items: start !important;

  grid-auto-rows: auto !important;

  height: auto !important;

  min-height: 0 !important;

  overflow: visible !important;
}

/* SEMUA CARD */
.guide-steps-grid .guide-card {
  position: relative;

  width: 100% !important;

  max-width: 100% !important;

  min-width: 0 !important;

  height: auto !important;

  min-height: 0 !important;

  max-height: none !important;

  margin: 0 !important;

  align-self: start !important;

  box-sizing: border-box;

  overflow: hidden;

  padding: 24px !important;

  background: #f4faf5;

  border: 1px solid #c8e2ce;

  border-radius: 18px;

  box-shadow: 0 8px 24px rgba(35, 91, 49, 0.06);
}

/* HEADER CARD */
.guide-steps-grid .guide-card-header {
  display: flex;

  align-items: center;

  width: 100%;

  min-width: 0;

  gap: 14px;

  margin-bottom: 18px;
}

/* NOMOR */
.guide-steps-grid .guide-number {
  flex: 0 0 44px;

  width: 44px;

  height: 44px;

  min-width: 44px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: #2e7d32;

  color: #ffffff;

  font-size: 19px;

  font-weight: 800;

  line-height: 1;
}

/* JUDUL */
.guide-steps-grid .guide-title {
  display: flex;

  align-items: center;

  gap: 10px;

  flex: 1;

  min-width: 0;
}

.guide-steps-grid .guide-title i {
  flex: 0 0 auto;

  color: #176b38;

  font-size: 26px;
}

.guide-steps-grid .guide-title h3 {
  margin: 0;

  min-width: 0;

  color: #26333b;

  font-size: 20px;

  font-weight: 800;

  line-height: 1.35;

  white-space: normal;

  word-break: normal;

  overflow-wrap: break-word;
}

/* DESKRIPSI */
.guide-steps-grid .guide-description {
  width: 100%;

  margin: 0 0 20px;

  color: #687b96;

  font-size: 16px;

  line-height: 1.75;

  white-space: normal;

  word-break: normal;

  overflow-wrap: break-word;
}

/* INFO BOX */
.guide-steps-grid .guide-info-box {
  width: 100%;

  min-width: 0;

  box-sizing: border-box;

  padding: 19px;

  background: #e8f5eb;

  border-radius: 15px;
}

/* JUDUL INFO */
.guide-steps-grid .guide-info-title {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  width: 100%;

  min-width: 0;

  margin-bottom: 14px;
}

.guide-steps-grid .guide-info-title i {
  flex: 0 0 auto;

  margin-top: 3px;

  color: #166534;

  font-size: 19px;
}

.guide-steps-grid .guide-info-title h4 {
  margin: 0;

  color: #166534;

  font-size: 17px;

  font-weight: 800;

  line-height: 1.4;

  word-break: normal;

  overflow-wrap: break-word;
}

/* LIST */
.guide-steps-grid .guide-check-list {
  list-style: none;

  width: 100%;

  margin: 0;

  padding: 0;
}

.guide-steps-grid .guide-check-list li {
  display: flex;

  align-items: flex-start;

  gap: 9px;

  width: 100%;

  min-width: 0;

  margin: 0 0 10px;

  padding: 0;

  color: #526a80;

  font-size: 15px;

  line-height: 1.65;

  white-space: normal;

  word-break: normal;

  overflow-wrap: break-word;
}

.guide-steps-grid .guide-check-list li:last-child {
  margin-bottom: 0;
}

.guide-steps-grid .guide-check-list li i {
  flex: 0 0 auto;

  margin-top: 5px;

  color: #2e7d32;

  font-size: 15px;
}

.guide-steps-grid .guide-check-list li span {
  flex: 1;

  min-width: 0;

  white-space: normal;

  word-break: normal;

  overflow-wrap: break-word;
}

/* =========================================================
   CARD NOMOR 4, 5, 6
   Jangan dibuat full width
========================================================= */

.guide-steps-grid .guide-card:nth-child(4),
.guide-steps-grid .guide-card:nth-child(5),
.guide-steps-grid .guide-card:nth-child(6) {
  width: 100% !important;

  grid-column: auto !important;

  grid-row: auto !important;

  margin: 0 !important;

  align-self: start !important;
}

/* =========================================================
   HAPUS PEMAKSAAN TINGGI CARD
========================================================= */

@media (min-width: 601px) {
  .guide-steps-grid {
    grid-auto-rows: auto !important;

    align-items: start !important;
  }

  .guide-steps-grid .guide-card {
    height: auto !important;

    min-height: 0 !important;

    max-height: none !important;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .guide-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 18px !important;
  }

  .guide-steps-grid .guide-card {
    padding: 21px !important;
  }
}

/* =========================================================
   HP
========================================================= */

@media (max-width: 650px) {
  .guide-steps-grid {
    grid-template-columns: 1fr !important;

    gap: 15px !important;
  }

  .guide-steps-grid .guide-card {
    width: 100% !important;

    padding: 19px 17px 21px !important;

    border-radius: 15px;
  }

  .guide-steps-grid .guide-title h3 {
    font-size: 18px;
  }

  .guide-steps-grid .guide-description {
    font-size: 15px;

    line-height: 1.7;
  }

  .guide-steps-grid .guide-info-box {
    padding: 16px;
  }
}

/* =========================================================
   HP KECIL
========================================================= */

@media (max-width: 400px) {
  .guide-steps-grid {
    gap: 12px !important;
  }

  .guide-steps-grid .guide-card {
    padding: 17px 15px !important;
  }

  .guide-steps-grid .guide-number {
    width: 38px;

    height: 38px;

    min-width: 38px;

    flex-basis: 38px;
  }

  .guide-steps-grid .guide-title h3 {
    font-size: 17px;
  }
}
/* =========================================================
   FIX LAYOUT PANDUAN - BEKEN SEEDS
   ========================================================= */

.guide-section {
  position: relative;
  overflow: hidden;
}

.guide-container {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* GRID PANDUAN */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* KARTU PANDUAN */
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 100%;
  box-sizing: border-box;

  padding: 32px 30px;
  border-radius: 24px;

  background: #f5faf6;
  border: 1px solid #cfe5d2;
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.07);

  overflow: hidden;
}

/* Nomor */
.guide-number {
  position: relative;
  flex-shrink: 0;

  width: 68px;
  height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 12px;

  border-radius: 50%;

  background: #2e7d32;
  color: #ffffff;

  font-size: 28px;
  font-weight: 800;

  box-shadow:
    0 0 0 10px #e5f1e6,
    0 6px 15px rgba(46, 125, 50, 0.15);
}

/* Judul */
.guide-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;

  margin: 8px 0 14px;

  color: #263238;

  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;

  overflow-wrap: anywhere;
}

.guide-card h3 i {
  flex-shrink: 0;
  color: #2e7d32;
}

/* Deskripsi */
.guide-card > p {
  margin: 0 0 20px;

  color: #6b7c93;

  font-size: 17px;
  line-height: 1.8;

  overflow-wrap: anywhere;
}

/* Isi detail */
.guide-detail {
  width: 100%;
  min-width: 0;

  color: #667085;

  font-size: 16px;
  line-height: 1.75;

  overflow-wrap: anywhere;
}

/* Subjudul */
.guide-detail h4 {
  margin: 22px 0 9px;

  color: #263238;

  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
}

.guide-detail h4:first-child {
  margin-top: 0;
}

/* Paragraf detail */
.guide-detail p {
  margin: 0 0 14px;
}

/* List */
.guide-detail ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.guide-detail li {
  margin-bottom: 8px;
  padding-left: 3px;
}

/* Strong */
.guide-detail strong {
  color: #263238;
}

/* =========================================================
   KARTU TERKUNCI
   ========================================================= */

.guide-card.blur-content {
  position: relative;
}

.guide-card.blur-content .guide-detail {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

/* Jangan sampai isi kartu keluar */
.guide-card img,
.guide-card video,
.guide-card iframe {
  max-width: 100%;
}

/* =========================================================
   OVERLAY PANDUAN
   ========================================================= */

.lock-overlay {
  position: absolute;
  inset: 0;

  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(245, 250, 246, 0.35);
  backdrop-filter: blur(2px);

  border-radius: 24px;
}

.guide-paywall-box {
  width: min(520px, 100%);
  padding: 35px;

  text-align: center;

  background: #ffffff;

  border: 1px solid #d8e8da;
  border-radius: 22px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.guide-paywall-box > i {
  width: 70px;
  height: 70px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 18px;

  border-radius: 50%;

  background: #e8f5e9;
  color: #2e7d32;

  font-size: 28px;
}

.guide-paywall-box h3 {
  margin: 0 0 12px;

  color: #263238;

  font-size: 24px;
}

.guide-paywall-box p {
  color: #667085;
  line-height: 1.7;
}

.guide-akses-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.guide-akses-form input {
  width: 100%;
  box-sizing: border-box;

  padding: 14px 16px;

  border: 1px solid #d5dfd6;
  border-radius: 12px;

  font-size: 15px;
  outline: none;

  transition: 0.2s ease;
}

.guide-akses-form input:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.guide-akses-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  margin-top: 18px;

  color: #2e7d32;
  text-decoration: none;
  font-weight: 700;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Laptop */
@media (max-width: 1200px) {
  .guide-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .guide-card {
    padding: 28px 24px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .guide-container {
    padding: 0 14px;
  }

  .guide-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .guide-card {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .guide-number {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .guide-card h3 {
    font-size: 20px;
  }

  .guide-card > p {
    font-size: 16px;
  }

  .guide-detail {
    font-size: 15px;
  }

  .guide-detail h4 {
    font-size: 17px;
  }

  .lock-overlay {
    position: relative;
    inset: auto;

    margin-top: 20px;

    padding: 15px;

    background: transparent;
    backdrop-filter: none;
  }

  .guide-paywall-box {
    padding: 25px 20px;
  }
}

/* HP kecil */
@media (max-width: 480px) {
  .guide-card {
    padding: 22px 18px;
  }

  .guide-card h3 {
    font-size: 18px;
  }

  .guide-card > p,
  .guide-detail {
    font-size: 14px;
    line-height: 1.7;
  }

  .guide-detail h4 {
    font-size: 16px;
  }

  .guide-paywall-box h3 {
    font-size: 21px;
  }
}

/* =========================================================
   RINGKASAN STANDAR PRODUKSI (BERANDA)
   Bab 1–3 publik + daftar isi Bab 4. Isi Bab 4 tidak ada di
   beranda, jadi kartu tidak perlu dipotong/diblur lagi.
========================================================= */

.guide-container.guide-ringkasan,
.guide-container.guide-ringkasan:not(.unlocked) {
  display: block;

  max-height: none;

  overflow: visible;
}

.guide-container.guide-ringkasan::after {
  display: none;
}

.guide-container.guide-ringkasan > .guide-steps-grid {
  max-height: none;

  overflow: visible;
}

.guide-baca-bab {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  margin-top: 16px;

  color: var(--primary-color);

  font-size: 0.9rem;
  font-weight: 700;

  text-decoration: none;
}

.guide-baca-bab:hover {
  color: var(--primary-dark);

  text-decoration: underline;
}

.guide-bab4 {
  margin-top: 24px;

  padding: 20px;

  border: 1px dashed rgba(46, 125, 50, 0.35);
  border-radius: var(--radius);

  background: var(--surface-soft);
}

.guide-bab4 h3 {
  display: flex;

  align-items: center;

  gap: 8px;

  margin: 0 0 12px;

  color: var(--primary-dark);

  font-size: 1rem;
  line-height: 1.35;
}

.guide-bab4-list {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 6px 16px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.guide-bab4-list a {
  display: flex;

  align-items: baseline;

  gap: 8px;

  padding: 6px 8px;

  border-radius: 8px;

  color: var(--text-main);

  font-size: 0.88rem;

  text-decoration: none;

  overflow-wrap: anywhere;
}

.guide-bab4-list a:hover {
  background: white;

  color: var(--primary-dark);
}

.guide-bab4-list span {
  min-width: 2.6em;

  color: var(--primary-color);

  font-weight: 800;
}

.guide-ringkasan .guide-paywall-box {
  width: 100%;

  max-width: 700px;
}

.guide-paywall-box[hidden] {
  display: none;
}

/* Tombol memakai gaya .btn-primary yang sudah ada */
.guide-akses-aktif .guide-baca-lengkap {
  margin-top: 16px;

  text-decoration: none;
}

.guide-akses-aktif .guide-baca-lengkap i {
  font-size: inherit;
}

@media (max-width: 900px) {
  .guide-bab4-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .guide-bab4 {
    padding: 16px 12px;
  }

  .guide-bab4-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Shared interaction and homepage refinements */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(46, 125, 50, 0.38);
  outline-offset: 3px;
}

.hero {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: clamp(44px, 6vw, 78px) clamp(20px, 6vw, 88px) 34px;
  color: var(--corporate-ink);
  background: linear-gradient(115deg, #f4f8f2 0%, #fff 64%, #edf5ec 100%);
}

.hero::after {
  display: none;
}

.hero::before {
  display: none;
  animation: none;
  translate: none;
}

.hero-main {
  display: grid;
  width: min(1200px, 100%);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  margin: 0 auto;
}

.hero-content {
  width: auto;
  animation: corporate-rise 0.55s ease both;
}

.hero-label {
  color: var(--corporate-green);
}

.hero-content h1 {
  color: var(--corporate-dark);
  font-size: clamp(2.45rem, 4.8vw, 4rem);
}

.hero-content > p {
  color: #526258;
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  animation: corporate-rise 0.7s ease both;
}

.hero-visual img {
  display: block;
  width: 100%;
  max-height: 480px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(27, 94, 32, 0.12);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(24, 55, 31, 0.14);
}

.hero-visual figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 9px;
  color: var(--corporate-dark);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-stats {
  width: min(1200px, 100%);
  margin: 38px auto 0;
  border-color: var(--corporate-line);
}

.hero-stats > div + div {
  border-color: var(--corporate-line);
}

.hero-stats strong {
  color: var(--corporate-dark);
}

.hero-stats span {
  color: var(--corporate-muted);
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--corporate-dark);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.news-read-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .hero {
    padding: 44px 20px 28px;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .hero-visual img {
    max-height: 360px;
  }

  .hero-content h1 {
    font-size: clamp(2.1rem, 8vw, 3.25rem);
  }

  .hero-stats {
    margin-top: 28px;
    border-top-color: var(--corporate-line);
  }

  .hero-stats > div + div {
    border-left-color: var(--corporate-line);
  }

  .hero-stats > div:nth-child(3),
  .hero-stats > div:nth-child(4) {
    border-top-color: var(--corporate-line);
  }
}

@media (max-width: 360px) {
  .hero {
    padding-inline: 14px;
  }

  .hero-stats > div {
    padding-right: 6px;
  }

  .hero-stats > div + div {
    padding-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-visual {
    animation: none;
  }
}

.order-success-overlay {
  z-index: 3100;
  padding: 18px;
}

.order-success-card {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(22px, 5vw, 36px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(14, 38, 20, 0.25);
  text-align: center;
}

.order-success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2c6b3b;
  font-size: 1.7rem;
}

.order-success-card h2 {
  color: #244f30;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
}

.order-success-card > p {
  margin-top: 8px;
  color: #667369;
  font-size: 0.9rem;
}

.order-success-meta {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  text-align: left;
}

.order-success-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f2f6f2;
}

.order-success-meta dt {
  color: #657368;
}

.order-success-meta dd {
  margin: 0;
  color: #244f30;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.order-success-message {
  color: #a32c25 !important;
}

.order-success-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.order-success-actions button {
  width: 100%;
  min-height: 46px;
}

.btn-order-back {
  border: 1px solid #d5dfd6;
  border-radius: 8px;
  color: #294b30;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.order-document-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(12, 28, 16, 0.72);
}

.order-document-dialog {
  display: flex;
  width: min(1000px, 100%);
  height: min(94vh, 1200px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.order-document-toolbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  color: #244f30;
}

.order-document-toolbar > div {
  display: flex;
  gap: 8px;
}

.order-document-toolbar button {
  min-height: 38px;
  padding: 7px 11px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #285d36;
  font-weight: 700;
  cursor: pointer;
}

.order-document-frame {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #eef2ee;
}

@media (max-width: 420px) {
  .order-success-overlay {
    padding: 10px;
  }

  .order-success-meta > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .order-success-meta dd {
    text-align: left;
  }

  .order-document-overlay {
    padding: 0;
  }

  .order-document-dialog {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .order-document-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Polished homepage motion and interaction states */
.hero-content {
  animation: none;
  align-items: flex-start;
  text-align: left;
}

.hero-label,
.hero-content h1,
.hero-content > p,
.hero-buttons {
  animation: hero-stagger-in 0.68s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-label {
  animation-delay: 0.08s;
}
.hero-content h1 {
  animation-delay: 0.2s;
}
.hero-content > p {
  animation-delay: 0.34s;
}
.hero-buttons {
  animation-delay: 0.48s;
}

.hero-visual {
  animation: hero-image-in 0.76s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s both;
}

.hero-visual img {
  animation: hero-image-float 8s ease-in-out 1s infinite;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-visual:hover img {
  transform: scale(1.02);
  box-shadow: 0 22px 48px rgba(24, 55, 31, 0.18);
}

.hero-btn.secondary {
  border-color: rgba(39, 91, 49, 0.24);
  color: var(--corporate-dark);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 5px 14px rgba(24, 55, 31, 0.06);
}

.hero-btn.secondary:hover {
  border-color: rgba(39, 91, 49, 0.38);
  color: var(--corporate-dark);
  background: #fff;
  box-shadow: 0 10px 22px rgba(24, 55, 31, 0.12);
}

.hero-btn .fa-arrow-right,
.btn-primary .fa-arrow-right,
.btn-add-cart .fa-arrow-right,
.btn-detail-buy .fa-arrow-right,
.nav-shop-cta .fa-arrow-right {
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-btn:hover .fa-arrow-right,
.btn-primary:hover .fa-arrow-right,
.btn-add-cart:hover .fa-arrow-right,
.btn-detail-buy:hover .fa-arrow-right,
.nav-shop-cta:hover .fa-arrow-right {
  transform: translateX(4px);
}

.hero-btn,
.btn-primary,
.btn-add-cart,
.btn-detail-buy,
.nav-shop-cta {
  transition:
    transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease;
}

.btn-primary:hover,
.btn-add-cart:hover:not(:disabled),
.btn-detail-buy:hover,
.nav-shop-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(24, 55, 31, 0.14);
}

.btn-primary:active,
.btn-add-cart:active:not(:disabled),
.btn-detail-buy:active,
.nav-shop-cta:active {
  transform: translateY(1px);
}

.nav-links a.is-current {
  color: var(--primary-dark);
}

.nav-links a.is-current::after {
  transform: scaleX(1);
}

.benefits-section,
.tools-section,
.news-section {
  background-color: #f5f8f4;
}

.benefit-card,
.company-pillars article {
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.benefit-card:hover,
.company-pillars article:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(24, 55, 31, 0.1);
}

.product-card {
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-img {
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.floating-wa {
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s ease;
}

.floating-wa:hover {
  transform: scale(1.05);
}

@keyframes hero-stagger-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-image-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

@media (max-width: 768px) {
  .hero-visual:hover img {
    transform: none;
  }

  .hero-visual img {
    animation-duration: 10s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-label,
  .hero-content h1,
  .hero-content > p,
  .hero-buttons,
  .hero-visual,
  .hero-visual img {
    animation: none !important;
    translate: none;
  }

  .hero-visual:hover img,
  .benefit-card:hover,
  .company-pillars article:hover,
  .product-card:hover,
  .btn-primary:hover,
  .btn-add-cart:hover:not(:disabled),
  .btn-detail-buy:hover,
  .nav-shop-cta:hover {
    transform: none;
  }
}

/* Premium homepage finish */
:root {
  --home-ease: cubic-bezier(0.22, 0.68, 0, 1);
  --home-shadow: 0 18px 46px rgba(29, 67, 38, 0.1);
  --home-shadow-hover: 0 24px 54px rgba(29, 67, 38, 0.15);
}

.navbar {
  min-height: 72px;
  box-shadow: 0 2px 14px rgba(26, 58, 34, 0.045);
  transition:
    min-height 0.28s var(--home-ease),
    padding 0.28s var(--home-ease),
    box-shadow 0.28s ease,
    background-color 0.28s ease;
  animation: home-nav-in 0.55s var(--home-ease) both;
}

.navbar.is-scrolled {
  min-height: 66px;
  padding-block: 6px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(26, 58, 34, 0.1);
}

.navbar.is-scrolled .brand-logo {
  width: 38px;
  height: 38px;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  transition: transform 0.28s var(--home-ease);
}

.hero {
  min-height: min(650px, calc(100svh - 76px));
  padding: clamp(54px, 7vw, 96px) clamp(22px, 6vw, 92px) 38px;
  background:
    radial-gradient(
      ellipse at 92% 7%,
      rgba(204, 226, 197, 0.32),
      transparent 30%
    ),
    linear-gradient(120deg, #f4f8f2 0%, #fff 54%, #f2f7f0 100%);
}

.hero::before {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 48%;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.78)
    ),
    url("../../FOTO.jpeg") center 58% / cover no-repeat;
  opacity: 0.34;
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  z-index: 0;
  top: 12%;
  right: clamp(20px, 5vw, 76px);
  width: min(43vw, 590px);
  height: 64%;
  border-radius: 24% 34% 18% 29%;
  background: linear-gradient(
    145deg,
    rgba(129, 166, 111, 0.23),
    rgba(222, 237, 216, 0.42)
  );
  content: "";
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 1;
  width: min(1220px, 100%);
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5.4vw, 76px);
}

.hero-content {
  animation: home-content-in 0.62s var(--home-ease) both;
}

.hero-label,
.hero-content h1,
.hero-content > p,
.hero-buttons {
  animation: home-content-in 0.64s var(--home-ease) both;
}

.hero-label {
  animation-delay: 0.08s;
}
.hero-content h1 {
  animation-delay: 0.18s;
}
.hero-content > p {
  animation-delay: 0.3s;
}
.hero-buttons {
  animation-delay: 0.42s;
}

.hero-label {
  margin-bottom: 16px;
  color: var(--corporate-green);
  letter-spacing: 0.15em;
}

.hero-content h1 {
  max-width: 640px;
  margin-bottom: 16px;
  color: #214c2c;
  font-size: clamp(2.2rem, 4.1vw, 3.6rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.hero-content > p {
  max-width: 570px;
  color: #5a6b5e;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.78;
}

.hero-buttons {
  gap: 13px;
  margin-top: 26px;
}

.hero-btn {
  min-height: 48px;
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(32, 62, 36, 0.07);
  transition:
    transform 0.24s var(--home-ease),
    box-shadow 0.24s ease,
    color 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(32, 62, 36, 0.14);
}

.hero-btn:active {
  transform: translateY(0);
}

.hero-visual {
  animation: home-image-in 0.76s var(--home-ease) 0.16s both;
}

.hero-visual img {
  max-height: 450px;
  border-radius: 20px;
  box-shadow: 0 22px 52px rgba(24, 55, 31, 0.16);
  animation: home-image-float 9s ease-in-out 1s infinite;
  transition:
    transform 0.42s var(--home-ease),
    box-shadow 0.42s ease;
}

.hero-visual:hover img {
  transform: scale(1.018);
  box-shadow: 0 26px 58px rgba(24, 55, 31, 0.19);
}

.hero-visual figcaption {
  right: 16px;
  bottom: 16px;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(20, 53, 27, 0.08);
}

.hero-stats {
  position: relative;
  z-index: 1;
  width: min(1220px, 100%);
  margin-top: clamp(34px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(219, 231, 219, 0.9);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 24px rgba(29, 67, 38, 0.045);
}

.hero-stats > div {
  min-height: 76px;
  padding: 12px 18px;
}

.hero-stats > div + div {
  border-color: rgba(219, 231, 219, 0.9);
}

.hero-stats strong {
  font-size: 0.88rem;
}

.hero-stats span {
  font-size: 0.75rem;
}

.about-section,
.benefits-section,
.catalog-section,
.tools-section,
.guide-section,
.gallery-section,
.farmer-section,
.testimonial-section,
.news-section {
  scroll-margin-top: 88px;
}

.about-section,
.gallery-section,
.farmer-section,
.testimonial-section {
  background-color: #fff;
}

.benefits-section,
.tools-section,
.news-section {
  background-color: #f5f8f4;
}

.about-image-wrap,
.benefit-card,
.company-pillars article,
.product-card,
.gallery-card,
.news-card,
.calc-box,
.checker-box,
.contact-card {
  transition:
    transform 0.3s var(--home-ease),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.about-image-wrap:hover,
.benefit-card:hover,
.company-pillars article:hover,
.product-card:hover,
.gallery-card:hover,
.news-card:hover,
.calc-box:hover,
.checker-box:hover,
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--home-shadow-hover);
}

.about-image-wrap:hover > img,
.product-card:hover .product-img,
.gallery-card:hover img,
.news-card:hover img {
  transform: scale(1.025);
}

.section-heading h2,
.about-copy h2 {
  letter-spacing: -0.04em;
}

.floating-wa {
  box-shadow:
    0 9px 24px rgba(37, 211, 102, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.25s var(--home-ease),
    box-shadow 0.25s ease;
}

.floating-wa:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 13px 28px rgba(37, 211, 102, 0.34),
    0 4px 10px rgba(0, 0, 0, 0.12);
}

@keyframes home-nav-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-content-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-image-in {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes home-image-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .navbar {
    min-height: 72px;
    padding-inline: 22px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--corporate-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(24, 55, 31, 0.12);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 11px 12px;
    font-size: 0.9rem;
  }

  .nav-mobile-shop {
    display: block;
  }

  .nav-mobile-shop a {
    color: var(--corporate-dark);
    font-weight: 750;
  }

  .nav-shop-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 64px;
  }

  .navbar.is-scrolled {
    min-height: 58px;
  }

  .navbar.is-scrolled .nav-links {
    top: 58px;
  }

  .hero {
    min-height: 0;
    padding: 44px 20px 28px;
  }

  .hero::after {
    top: 41%;
    right: 0;
    width: 76%;
    height: 34%;
    opacity: 0.55;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .hero-content h1 {
    max-width: 590px;
    font-size: clamp(2rem, 7.2vw, 3.05rem);
  }

  .hero-content > p {
    max-width: 600px;
  }

  .hero-visual {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }

  .hero-visual img {
    max-height: 370px;
    border-radius: 16px;
  }

  .hero-stats {
    margin-top: 28px;
    border-top: 1px solid rgba(219, 231, 219, 0.9);
  }

  .hero-stats > div {
    min-height: 70px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-inline: 17px;
  }

  .hero-label {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.5rem);
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 340px);
  }

  .hero-btn {
    width: 100%;
  }

  .hero-visual figcaption {
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .hero-stats > div {
    padding-inline: 9px;
  }

  .hero-stats strong {
    font-size: 0.78rem;
  }

  .hero-stats span {
    font-size: 0.68rem;
  }

  .floating-wa {
    right: 14px;
    bottom: 14px;
    width: 45px;
    height: 45px;
    font-size: 1.32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar,
  .hero-label,
  .hero-content,
  .hero-content h1,
  .hero-content > p,
  .hero-buttons,
  .hero-visual,
  .hero-visual img {
    animation: none !important;
  }

  .hero-visual img {
    translate: none !important;
  }

  .navbar,
  .navbar.is-scrolled {
    min-height: inherit;
    padding-block: 10px;
  }

  .navbar.is-scrolled .brand-logo {
    width: 44px;
    height: 44px;
  }

  .hero-btn,
  .hero-btn:hover,
  .about-image-wrap:hover,
  .benefit-card:hover,
  .company-pillars article:hover,
  .product-card:hover,
  .gallery-card:hover,
  .news-card:hover,
  .calc-box:hover,
  .checker-box:hover,
  .contact-card:hover,
  .floating-wa:hover {
    transform: none;
  }

  .js-reveal .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* Homepage composition: editorial hero, feature strip, product-first flow */
.hero {
  min-height: 0;
  padding: clamp(40px, 5vw, 68px) clamp(22px, 6vw, 88px) clamp(64px, 7vw, 96px);
  background:
    radial-gradient(
      ellipse at 94% 12%,
      rgba(193, 220, 184, 0.28),
      transparent 32%
    ),
    radial-gradient(
      ellipse at 6% 78%,
      rgba(229, 237, 219, 0.62),
      transparent 32%
    ),
    #f8faf6;
}

.hero::before {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 34%;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(
      ellipse at 50% 100%,
      rgba(203, 222, 192, 0.28),
      transparent 66%
    ),
    linear-gradient(to bottom, transparent, rgba(242, 247, 239, 0.56));
  opacity: 1;
  mask-image: none;
}

.hero::after {
  display: none;
}

.hero-main {
  width: min(1240px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4.4vw, 64px);
}

.hero-content {
  max-width: 600px;
}

.hero-label {
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  letter-spacing: 0.105em;
}

.hero-content h1 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.1vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.16;
  text-wrap: balance;
}

.hero-content > p {
  max-width: 540px;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.7;
}

.hero-buttons {
  gap: 12px;
  margin-top: 20px;
}

.hero-btn.primary {
  border-color: #f4b942;
  color: #2f3b29;
  background: #f4b942;
  box-shadow: 0 7px 18px rgba(183, 132, 34, 0.18);
}

.hero-btn.primary:hover {
  background: #ffca52;
}

.hero-btn.secondary {
  border-color: #dce5dc;
  color: var(--corporate-dark);
  background: rgba(255, 255, 255, 0.94);
}

.hero-visual {
  z-index: 1;
  width: 100%;
  max-width: 540px;
  justify-self: end;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: -12px -14px 14px 14px;
  border-radius: 24px;
  background: rgba(196, 218, 184, 0.5);
  content: "";
}

.hero-visual img {
  width: 100%;
  max-height: none;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 26px;
  object-position: center 57%;
  box-shadow: 0 22px 48px rgba(32, 57, 37, 0.17);
}

.hero-visual figcaption {
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(21, 48, 25, 0.13);
}

.feature-strip {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1240px, calc(100% - 48px));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: -38px auto 0;
  overflow: hidden;
  border: 1px solid #e6ece5;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 38px rgba(30, 62, 36, 0.09);
}

.feature-strip > article {
  display: flex;
  min-width: 0;
  min-height: 96px;
  align-items: center;
  gap: 12px;
  padding: 16px clamp(10px, 1.5vw, 20px);
}

.feature-strip > article + article {
  border-left: 1px solid #edf1ec;
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid #e5eee4;
  border-radius: 50%;
  color: #236333;
  background: #f0f6ef;
  font-size: 1.15rem;
}

.feature-strip strong {
  display: block;
  color: #285d36;
  font-size: clamp(0.73rem, 0.82vw, 0.88rem);
  line-height: 1.35;
}

.feature-strip span:not(.feature-icon) {
  display: block;
  margin-top: 4px;
  color: #78857a;
  font-size: clamp(0.64rem, 0.7vw, 0.73rem);
  line-height: 1.4;
}

.catalog-section {
  width: 100%;
  margin: 0;
  padding: clamp(42px, 5vw, 68px) clamp(22px, 6vw, 88px) clamp(68px, 8vw, 100px);
  background: #fff;
}

.catalog-intro {
  width: min(1240px, 100%);
  margin: 0 auto 27px;
}

.catalog-intro .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.catalog-intro h2 {
  max-width: 760px;
  margin-top: 10px;
  color: #203d29;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-wrap: balance;
}

.catalog-intro > p {
  max-width: 640px;
  margin-top: 9px;
  color: #69776d;
  font-size: 0.96rem;
  line-height: 1.7;
}

.catalog-layout {
  width: min(1240px, 100%);
  margin: 0 auto;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
}

.catalog-products {
  min-width: 0;
}

.products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  border-color: #e8ede7;
  border-radius: 17px;
  box-shadow: 0 7px 24px rgba(25, 55, 31, 0.055);
}

.product-card:hover {
  box-shadow: 0 16px 34px rgba(25, 55, 31, 0.12);
}

.product-img {
  height: clamp(170px, 16vw, 225px);
}

.product-body {
  padding: 18px;
}

.product-title {
  color: #263c2c;
  font-size: 1.02rem;
}

.product-description {
  color: #6f7b71;
  font-size: 0.8rem;
  line-height: 1.55;
}

@media (max-width: 1050px) and (min-width: 769px) {
  .hero {
    padding-inline: 34px;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
  }

  .feature-strip > article {
    gap: 9px;
    padding-inline: 10px;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 1rem;
  }

  .catalog-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 36px 22px 66px;
  }

  .hero::before {
    height: 24%;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-content {
    max-width: 620px;
  }

  .hero-content h1 {
    max-width: 560px;
    font-size: clamp(1.7rem, 6vw, 2.3rem);
    line-height: 1.18;
  }

  .hero-visual {
    max-width: 640px;
    justify-self: center;
  }

  .hero-visual::before {
    inset: -10px -10px 12px 12px;
    border-radius: 20px;
  }

  .hero-visual img {
    border-radius: 20px;
  }

  .feature-strip {
    width: calc(100% - 36px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -28px;
  }

  .feature-strip > article {
    min-height: 84px;
    padding: 12px;
  }

  .feature-strip > article + article {
    border-left: 0;
  }

  .feature-strip > article:nth-child(3n + 2),
  .feature-strip > article:nth-child(3n + 3) {
    border-left: 1px solid #edf1ec;
  }

  .feature-strip > article:nth-child(n + 4) {
    border-top: 1px solid #edf1ec;
  }

  .catalog-section {
    padding: 42px 22px 68px;
  }

  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-card {
    position: static;
  }

  .catalog-toolbar {
    margin-top: 2px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 32px 18px 58px;
  }

  .hero-label {
    margin-bottom: 12px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .hero-content h1 {
    font-size: clamp(1.55rem, 7.2vw, 1.9rem);
  }

  .hero-content > p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-buttons {
    width: 100%;
    gap: 10px;
  }

  .hero-btn {
    min-height: 46px;
    padding-inline: 14px;
    font-size: 0.83rem;
  }

  .hero-visual figcaption {
    right: auto;
    left: 9px;
    bottom: 9px;
    gap: 6px;
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .hero-visual::before {
    inset: -8px -8px 10px 10px;
    background: rgba(196, 218, 184, 0.42);
  }

  .feature-strip {
    display: flex;
    width: calc(100% - 28px);
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .feature-strip > article {
    min-width: 225px;
    min-height: 82px;
    flex: 0 0 225px;
    padding: 12px 14px;
    scroll-snap-align: start;
  }

  .feature-strip > article + article,
  .feature-strip > article:nth-child(n + 4) {
    border-top: 0;
    border-left: 1px solid #edf1ec;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 1rem;
  }

  .feature-strip strong {
    font-size: 0.78rem;
  }

  .feature-strip span:not(.feature-icon) {
    font-size: 0.68rem;
  }

  .catalog-section {
    padding: 34px 16px 58px;
  }

  .catalog-intro h2 {
    font-size: 1.75rem;
  }

  .catalog-toolbar {
    flex-direction: column;
  }

  .catalog-search,
  .sort-select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .products-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .product-img {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::before {
    transform: none;
  }
}

.catalog-section .product-card:hover .product-img {
  transform: scale(1.025);
}

.btn-detail-back {
  width: 100%;
  min-height: 40px;
  margin-top: 9px;
  border: 1px solid var(--corporate-line);
  border-radius: 8px;
  color: var(--corporate-dark);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn-detail-back:hover {
  border-color: #c8dfca;
  background: #f5f8f4;
}

.btn-detail-back:focus-visible {
  outline: 3px solid rgba(57, 112, 64, 0.25);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-detail-back {
    transition: none;
  }

  .catalog-section .product-card:hover .product-img {
    transform: none;
  }
}

@media (max-width: 768px) and (min-width: 521px) {
  .catalog-section .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Transisi halus saat menu mobile dibuka (kelas .active ditambah oleh index.html) */
.nav-links.active {
  animation: nav-menu-in 0.22s var(--home-ease, ease) both;
}

@keyframes nav-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links.active {
    animation: none;
  }
}

/* =========================================================
   KONSISTENSI LAYOUT HOMEPAGE — LAYAR HP (maks. 768px)
   Menyamakan gutter kiri/kanan (20px) dan membuat latar section
   selebar layar agar tidak ada pita putih di sisi dan tepi konten
   antar-section rata. Hanya berlaku di mobile; desktop tidak berubah.
========================================================= */
@media (max-width: 768px) {
  /* Section ber-latar yang masih dibatasi 94%/92% dirapatkan ke tepi layar */
  .tools-section,
  .gallery-section,
  .news-section,
  .farmer-section,
  .testimonial-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Samakan gutter horizontal dengan section lain (about/benefits = 20px) */
  .hero,
  .catalog-section,
  .news-section,
  .guide-section {
    padding-inline: 20px;
  }

  /* Guide punya pembungkus tambahan; hilangkan paddingnya agar kartu
       panduan sejajar dengan section lain (20px), bukan 34px. */
  .guide-container {
    padding-inline: 0;
  }

  /* Strip keunggulan: samakan gutter kartu dengan konten lain */
  .feature-strip {
    width: calc(100% - 40px);
  }
}

/* =========================================================
   MOBILE (maks. 768px) — KARTU PRODUK MENGIKUTI POLA GALERI
   Dua kolom, gap/radius/tinggi gambar/padding disamakan dengan
   .gallery-grid & .gallery-card pada layar HP (gap 16px, radius
   12px, gambar 150px, padding 10px). Ditempatkan di akhir file
   agar menimpa aturan produk lama yang lebih besar (grid 3 kolom
   di ≤520px, gambar clamp 170px, padding 18px). Desktop dan
   tablet di atas 768px TIDAK berubah.
========================================================= */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
  }

  .product-img {
    height: 150px;
  }

  .product-badge {
    top: 7px;
    left: 7px;
    padding: 3px 7px;
    font-size: 0.58rem;
  }

  /* Tombol cepat ditempel di pojok kanan atas gambar agar hemat tempat */
  .product-quick-view {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
    overflow-wrap: anywhere;
  }

  .product-tags {
    gap: 4px;
  }

  .product-tags span {
    padding: 2px 6px;
    font-size: 0.58rem;
  }

  .product-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 4px 0;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  /* Deskripsi ringkas 2 baris; teks lengkap tetap ada di modal detail */
  .product-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 0;
    font-size: 0.65rem;
    line-height: 1.45;
  }

  .product-price {
    margin: 8px 0 0;
    font-size: 0.85rem;
  }

  .product-stok {
    margin-top: 4px;
    font-size: 0.62rem;
  }

  .product-actions {
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
  }

  .product-actions .btn-add-cart,
  .product-actions .btn-detail {
    min-height: 34px;
    padding: 6px 7px;
    font-size: 0.66rem;
    line-height: 1.25;
    white-space: normal;
  }
}
