:root{
  --brand: rgb(182, 172, 38);
  --text: #111;
  --muted: rgba(0,0,0,0.65);
  --border: rgba(0,0,0,0.12);
  --bg-soft: #f6f6f6;
}

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }
body{ font-family: "Roboto", sans-serif; color: var(--text); background: #fff; line-height: 1.4; }
img{ max-width: 100%; display: block; }
a{ color: inherit; }

.container{ width: min(1100px, 92%); margin: 0 auto; }

/* ── HEADER ── */
header{
  height: 120px; background-color: rgba(255,255,255,0.88);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 50px; position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,0.06); backdrop-filter: blur(6px);
}
.logo a{ display: inline-flex; align-items: center; }
.logo img{ height: 200px; width: auto; margin-left: -40px; }
.nav-bar ul{ display: flex; align-items: center; gap: 42px; margin: 0; padding: 0; list-style: none; }
.nav-bar a{ text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s ease; white-space: nowrap; }
.nav-bar a:hover{ color: var(--brand); }

/* ── BUTTONS ── */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 10px; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 0.15s ease, opacity 0.15s ease; }
.btn:hover{ transform: translateY(-1px); opacity: 0.95; }
.btn-primary{ background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-secondary{ background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline{ background: transparent; color: var(--text); border-color: var(--brand); }
button.btn{ font-family: "Roboto", sans-serif; }

/* ── HERO ── */
.hero{ position: relative; height: calc(100vh - 120px); min-height: 560px; overflow: hidden; }
.hero-media{ position: absolute; inset: 0; }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.hero::after{ content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.40); }
.hero-content{ position: relative; z-index: 2; width: min(1100px, 92%); margin: 0 auto; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 18px; color: #fff; padding-bottom: 30px; }
.hero-title{ margin: 0; font-size: clamp(44px, 5vw, 78px); font-weight: 900; letter-spacing: 0.5px; }
.hero-subtitle{ margin: 0; max-width: 720px; font-size: 18px; line-height: 1.6; opacity: 0.95; }
.hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ── SECTIONS ── */
.section1, .section2{ width: min(1100px, 92%); margin: 0 auto; padding: 70px 0; display: flex; gap: 40px; align-items: center; }
.section2{ flex-direction: row-reverse; }
.split-media, .split-content{ flex: 1; }
.split-media img{ width: 100%; height: 380px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); }
.split-content h2{ margin: 0 0 12px 0; font-size: 36px; font-weight: 800; }
.split-content p{ margin: 0 0 12px 0; font-size: 18px; line-height: 1.7; color: rgba(0,0,0,0.80); }
.bullet-list{ margin: 16px 0 18px 18px; padding: 0; font-size: 18px; color: rgba(0,0,0,0.80); }
.bullet-list li{ margin-bottom: 6px; }
.info-row{ display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0 22px 0; }
.info-box{ flex: 1; min-width: 240px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.info-box h3{ margin: 0 0 8px 0; font-size: 18px; font-weight: 800; }
.info-box p{ margin: 0; font-size: 16px; color: rgba(0,0,0,0.75); }
.section{ padding: 70px 0; }
.section-title{ margin: 0 0 10px 0; font-size: 36px; font-weight: 900; }
.section-subtitle{ margin: 0 0 28px 0; font-size: 18px; color: var(--muted); }

/* ── FARMAI SECTION ── */
.farmai-section{ background: #0f0f0e; }
.farmai-section .section-title{ color: #fff; }
.farmai-grid{ display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.farmai-label{ font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brand); margin: 0 0 10px 0; }
.farmai-desc{ font-size: 16px; line-height: 1.8; color: rgba(255,255,255,0.72); margin: 0 0 28px 0; }
.farmai-features{ display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.farmai-feature{ display: flex; gap: 14px; align-items: flex-start; }
.farmai-icon{ width: 36px; height: 36px; border-radius: 8px; background: rgba(182,172,38,0.12); border: 1px solid rgba(182,172,38,0.25); display: flex; align-items: center; justify-content: center; color: var(--brand); flex-shrink: 0; }
.farmai-feature strong{ display: block; color: #fff; font-size: 15px; margin-bottom: 3px; }
.farmai-feature p{ margin: 0; font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.5; }
.farmai-stats{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card{ background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 20px; text-align: center; }
.stat-num{ font-size: 32px; font-weight: 900; color: var(--brand); }
.stat-label{ font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── FEATURES / CARDS ── */
.features{ background: #fff; }
.card-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card{ border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: #fff; }
.card h3{ margin: 0 0 8px 0; font-size: 20px; font-weight: 900; }
.card p{ margin: 0 0 12px 0; font-size: 16px; line-height: 1.6; color: rgba(0,0,0,0.75); }
.card-link{ text-decoration: none; font-weight: 800; color: var(--brand); }

/* ── INFO STRIP ── */
.info-strip{ background: var(--bg-soft); }
.info-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.info-item{ background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 16px; }
.info-item h3{ margin: 0 0 10px 0; font-size: 18px; font-weight: 900; }
.info-item p{ margin: 0; color: rgba(0,0,0,0.75); }
.info-item a{ text-decoration: none; }
.map-wrap{ border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }

/* ── CONTACT ── */
.contact-grid{ display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.contact-form form{ border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: #fff; }
.contact-form label{ display: block; font-size: 14px; font-weight: 700; margin-bottom: 12px; color: rgba(0,0,0,0.80); }
.contact-form input, .contact-form textarea{ width: 100%; margin-top: 6px; padding: 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.20); font-family: "Roboto", sans-serif; font-size: 16px; outline: none; }
.contact-form input:focus, .contact-form textarea:focus{ border-color: rgba(182,172,38,0.9); box-shadow: 0 0 0 3px rgba(182,172,38,0.20); }
.contact-details{ border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: #fff; }
.contact-details h3{ margin: 0 0 10px 0; font-size: 20px; font-weight: 900; }
.contact-details p{ margin: 0 0 12px 0; color: rgba(0,0,0,0.75); line-height: 1.6; }
.contact-list{ list-style: none; padding: 0; margin: 12px 0 16px 0; }
.contact-list li{ margin-bottom: 10px; color: rgba(0,0,0,0.80); }
.contact-list a{ text-decoration: none; color: rgba(0,0,0,0.90); }
.contact-cta{ display: flex; gap: 10px; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer{ background: #0f0f0f; color: #fff; padding: 40px 0; margin-top: 40px; }
.footer-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.footer-brand h3{ margin: 0 0 8px 0; font-size: 20px; font-weight: 900; }
.footer-brand p{ margin: 0; opacity: 0.85; }
.footer-links h4{ margin: 0 0 10px 0; font-size: 16px; font-weight: 900; letter-spacing: 0.5px; }
.footer-links ul{ list-style: none; padding: 0; margin: 0; }
.footer-links li{ margin-bottom: 8px; }
.site-footer a{ color: #fff; text-decoration: none; opacity: 0.85; }
.site-footer a:hover{ opacity: 1; color: var(--brand); }
.footer-legal{ grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 14px; opacity: 0.85; }

/* ════════════════════════════════════════
   AUTH PAGE (admin.html)
════════════════════════════════════════ */
.auth-body{
  background: #0b0b0a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-wrap{
  width: 100%;
  max-width: 420px;
}

.auth-card{
  background: #141412;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 36px 32px;
}

.auth-back{
  display: inline-block;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.auth-back:hover{ color: var(--brand); }

.auth-logo{
  margin-bottom: 24px;
}
.auth-logo img{
  height: 80px;
  width: auto;
  filter: invert(1) brightness(0.6);
}

.auth-title{
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.auth-subtitle{
  margin: 0 0 28px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.50);
  line-height: 1.6;
}

.auth-btn{
  width: 100%;
  padding: 14px;
  font-size: 15px;
  justify-content: center;
}

.auth-divider{
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 28px 0;
}

.auth-info{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-info-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.auth-info-item svg{ color: var(--brand); flex-shrink: 0; }

/* ════════════════════════════════════════
   DASHBOARD (dashboard.html)
════════════════════════════════════════ */
.dash-body{
  background: #0b0b0a;
  color: #e8e6d8;
  min-height: 100vh;
  display: flex;
  font-family: "Roboto", sans-serif;
}

/* Sidebar */
.dash-sidebar{
  width: 220px;
  min-height: 100vh;
  background: #111110;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.dash-sidebar-logo{
  padding: 20px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-sidebar-logo img{
  height: 56px;
  width: auto;
  filter: invert(1) brightness(0.55);
}

.dash-nav{
  flex: 1;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.dash-nav-item:hover{ background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }
.dash-nav-item.active{ background: rgba(182,172,38,0.12); color: var(--brand); }
.dash-nav-item svg{ flex-shrink: 0; }

.dash-sidebar-footer{
  padding: 16px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-footer-link{
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  padding: 6px 12px;
  transition: color 0.15s;
}
.dash-footer-link:hover{ color: rgba(255,255,255,0.7); }
.dash-logout{
  background: rgba(229,62,62,0.08);
  color: rgba(229,62,62,0.8);
  border: 1px solid rgba(229,62,62,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  transition: background 0.15s;
}
.dash-logout:hover{ background: rgba(229,62,62,0.14); }

/* Main area */
.dash-main{
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  min-width: 0;
}

.dash-topbar{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.dash-topbar-right{
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-title{
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.dash-subtitle{
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.dash-status{
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* Stats */
.dash-stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.dash-stat{
  background: #141412;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 18px;
}
.dash-stat-num{
  font-size: 28px;
  font-weight: 900;
  color: var(--brand);
}
.dash-stat-label{
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* Section */
.dash-section{ margin-bottom: 32px; }
.dash-hidden{ display: none; }
.dash-section-header{
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.dash-section-title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.dash-section-hint{
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.dash-empty{
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  padding: 24px 0;
}

/* Table */
.dash-table-wrap{
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}
.dash-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dash-table th{
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: #141412;
}
.dash-table td{
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.78);
  vertical-align: top;
}
.dash-table tr:last-child td{ border-bottom: none; }
.dash-table tr:hover td{ background: rgba(255,255,255,0.02); }

.dash-badge{
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Inventory grid */
.dash-inv-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.dash-inv-card{
  background: #141412;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.dash-inv-qty{
  font-size: 32px;
  font-weight: 900;
  color: var(--brand);
}
.dash-inv-name{
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-top: 6px;
  text-transform: capitalize;
}
.dash-inv-price{
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
}

/* Update form */
.dash-update-form{
  background: #141412;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}
.dash-form-title{
  margin: 0 0 16px 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.dash-form-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.dash-field{ display: flex; flex-direction: column; gap: 5px; }
.dash-field label{ font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.45); }
.dash-field input{
  background: #0b0b0a;
  border: 1px solid rgba(255,255,255,0.12);
  color: #e8e6d8;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  outline: none;
  width: 130px;
}
.dash-field input:focus{ border-color: rgba(182,172,38,0.6); box-shadow: 0 0 0 3px rgba(182,172,38,0.12); }
.dash-form-msg{ margin: 10px 0 0 0; font-size: 13px; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 980px){
  header{ padding: 0 18px; }
  .logo img{ height: 140px; margin-left: 0; }
  .nav-bar ul{ gap: 18px; }
  .nav-bar a{ font-size: 15px; letter-spacing: 0.5px; }
  .section1, .section2{ flex-direction: column; padding: 55px 0; }
  .split-media img{ height: 300px; }
  .card-grid{ grid-template-columns: 1fr; }
  .info-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .hero{ min-height: 520px; }
  .farmai-grid{ grid-template-columns: 1fr; }
  .dash-stats{ grid-template-columns: 1fr 1fr; }
  .dash-sidebar{ display: none; }
  .dash-main{ padding: 20px 16px; }
}

@media (max-width: 520px){
  .info-grid{ grid-template-columns: 1fr; }
  .hero-subtitle{ font-size: 16px; }
  .btn{ width: 100%; }
  .dash-stats{ grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════
   PAGE HERO (about.html, products.html)
════════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
}
.page-hero-media {
  position: absolute;
  inset: 0;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.50);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 92%);
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 44px;
  color: #fff;
  gap: 8px;
}
.page-hero-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
}
.page-hero-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 900;
}
.page-hero-sub {
  margin: 0;
  font-size: 17px;
  opacity: 0.80;
  max-width: 600px;
  line-height: 1.6;
}

/* ════════════════════════════════════════
   PRODUCTS PAGE
════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.product-img-wrap {
  height: 220px;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.03);
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  background: rgba(182,172,38,0.10);
  border: 1px solid rgba(182,172,38,0.25);
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.product-body h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.product-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0,0,0,0.70);
}

.product-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-details li {
  font-size: 13px;
  color: rgba(0,0,0,0.55);
  padding-left: 14px;
  position: relative;
}
.product-details li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
}

/* Wholesale CTA band */
.wholesale-cta {
  background: #111;
  padding: 48px 0;
}
.wholesale-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .products-grid { grid-template-columns: 1fr; }
  .wholesale-inner { flex-direction: column; align-items: flex-start; }
  .wholesale-inner .btn { width: 100%; justify-content: center; }
  .page-hero { height: 280px; }
}