/* LAYOUT-FIX-20260714 — camada mínima, sem sobrescrever topo/menu original */

#google_translate_element,
.goog-te-banner-frame,
.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.slot-hidden {
  display: none !important;
}

.restricted-gate {
  background: #f7f3ea;
  border: 1px solid #e0d6c2;
  padding: 24px;
  margin: 20px 0;
}

.restricted-gate form {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.restricted-gate input,
.restricted-gate select {
  padding: 8px;
  border: 1px solid #ccc;
}

.restricted-gate button {
  background: #c4a035;
  color: #fff;
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
}

/* SA áreas: dropdown "+ ver outras unidades" overlay — layout original do resto intacto */
#main:has(#topmenuicons) #topunit.more-units {
  float: left;
  width: 340px;
  height: 111px;
  position: relative;
  overflow: visible;
}

#main:has(#topmenuicons) #topunit.more-units div.background {
  position: absolute !important;
  top: 50px;
  left: 0;
  margin-top: 0 !important;
  float: none !important;
  clear: none !important;
  width: 340px;
  overflow: visible !important;
  z-index: 900;
}

#main:has(#topmenuicons) #topunit.more-units.units-open div.background {
  z-index: 25000;
}

#main:has(#topmenuicons) #unit-submenu > ul {
  height: 195px !important;
}

#main:has(#topmenuicons) #unit-submenu > ul li a {
  background-color: #fff;
}

#main:has(#topmenuicons) #unit-submenu > ul li.sementes a {
  border-bottom: 1px solid #d4d4d5;
}

#main:has(#topmenuicons) #unit-submenu > ul li.genetica a {
  border-bottom: 1px solid #d8d8da;
}

#main:has(#topmenuicons) #topsubmenu {
  position: relative;
  z-index: 999;
  margin-top: 111px;
}

#main:has(#topmenuicons) #topsubmenu.ruminantes {
  margin-top: 0;
}

#main:has(#topmenuicons) #topsubmenu.aves-suinos {
  float: right !important;
  width: 660px;
  margin-top: 0 !important;
  background-size: 100% 100%;
  border-right: 2px solid #fff !important;
}

#main:has(#topmenuicons) #topsubmenu.aves-suinos ul {
  text-align: right;
  width: 100%;
  box-sizing: border-box;
  padding-right: 4px;
}

#main:has(#topmenuicons) #topsubmenu.aves-suinos ul li {
  float: none !important;
  display: inline-block;
  margin-left: 27px;
}

#header {
  overflow: hidden;
}

#header > ul.header-lang {
  float: right;
  margin-top: 26px;
  padding-top: 0 !important;
  list-style: none;
}

#header > ul.header-lang li {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 18px;
}

#header form.search {
  margin-top: 22px;
}

#topunit.home ul li.sementes {
  display: list-item !important;
  visibility: visible !important;
}

#topunit.home ul li.sementes a {
  display: block !important;
  visibility: visible !important;
}

/* Antes do Nivo iniciar, mostra só o primeiro slide */
#slider-home:not(.nivoSlider) > a {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

#slider-home:not(.nivoSlider) > a:first-child {
  display: block;
}

#slider-home:not(.nivoSlider) > a:first-child img {
  display: block !important;
  position: static !important;
  width: 1120px;
  height: 441px;
}

/* Rodapé: fundo azul dos ícones de redes sociais */
#footer div.newsletter ul.socialmedia {
  background: url(/assets/img/bg-footer-social.png) no-repeat 0 0;
}

/* Carrossel de produtos em destaque (Ruminantes + Aves e Suínos) */
#highlight-products.ruminantes,
#highlight-products.aves-suinos,
#highlight-products.equinos,
#highlight-products.atacado,
#highlight-products.pets {
  overflow: hidden;
}

#highlight-products.ruminantes div.carousel,
#highlight-products.aves-suinos div.carousel,
#highlight-products.equinos div.carousel,
#highlight-products.pets div.carousel {
  margin-top: -100px !important;
  height: 350px;
  overflow: hidden;
}

#highlight-products.atacado div.carousel {
  margin-top: -100px !important;
  height: 223px;
  overflow: hidden;
}

#highlight-products.ruminantes div.carousel div.scrollable,
#highlight-products.ruminantes div.carousel div.scrollable.horizontal,
#highlight-products.aves-suinos div.carousel div.scrollable,
#highlight-products.aves-suinos div.carousel div.scrollable.horizontal,
#highlight-products.equinos div.carousel div.scrollable,
#highlight-products.equinos div.carousel div.scrollable.horizontal,
#highlight-products.pets div.carousel div.scrollable,
#highlight-products.pets div.carousel div.scrollable.horizontal {
  width: 683px !important;
  height: 245px;
  overflow: hidden;
  position: relative;
  float: left;
}

#highlight-products.atacado div.carousel div.scrollable,
#highlight-products.atacado div.carousel div.scrollable.horizontal {
  width: 958px !important;
  height: 223px;
  overflow: hidden;
  position: relative;
  float: left;
}

#highlight-products.ruminantes div.carousel div.scrollable div.items,
#highlight-products.aves-suinos div.carousel div.scrollable div.items,
#highlight-products.equinos div.carousel div.scrollable div.items,
#highlight-products.pets div.carousel div.scrollable div.items,
#highlight-products.atacado div.carousel div.scrollable div.items {
  height: 245px;
  position: absolute;
  width: 20000em;
  margin-top: 20px;
}

#highlight-products.atacado div.carousel div.scrollable div.items {
  height: 223px;
}

#highlight-products.ruminantes div.carousel div.scrollable div.items > div,
#highlight-products.aves-suinos div.carousel div.scrollable div.items > div,
#highlight-products.equinos div.carousel div.scrollable div.items > div,
#highlight-products.pets div.carousel div.scrollable div.items > div,
#highlight-products.atacado div.carousel div.scrollable div.items > div {
  float: left;
}

#highlight-products.ruminantes div.carousel div.scrollable div.items div.item,
#highlight-products.aves-suinos div.carousel div.scrollable div.items div.item,
#highlight-products.equinos div.carousel div.scrollable div.items div.item,
#highlight-products.pets div.carousel div.scrollable div.items div.item,
#highlight-products.atacado div.carousel div.scrollable div.items div.item {
  width: 145px;
  height: 200px;
  float: left;
  padding: 0 70px 0 25px;
  box-sizing: content-box;
}

#highlight-products.ruminantes div.carousel div.scrollable div.items div.item a.photo,
#highlight-products.aves-suinos div.carousel div.scrollable div.items div.item a.photo,
#highlight-products.equinos div.carousel div.scrollable div.items div.item a.photo,
#highlight-products.pets div.carousel div.scrollable div.items div.item a.photo,
#highlight-products.atacado div.carousel div.scrollable div.items div.item a.photo {
  float: none;
  display: block;
  width: 145px;
  height: 140px;
}

#highlight-products.ruminantes div.carousel div.scrollable div.items div.item a.photo img,
#highlight-products.aves-suinos div.carousel div.scrollable div.items div.item a.photo img,
#highlight-products.equinos div.carousel div.scrollable div.items div.item a.photo img,
#highlight-products.pets div.carousel div.scrollable div.items div.item a.photo img,
#highlight-products.atacado div.carousel div.scrollable div.items div.item a.photo img {
  display: block;
  width: 145px;
  height: 140px;
}

#highlight-products.ruminantes div.carousel div.scrollable div.items div.item h5,
#highlight-products.aves-suinos div.carousel div.scrollable div.items div.item h5,
#highlight-products.equinos div.carousel div.scrollable div.items div.item h5,
#highlight-products.pets div.carousel div.scrollable div.items div.item h5,
#highlight-products.atacado div.carousel div.scrollable div.items div.item h5 {
  margin-top: 8px;
  float: none;
  width: 145px;
}

#highlight-products.ruminantes div.carousel div.scrollable div.items div.item p.recipe,
#highlight-products.aves-suinos div.carousel div.scrollable div.items div.item p.recipe,
#highlight-products.equinos div.carousel div.scrollable div.items div.item p.recipe,
#highlight-products.pets div.carousel div.scrollable div.items div.item p.recipe,
#highlight-products.atacado div.carousel div.scrollable div.items div.item p.recipe {
  float: none;
  width: 145px;
}

/* Listagens e fichas de produto */
div.half-product a.picture,
div.full-product a.picture,
div.category-product a.picture,
div.details-product a.picture {
  overflow: visible;
}

div.half-product a.picture img,
div.full-product a.picture img,
div.category-product a.picture img,
div.details-product a.picture img {
  display: block;
  max-width: 100%;
  height: auto;
}

#content-home-internal > #news-internal.ruminantes {
  clear: both;
}

/* Banner rotativo da home da área: 1000×230 (não usar formato da home 1120×441) */
#slider-areas,
#highlight-areas {
  width: 1000px !important;
  height: 230px !important;
  overflow: hidden;
}

#slider-areas img,
#slider-areas .nivo-main-image {
  width: 1000px !important;
  height: 230px !important;
  max-width: 1000px;
  max-height: 230px;
}

#slider-areas .nivo-controlNav {
  padding-top: 215px;
  padding-left: 5px;
  z-index: 1000;
}
