/* Cabecera principal: logo, buscador y acciones alineados (2026-11-10).
   Se aplica solo al escritorio; los IDs de los modulos se conservan para movil. */
@media (min-width: 768px) {
  #header .header-top .em-main-header-row {
    display: grid;
    grid-template-columns: minmax(140px, 190px) minmax(160px, 1fr) auto;
    align-items: center;
    gap: 12px 24px;
    min-height: 68px;
    padding: 12px 0;
  }
  #header .header-top .em-main-header-row::before,
  #header .header-top .em-main-header-row::after {
    content: none;
  }
  #header .em-main-header-row #_desktop_logo {
    grid-column: 1;
    grid-row: 1;
    float: none;
    position: static;
    width: auto;
    max-width: 100%;
    padding: 0;
  }
  #header .em-main-header-row #_desktop_logo h1 {
    margin: 0;
    line-height: 1;
  }
  #header .em-main-header-row #_desktop_logo a {
    display: flex;
    align-items: center;
  }
  #header .em-main-header-row #_desktop_logo img.logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 48px;
    height: auto;
    object-fit: contain;
  }
  #header .em-main-header-row .header-top-right {
    display: contents;
    height: auto !important;
  }
  #header .em-main-header-row .header-top-right > .clearfix {
    display: none;
  }
  #header .em-main-header-row #search_widget {
    grid-column: 2;
    grid-row: 1;
    position: static;
    float: none;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 620px;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 auto;
    padding: 0;
  }
  #header .em-main-header-row #search_widget form {
    position: relative;
    margin: 0;
  }
  #header .em-main-header-row #search_widget form input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0 12px 0 48px;
    border: 1px solid #ff6a12;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    line-height: normal;
  }
  #header .em-main-header-row #search_widget form button[type="submit"] {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px 0 0 10px;
    background: #ff6a12;
    color: #fff;
  }
  #header .em-main-header-row #search_widget form i.material-icons.search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 22px;
    line-height: 1;
    border-radius: 0;
    background: transparent;
    color: #fff;
  }
  #header .em-main-header-row .em-header-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
  }
  #header .em-header-actions #_desktop_user_info,
  #header .em-header-actions #_desktop_cart {
    float: none;
    margin: 0;
    padding: 0;
  }
  #header .em-header-actions .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    text-align: left;
    white-space: nowrap;
  }
  #header .em-header-actions #_desktop_cart .blockcart {
    position: static;
    top: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  #header .em-header-actions #_desktop_cart .blockcart .header {
    margin: 0;
    line-height: normal;
  }
  #header .em-header-actions #_desktop_user_info .user-info > a,
  #header .em-header-actions #_desktop_cart .blockcart .header > a,
  #header .em-header-actions #_desktop_cart .blockcart.inactive .header {
    box-sizing: border-box;
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #ff6a12;
    border-radius: 6px;
    background: #ff6a12;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
    text-decoration: none;
  }
  #header .em-header-actions #_desktop_user_info .user-info > a.account {
    background: #fff;
    color: #e85800;
  }
  #header .em-header-actions #_desktop_user_info .user-info a.account span {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
  }
  #header .em-header-actions .material-icons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    vertical-align: middle;
    color: inherit;
  }
  #header .em-header-actions #_desktop_user_info .user-info > a:hover,
  #header .em-header-actions #_desktop_cart a:hover {
    filter: brightness(0.96);
  }
  /* Si displayTop incluye el menu estandar, conserva su fila completa. */
  #header .em-main-header-row #_desktop_top_menu {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  #header .em-main-header-row #_desktop_top_menu #top-menu {
    position: static;
    margin: 0;
    width: 100%;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  #header .header-top .em-main-header-row {
    grid-template-columns: 140px minmax(120px, 1fr) auto;
    column-gap: 12px;
  }
  #header .em-main-header-row .em-header-actions,
  #header .em-header-actions .user-info {
    gap: 6px;
  }
  #header .em-header-actions #_desktop_user_info .user-info a.account span {
    max-width: 125px;
  }
  #header .em-header-actions #_desktop_user_info .user-info > a,
  #header .em-header-actions #_desktop_cart .blockcart .header > a,
  #header .em-header-actions #_desktop_cart .blockcart.inactive .header {
    font-size: 11px;
    padding-right: 7px;
    padding-left: 7px;
  }
}


/* Pie de pagina alineado: tema hijo, columnas y sellos (2026-11-10). */
#footer .footer-container.em-footer {
  background: #f7f7f7;
  margin-top: 0;
  padding: 0;
  box-shadow: none;
}
#footer .footer-container.em-footer .em-footer-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px 16px;
}
#footer .footer-container.em-footer .em-footer-columns {
  margin: 0;
}
#footer .footer-container.em-footer .em-footer-columns > .col-md-6.links,
#footer .footer-container.em-footer .em-footer-columns > .col-md-6.links > .row,
#footer .footer-container.em-footer .em-footer-columns > .col-md-6.links > .row > .wrapper,
#footer .footer-container.em-footer .em-footer-columns .block-contact.col-md-3.links.wrapper,
#footer .footer-container.em-footer .em-footer-columns #block_myaccount_infos {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  float: none;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
#footer .footer-container.em-footer .em-footer-columns .h3,
#footer .footer-container.em-footer .em-footer-columns .h4 {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
#footer .footer-container.em-footer .em-footer-columns p.h3,
#footer .footer-container.em-footer .em-footer-columns p.h4 {
  margin: 0 0 10px;
}
#footer .footer-container.em-footer .em-footer-columns p.h3 a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
#footer .footer-container.em-footer .em-footer-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#footer .footer-container.em-footer .em-footer-columns li {
  margin: 0 0 2px;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
}
#footer .footer-container.em-footer .em-footer-columns li a {
  color: #626970;
  text-decoration: none;
  overflow-wrap: break-word;
}
#footer .footer-container.em-footer .em-footer-columns li a:hover,
#footer .footer-container.em-footer .em-footer-columns li a:focus {
  color: #e85800;
  text-decoration: underline;
}
#footer .footer-container.em-footer #contact-infos {
  color: #626970;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: break-word;
}
#footer .footer-container.em-footer #contact-infos a {
  color: #e85800;
}
#footer .footer-container.em-footer .em-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3e5e7;
}
#footer .footer-container.em-footer .em-footer-after {
  min-width: 0;
  max-width: 100%;
}
#footer .footer-container.em-footer .em-footer-after:empty {
  display: none;
}
#footer .footer-container.em-footer .em-footer-after > * {
  float: none;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
#footer .footer-container.em-footer .imagenes-footer.em-footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  position: static;
  top: auto;
  left: auto;
  width: auto;
  max-width: 100%;
  margin: 0 0 0 auto;
  padding: 0;
}
#footer .footer-container.em-footer .imagenes-footer.em-footer-badges a {
  display: inline-flex;
  align-items: center;
  position: static;
  margin: 0;
  padding: 0;
}
#footer .footer-container.em-footer .imagenes-footer.em-footer-badges a img {
  display: block;
  position: static;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  max-width: 150px;
  max-height: 74px;
  height: auto;
  margin: 0;
  object-fit: contain;
}
#footer .footer-container.em-footer .imagenes-footer.em-footer-badges img.afip_imagen {
  width: 52px;
  max-width: 52px;
}
#footer .footer-container.em-footer .imagenes-footer.em-footer-badges img.case_imagen {
  width: 150px;
}
#footer .footer-container.em-footer .em-footer-copyright {
  width: 100%;
  margin: 0;
  padding: 6px 16px;
  background: #ff6a12;
  color: #fff;
  text-align: center;
}
#footer .footer-container.em-footer .em-footer-copyright p.text-sm-center {
  position: static;
  left: auto;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
#footer .footer-container.em-footer .em-footer-copyright a {
  color: #fff;
}
@media (min-width: 768px) {
  #footer .footer-container.em-footer .em-footer-columns {
    display: grid;
    grid-template-columns: 1.2fr 0.85fr 1.25fr 1fr;
    align-items: start;
    column-gap: 32px;
    row-gap: 0;
  }
  #footer .footer-container.em-footer .em-footer-columns::before,
  #footer .footer-container.em-footer .em-footer-columns::after,
  #footer .footer-container.em-footer .em-footer-columns > .col-md-6.links > .row::before,
  #footer .footer-container.em-footer .em-footer-columns > .col-md-6.links > .row::after {
    content: none;
  }
  #footer .footer-container.em-footer .em-footer-columns > .col-md-6.links,
  #footer .footer-container.em-footer .em-footer-columns > .col-md-6.links > .row {
    display: contents;
  }
  #footer .footer-container.em-footer .em-footer-columns .collapse {
    display: block;
    height: auto;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  #footer .footer-container.em-footer .em-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}
@media (max-width: 767px) {
  #footer .footer-container.em-footer .em-footer-inner {
    padding: 20px 16px;
  }
  #footer .footer-container.em-footer .em-footer-columns {
    display: block;
  }
  #footer .footer-container.em-footer .em-footer-columns .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #e3e5e7;
  }
  #footer .footer-container.em-footer .em-footer-columns .title .h3 {
    margin: 0;
  }
  #footer .footer-container.em-footer .em-footer-columns .title .material-icons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
  }
  #footer .footer-container.em-footer .em-footer-columns .collapse {
    padding: 12px 0;
  }
  #footer .footer-container.em-footer .em-footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
  }
  #footer .footer-container.em-footer .imagenes-footer.em-footer-badges {
    justify-content: center;
    margin: 0;
    gap: 20px;
  }
  #footer .footer-container.em-footer .imagenes-footer.em-footer-badges img.case_imagen {
    width: 150px;
  }
}

/* El carrusel no debe ocupar 100vw mas los margenes de su contenedor. */
body #wrapper .emic-carousel-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  left: auto;
  right: auto;
}

/* El viewport de iconos debe poder reducirse dentro de su fila. */
body #wrapper .emic-carousel .emic-viewport {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
/* Las promociones de la portada pasan de fila si no entran. */
@media (min-width: 768px) {
  body #wrapper .responsive-gallery.desktop-gallery {
    flex-wrap: wrap;
    max-width: 100%;
  }
  body #wrapper .responsive-gallery.desktop-gallery > a {
    min-width: 0;
    max-width: 100%;
  }
  body #wrapper .responsive-gallery.desktop-gallery img {
    max-width: 100%;
    height: auto;
  }
}
/* El banner movil ocupa el contenedor, no el ancho con scrollbar. */
@media (max-width: 767px) {
  body #wrapper #carouselelectro {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Compactar el pie sin eliminar los dialogos de lista de deseos. */
#footer .footer-container.em-footer .em-footer-columns > .wishlist-add-to,
#footer .footer-container.em-footer .em-footer-columns > .wishlist-delete,
#footer .footer-container.em-footer .em-footer-columns > .wishlist-create,
#footer .footer-container.em-footer .em-footer-columns > .wishlist-login,
#footer .footer-container.em-footer .em-footer-columns > section.footer-block {
  display: contents;
}
/* Bootstrap my-3 agrega margen !important al boton de arrepentimiento. */
#footer .footer-container.em-footer .em-footer-columns > .text-center.my-3 {
  grid-column: 1 / -1;
  margin: 12px 0 0 !important;
  padding: 0;
  text-align: left !important;
}
@media (max-width: 767px) {
  #footer .footer-container.em-footer .em-footer-columns > .text-center.my-3 {
    text-align: center !important;
  }
}
