:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --text: #1b2e23;
  --muted: #5e766a;
  --primary: #367C2B;
  --primary-hover: #2e6b24;
  --secondary: #FFDE00;
  --secondary-hover: #e5c700;
  --border: #e0e9e4;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(54, 124, 43, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.88);
}

body[data-theme="dark"] {
  --bg: #101412;
  --surface: #18221c;
  --text: #ecf3ee;
  --muted: #8ca69a;
  --primary: #46a337;
  --primary-hover: #52af43;
  --secondary: #FFDE00;
  --secondary-hover: #e5c700;
  --border: #293830;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 40px rgba(70, 163, 55, 0.2);
  --glass-bg: rgba(24, 34, 28, 0.88);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: -320px;
  top: 0;
  width: 300px;
  height: 100vh;
  background: #152319;
  color: #ecf3ee;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.4);
  padding: 2rem 1.5rem;
  transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 50;
  overflow-y: auto;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.sidebar .close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
  line-height: 1;
  padding: 0 0.5rem;
  cursor: pointer;
  transition: color 0.25s, transform 0.25s;
}

.sidebar .close-btn:hover {
  color: var(--secondary);
  transform: scale(1.1) rotate(90deg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav a {
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
  color: #c9d8d0;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
  background: rgba(255, 222, 0, 0.08);
  color: var(--secondary);
  padding-left: 2rem;
  font-weight: 600;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 10;
}

.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.main-content {
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.1rem;
}

.brand p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn,
.control-btn,
.control-select,
.primary-btn,
.secondary-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.theme-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.theme-text {
  font-weight: 700;
  font-size: 0.9rem;
}

.control-select {
  min-width: 126px;
  padding-right: 2.15rem;
  font-weight: 600;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--surface) 92%, #ffffff), var(--surface)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6d67' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 0.65rem center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.control-select:hover {
  border-color: color-mix(in oklab, var(--primary) 50%, var(--border));
}

.control-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.14);
}

body[data-theme="dark"] .control-select {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--surface) 92%, #ffffff), var(--surface)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23acc0b7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 0.65rem center;
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 100;
  width: 100%;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  animation: fadeUp 0.15s ease;
}

.lang-option {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(54, 124, 43, 0.1);
  color: var(--primary);
  font-weight: 500;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.primary-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(54, 124, 43, 0.25);
}

.secondary-btn {
  background: transparent;
  font-weight: 500;
  transition: all 0.25s ease;
}

.secondary-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(54, 124, 43, 0.05);
}

.hero {
  position: relative;
  min-height: clamp(360px, 62vh, 690px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 6.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 32, 20, 0.78) 0%, rgba(10, 32, 20, 0.58) 42%, rgba(10, 32, 20, 0.28) 100%),
    radial-gradient(circle at 85% 10%, rgba(255, 222, 0, 0.2) 0%, rgba(255, 222, 0, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(2.2rem, 6vw, 4rem) min(7vw, 5rem);
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: #f4fbf6;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.hero p {
  color: rgba(236, 245, 239, 0.92);
  font-size: 1.05rem;
  max-width: 58ch;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.hero-slider-controls {
  position: absolute;
  right: min(3vw, 2rem);
  bottom: clamp(1rem, 2vw, 1.7rem);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(13, 32, 21, 0.55);
  color: #f2fbf5;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-slider-btn:hover {
  background: rgba(70, 163, 55, 0.75);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-slide-dots {
  position: absolute;
  left: min(7vw, 5rem);
  bottom: clamp(1rem, 2vw, 1.7rem);
  z-index: 3;
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  background: #ffde00;
  transform: scale(1.25);
}

.section {
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: transparent;
  padding: 0;
}

.product-card .content {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 170px;
}

.product-card h3 {
  margin: 0 0 0.4rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.product-quote-btn {
  width: 100%;
  margin-top: 0.35rem;
  position: sticky;
  bottom: 0;
}

.smart-finder-section {
  background: linear-gradient(135deg, rgba(54, 124, 43, 0.08), rgba(255, 222, 0, 0.08));
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  border-radius: 18px;
  padding: 1.4rem;
}

.machine-finder-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.machine-finder-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.machine-finder-form label input,
.machine-finder-form label select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 0.72rem 0.8rem;
}

.machine-finder-form .primary-btn {
  align-self: end;
  min-height: 44px;
}

.machine-finder-results {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.finder-muted {
  color: var(--muted);
  margin: 0;
}

.finder-result-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.8rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.finder-result-rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(54, 124, 43, 0.15);
  color: var(--primary);
  font-weight: 700;
}

.finder-result-body h4 {
  margin: 0;
  font-size: 1rem;
}

.finder-result-body p {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.finder-result-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.finder-quote-btn {
  min-width: 140px;
}

.dealer-locator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
}

.dealer-locator-card h3 {
  margin: 0 0 0.65rem;
  color: var(--primary);
}

.dealer-locator-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.dealer-locator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer {
  background: linear-gradient(160deg, #1a2e1f 0%, #152319 60%, #0f1c13 100%);
  color: #ecf3ee;
  padding: 4rem 2rem 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--primary);
  box-shadow: inset 0 4px 20px rgba(0,0,0,0.3);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--secondary);
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2.4;
}

.footer-col ul li a {
  color: #c9d8d0;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 222, 0, 0.1);
  color: var(--secondary);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 222, 0, 0.3);
}

.social-link:hover {
  background: var(--secondary);
  color: #1a2e1f;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 222, 0, 0.3);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.inquiry-drawer {
  position: fixed;
  right: -480px;
  top: 0;
  width: min(440px, 100%);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  z-index: 50;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.inquiry-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.drawer-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.inquiry-drawer .close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  padding: 0 0.5rem;
  cursor: pointer;
  transition: color 0.25s, transform 0.25s;
}

.inquiry-drawer .close-btn:hover {
  color: #df3b3b;
  transform: scale(1.1) rotate(90deg);
}

.inquiry-form {
  display: grid;
  gap: 1.25rem;
}

.inquiry-form label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.inquiry-form input:not([type="checkbox"]),
.inquiry-form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--primary));
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.inquiry-form input:not([type="checkbox"]):focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(54, 124, 43, 0.15);
}

.voice-input-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.voice-input-bar .control-select {
  min-width: 130px;
}

.voice-lang-switcher {
  min-width: 130px;
}

.voice-lang-switcher .lang-toggle {
  width: 100%;
}

.voice-lang-switcher .lang-menu {
  width: 100%;
  min-width: 100%;
}

.voice-input-status {
  margin: 0.45rem 0 0;
  font-size: 0.83rem;
  color: var(--muted);
}

#voiceInputBtn.voice-recording {
  border-color: #c0392b;
  color: #c0392b;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 0.15rem;
  cursor: pointer;
}

.checkbox-row span {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 1rem;
}

.modal.show {
  display: flex;
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  width: min(1200px, 95vw);
  background: color-mix(in srgb, var(--surface) 95%, black);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(54, 124, 43, 0.1);
  padding: 0; 
  position: relative;
  max-height: 92vh;
  overflow: hidden;
}

.modal-card .close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-card .close-btn:hover {
  background: #c0392b;
  transform: rotate(90deg);
}

.modal-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(92vh - 0px);
}

@media (min-width: 992px) {
  .modal-content-wrapper {
    flex-direction: row;
  }
}

@media (max-width: 991px) {
  .modal {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-card {
    width: min(720px, 100%);
    max-height: none;
    overflow: visible;
    margin: 0.75rem auto;
  }

  .modal-content-wrapper {
    max-height: none;
  }

  .modal-body-left,
  .modal-body-right {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
  }

  .modal-body-left {
    min-height: 300px;
    padding: 1rem 1rem 0.75rem;
  }

  .modal-body-right {
    padding: 1.4rem 1rem 1.5rem;
    overflow-y: visible;
  }

  #modalProductImage {
    max-height: min(52vh, 420px);
  }
}

.modal-body-left {
  flex: 0 0 55%; 
  background: #0d120e; 
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 650px; /* Rock-Lock the height */
}

.modal-image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.modal-zoom-controls {
  position: absolute;
  top: 0.95rem;
  left: 0.95rem;
  display: flex;
  gap: 0.45rem;
  z-index: 22;
}

.modal-zoom-btn {
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.modal-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.modal-zoom-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.modal-image-nav-prev {
  left: 0.95rem;
}

.modal-image-nav-next {
  right: 0.95rem;
}

.modal-image-nav-btn:hover {
  background: rgba(0, 0, 0, 0.58);
  border-color: rgba(255, 255, 255, 0.7);
}

.modal-image-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.modal-body-right {
  flex: 0 0 45%; 
  padding: 3rem 2.5rem;
  overflow-y: auto;
  background: var(--surface);
  height: 650px; /* Rock-Lock for sync with left side */
}

#modalProductImage {
  --zoom-origin-x: 50%;
  --zoom-origin-y: 50%;
  --zoom-pan-x: 0px;
  --zoom-pan-y: 0px;
  --modal-image-scale: 1;
  width: 100%;
  height: 100%;
  max-height: 480px; /* Leave space for thumbnails */
  object-fit: contain;
  transition: transform 0.24s ease, opacity 0.4s ease-in-out;
  transform-origin: var(--zoom-origin-x) var(--zoom-origin-y);
  transform: translate3d(var(--zoom-pan-x), var(--zoom-pan-y), 0) scale(var(--modal-image-scale));
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
  touch-action: pan-y;
  -webkit-user-drag: none;
  cursor: zoom-in;
}

#modalProductImage:not(.modal-image-zoomed):hover {
  transform: scale(1.02);
}

#modalProductImage.modal-image-zoomed {
  touch-action: none;
  cursor: grab;
}

#modalProductImage.modal-image-zoomed:active {
  cursor: grabbing;
}

.modal-thumbs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  margin-top: 2rem;
  padding: 0.5rem;
  width: 100%;
  justify-content: flex-start;
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.modal-thumbs::-webkit-scrollbar {
  display: none;
}

.modal-thumb-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 1.25rem;
}

.modal-thumb-strip .modal-thumbs {
  margin-top: 0;
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.1rem;
}

.modal-thumb-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.modal-thumb-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.modal-thumb-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.modal-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  background: rgba(255,255,255,0.05);
}

.modal-thumb:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.modal-thumb.active {
  opacity: 1;
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(255, 222, 0, 0.3);
}

#modalProductTitle {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: -1px;
}

#modalProductDesc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.modal-specs h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-specs h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,222,0,0.3), transparent);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.spec-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.modal-actions {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
}

.modal-actions .brochure-btn {
  flex: 1;
  min-width: 140px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
}

.modal-actions .brochure-btn.hidden {
  display: none;
}

.modal-video {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-video h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-video-groups {
  display: grid;
  gap: 1rem;
}

.modal-video-group h5 {
  margin: 0 0 0.4rem;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.modal-inline-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
}

.modal-inline-video-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.modal-inline-video-card .video-container {
  border-radius: 0;
}

.modal-inline-video-card p {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  color: var(--text);
}

.modal-video.hidden {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.3rem;
  z-index: 15;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background-color: var(--bg);
  transform: scale(1.1);
}

.fade-in-up {
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-layout {
  min-height: 100vh;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(54, 124, 43, 0.08), transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(255, 222, 0, 0.05), transparent 45%),
    var(--bg);
  overflow-x: hidden;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.admin-card:hover {
  box-shadow: var(--shadow);
}

.admin-card h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid color-mix(in srgb, var(--primary) 15%, transparent);
  padding-bottom: 0.75rem;
}

.admin-login-shell {
  min-height: calc(100vh - 2rem);
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(460px, 96vw);
}

.admin-login-title {
  margin: 0;
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
}

.admin-login-subtitle {
  margin: 0.45rem 0 1.5rem;
  text-align: center;
  color: var(--muted);
}

.admin-login-form .primary-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.admin-login-form input {
  transition: border-color 0.2s, box-shadow 0.2s;
  padding: 0.85rem;
}

.admin-login-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(54, 124, 43, 0.15);
}

#adminThemeToggle {
  transition: transform 0.2s, background-color 0.2s;
}

#adminThemeToggle:hover {
  transform: rotate(15deg);
  background: var(--bg);
}

#togglePassword:hover {
  color: var(--primary);
}

.eye-icon, .eye-off-icon {
  stroke: var(--muted);
  transition: stroke 0.2s;
}

#togglePassword:hover .eye-icon,
#togglePassword:hover .eye-off-icon {
  stroke: var(--primary);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 700;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th {
  background: color-mix(in srgb, var(--primary) 8%, var(--bg));
  color: var(--primary);
  font-weight: 600;
  padding: 0.85rem 0.75rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid color-mix(in srgb, var(--primary) 20%, transparent);
  text-align: left;
}

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

.admin-table tbody tr:hover td {
  background: color-mix(in srgb, var(--bg) 50%, var(--surface));
}

#productList > div {
  padding: 0.85rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  background: var(--bg);
  transition: all 0.25s;
}

#productList > div:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

#productList > div span {
  font-weight: 600;
  color: var(--text);
}

#prodImage::file-selector-button,
#prodBrochure::file-selector-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 1rem;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

#prodImage::file-selector-button:hover,
#prodBrochure::file-selector-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .topbar {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "menu brand"
      "controls controls";
  }

  #openSidebarBtn { grid-area: menu; }
  .brand { grid-area: brand; }
  .top-controls {
    grid-area: controls;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: stretch;
  }

  .top-controls .nav-btn,
  .top-controls .lang-switcher,
  .top-controls .primary-btn {
    width: 100%;
  }

  .top-controls .control-select {
    width: 100%;
    min-width: 0;
  }
}

.view-container {
  display: block;
}

.category-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 280px;
  display: block;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  transition: transform 0.3s;
}

.category-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.category-card:hover img {
  transform: scale(1.05);
}

#capacityFilters .filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

#capacityFilters .filter-btn:hover {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

#capacityFilters .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(54, 124, 43, 0.25);
}

/* Header ISO and Navigation Styles */
.header-iso-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.header-iso-logo:hover {
  transform: scale(1.15) rotate(5deg);
}

.nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.25s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .nav-btn {
    display: flex !important;
  }
}

/* Premium Certifications Banner */
.certifications-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3rem 4rem;
  margin: 4rem auto;
  max-width: 1060px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.certifications-banner::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 6%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.certifications-banner:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(54, 124, 43, 0.12);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.certification-item {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex: 1;
  min-width: 320px;
  z-index: 1;
  text-align: left;
}

.cert-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), color-mix(in srgb, var(--primary) 2%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--primary) 10%, var(--border));
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.certification-item:hover .cert-icon {
  transform: scale(1.15) rotate(-8deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 15%, var(--surface)), color-mix(in srgb, var(--primary) 5%, var(--surface)));
  box-shadow: 0 12px 25px rgba(54, 124, 43, 0.15);
}

.cert-text h4 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cert-text p {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 240px;
}

.certification-divider {
  width: 2px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  opacity: 0.9;
  flex-shrink: 0;
}

.nav-btn {
  /* Existing nav-btn styles reinforced */
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-transform: none;
}

.nav-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(54, 124, 43, 0.2);
}

@media (max-width: 900px) {
  .certifications-banner {
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 1.25rem;
    align-items: center;
  }
  
  .certification-item {
    flex-direction: column;
    gap: 1.25rem;
    min-width: unset;
    text-align: center;
  }
  
  .cert-text p {
    max-width: unset;
  }

  .certification-divider {
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
  }

  .nav-btn {
    display: flex !important;
  }
}

/* Home Page Category & Product Grid Layout */
.category-cards-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Admin Dashboard Tabs */
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  border-bottom: 0;
  padding-bottom: 0;
}

.tab-btn {
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  border: 1px solid var(--border);
  padding: 0.72rem 0.78rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: normal;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.tab-btn:hover {
  background: rgba(46, 125, 50, 0.05);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.tab-content.hidden {
  display: none;
}

.tab-content {
  max-width: 100%;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.admin-table-wrap .admin-table {
  margin: 0;
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.topbar-logo {
  height: 54px;
  object-fit: contain;
}

body[data-theme="dark"] .topbar-logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.admin-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.admin-topbar-logo {
  height: 45px;
  object-fit: contain;
}

.admin-topbar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.admin-select-switcher {
  position: relative;
  width: 100%;
}

.admin-select-switcher .admin-select-toggle {
  width: 100%;
  min-height: 40px;
}

.admin-select-switcher .admin-select-menu {
  width: 100%;
  min-width: 100%;
  max-height: 240px;
  overflow-y: auto;
}

.admin-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.admin-table .admin-select-switcher .admin-select-toggle {
  min-height: 34px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

.product-video-rows {
  display: grid;
  gap: 0.45rem;
}

.product-video-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.15fr) auto;
  gap: 0.4rem;
  align-items: center;
  background: rgba(54, 124, 43, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem;
}

.product-video-row select,
.product-video-row input {
  margin: 0 !important;
}

.product-video-remove {
  min-height: 38px;
  padding-inline: 0.7rem;
  white-space: nowrap;
}

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

.settings-subcard {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 1.2rem;
  background: color-mix(in srgb, var(--surface) 92%, var(--primary) 8%);
}

.settings-subcard-header h4 {
  margin: 0;
  font-size: 1rem;
}

.settings-subcard-header p {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.slideshow-upload-row {
  align-items: center;
}

.slideshow-upload-row input[type="file"] {
  margin: 0;
}

.slideshow-settings-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.slideshow-images-list {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.55rem;
}

.slideshow-empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.slideshow-image-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  background: var(--surface);
}

.slideshow-image-thumb {
  width: 92px;
  height: 66px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg);
}

.slideshow-image-meta {
  display: grid;
  gap: 0.2rem;
}

.slideshow-image-meta strong {
  font-size: 0.88rem;
}

.slideshow-image-meta span {
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
}

.slideshow-image-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.slideshow-action-btn {
  min-height: 32px;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
}

.slideshow-remove-btn {
  color: var(--error);
  border-color: color-mix(in srgb, var(--error) 52%, var(--border) 48%);
}

@media (max-width: 1180px) {
  .admin-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-layout {
    padding: 1.35rem 0.95rem;
  }

  .admin-topbar {
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.95rem;
  }

  .admin-topbar h1 {
    font-size: 1.18rem;
    line-height: 1.2;
  }

  .admin-topbar-actions .secondary-btn,
  .admin-topbar-actions .control-btn {
    flex: 1;
    min-height: 42px;
  }

  .admin-topbar-actions #adminThemeToggle {
    flex: 0 0 42px;
  }
}

@media (max-width: 768px) {
  .topbar-main {
    gap: 0.75rem;
  }

  .hero {
    min-height: clamp(300px, 46vh, 520px);
  }

  .hero-content {
    padding: 1.8rem 1.2rem 3.2rem;
  }

  .hero h2 {
    font-size: clamp(1.5rem, 6.4vw, 2.05rem);
  }

  .hero p {
    font-size: 0.98rem;
    margin-bottom: 0.85rem;
  }

  .hero-slider-controls {
    right: 0.9rem;
    bottom: 0.75rem;
  }

  .hero-slider-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .hero-slide-dots {
    left: 1.2rem;
    bottom: 0.95rem;
  }

  .topbar-logo {
    height: 45px;
  }

  .brand h1 {
    font-size: 1rem;
    line-height: 1.15;
  }

  .brand p {
    font-size: 0.82rem;
    line-height: 1.2;
  }

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

  .tab-btn {
    padding: 0.66rem 0.5rem;
    font-size: 0.92rem;
  }

  .admin-table-wrap .admin-table {
    min-width: 980px;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr;
    margin-bottom: 0.75rem;
  }

  .maintenance-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .slideshow-image-item {
    grid-template-columns: 1fr;
  }

  .slideshow-image-thumb {
    width: 100%;
    height: 180px;
  }

  .slideshow-image-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .admin-layout {
    padding: 1rem 0.65rem;
  }

  .admin-topbar {
    border-radius: 14px;
  }

  .admin-brand-row {
    gap: 0.65rem;
  }

  .admin-topbar-logo {
    height: 38px;
  }

  .admin-topbar h1 {
    font-size: 1.03rem;
  }

  .tab-btn {
    font-size: 0.88rem;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .product-video-row {
    grid-template-columns: 1fr;
    padding: 0.55rem;
  }

  .product-video-remove {
    width: 100%;
  }

  .topbar {
    padding: 0.68rem 0.72rem;
  }

  .brand h1 {
    font-size: 0.92rem;
  }

  .brand p {
    display: none;
  }

  .top-controls {
    gap: 0.4rem;
  }

  .top-controls .nav-btn {
    font-size: 0.84rem;
    padding: 0.5rem 0.55rem;
    min-height: 40px;
  }

  .top-controls .control-select,
  .top-controls .primary-btn {
    min-height: 40px;
  }
}

.status-select {
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  background: white;
  cursor: pointer;
}

.status-new { border-left: 4px solid #f39c12; }
.status-contacted { border-left: 4px solid #3498db; }
.status-sold { border-left: 4px solid #2ecc71; }
.status-lost { border-left: 4px solid #e74c3c; }

.notes-area {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 40px;
}

.assigned-input,
.followup-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.38rem 0.5rem;
  font-size: 0.84rem;
  background: var(--surface);
  color: var(--text);
}

.assigned-input:focus,
.followup-input:focus,
.notes-area:focus,
.status-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(54, 124, 43, 0.12);
}

.lead-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(54, 124, 43, 0.12);
  color: var(--primary);
}

.crm-aging-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
}

.crm-aging-card {
  background: rgba(54, 124, 43, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

.crm-aging-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.crm-aging-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.monitoring-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
}

.monitoring-kpi-card {
  background: rgba(54, 124, 43, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

.monitoring-kpi-card-critical {
  background: rgba(192, 57, 43, 0.08);
}

.monitoring-kpi-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.monitoring-kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.monitoring-kpi-value-small {
  font-size: 0.9rem;
  line-height: 1.3;
}

.monitoring-severity-badge,
.monitoring-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.monitoring-severity-badge.severity-critical {
  background: rgba(192, 57, 43, 0.16);
  color: #b3261e;
}

.monitoring-severity-badge.severity-warning {
  background: rgba(243, 156, 18, 0.17);
  color: #9a6700;
}

.monitoring-severity-badge.severity-info {
  background: rgba(52, 152, 219, 0.15);
  color: #1b6aa5;
}

.monitoring-status-badge.status-open {
  background: rgba(54, 124, 43, 0.15);
  color: var(--primary);
}

.monitoring-status-badge.status-acknowledged {
  background: rgba(94, 118, 106, 0.15);
  color: var(--muted);
}

.monitoring-row-critical td {
  border-left: 3px solid rgba(192, 57, 43, 0.5);
}

.monitoring-row-warning td {
  border-left: 3px solid rgba(243, 156, 18, 0.5);
}

.category-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

.category-group .category-card {
  width: min(340px, 100%);
  transform: scale(1.05);
}

.category-group .category-card:hover {
  transform: scale(1.1) translateY(-10px);
}

.home-grid {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-header p {
  color: var(--muted);
  margin: 0.4rem auto 0;
  max-width: 640px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.region-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.region-card h3 {
  margin: 0 0 0.35rem;
  color: var(--primary);
}

.region-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.region-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 40;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  padding: 0;
}

.floating-whatsapp:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #20BA5A 0%, #1ba34a 100%);
}

.floating-whatsapp:active {
  transform: translateY(-2px) scale(1.08);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.sticky-best-price-btn {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 39;
  border: none;
  border-radius: 12px;
  padding: 0.82rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 10px 22px rgba(54, 124, 43, 0.3);
  cursor: pointer;
  display: none;
}

body[data-theme="dark"] .sticky-best-price-btn {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .sticky-best-price-btn {
    display: block;
  }

  .machine-finder-form {
    grid-template-columns: 1fr;
  }

  .finder-result-card {
    grid-template-columns: 1fr;
  }

  .finder-quote-btn {
    width: 100%;
  }

  .voice-input-bar {
    flex-direction: column;
  }

  .voice-lang-switcher {
    width: 100%;
  }

  .voice-lang-switcher .lang-toggle {
    width: 100%;
  }

  .voice-input-bar .control-select,
  .voice-input-bar .control-btn {
    width: 100%;
  }

  .dealer-locator-actions .primary-btn,
  .dealer-locator-actions .secondary-btn {
    flex: 1;
    min-width: 150px;
  }

  .floating-whatsapp {
    bottom: 4.9rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }

  .modal-thumb-strip {
    gap: 0.35rem;
    margin-top: 0.85rem;
  }

  .modal-image-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .modal-zoom-controls {
    top: 0.55rem;
    left: 0.55rem;
    gap: 0.35rem;
  }

  .modal-zoom-btn {
    min-width: 40px;
    height: 40px;
    font-size: 1rem;
    padding: 0 0.65rem;
  }

  .modal-image-nav-prev {
    left: 0.45rem;
  }

  .modal-image-nav-next {
    right: 0.45rem;
  }

  .modal-thumb-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .modal-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }
}

@media (min-width: 769px) {
  .sticky-best-price-btn {
    right: auto;
    left: auto;
    bottom: 2rem;
    width: auto;
    padding-inline: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    right: 5.9rem;
    box-shadow: 0 8px 18px rgba(54, 124, 43, 0.22);
  }
}






/* Maintenance & System Section */
.maintenance-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.maintenance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(54, 124, 43, 0.04);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.item-title {
  font-weight: 600;
  color: var(--text);
}

.item-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-active {
  background: rgba(70, 163, 55, 0.15);
  color: #46a337;
}

body[data-theme="dark"] .status-active {
  background: rgba(70, 163, 55, 0.25);
  color: #71d162;
}

.status-connected {
  background: rgba(66, 153, 225, 0.15);
  color: #4299e1;
}

body[data-theme="dark"] .status-connected {
  color: #63b3ed;
}
