/* Rumifay Theme – Header ecommerce */

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.rf-header {
	width: 100%;
	max-width: 100%;
	font-size: calc(16px * var(--rf-font-scale, 1));
}

.rf-topbar {
	width: 100%;
	max-width: 100%;
	background: var(--rf-topbar);
	color: #fff;
	font-size: var(--rf-font-topbar, 13px);
	line-height: 1.3;
}

.rf-topbar__inner {
	width: 100%;
	max-width: var(--rf-container);
	margin: 0 auto;
	padding: 8px 20px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	flex-wrap: nowrap;
}

.rf-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	padding: 0 14px;
	border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.rf-topbar__item:last-child {
	border-right: 0;
}

.rf-topbar__icon {
	flex-shrink: 0;
	opacity: 0.95;
}

.rf-topbar__text--mobile {
	display: none;
}

/* --------------------------------------------------------------------------
   Header main
   -------------------------------------------------------------------------- */
.rf-header-main {
	background: #fff;
	border-bottom: 1px solid var(--rf-border);
}

.rf-header-main__inner {
	width: 100%;
	max-width: var(--rf-container);
	margin: 0 auto;
	padding: 14px 20px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas:
		"logo search actions";
	align-items: center;
	gap: 16px 20px;
}

/* Toolbar móvil (oculto en escritorio) */
.rf-toolbar {
	display: none;
	grid-area: toolbar;
}

/* Escritorio: logo + acciones */
.rf-header-row {
	display: contents;
}

.rf-header-row__logo {
	grid-area: logo;
}

.rf-header-row__actions {
	grid-area: actions;
}

.rf-search {
	grid-area: search;
}

.rf-header-row__logo {
	flex-shrink: 0;
}

.rf-header-row__actions {
	flex-shrink: 0;
}

/* Logo */
.rf-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--rf-text);
	flex-shrink: 0;
}

.rf-logo:hover {
	color: var(--rf-text);
}

.rf-logo__icon {
	width: calc(var(--rf-logo-max-height, 56px) * 1.05);
	height: calc(var(--rf-logo-max-height, 56px) * 1.05);
	min-width: 32px;
	min-height: 32px;
	background: linear-gradient(135deg, var(--rf-primary) 0%, #3388dd 100%);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.rf-logo__icon svg {
	width: 55%;
	height: 55%;
}

.rf-logo__letter {
	font-size: calc(var(--rf-logo-max-height, 56px) * 0.45);
	font-weight: 800;
	line-height: 1;
}

.rf-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.rf-logo__name {
	font-size: var(--rf-font-logo, 18px);
	font-weight: 700;
	color: var(--rf-navy);
	letter-spacing: -0.02em;
}

.rf-logo__tagline {
	font-size: var(--rf-font-tagline, 9px);
	font-weight: 600;
	color: var(--rf-text-muted);
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.rf-logo--image .custom-logo-link {
	display: flex;
	align-items: center;
}

.custom-logo-link {
	display: flex;
	align-items: center;
	max-width: var(--rf-logo-max-width, 220px);
}

.custom-logo-link img,
.rf-logo img.custom-logo {
	max-height: var(--rf-logo-max-height, 56px);
	max-width: var(--rf-logo-max-width, 220px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.rf-logo--image {
	max-width: var(--rf-logo-max-width, 220px);
}

/* Search */
.rf-search {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	margin: 0;
	border: 2px solid var(--rf-border);
	border-radius: var(--rf-radius-lg);
	overflow: hidden;
	background: #fff;
	transition: border-color var(--rf-transition);
}

.rf-search:focus-within {
	border-color: var(--rf-primary);
}

.rf-search__category {
	position: relative;
	flex-shrink: 0;
	border-right: 1px solid var(--rf-border);
}

.rf-categories-trigger--search {
	appearance: none;
	border: 0;
	background: #f8fafc;
	padding: 12px 36px 12px 14px;
	font-size: var(--rf-font-search, 15px);
	font-weight: 500;
	color: var(--rf-text);
	cursor: pointer;
	min-width: 150px;
	height: 100%;
	font-family: inherit;
	text-align: left;
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
}

.rf-categories-trigger--search:hover,
.rf-categories-trigger--nav:hover {
	opacity: 0.95;
}

.rf-categories-trigger__chevron {
	position: absolute;
	right: 12px;
	top: 50%;
	width: 0;
	height: 0;
	border: 4px solid transparent;
	border-top-color: var(--rf-text-muted);
	transform: translateY(-25%);
	pointer-events: none;
}

.rf-categories-trigger--nav {
	text-decoration: none;
	color: #fff;
}

button.rf-nav__categories-btn {
	font-family: inherit;
}

.rf-search__input {
	flex: 1;
	border: 0;
	padding: 12px 16px;
	font-size: var(--rf-font-search, 15px);
	font-family: inherit;
	min-width: 0;
	outline: none;
}

.rf-search__input::placeholder {
	color: #9ca3af;
}

.rf-search__submit {
	flex-shrink: 0;
	border: 0;
	background: var(--rf-primary);
	color: #fff;
	padding: 0 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--rf-transition);
}

.rf-search__submit:hover {
	background: var(--rf-primary-dark);
}

.rf-search__submit svg {
	width: 22px;
	height: 22px;
}

/* Acciones */
.rf-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.rf-action {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: var(--rf-radius);
	text-decoration: none;
	color: var(--rf-text);
	transition: background var(--rf-transition);
}

.rf-action:hover {
	background: #f1f5f9;
	color: var(--rf-primary);
}

.rf-action__icon {
	color: var(--rf-primary);
	flex-shrink: 0;
}

.rf-action__icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

.rf-nav__link-icon .rf-menu-icon-custom-wrap,
.rf-drawer__link-icon .rf-menu-icon-custom-wrap,
.rf-cats-scroll__icon .rf-menu-icon-custom-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.rf-nav__link-icon .rf-menu-icon-custom,
.rf-drawer__link-icon .rf-menu-icon-custom,
.rf-cats-scroll__icon .rf-menu-icon-custom,
.rf-nav__link-icon .rf-menu-icon-custom-wrap svg,
.rf-drawer__link-icon .rf-menu-icon-custom-wrap svg,
.rf-cats-scroll__icon .rf-menu-icon-custom-wrap svg {
	width: var(--rf-nav-icon-size, 18px);
	height: var(--rf-nav-icon-size, 18px);
	display: block;
}

.rf-cats-scroll__icon .rf-menu-icon-custom-wrap svg,
.rf-cats-scroll__icon .rf-menu-icon-custom {
	width: var(--rf-cats-icon-size, 22px);
	height: var(--rf-cats-icon-size, 22px);
}

.rf-nav__link-icon .rf-menu-icon-custom-wrap svg,
.rf-cats-scroll__icon .rf-menu-icon-custom-wrap svg {
	color: var(--rf-primary);
}

.rf-action__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	font-size: var(--rf-font-actions, 12px);
}

.rf-action__label {
	font-weight: 600;
	color: var(--rf-navy);
	font-size: var(--rf-font-actions, 12px);
}

.rf-action__sub {
	color: var(--rf-text-muted);
	font-size: var(--rf-font-actions-sub, 11px);
}

.rf-action--cart {
	position: relative;
}

.rf-cart-wrap {
	position: relative;
}

.rf-cart-count {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--rf-primary);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transform: translate(25%, -25%);
	z-index: 2;
	transition: transform 0.2s ease;
}

.rf-cart-count.is-empty {
	display: none;
}

.rf-cart-count.is-updated {
	animation: rf-cart-pulse 0.55s ease;
}

@keyframes rf-cart-pulse {
	0% {
		transform: translate(25%, -25%) scale(1);
	}
	40% {
		transform: translate(25%, -25%) scale(1.25);
	}
	100% {
		transform: translate(25%, -25%) scale(1);
	}
}

.rf-cart-wrap--toolbar .rf-cart-count {
	top: 2px;
	right: 2px;
}

.rf-cart-total {
	font-weight: 600;
	color: var(--rf-primary);
}

/* Mini carrito (hover escritorio) */
.rf-mini-cart {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: min(360px, calc(100vw - 32px));
	z-index: 120;
}

.rf-cart-wrap--desktop:hover .rf-mini-cart,
.rf-cart-wrap--desktop:focus-within .rf-mini-cart {
	display: block;
}

.rf-mini-cart__panel {
	background: #fff;
	border: 1px solid var(--rf-border);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
	overflow: hidden;
}

.rf-mini-cart__empty {
	margin: 0;
	padding: 20px 16px;
	text-align: center;
	color: var(--rf-text-muted);
	font-size: 0.875rem;
}

.rf-mini-cart__items {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	max-height: 280px;
	overflow-y: auto;
}

.rf-mini-cart__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid #f1f5f9;
}

.rf-mini-cart__item:last-child {
	border-bottom: 0;
}

.rf-mini-cart__thumb,
a.rf-mini-cart__thumb.cart-item-image {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	background: #f8fafc;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.2s ease;
}

a.rf-mini-cart__thumb.cart-item-image:hover,
a.rf-mini-cart__thumb.cart-item-image:active {
	transform: scale(1.04);
}

.rf-mini-cart__thumb img,
a.rf-mini-cart__thumb.cart-item-image img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

a.rf-mini-cart__thumb.cart-item-image:hover img,
a.rf-mini-cart__thumb.cart-item-image:active img {
	transform: scale(1.06);
}

.rf-mini-cart__details {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rf-mini-cart__name,
a.rf-mini-cart__name.cart-item-title {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--rf-navy);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease;
}

a.rf-mini-cart__name.cart-item-title:hover,
a.rf-mini-cart__name.cart-item-title:active,
a.rf-mini-cart__name.cart-item-title:focus-visible {
	color: var(--rf-primary);
}

.rf-mini-cart__meta {
	font-size: 0.75rem;
	color: var(--rf-text-muted);
}

.rf-mini-cart__footer {
	padding: 12px 14px 14px;
	background: #f8fafc;
	border-top: 1px solid var(--rf-border);
}

.rf-mini-cart__subtotal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	font-size: 0.875rem;
}

.rf-mini-cart__subtotal-label {
	font-weight: 600;
	color: var(--rf-navy);
}

.rf-mini-cart__subtotal {
	font-weight: 700;
	color: var(--rf-primary);
}

.rf-mini-cart__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* Mini carrito CTA: add-to-cart-buttons.css */
.rf-mini-cart__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.rf-mini-cart__btn--view {
	background: #fff;
	color: #0057ff;
	border: 1.5px solid #e5eeff;
}

.rf-mini-cart__btn--view:hover {
	background: #f5f9ff;
	color: #0047d9;
	border-color: #0057ff;
}

/* Aviso al agregar en móvil */
.rf-cart-toast {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%) translateY(120%);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--rf-navy);
	color: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
	z-index: 100000;
	font-size: 0.875rem;
	max-width: calc(100vw - 32px);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.28s ease, opacity 0.28s ease;
}

.rf-cart-toast.is-visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.rf-cart-toast__text {
	font-weight: 500;
}

.rf-cart-toast__link {
	color: #93c5fd;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.rf-cart-toast__link:hover {
	color: #fff;
}

/* Carrito móvil – panel lateral */
.rf-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 100060;
	pointer-events: none;
	visibility: hidden;
}

.rf-cart-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

.rf-cart-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 22, 40, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.rf-cart-drawer.is-open .rf-cart-drawer__overlay {
	opacity: 1;
}

.rf-cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(100%, 380px);
	height: 100%;
	background: #fff;
	box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
	transform: translateX(100%);
	transition: transform 0.28s ease;
	display: flex;
	flex-direction: column;
}

.rf-cart-drawer.is-open .rf-cart-drawer__panel {
	transform: translateX(0);
}

.rf-cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid var(--rf-border);
	flex-shrink: 0;
}

.rf-cart-drawer__title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--rf-navy);
}

.rf-cart-drawer__close {
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: var(--rf-text-muted);
	padding: 4px 8px;
}

.rf-cart-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 12px 14px 20px;
}

.rf-cart-drawer__body .rf-mini-cart {
	display: block;
	position: static;
	width: 100%;
	top: auto;
	right: auto;
}

.rf-cart-drawer__body .rf-mini-cart__panel {
	border: 0;
	box-shadow: none;
	border-radius: 0;
}

.rf-cart-drawer__body .rf-mini-cart__items {
	max-height: none;
}

button.rf-action--cart {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	padding: 6px;
}

body.rf-cart-drawer-open {
	overflow: hidden;
}

@media (min-width: 769px) {
	.rf-cart-toast {
		display: none !important;
	}

	.rf-cart-drawer {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.rf-cart-wrap--desktop .rf-mini-cart {
		display: none !important;
	}
}

/* Nav escritorio – barra blanca con iconos */
.rf-nav--desktop {
	background: #fff;
	border-bottom: 1px solid var(--rf-border);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.rf-nav__inner {
	max-width: var(--rf-container);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: var(--rf-nav-bar-height, 44px);
	overflow: hidden;
}

.rf-nav__categories-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--rf-primary);
	color: #fff;
	border: 0;
	padding: 7px 12px;
	font-size: var(--rf-font-nav-btn, 13px);
	font-weight: 600;
	font-family: inherit;
	border-radius: 6px;
	margin-right: 4px;
	cursor: pointer;
	text-decoration: none;
	flex-shrink: 0;
	transition: background var(--rf-transition);
	white-space: nowrap;
	line-height: 1.2;
}

.rf-nav__categories-btn svg {
	width: var(--rf-nav-btn-icon-size, 16px);
	height: var(--rf-nav-btn-icon-size, 16px);
	flex-shrink: 0;
}

.rf-nav__categories-btn-text {
	line-height: 1.2;
}

.rf-nav__categories-btn:hover {
	background: var(--rf-primary-dark);
	color: #fff;
}

.rf-nav__menu {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	list-style: none;
	margin: 0;
	padding: 4px 0;
	gap: 2px;
	flex: 1;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.rf-nav__menu::-webkit-scrollbar {
	height: 4px;
}

.rf-nav__menu::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.rf-nav__menu li {
	margin: 0;
	padding: 0;
}

.rf-nav__menu a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: var(--rf-nav-link-padding-y, 8px) var(--rf-nav-link-padding-x, 12px);
	color: var(--rf-navy);
	font-size: var(--rf-font-nav, 13px);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--rf-radius);
	transition: background var(--rf-transition), color var(--rf-transition);
}

.rf-nav__link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rf-nav-icon-box, 20px);
	height: var(--rf-nav-icon-box, 20px);
	color: var(--rf-primary);
	flex-shrink: 0;
}

.rf-nav__link-icon svg {
	width: var(--rf-nav-icon-size, 18px);
	height: var(--rf-nav-icon-size, 18px);
}

.rf-nav__link-text {
	line-height: 1.2;
}

.rf-nav__menu a:hover,
.rf-nav__menu .current-menu-item > a {
	background: #eef4fc;
	color: var(--rf-primary);
}

.rf-nav__menu .current-menu-item > a .rf-nav__link-icon {
	color: var(--rf-primary-dark);
}

.rf-badge-hot {
	display: inline-block;
	background: var(--rf-accent);
	color: var(--rf-navy);
	font-size: 0.625rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: 4px;
	text-transform: uppercase;
	vertical-align: middle;
}

.rf-badge-hot--mini {
	position: absolute;
	top: -2px;
	right: -6px;
	margin: 0;
	font-size: 0.5625rem;
	padding: 1px 4px;
}

/* Categorías móvil (scroll) – oculto en escritorio */
.rf-cats-mobile {
	display: none;
	background: #fff;
	border-bottom: 1px solid var(--rf-border);
}

.rf-cats-scroll-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.rf-cats-scroll-wrap::-webkit-scrollbar {
	display: none;
}

.rf-cats-scroll {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 10px 12px 12px;
	min-width: 0;
}

.rf-cats-scroll__item {
	flex: 0 0 auto;
}

.rf-cats-scroll__item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 64px;
	padding: 4px 8px 8px;
	text-decoration: none;
	color: var(--rf-text-muted);
	position: relative;
}

.rf-cats-scroll__icon {
	width: var(--rf-cats-icon-circle, 48px);
	height: var(--rf-cats-icon-circle, 48px);
	border-radius: 50%;
	background: #f0f4fa;
	color: var(--rf-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--rf-transition), color var(--rf-transition);
}

.rf-cats-scroll__icon svg {
	width: var(--rf-cats-icon-size, 22px);
	height: var(--rf-cats-icon-size, 22px);
}

.rf-cats-scroll__label {
	font-size: calc(var(--rf-font-nav, 13px) * 0.85);
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
	white-space: nowrap;
}

.rf-cats-scroll__item.is-active .rf-cats-scroll__icon {
	background: var(--rf-primary);
	color: #fff;
}

.rf-cats-scroll__item.is-active .rf-cats-scroll__label {
	color: var(--rf-primary);
}

.rf-cats-scroll__item.is-active a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 28px;
	height: 3px;
	background: var(--rf-primary);
	border-radius: 3px 3px 0 0;
}

/* Drawer móvil */
.rf-drawer {
	visibility: hidden;
	pointer-events: none;
}

.rf-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.rf-drawer__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 9998;
}

.rf-drawer.is-open .rf-drawer__overlay {
	opacity: 1;
}

.rf-drawer__panel {
	position: fixed;
	top: 0;
	left: 0;
	width: min(300px, 85vw);
	height: 100%;
	background: #fff;
	z-index: 9999;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	display: flex;
	flex-direction: column;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.rf-drawer.is-open .rf-drawer__panel {
	transform: translateX(0);
}

.rf-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--rf-border);
}

.rf-drawer__title {
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--rf-navy);
}

.rf-drawer__close {
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: var(--rf-text-muted);
	padding: 4px 8px;
}

.rf-drawer__nav {
	flex: 1;
	overflow-y: auto;
	padding: 12px 0;
}

.rf-drawer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rf-drawer__menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	color: var(--rf-navy);
	font-weight: 500;
	text-decoration: none;
}

.rf-drawer__link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rf-nav-icon-box, 20px);
	height: var(--rf-nav-icon-box, 20px);
	color: var(--rf-primary);
	flex-shrink: 0;
}

.rf-drawer__link-icon svg {
	width: var(--rf-nav-icon-size, 18px);
	height: var(--rf-nav-icon-size, 18px);
}

.rf-drawer__menu a:hover {
	background: #f0f4fa;
	color: var(--rf-primary);
}

.rf-drawer__footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 20px;
	border-top: 1px solid var(--rf-border);
}

.rf-drawer__footer a {
	font-weight: 600;
	color: var(--rf-primary);
	text-decoration: none;
}

body.rf-drawer-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.rf-header-main__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo actions"
			"search search";
		gap: 12px;
	}

	.rf-action__text {
		display: none;
	}

	.rf-action {
		padding: 8px;
	}
}

/* --------------------------------------------------------------------------
   Móvil (diseño tipo app – igual a mockup)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.rf-topbar__inner {
		justify-content: space-between;
		padding: 7px 8px;
		font-size: 0.625rem;
	}

	.rf-topbar__item {
		flex: 1;
		justify-content: center;
		padding: 0 6px;
		border-right: 1px solid rgba(255, 255, 255, 0.35);
	}

	.rf-topbar__item:last-child {
		border-right: 0;
	}

	.rf-topbar__text--desktop {
		display: none;
	}

	.rf-topbar__text--mobile {
		display: inline;
	}

	.rf-header-main__inner {
		grid-template-columns: 40px 1fr auto;
		grid-template-areas:
			"toolbar toolbar toolbar"
			"search search search";
		gap: 10px;
		padding: 10px 12px 12px;
	}

	.rf-toolbar {
		display: grid;
		grid-template-columns: 40px 1fr auto;
		align-items: center;
		gap: 8px;
		width: 100%;
	}

	.rf-header-row {
		display: none;
	}

	.rf-search {
		display: flex;
		width: 100%;
		min-width: 0;
	}

	.rf-mobile-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		border: 0;
		background: transparent;
		padding: 4px;
		cursor: pointer;
		color: var(--rf-navy);
	}

	.rf-mobile-toggle svg {
		width: 26px;
		height: 26px;
	}

	.rf-toolbar__logo {
		display: flex;
		justify-content: center;
	}

	.rf-toolbar__logo .rf-logo {
		justify-content: center;
	}

	.rf-toolbar__logo .rf-logo__icon {
		width: 40px;
		height: 40px;
		border-radius: 10px;
	}

	.rf-toolbar__logo .rf-logo__name {
		font-size: 1.125rem;
	}

	.rf-toolbar__logo .rf-logo__tagline {
		display: block;
		font-size: 0.5625rem;
		color: var(--rf-primary);
		letter-spacing: 0.06em;
	}

	.rf-toolbar__actions {
		display: flex;
		align-items: center;
		gap: 4px;
	}

	.rf-action--icon-only {
		padding: 6px;
		position: relative;
	}

	.rf-action--icon-only .rf-action__icon svg {
		width: 26px;
		height: 26px;
	}

	.rf-search__category {
		display: block;
	}

	.rf-search__category select {
		min-width: 108px;
		max-width: 118px;
		padding: 10px 24px 10px 10px;
		font-size: 0.75rem;
	}

	.rf-search__input {
		padding: 10px 12px;
		font-size: 0.8125rem;
	}

	.rf-search__submit {
		padding: 0 14px;
	}

	.rf-nav--desktop {
		display: none;
	}

	.rf-cats-mobile {
		display: block;
	}
}

/* Mega menú categorías */
.rf-mega {
	position: fixed;
	inset: 0;
	z-index: 100050;
	pointer-events: none;
	visibility: hidden;
}

.rf-mega.is-open {
	pointer-events: auto;
	visibility: visible;
}

.rf-mega__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 22, 40, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.rf-mega.is-open .rf-mega__overlay {
	opacity: 1;
}

.rf-mega__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	max-height: min(78vh, 640px);
	background: #fff;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
	transform: translateY(-100%);
	transition: transform 0.28s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.rf-mega.is-open .rf-mega__panel {
	transform: translateY(0);
}

.rf-mega__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid var(--rf-border);
	flex-shrink: 0;
}

.rf-mega__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--rf-navy);
}

.rf-mega__close {
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: var(--rf-text-muted);
	padding: 4px 8px;
}

.rf-mega__body {
	overflow-y: auto;
	padding: 20px;
}

.rf-mega__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 16px 12px;
}

.rf-mega__item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--rf-navy);
	transition: transform 0.15s ease;
}

.rf-mega__item a:hover {
	transform: translateY(-2px);
	color: var(--rf-primary);
}

.rf-mega__thumb {
	width: var(--rf-mega-thumb-size, 72px);
	height: var(--rf-mega-thumb-size, 72px);
	border-radius: 50%;
	overflow: hidden;
	background: #f0f4fa;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 2px solid #e8f1fc;
}

.rf-mega__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rf-mega__placeholder {
	font-size: calc(var(--rf-mega-thumb-size, 72px) * 0.38);
	font-weight: 800;
	color: var(--rf-primary);
	text-transform: uppercase;
}

.rf-mega__label {
	font-size: var(--rf-font-nav, 13px);
	font-weight: 600;
	text-align: center;
	line-height: 1.25;
}

.rf-mega__empty {
	text-align: center;
	color: var(--rf-text-muted);
	margin: 0;
}

.rf-mega__footer {
	margin: 16px 0 0;
	text-align: center;
}

.rf-mega__all-link {
	font-weight: 600;
	color: var(--rf-primary);
	text-decoration: none;
}

.rf-mega__all-link:hover {
	text-decoration: underline;
}

body.rf-mega-open {
	overflow: hidden;
}

.rumifay-menu-cat-image-field,
.rumifay-customizer-cat-image {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #c5d9f5;
}

.rumifay-cat-image-preview__img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin-top: 8px;
	border: 2px solid #e8f1fc;
}

@media (max-width: 380px) {
	.rf-topbar__text {
		font-size: 0.5625rem;
	}

	.rf-categories-trigger--search {
		min-width: 92px;
		font-size: 0.6875rem;
	}
}
