/* Ajustes visuales de noviembre 2026 (se carga despues de styles.css). */

/* Fuente Figtree (licencia SIL OFL), alojada en assets/fonts/ */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body { font-family: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
button, input, select, textarea { font-family: inherit; }

/* Paleta: solo dos azules.
   #043DA2 = barras (contacto, menu, debajo del banner, pie de pagina), titulos y hover.
   #0053E2 = botones, precios y enlaces. Los fondos suaves son grises neutros. */
:root {
  --navy-900: #043da2;
  --navy-800: #043da2;
  --navy-700: #0053e2;
  --blue-600: #0053e2;
  --blue-700: #043da2;
  --blue-100: #e3e7ee;
  --blue-50: #f4f6f9;
  --brand-blue: #0053e2;
  --brand-blue-dark: #043da2;
}
.utility-bar, .utility-contact a { color: #ffffff; }
.site-footer, .footer-bottom { color: rgba(255, 255, 255, 0.85); }
.main-nav { background: var(--navy-900); border-top-color: var(--navy-900); }
.main-nav a, .category-nav-root-toggle { color: #ffffff; }
.main-nav a:hover, .category-nav-root:hover .category-nav-root-toggle { color: #ffffff; opacity: 0.85; }
.category-nav-root.is-open .category-nav-root-toggle { background: transparent; opacity: 1; }
.category-nav-root-menu a, .category-nav-submenu a { opacity: 1; }
.nav-divider { background: rgba(255, 255, 255, 0.4); }
.btn-buy { background: var(--brand-blue); }
.btn-buy:hover { background: var(--brand-blue-dark); }
.btn-buy.btn-notify { background: var(--white); color: var(--ink-soft); }
.btn-buy.btn-notify:hover { background: #f5f6f9; }
.price { color: var(--brand-blue); }
/* Barra "Farmacia con entrega a domicilio": negro con letras amarillas y siempre en
   movimiento, aunque el sistema tenga desactivadas las animaciones. */
.top-marquee { background: #111111; color: #ffd23f; }
@media (prefers-reduced-motion: reduce) {
  .top-marquee { justify-content: flex-start; }
  .top-marquee-track { animation: top-marquee 35s linear infinite; }
  .top-marquee [aria-hidden="true"] { display: inline-flex; }
  .top-marquee .top-marquee-sep[aria-hidden="true"] { display: inline; }
}
.search-wrap:focus-within { border-color: var(--brand-blue); }
/* Producto: "Agregar" en #043DA2 y "Comprar ahora" en #0053E2 */
.pd-btn-primary.pd-btn-primary { background: var(--navy-900); }
.pd-btn-primary.pd-btn-primary:hover { background: var(--brand-blue); }

/* Logo mas grande y nitido (imagenes a la medida en assets/mbc-logo-header-*.webp) */
@media (min-width: 901px) {
  .header-inner { height: 88px; }
}
.logo img { width: 89px; height: 80px; }
@media (max-width: 900px) {
  .logo img { width: 67px; height: 60px; }
}

/* Nombres de producto completos: hasta 3 renglones en lugar de 2 */
.product-card h3 { -webkit-line-clamp: 3; min-height: 3.75em; }
.cg-grid .product-card h3 { font-size: 0.95rem; }

/* La ficha ya no "brinca" al pasar el mouse; solo cambia la sombra */
.product-card:hover { transform: none; }

/* Contador del carrito oculto cuando esta vacio */
.cart-badge.is-zero { display: none; }

/* Flecha de "Mas" / "Categorias" dibujada, alineada con el texto */
.category-nav-root-toggle { display: inline-flex; align-items: center; gap: 6px; }
.category-nav-root-toggle > span[aria-hidden="true"] {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

/* Catalogo: mas ancho en pantallas grandes (6 productos por fila) */
@media (min-width: 1500px) {
  .page-catalogo .container,
  .page-catalogo .cg-wrap { max-width: 1440px; }
}

/* Barra de resultados del catalogo: total, marca, disponibles y orden */
.cg-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: -10px 0 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cg-count { color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }
.cg-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cg-control { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.86rem; font-weight: 600; }
.cg-control select { max-width: 220px; padding: 8px 30px 8px 11px; border: 1px solid #d9deea; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b6478' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center; color: var(--navy-900); font: inherit; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; }
.cg-control select:hover, .cg-control select:focus { border-color: var(--blue-600); outline: none; }
.cg-check { cursor: pointer; user-select: none; }
.cg-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand-blue); cursor: pointer; }
.cg-clear { padding: 0; border: 0; background: none; color: var(--brand-blue); font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
.cg-clear:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .cg-toolbar { align-items: stretch; flex-direction: column; }
  .cg-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .cg-control { flex-direction: column; align-items: stretch; gap: 4px; }
  .cg-control select { max-width: none; width: 100%; }
  #cgBrandWrap { order: 1; }
  .cg-control:has(#cgSort) { order: 2; }
  .cg-check { order: 3; flex-direction: row; align-items: center; }
  .cg-clear { order: 4; justify-self: end; }
}

.cg-control[hidden], .cg-clear[hidden] { display: none; }
