:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #1f2b22;
  --muted: #5f6d63;
  --primary: #1a7431;
  --primary-dark: #125424;
  --accent: #ff5400;
  --border: #d8e3d4;
  --danger: #aa3d32;
  --shadow: 0 18px 40px rgba(34, 45, 34, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.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;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background:
    linear-gradient(135deg, rgba(26, 116, 49, 0.96), rgba(18, 84, 36, 0.98));
  border-bottom: 1px solid rgba(10, 47, 20, 0.28);
  box-shadow: 0 10px 30px rgba(15, 41, 20, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: grid;
  gap: 0.1rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}

.brand small {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(235, 245, 236, 0.78);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.nav-link-strong {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.button-link,
.button-primary,
.button-secondary,
button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.button-link,
.button-primary,
button {
  background: var(--primary);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 84, 0, 0.12);
  color: #a83b00;
  border: 1px solid rgba(255, 84, 0, 0.28);
}

.button-link:hover,
.button-primary:hover,
.button-secondary:hover,
button:hover {
  transform: translateY(-1px);
}

.button-link:hover,
.button-primary:hover,
button:hover {
  background: var(--primary-dark);
}

.page-content {
  flex: 1 0 auto;
  padding: 0 0 6.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
  min-height: 78vh;
}

.hero-with-image {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 7rem min(6vw, 4rem) 4rem;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.8) 38%, rgba(255, 255, 255, 0.5) 68%, rgba(17, 31, 21, 0.22) 100%),
    linear-gradient(180deg, rgba(17, 31, 21, 0.24), rgba(17, 31, 21, 0.36)),
    linear-gradient(135deg, rgba(26, 116, 49, 0.2), rgba(255, 84, 0, 0.1)),
    url("/assets/images/hero-huerta.png");
  background-size: cover;
  background-position: center center;
  box-shadow: var(--shadow);
}

.hero-with-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 84, 0, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(26, 116, 49, 0.04), transparent 48%);
  pointer-events: none;
}

.hero-with-image > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 1.15rem;
  max-width: 48rem;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  max-width: 42rem;
  padding: 0.7rem;
  border-radius: 22px;
  border: 1px solid rgba(26, 116, 49, 0.18);
  background:
    linear-gradient(90deg, rgba(26, 116, 49, 0.06), rgba(255, 255, 255, 0.98) 30%),
    linear-gradient(180deg, rgba(255, 84, 0, 0.04), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow);
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 44rem;
}

.hero-stat {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(26, 116, 49, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.hero-stat strong {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary-dark);
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-field {
  display: block;
}

.search-field input {
  border: 0;
  background: transparent;
  padding: 0.8rem 0.9rem;
}

.category-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 116, 49, 0.16);
  background: rgba(26, 116, 49, 0.06);
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.category-chip-accent {
  background: rgba(255, 84, 0, 0.08);
  border-color: rgba(255, 84, 0, 0.18);
  color: #a83b00;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.98;
  margin: 0 0 1rem;
}

.lead {
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-card,
.auth-card,
.dashboard-card,
.filters-card,
.product-card,
.detail-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 1.5rem;
}

.hero-with-image .hero-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.hero-card h2,
.dashboard-card h2,
.auth-card h1 {
  margin-top: 0;
}

.hero-card-showcase {
  display: grid;
  gap: 1rem;
  align-self: end;
  padding: 1.7rem;
  background:
    radial-gradient(circle at top right, rgba(255, 84, 0, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(26, 116, 49, 0.04), rgba(255, 255, 255, 0.98));
  border-color: rgba(26, 116, 49, 0.12);
}

.hero-card-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero-highlight {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 116, 49, 0.1);
}

.hero-highlight strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
}

.hero-highlight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-highlight-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.producer-mini-list {
  display: grid;
  gap: 0.85rem;
}

.producer-mini-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(26, 116, 49, 0.05), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.74);
}

.producer-mini-card span {
  color: var(--muted);
}

.auth-card {
  max-width: 640px;
  margin: 0 auto;
}

.auth-card-wide {
  max-width: 860px;
}

.role-switch {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.role-switch-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 116, 49, 0.16);
  background: rgba(26, 116, 49, 0.05);
  color: var(--primary-dark);
  text-decoration: none;
}

.role-switch-link.is-active {
  background: rgba(255, 84, 0, 0.1);
  border-color: rgba(255, 84, 0, 0.2);
  color: #a83b00;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  font: inherit;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.checkbox-field input {
  width: auto;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(170, 61, 50, 0.08);
  border: 1px solid rgba(170, 61, 50, 0.2);
  color: var(--danger);
}

.alert-success {
  background: rgba(47, 107, 59, 0.09);
  border: 1px solid rgba(47, 107, 59, 0.2);
  color: var(--primary-dark);
}

.dashboard {
  display: grid;
  gap: 1.25rem;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-subnav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.dashboard-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 116, 49, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  font-weight: 600;
}

.dashboard-subnav-link.is-current {
  background: linear-gradient(135deg, rgba(26, 116, 49, 0.14), rgba(26, 116, 49, 0.08));
}

.dashboard-subnav-link-accent {
  background: rgba(255, 84, 0, 0.12);
  border-color: rgba(255, 84, 0, 0.24);
  color: #a83b00;
}

.dashboard-helper-copy {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state-card {
  gap: 0.85rem;
}

.empty-state-card h2,
.empty-state-card p {
  margin: 0;
}

.client-panel-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
}

.client-highlight {
  display: grid;
  gap: 1rem;
  border-color: rgba(26, 116, 49, 0.12);
  background:
    radial-gradient(circle at top left, rgba(26, 116, 49, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 247, 0.96));
}

.client-highlight-soft {
  background:
    radial-gradient(circle at top right, rgba(255, 84, 0, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 244, 0.96));
}

.client-steps {
  display: grid;
  gap: 0.85rem;
}

.client-step {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(26, 116, 49, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.client-step strong {
  color: var(--primary-dark);
}

.client-step span {
  color: var(--muted);
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 84, 0, 0.11), transparent 24%),
    linear-gradient(135deg, rgba(47, 107, 59, 0.08), transparent 45%),
    rgba(255, 250, 242, 0.96);
  box-shadow: var(--shadow);
}

.stat-card span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.stat-card strong {
  font-size: 2rem;
}

.role-chip-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 107, 59, 0.1);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-live {
  background: rgba(47, 107, 59, 0.1);
  color: var(--primary-dark);
}

.status-muted {
  background: rgba(95, 109, 99, 0.12);
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-head-stack {
  align-items: end;
}

.section-copy {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.inline-form {
  margin: 0;
}

.inline-form-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.simple-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.simple-table th,
.simple-table td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.catalog-page {
  display: grid;
  gap: 1.5rem;
}

.catalog-hero {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 84, 0, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 84, 0, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(26, 116, 49, 0.07), rgba(255, 84, 0, 0.05)),
    #fff;
  box-shadow: var(--shadow);
}

.catalog-hero-note {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.2rem;
  min-width: 150px;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 84, 0, 0.12), rgba(255, 84, 0, 0.04));
  color: var(--accent);
}

.catalog-hero-note strong {
  font-size: 2rem;
  line-height: 1;
}

.catalog-filters {
  grid-template-columns: 1.4fr 1fr 1fr auto;
  border-color: rgba(26, 116, 49, 0.18);
  background:
    linear-gradient(90deg, rgba(26, 116, 49, 0.05), rgba(255, 255, 255, 0.98) 35%),
    linear-gradient(180deg, rgba(255, 84, 0, 0.04), rgba(255, 255, 255, 0.98));
}

.catalog-summary {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.catalog-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(26, 116, 49, 0.14);
  border-radius: 999px;
  background: rgba(26, 116, 49, 0.06);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.catalog-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-section {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.8rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 247, 0.96));
  border: 1px solid rgba(26, 116, 49, 0.08);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.entry-card {
  display: grid;
  gap: 1rem;
  padding: 1.7rem;
  border-radius: 26px;
  border: 1px solid rgba(26, 116, 49, 0.14);
  background:
    radial-gradient(circle at top left, rgba(26, 116, 49, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(26, 116, 49, 0.08), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow);
}

.entry-card p,
.entry-card h3 {
  margin: 0;
}

.entry-card-producer {
  background:
    radial-gradient(circle at top right, rgba(255, 84, 0, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(26, 116, 49, 0.06), rgba(255, 84, 0, 0.06)),
    #fff;
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.featured-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.55rem;
  border: 1px solid rgba(26, 116, 49, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 84, 0, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(26, 116, 49, 0.05), rgba(255, 255, 255, 0.98) 24%);
  box-shadow: var(--shadow);
}

.featured-card h3,
.seller-card p,
.related-products p {
  margin: 0;
}

.featured-image {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 84, 0, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(26, 116, 49, 0.12), rgba(26, 116, 49, 0.03)),
    #f7fbf7;
  border: 1px solid rgba(26, 116, 49, 0.12);
}

.featured-image img,
.product-thumb img,
.detail-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-image img,
.product-thumb img {
  border-radius: inherit;
}

.featured-image span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(26, 116, 49, 0.12);
}

.featured-card-top,
.featured-meta,
.featured-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.featured-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.featured-meta {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(26, 116, 49, 0.08);
}

.seller-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(26, 116, 49, 0.08), rgba(255, 84, 0, 0.05));
  border: 1px solid rgba(26, 116, 49, 0.14);
}

.seller-card-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.seller-card strong {
  font-size: 1.05rem;
}

.seller-card p,
.related-empty {
  color: var(--muted);
  line-height: 1.6;
}

.related-products {
  display: grid;
  gap: 0.75rem;
}

.related-list {
  display: grid;
  gap: 0.65rem;
}

.related-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(26, 116, 49, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.featured-card:hover,
.entry-card:hover {
  transform: translateY(-3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 24px 48px rgba(34, 45, 34, 0.11);
}

.related-pill span {
  color: var(--text);
}

.related-pill strong {
  color: var(--primary-dark);
  white-space: nowrap;
}

.catalog-page h1,
.producer-page h1 {
  margin: 0;
}

.filters-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.filters-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.catalog-map-section {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.catalog-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 1rem;
  align-items: stretch;
}

.catalog-map-panel,
.catalog-map-canvas {
  min-height: 430px;
}

.catalog-map-canvas {
  width: 100%;
}

.map-results-list {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  max-height: 430px;
  overflow: auto;
  padding-right: 0.25rem;
}

.map-result-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(26, 116, 49, 0.14);
  border-radius: 18px;
  background: #fff;
}

.map-result-card span,
.map-result-card p {
  color: var(--muted);
}

.map-result-card span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-result-card p {
  margin: 0;
  line-height: 1.45;
}

.map-empty-card {
  margin: 0;
}

.map-info-window {
  display: grid;
  gap: 0.35rem;
  max-width: 220px;
  color: #1f2b22;
}

.map-info-window span {
  color: #5f6d63;
}

.map-info-window ul {
  margin: 0.25rem 0;
  padding-left: 1rem;
}

.map-info-window a {
  color: #125424;
  text-decoration: underline;
}

.product-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  grid-template-rows: auto auto auto auto auto auto 1fr;
  background:
    radial-gradient(circle at top right, rgba(255, 84, 0, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(26, 116, 49, 0.06), transparent 22%),
    #fff;
  border: 1px solid rgba(26, 116, 49, 0.14);
}

.product-card h2 {
  margin: 0;
}

.product-card h3 {
  margin: 0;
}

.product-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 84, 0, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(26, 116, 49, 0.14), rgba(255, 84, 0, 0.05)),
    #fff9f6;
  border: 1px solid rgba(26, 116, 49, 0.14);
  overflow: hidden;
}

.product-thumb span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 999px;
  background: rgba(255, 84, 0, 0.12);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-category,
.product-producer,
.product-description {
  margin: 0;
}

.product-category {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.product-producer,
.product-description {
  color: var(--muted);
  line-height: 1.6;
}

.product-producer a,
.text-link {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.product-price {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 84, 0, 0.1);
  border-radius: 999px;
  color: #b23b00;
  font-weight: 700;
}

.product-meta,
.detail-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.product-meta {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 84, 0, 0.1);
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-self: end;
}

.detail-purchase {
  display: grid;
  grid-template-columns: 160px auto;
  gap: 1rem;
  align-items: end;
  margin-top: 1.5rem;
}

.product-detail {
  display: grid;
  gap: 1.75rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb-nav a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.breadcrumb-nav strong {
  color: var(--text);
}

.detail-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}

.detail-main h1,
.detail-sidebar h2 {
  margin-top: 0;
}

.detail-card-shop {
  border: 1px solid rgba(26, 116, 49, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 84, 0, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(26, 116, 49, 0.05), transparent 30%),
    #fff;
}

.detail-main {
  display: grid;
  gap: 1.25rem;
}

.detail-visual {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 84, 0, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(26, 116, 49, 0.16), rgba(255, 84, 0, 0.05)),
    #f8fcf8;
  border: 1px solid rgba(26, 116, 49, 0.14);
  overflow: hidden;
}

.detail-visual-image {
  border-radius: inherit;
}

.product-upload-preview {
  display: grid;
  gap: 0.75rem;
}

.product-upload-preview img {
  width: min(100%, 360px);
  border-radius: 20px;
  border: 1px solid rgba(26, 116, 49, 0.12);
  box-shadow: var(--shadow);
}

.detail-visual-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(255, 84, 0, 0.12);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
}

.detail-content {
  display: grid;
  gap: 0.75rem;
}

.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-price {
  font-size: 1rem;
}

.purchase-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(26, 116, 49, 0.08), rgba(255, 84, 0, 0.05));
  border: 1px solid rgba(26, 116, 49, 0.14);
}

.purchase-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.purchase-price {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.stock-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
}

.stock-chip-live {
  background: rgba(26, 116, 49, 0.1);
  color: var(--primary-dark);
}

.stock-chip-empty {
  background: rgba(170, 61, 50, 0.1);
  color: var(--danger);
}

.purchase-guest {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.purchase-guest p {
  margin: 0;
  color: var(--muted);
}

.purchase-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.role-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.seller-card-large {
  align-self: start;
  gap: 1rem;
  padding: 1.3rem;
}

.detail-facts {
  grid-template-columns: 1fr;
}

.seller-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.map-section {
  margin-top: 1.25rem;
}

.map-panel {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(26, 116, 49, 0.14);
  border-radius: 24px;
  background: #f7fbf7;
  box-shadow: var(--shadow);
}

.map-panel iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.producer-page {
  display: grid;
  gap: 1.75rem;
}

.producer-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.producer-hero-copy {
  display: grid;
  gap: 1rem;
}

.producer-hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.producer-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.producer-overview-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(26, 116, 49, 0.12);
  background: #fff;
  box-shadow: var(--shadow);
}

.producer-overview-card span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.producer-overview-card strong {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.producer-facts {
  display: grid;
  gap: 1rem;
}

.producer-fact,
.journal-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.producer-fact span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.producer-section {
  display: grid;
  gap: 1rem;
}

.producer-products-grid {
  display: grid;
  gap: 1.1rem;
}

.producer-product-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(26, 116, 49, 0.12);
  background: #fff;
  box-shadow: var(--shadow);
}

.producer-product-media {
  display: grid;
  place-items: center;
  min-height: 210px;
  border-radius: 20px;
  border: 1px solid rgba(26, 116, 49, 0.12);
  background: #f7fbf7;
  overflow: hidden;
}

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

.producer-product-media span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(255, 84, 0, 0.12);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
}

.producer-product-body {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.producer-product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.producer-product-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1.25rem;
}

.order-summary {
  align-self: start;
}

.summary-total {
  font-size: 1.3rem;
  font-weight: 700;
}

.cart-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.qty-input {
  min-width: 86px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.journal-card h3,
.journal-card p {
  margin-top: 0;
}

.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  background:
    linear-gradient(135deg, rgba(26, 116, 49, 0.08), rgba(255, 84, 0, 0.05)),
    #f8faf8;
  border-top: 1px solid rgba(26, 116, 49, 0.12);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand strong,
.footer-title {
  color: var(--text);
}

.footer-title {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.footer-brand p,
.footer-meta,
.footer-bottom p {
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
}

.footer-links a,
.footer-cookie-button {
  color: var(--primary-dark);
  text-decoration: none;
  font: inherit;
}

.footer-links a:hover,
.footer-cookie-button:hover {
  color: var(--accent);
}

.footer-cookie-button {
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 116, 49, 0.12);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(26, 116, 49, 0.14);
  background:
    linear-gradient(135deg, rgba(26, 116, 49, 0.1), rgba(255, 84, 0, 0.08)),
    rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.cookie-banner-inner p {
  margin: 0;
  max-width: 42rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-modal-open {
  overflow: hidden;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 35, 20, 0.66);
  backdrop-filter: blur(5px);
}

.project-modal-backdrop[hidden] {
  display: none;
}

.project-modal {
  width: min(580px, 100%);
  padding: 2rem;
  border: 1px solid rgba(26, 116, 49, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(26, 116, 49, 0.08), rgba(255, 84, 0, 0.06)),
    #fff;
  box-shadow: 0 24px 65px rgba(12, 31, 16, 0.3);
}

.project-modal h2 {
  margin: 0.35rem 0 0.85rem;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.project-modal p:not(.eyebrow) {
  margin: 0.65rem 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.35rem;
}

.floating-cart {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 116, 49, 0.16);
  background:
    linear-gradient(135deg, rgba(26, 116, 49, 0.92), rgba(18, 84, 36, 0.96));
  color: #fff;
  box-shadow: 0 20px 45px rgba(18, 37, 22, 0.22);
}

.floating-cart-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.floating-cart-copy {
  display: grid;
  gap: 0.1rem;
}

.floating-cart-copy strong,
.floating-cart-copy small {
  display: block;
}

.floating-cart-copy small {
  color: rgba(255, 255, 255, 0.82);
}

.legal-page {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  padding-top: 2rem;
}

.legal-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.04rem;
  max-width: 52rem;
}

.legal-section {
  display: grid;
  gap: 0.75rem;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid rgba(26, 116, 49, 0.12);
}

.legal-section h2 {
  margin: 0;
  font-size: 1.25rem;
}

.legal-section p {
  margin: 0;
  line-height: 1.7;
}

.legal-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

@media (max-width: 840px) {
  .hero,
  .home-search,
  .two-columns,
  .detail-card,
  .detail-purchase,
  .catalog-hero,
  .filters-card,
  .product-grid,
  .catalog-map-layout,
  .featured-grid,
  .stats-grid,
  .dashboard-subnav,
  .client-panel-grid,
  .cart-layout,
  .producer-overview,
  .producer-hero,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .producer-product-card {
    grid-template-columns: 1fr;
  }

  .section-head,
  .inline-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    position: relative;
    min-height: 68px;
  }

  .brand {
    font-size: 1.4rem;
  }

  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .nav-toggle-bar {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    z-index: 5;
    display: grid;
    width: 100%;
    gap: 0.3rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(18, 84, 36, 0.98);
    box-shadow: 0 18px 35px rgba(15, 41, 20, 0.24);
  }

  .nav-enhanced .nav {
    display: none;
  }

  .nav-enhanced.nav-open .nav {
    display: grid;
  }

  .nav-link,
  .button-link {
    width: 100%;
    padding: 0.75rem 0.9rem;
    text-align: left;
  }

  .nav-link:hover {
    transform: none;
  }

  .button-link {
    margin-top: 0.15rem;
    text-align: center;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .page-content {
    padding-bottom: 5.5rem;
  }

  .hero-card,
  .auth-card,
  .dashboard-card,
  .filters-card,
  .product-card,
  .detail-card,
  .producer-hero,
  .producer-product-card {
    padding: 1rem;
    border-radius: 20px;
  }

  .hero-with-image {
    min-height: auto;
    padding: 2.25rem 1rem;
    background-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .hero-card-showcase {
    padding: 1rem;
  }

  .hero-actions,
  .featured-actions,
  .entry-actions,
  .filters-actions,
  .product-actions,
  .seller-actions,
  .producer-hero-actions,
  .producer-product-actions,
  .cart-actions,
  .cookie-banner-actions,
  .project-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-actions > *,
  .featured-actions > *,
  .entry-actions > *,
  .filters-actions > *,
  .product-actions > *,
  .seller-actions > *,
  .producer-hero-actions > *,
  .producer-product-actions > *,
  .cart-actions > *,
  .cookie-banner-actions > *,
  .project-modal-actions > *,
  .dashboard-actions > * {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .button-primary,
  .button-secondary,
  .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .form-grid > .button-primary,
  .form-grid > .button-secondary,
  .full-width > .button-primary,
  .full-width > .button-secondary,
  .home-search > .button-primary,
  .detail-purchase > .button-primary,
  .product-actions + .inline-form > .button-primary,
  .inline-actions .inline-form > .button-secondary,
  .section-head > .button-primary,
  .section-head > .button-secondary {
    width: 100%;
    min-height: 44px;
  }

  h1,
  h2,
  h3,
  p,
  a,
  button {
    overflow-wrap: anywhere;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .catalog-hero {
    grid-template-columns: 1fr;
    padding: 1rem;
    border-radius: 20px;
  }

  .catalog-hero-note {
    justify-items: start;
    min-width: 0;
    padding: 0.85rem 1rem;
  }

  .catalog-map-panel,
  .catalog-map-canvas {
    min-height: 300px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 22px;
  }

  .featured-card,
  .entry-card {
    padding: 1rem;
    border-radius: 20px;
  }

  .featured-image {
    min-height: 180px;
  }

  .detail-visual {
    min-height: 220px;
  }

  .detail-purchase {
    margin-top: 1rem;
  }

  .map-panel,
  .map-panel iframe {
    min-height: 280px;
  }

  .detail-heading,
  .purchase-card-top {
    align-items: flex-start;
  }

  .section-head-stack {
    align-items: flex-start;
  }

  .dashboard-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .dashboard-subnav {
    gap: 0.55rem;
  }

  .dashboard-subnav-link {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .table-wrap {
    margin-right: -0.35rem;
    padding-bottom: 0.45rem;
  }

  .simple-table {
    min-width: 620px;
    font-size: 0.92rem;
  }

  .simple-table th,
  .simple-table td {
    padding: 0.7rem 0.6rem;
  }

  .inline-form-compact {
    align-items: stretch;
    flex-direction: column;
    min-width: 125px;
  }

  .inline-form-compact .button-secondary {
    min-height: 40px;
  }

  .project-modal {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .project-modal h2 {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .floating-cart {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 5.3rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stat-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .hero-stat {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
  }

  .hero-stat strong {
    font-size: 1.2rem;
  }

  .hero-stat span {
    font-size: 0.76rem;
  }

  .category-strip,
  .catalog-chips {
    gap: 0.5rem;
  }

  .category-chip {
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }

  .stat-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .stat-card strong {
    font-size: 1.6rem;
  }

  .floating-cart {
    bottom: 4.7rem;
  }
}
