/* Farmacenter — menú único (inc/nav.php). Oculta los menús anteriores del encabezado de Elementor. */
html.fc-nav-ready body.fcui-ds .elementor-10167 .elementor-element-977a498,
html.fc-nav-ready body.fcui-ds .elementor-10167 .elementor-element-22f4462,
html.fc-nav-ready body.fcui-ds .elementor-10167 .elementor-element-3ac3307,
html.fc-nav-ready body.fcui-ds .elementor-10167 .elementor-element-4eb2ff4 { display: none !important; }
html.fc-nav-ready body.fcui-ds .elementor-10167 .elementor-element-25d2ec8 { padding-left: 3px !important; }
html.fc-nav-ready body.fcui-ds .elementor-10167 .elementor-element-ac28378 { border-bottom: 0 !important; }
html.fc-lock, html.fc-lock body { overflow: hidden !important; }

/* Barra de escritorio */
.fc-nav { position: relative; z-index: 60; background: #fff; border-top: 1px solid var(--fc-line); border-bottom: 1px solid var(--fc-line); font-family: var(--fc-font-body); }
.fc-nav__in { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.fc-nav__cats-btn { display: inline-flex !important; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px !important; border-radius: 999px !important; border: 0 !important;
	background: var(--fc-blue-700) !important; color: #fff !important; font: 600 14px/1 var(--fc-font-body) !important; cursor: pointer; flex: none; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; }
.fc-nav__cats-btn:hover { background: var(--fc-blue-800) !important; }
.fc-nav__cats-btn .fc-ico:last-child { transition: transform .2s; }
.fc-nav__cats-btn[aria-expanded="true"] .fc-ico:last-child { transform: rotate(180deg); }
.fc-nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 8px !important; padding: 0 !important; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.fc-nav__links::-webkit-scrollbar { display: none; }
.fc-nav__links li { margin: 0 !important; flex: none; }
.fc-nav__links a { display: block; padding: 9px 12px; border-radius: 999px; color: var(--fc-ink-2) !important; font-size: 14.5px; font-weight: 500; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.fc-nav__links a:hover { background: var(--fc-bg-soft); color: var(--fc-ink) !important; }
.fc-nav__links a[aria-current="page"] { color: var(--fc-blue-700) !important; background: var(--fc-blue-50); font-weight: 600; }
.fc-nav__links li:first-child a { color: var(--fc-sale) !important; font-weight: 600; }
.fc-nav__help { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--fc-success) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; padding: 8px 12px; border-radius: 999px; }
.fc-nav__help:hover { background: #f0fdf4; }
.fc-nav a:focus-visible, .fc-nav button:focus-visible, .fc-burger:focus-visible, .fc-drawer a:focus-visible, .fc-drawer button:focus-visible { outline: 2px solid var(--fc-blue-700); outline-offset: 2px; }

/* Panel de categorías (escritorio) */
.fc-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--fc-line); box-shadow: 0 18px 40px -12px rgba(10, 58, 87, .18); padding: 20px 0 22px; animation: fcDrop .18s ease; }
.fc-mega[hidden] { display: none; }
@keyframes fcDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.fc-mega__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fc-mega__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--fc-ink) !important; font-weight: 500; font-size: 14px; text-decoration: none !important; transition: background .15s; }
.fc-mega__item:hover { background: var(--fc-blue-50); }
.fc-mega__icon { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--fc-blue-50); color: var(--fc-blue-700); display: flex; align-items: center; justify-content: center; }
.fc-mega__item:hover .fc-mega__icon { background: var(--fc-blue-700); color: #fff; }
.fc-mega__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--fc-primary-700) !important; font-weight: 600; text-decoration: none !important; }

/* Botón ☰ (celular y tablet) */
.fc-burger { display: none; }
@media (max-width: 1024px) {
	.fc-nav { display: none !important; }
	.fc-burger:not([hidden]) { display: inline-flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; margin-right: 2px;
		border: 0 !important; border-radius: 12px !important; background: var(--fc-bg-soft) !important; color: var(--fc-ink) !important; padding: 0 !important; box-shadow: none !important; cursor: pointer; }
	.fc-burger:active { background: var(--fc-line) !important; }
}

/* Panel lateral */
.fc-drawer { position: fixed; inset: 0; z-index: 100000; }
.fc-drawer[hidden] { display: none; }
.fc-drawer__overlay { position: absolute; inset: 0; background: rgba(10, 30, 45, .45); opacity: 0; transition: opacity .25s ease; }
.fc-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 12px 0 40px rgba(10, 30, 45, .2); font-family: var(--fc-font-body); }
.fc-drawer.is-open .fc-drawer__overlay { opacity: 1; }
.fc-drawer.is-open .fc-drawer__panel { transform: none; }
.fc-drawer__head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 14px 16px; background: linear-gradient(120deg, var(--fc-blue-900), var(--fc-blue-800)); }
.fc-drawer__acc { flex: 1; display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none !important; min-width: 0; }
.fc-drawer__acc strong { display: block; font-size: 15.5px; font-family: var(--fc-font-head); color: #fff; }
.fc-drawer__acc small { display: block; font-size: 12.5px; color: #cfe2ee; }
.fc-drawer__avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; flex: none; }
.fc-drawer__close { width: 40px; height: 40px; border: 0 !important; border-radius: 12px !important; background: rgba(255, 255, 255, .12) !important; color: #fff !important; display: flex !important; align-items: center; justify-content: center; padding: 0 !important; cursor: pointer; }
.fc-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; }
.fc-drawer__label { margin: 16px 0 10px !important; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fc-muted); }
.fc-drawer__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fc-drawer__cats a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: var(--fc-bg-soft); color: var(--fc-ink) !important; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2; text-decoration: none !important; }
.fc-drawer__cats a:active { background: var(--fc-blue-50); }
.fc-drawer__cicon { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--fc-blue-700); display: flex; align-items: center; justify-content: center; }
.fc-drawer__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--fc-primary-700) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.fc-drawer__links { list-style: none; margin: 0 !important; padding: 0 !important; }
.fc-drawer__links li { margin: 0 !important; border-bottom: 1px solid var(--fc-line); }
.fc-drawer__links li:last-child { border-bottom: 0; }
.fc-drawer__links a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; color: var(--fc-ink) !important; font-size: 15px; font-weight: 500; text-decoration: none !important; }
.fc-drawer__links a span { flex: 1; }
.fc-drawer__links a .fc-ico:first-child { color: var(--fc-blue-700); }
.fc-drawer__links a .fc-ico:last-child { color: #b6bec9; }
.fc-drawer__links a[aria-current="page"] { color: var(--fc-blue-700) !important; font-weight: 600; }
.fc-drawer__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--fc-line); }
.fc-drawer__wa { width: 100%; justify-content: center; gap: 8px; background: #16a34a !important; color: #fff !important; min-height: 48px; border-radius: 999px !important; display: flex !important; align-items: center; font-weight: 600; text-decoration: none !important; }
@media (prefers-reduced-motion: reduce) { .fc-drawer__panel, .fc-drawer__overlay, .fc-mega { transition: none !important; animation: none !important; } }
