:root {
  --mn-shell-width: 1520px;
  --mn-shell-gutter: 24px;
  --mn-topbar: #344315;
  --mn-page: #2e4319;
  --mn-deep: #071b11;
  --mn-cream: #f1d18b;
  --mn-hero: url("https://www.mimixnatur.cz/user/documents/upload/mimix-samba/mimix-hero-desktop.webp");
}

html body.mn-samba-live {
  margin: 0 !important;
  background: var(--mn-page) !important;
  overflow-x: hidden !important;
}

/* The shell and the native content wrapper share one and the same edge. */
html body.mn-samba-live .mnx-shell,
html body.mn-samba-live > .overall-wrapper {
  box-sizing: border-box !important;
  width: min(var(--mn-shell-width), calc(100% - (2 * var(--mn-shell-gutter)))) !important;
  max-width: var(--mn-shell-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body.mn-samba-live .mnx-shell {
  position: relative !important;
  z-index: 20 !important;
  padding: 0 !important;
  background: transparent !important;
  isolation: isolate !important;
}

html body.mn-samba-live .mnx-topbar,
html body.mn-samba-live .mnx-header,
html body.mn-samba-live .mnx-hero {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

html body.mn-samba-live .mnx-topbar {
  height: 30px !important;
  overflow: hidden !important;
  color: var(--mn-cream) !important;
  background: var(--mn-topbar) !important;
}

html body.mn-samba-live .mnx-topbar__inner {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

html body.mn-samba-live .mnx-topbar__item {
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  color: var(--mn-cream) !important;
}

html body.mn-samba-live .mnx-topbar__item:nth-child(2) { text-align: center !important; }
html body.mn-samba-live .mnx-topbar__item:nth-child(3) { text-align: right !important; }

html body.mn-samba-live .mnx-header {
  height: 112px !important;
  overflow: hidden !important;
  background-color: var(--mn-deep) !important;
  background-image: linear-gradient(rgba(7, 27, 17, .54), rgba(7, 27, 17, .54)), var(--mn-hero) !important;
  background-repeat: no-repeat !important;
  background-size: 100% auto !important;
  background-position: center top !important;
}

html body.mn-samba-live .mnx-header__inner {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(210px, 24%) minmax(0, 1fr) minmax(330px, 29%) !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
}

html body.mn-samba-live .mnx-logo {
  min-width: 0 !important;
  height: 112px !important;
  display: flex !important;
  align-items: center !important;
}

html body.mn-samba-live .mnx-logo img {
  display: block !important;
  width: min(210px, 100%) !important;
  max-width: 100% !important;
  max-height: 92px !important;
  object-fit: contain !important;
}

html body.mn-samba-live .mnx-nav {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: stretch !important;
}

html body.mn-samba-live .mnx-nav-item {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px 5px !important;
  color: #fff4ca !important;
  text-align: center !important;
  text-decoration: none !important;
  border-left: 1px solid rgba(241, 209, 139, .16) !important;
  overflow: hidden !important;
}

html body.mn-samba-live .mnx-nav-item > * {
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

html body.mn-samba-live .mnx-actions {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

html body.mn-samba-live .mnx-search {
  flex: 1 1 170px !important;
  min-width: 130px !important;
  max-width: 230px !important;
}

html body.mn-samba-live .mnx-action {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

html body.mn-samba-live .mnx-hero {
  position: relative !important;
  height: 88px !important;
  min-height: 88px !important;
  overflow: hidden !important;
  background-color: var(--mn-deep) !important;
  background-image: linear-gradient(rgba(7, 27, 17, .20), rgba(7, 27, 17, .20)), var(--mn-hero) !important;
  background-repeat: no-repeat !important;
  background-size: 100% auto !important;
  background-position: center -112px !important;
}

html body.mn-samba-live.mn-samba-live-home .mnx-hero {
  height: max(320px, calc((min(100vw - (2 * var(--mn-shell-gutter)), var(--mn-shell-width)) * .46875) - 112px)) !important;
  min-height: 320px !important;
  max-height: 840px !important;
}

html body.mn-samba-live .mnx-hero picture,
html body.mn-samba-live .mnx-hero img,
html body.mn-samba-live .mnx-hero-link,
html body.mn-samba-live .mnx-mobile-cta {
  display: none !important;
}

html body.mn-samba-live .mnx-native-chrome-hidden,
html body.mn-samba-live .mnx-native-home-hidden,
html body.mn-samba-live #header,
html body.mn-samba-live #navigation,
html body.mn-samba-live #carousel-wrapper,
html body.mn-samba-live .carousel-wrapper,
html body.mn-samba-live .homepage-carousel,
html body.mn-samba-live .header-top-wrapper,
html body.mn-samba-live .header-bottom-wrapper,
html body.mn-samba-live .navigation-wrapper,
html body.mn-samba-live .header-background,
html body.mn-samba-live .top-navigation-bar,
html body.mn-samba-live .top-navigation-bar-container {
  display: none !important;
}

@media (max-width: 1100px) {
  html body.mn-samba-live .mnx-header__inner {
    grid-template-columns: minmax(170px, 22%) minmax(0, 1fr) minmax(270px, 31%) !important;
    gap: 4px !important;
    padding-inline: 10px !important;
  }
  html body.mn-samba-live .mnx-logo img { width: min(175px, 100%) !important; }
  html body.mn-samba-live .mnx-nav-item { font-size: 11px !important; padding-inline: 2px !important; }
  html body.mn-samba-live .mnx-actions { gap: 4px !important; }
  html body.mn-samba-live .mnx-search { min-width: 105px !important; max-width: 175px !important; }
}

@media (max-width: 700px) {
  :root { --mn-shell-gutter: 8px; }
  html body.mn-samba-live .mnx-topbar { height: 26px !important; }
  html body.mn-samba-live .mnx-header { height: 96px !important; }
  html body.mn-samba-live .mnx-header__inner {
    grid-template-columns: 132px minmax(0, 1fr) 40px !important;
    padding-inline: 8px !important;
  }
  html body.mn-samba-live .mnx-logo { height: 96px !important; }
  html body.mn-samba-live .mnx-logo img { width: 128px !important; max-height: 76px !important; }
  html body.mn-samba-live .mnx-nav { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body.mn-samba-live .mnx-nav-item:nth-child(n + 4) { display: none !important; }
  html body.mn-samba-live .mnx-search,
  html body.mn-samba-live .mnx-account { display: none !important; }
  html body.mn-samba-live .mnx-hero { background-position: center -96px !important; height: 68px !important; min-height: 68px !important; }
  html body.mn-samba-live.mn-samba-live-home .mnx-hero { height: calc((100vw - 16px) * .5625) !important; min-height: 0 !important; }
}

/* Homepage layout reset: legacy theme rules must not turn the shared
   sections into full-height stacked blocks. */
html body.mn-samba-live .mnx-benefits,
html body.mn-samba-live .mnx-category-cards,
html body.mn-samba-live .mnx-story {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

html body.mn-samba-live .mnx-benefits-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  position: relative !important;
  overflow: visible !important;
}

html body.mn-samba-live .mnx-benefits-grid > * {
  display: flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  min-width: 0 !important;
}

html body.mn-samba-live .mnx-card-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  position: relative !important;
  overflow: visible !important;
}

html body.mn-samba-live .mnx-card-grid > * {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

html body.mn-samba-live .mnx-story {
  min-height: 280px !important;
}

@media (max-width: 700px) {
  html body.mn-samba-live .mnx-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body.mn-samba-live .mnx-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
