:root {
  --green: #1a6b45;
  --green-dark: #145538;
  --green-light: #e8f3ed;
  --gold: #c9a227;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #d4e4dc;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(26, 107, 69, 0.08);
  --radius: 10px;
  --max-width: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --logo-h: 48px;
  --logo-w: calc(var(--logo-h) * 244 / 120);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

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

a {
  color: var(--green);
}

a:hover {
  color: var(--green-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: var(--logo-w);
  gap: 0.15rem;
  line-height: 1.1;
}

.site-logo img,
.site-logo .logo-img,
.site-logo .logo-mark svg {
  width: 100%;
  height: var(--logo-h);
  max-width: none;
  flex-shrink: 0;
  display: none;
  object-fit: contain;
  object-position: center;
}

.site-logo.has-logo .logo-img,
.site-logo.has-logo img {
  display: block;
}

.site-logo.has-logo .logo-text {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 0.5em;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}

.logo-word {
  letter-spacing: 0.14em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: var(--green-light);
  padding: 0.2rem;
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--green-dark);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
  background: rgba(26, 107, 69, 0.12);
}

.lang-btn.active {
  background: var(--green);
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--green);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--green-light) 0%, var(--white) 70%);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 5vw + 0.5rem, 2.5rem);
  line-height: 1.25;
  color: var(--green-dark);
  max-width: 22ch;
}

.hero-lead {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw + 0.5rem, 1.1rem);
  color: var(--text-muted);
  max-width: 42rem;
}

/* Products */
.products-section {
  padding: 2.5rem 0 4rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--green-dark);
}

.search-wrap {
  width: 100%;
  max-width: 320px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
}

.search-input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

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

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 107, 69, 0.12);
}

.product-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.product-desc {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
  min-height: 2.75rem;
  text-align: center;
}

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

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

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination.hidden {
  display: none;
}

.page-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.page-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--green-light);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  font-weight: 500;
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ——— Mobil & tablet ——— */

@media (max-width: 479px) {
  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .site-logo {
    justify-content: center;
    font-size: 1.05rem;
  }

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

  .nav-links {
    justify-content: center;
    gap: 1.5rem;
  }

  .lang-switch {
    justify-content: center;
    align-self: center;
  }

  .hero {
    padding: 2rem 0 1.75rem;
    text-align: center;
  }

  .hero h1 {
    max-width: none;
    margin-inline: auto;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .section-head h2 {
    text-align: center;
  }

  .search-wrap {
    max-width: none;
  }

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

  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-footer .btn {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .header-inner {
    padding: 0.75rem 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .hero {
    padding: 2.75rem 0 2rem;
  }

  .hero h1 {
    max-width: 20ch;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    max-width: 24ch;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    max-width: 22ch;
  }
}

.legal-page {
  padding: 2.5rem 0 3rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  color: var(--green-dark);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  color: var(--green-dark);
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: var(--text);
  max-width: 68ch;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.legal-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
