body[data-theme="dark"] {
  --bg: #0e1410;
  --bg-strong: #14211a;
  --panel: #14211a;
  --panel-2: #14211a;
  --primary: #4fa36a;
  --primary-soft: #4fa36a;
  --accent: #f0b84a;
  --accent-soft: #f0b84a;
  --text: #eaf0ea;
  --muted: #91a296;
  --border: #223329;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

body[data-theme="light"] { color-scheme: light; }

body[data-theme="dark"] .site-header {
  background: rgba(14, 20, 16, 0.94);
  border-color: var(--border);
}

.site-header .nav {
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-language-select {
  min-width: 78px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #1f4d2d;
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.site-language-select:hover {
  background: var(--primary);
  color: #ffffff;
}

.main-nav {
  gap: 8px !important;
  padding: 7px;
  border: 1px solid rgba(31, 77, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.main-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid #1f4d2d;
  border-radius: 999px;
  background: #1f4d2d;
  color: #ffffff;
  font-size: 0.91rem !important;
  font-weight: 700 !important;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.main-nav a:hover {
  transform: translateY(-1px);
  border-color: #2f6a41;
  background: #2f6a41;
  color: #ffffff;
}

.main-nav a[aria-current="page"] {
  border-color: #ffc72c;
  background: #ffc72c;
  color: #241a08;
  box-shadow: 0 5px 13px rgba(217, 154, 36, 0.24);
}

.main-nav a[aria-current="page"]:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: #ffc72c;
  background: #ffc72c;
  color: #241a08;
  box-shadow: 0 7px 16px rgba(217, 154, 36, 0.32);
}

.main-nav a:focus-visible,
.site-theme-toggle:focus-visible,
.site-language-select:focus-visible,
.btn:focus-visible,
.card-link:focus-visible,
.whatsapp-cta:focus-visible,
.whatsapp-float:focus-visible,
.footer-contact a:focus-visible,
.contact-item a:focus-visible {
  outline: 3px solid #d8b66a;
  outline-offset: 3px;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .main-nav {
  direction: rtl;
}

.showcase-card img {
  object-fit: contain;
  background: #f5f3ee;
}

body[data-theme="dark"] .showcase-card img {
  background: #101a13;
}

body[data-theme="dark"] .hero,
body[data-theme="dark"] .home-products,
body[data-theme="dark"] .section {
  background: transparent;
}

body[data-theme="dark"] .contact-item,
body[data-theme="dark"] .home-product-card-copy {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  margin-top: 12px;
  padding: 11px 18px;
  border: 1px solid #1f4d2d;
  border-radius: 999px;
  background: #1f4d2d;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.whatsapp-cta .whatsapp-icon,
.whatsapp-action .whatsapp-icon {
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #25d366;
}

.whatsapp-cta .whatsapp-icon svg,
.whatsapp-action .whatsapp-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.whatsapp-cta strong,
.whatsapp-action strong {
  display: none;
}

.model-details {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.model-details-content {
  max-width: 980px;
  margin: 0 auto;
}

.model-details-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.model-details-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.model-details-heading p {
  margin: 14px 0 0;
  color: var(--muted);
}

.model-detail {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 12px 24px rgba(21, 32, 24, 0.04);
}

.model-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.model-detail summary::-webkit-details-marker { display: none; }

.model-detail summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.model-detail[open] summary::after { content: "−"; }

.model-detail-body {
  padding: 0 22px 22px;
  border-top: 1px solid var(--border);
}

.model-detail-body p {
  margin: 18px 0 0;
  color: var(--muted);
}

.model-detail-body h3 {
  margin: 20px 0 12px;
  color: var(--text);
  font-size: 1rem;
}

.model-detail-body ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-detail-body li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.model-detail-body li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

body[data-theme="dark"] .model-details {
  background: rgba(20, 33, 26, 0.72);
}

body[data-theme="dark"] .model-detail {
  background: var(--panel);
  border-color: var(--border);
}

@media (max-width: 600px) {
  .model-detail summary { padding: 18px; }
  .model-detail-body { padding: 0 18px 18px; }
}

.whatsapp-cta:hover {
  transform: translateY(-2px);
  border-color: #2f6a41;
  background: #2f6a41;
  box-shadow: 0 8px 18px rgba(31, 77, 45, 0.2);
}

.whatsapp-cta:focus-visible {
  outline: 3px solid #d8b66a;
  outline-offset: 3px;
}

body[data-theme="dark"] .main-nav {
  border-color: #223329;
  background: rgba(20, 33, 26, 0.9);
}

body[data-theme="dark"] .home-product-card,
body[data-theme="dark"] .model-card,
body[data-theme="dark"] .product-intro,
body[data-theme="dark"] .history-item,
body[data-theme="dark"] .about-card,
body[data-theme="dark"] .contact-card,
body[data-theme="dark"] .contact-item,
body[data-theme="dark"] .feature-box,
body[data-theme="dark"] .feature-list li {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

body[data-theme="dark"] .home-product-card img,
body[data-theme="dark"] .model-image,
body[data-theme="dark"] .product-image,
body[data-theme="dark"] .showcase,
body[data-theme="dark"] .hero-points li,
body[data-theme="dark"] .trust-grid,
body[data-theme="dark"] .mini-panel,
body[data-theme="dark"] .showcase-badge {
  background-color: var(--panel-2);
  border-color: var(--border);
  color: var(--text);
}

body[data-theme="dark"] .section.alt,
body[data-theme="dark"] .history-section,
body[data-theme="dark"] .features {
  background: rgba(20, 33, 26, 0.72);
  border-color: var(--border);
}

body[data-theme="dark"] .eyebrow {
  color: var(--accent);
  background: rgba(240, 184, 74, 0.1);
  border-color: rgba(240, 184, 74, 0.25);
}

body[data-theme="dark"] .hero-points li::before {
  color: var(--primary);
  background: rgba(79, 163, 106, 0.18);
}

body[data-theme="dark"] .btn-secondary,
body[data-theme="dark"] .button-outline,
body[data-theme="dark"] .appearance-picker button:not([aria-pressed="true"]) {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
}

body[data-theme="dark"] .site-footer {
  background: #0a100c;
  color: var(--dark-muted, #91a296);
}

.site-theme-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(26, 40, 31, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1f4d2d;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

body[data-theme="dark"] .site-theme-toggle {
  color: #eaf0ea;
  background: #14211a;
  border-color: #223329;
}

@media (max-width: 800px) {
  .site-header .nav { gap: 12px; }
  .main-nav {
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    max-width: 100%;
    padding: 6px;
    border-radius: 18px;
    scrollbar-width: thin;
  }
  .main-nav a { min-height: 40px; padding: 8px 13px; }
  .site-theme-toggle { margin: 2px 0 6px; }
}

@media (max-width: 540px) {
  .site-theme-toggle { min-height: 36px; padding: 6px 11px; font-size: 0.82rem; }
  .main-nav { gap: 5px !important; }
  .main-nav a { min-height: 38px; padding: 7px 11px; font-size: 0.82rem !important; }
}
