/* ==========================================================================
   Gastro Cloud · Estilos comunes a todo el sitio (fuera de la home)
   Destino final: gc_theme_prime/static/src/scss, dentro de web.assets_frontend.
   ========================================================================== */

/* ---------- 1 · Cabecera en páginas interiores ----------
   Mismos botones que la home (círculos de 42 px, borde fino, contador sin fondo),
   en su versión para fondo claro: trazo azul marino en lugar de blanco. */
html body:not(:has(#gc-sky-hero)) #wrapwrap > header :is(.o_wsale_my_cart, .o_wsale_my_wish) > a {
  width: 42px; height: 42px; padding: 0 !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  border-radius: 50% !important;
  border: 1px solid rgba(23, 62, 104, .28) !important;
  background: rgba(23, 62, 104, .04) !important;
  color: #173e68 !important; box-shadow: none !important;
  transition: background-color .2s ease, border-color .2s ease;
}
html body:not(:has(#gc-sky-hero)) #wrapwrap > header :is(.o_wsale_my_cart, .o_wsale_my_wish) > a:is(:hover, :focus-visible),
html body:not(:has(#gc-sky-hero)) #wrapwrap > header :is(.o_header_hamburger_right_col, .o_header_mobile_buttons_wrap) > li.dropdown > .dropdown-toggle:is(:hover, :focus-visible) {
  background: rgba(23, 62, 104, .09) !important; border-color: rgba(23, 62, 104, .5) !important;
}
html body:not(:has(#gc-sky-hero)) #wrapwrap > header :is(.o_wsale_my_cart, .o_wsale_my_wish) > a > div {
  display: flex; align-items: center; justify-content: center; width: auto; height: auto;
}
html body:not(:has(#gc-sky-hero)) #wrapwrap > header :is(.o_wsale_my_cart, .o_wsale_my_wish, :is(.o_header_hamburger_right_col, .o_header_mobile_buttons_wrap) > li.dropdown > .dropdown-toggle) :is(i, .fa) {
  color: #173e68 !important; font-size: 16px !important; width: auto !important; height: auto !important; line-height: 1 !important;
}
/* Contador: cifra sola, arriba a la derecha, como en la home */
html body:not(:has(#gc-sky-hero)) #wrapwrap > header :is(.o_wsale_my_cart, .o_wsale_my_wish) sup.badge {
  position: absolute !important; top: 4px !important; right: 3px !important; left: auto !important;
  margin: -4px -4px 0 0 !important; padding: 0 !important; min-width: 0 !important;
  background: transparent !important; color: #173e68 !important;
  font-size: 12px !important; font-weight: 750 !important; line-height: 1 !important;
  border-radius: 0 !important; transform: none !important;
}
/* Botón de usuario: píldora */
html body:not(:has(#gc-sky-hero)) #wrapwrap > header :is(.o_header_hamburger_right_col, .o_header_mobile_buttons_wrap) > li.dropdown > .dropdown-toggle {
  height: 42px; padding: 0 12px !important; gap: 8px;
  display: flex !important; align-items: center;
  border-radius: 999px !important;
  border: 1px solid rgba(23, 62, 104, .28) !important;
  background: rgba(23, 62, 104, .04) !important;
  color: #173e68 !important; box-shadow: none !important;
}
html body:not(:has(#gc-sky-hero)) #wrapwrap > header .navbar-toggler {
  width: 42px; height: 42px; padding: 0 !important; border: 0 !important; box-shadow: none !important;
  display: flex; align-items: center; justify-content: center; color: #173e68 !important;
}

/* ---------- 2 · Menú lateral: el megamenú de categorías no cabe en 6 columnas ----------
   El bloque de categorías usa col-lg-2 (seis por fila) pensando en un desplegable ancho;
   dentro del panel lateral de 400 px quedaban columnas de 30 px con el texto en vertical. */
#wrapwrap > header .offcanvas.o_navbar_mobile .o_mega_menu > section { padding-top: 4px !important; padding-bottom: 12px !important; }
#wrapwrap > header .offcanvas.o_navbar_mobile .o_mega_menu .container { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }
#wrapwrap > header .offcanvas.o_navbar_mobile .o_mega_menu .row { margin-left: -4px !important; margin-right: -4px !important; }
#wrapwrap > header .offcanvas.o_navbar_mobile .o_mega_menu .row > [class*="col-"] {
  flex: 0 0 50% !important; width: 50% !important; max-width: 50% !important;
  padding-left: 4px !important; padding-right: 4px !important; margin-top: 8px !important;
}
#wrapwrap > header .offcanvas.o_navbar_mobile .o_mega_menu .card { box-shadow: none !important; }
