.mga-menu-widget,
.mga-menu-widget *,
.mga-account-cart,
.mga-account-cart * {
	box-sizing: border-box;
}

.mga-menu-shell {
	position: relative;
	width: 100%;
}

.mga-desktop-bar {
	display: flex;
	align-items: center;
	width: 100%;
}

.mga-desktop-nav {
	width: 100%;
	min-width: 0;
}

.mga-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mga-desktop-menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.mga-desktop-menu > li {
	position: relative;
	margin: 0;
	padding: 0;
}

.mga-desktop-menu > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 11px 13px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: .055em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mga-desktop-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 1000;
	min-width: 220px;
	visibility: hidden;
	list-style: none;
	margin: 0;
	padding: 8px;
	border: 1px solid rgba(24, 27, 25, .1);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 42px rgba(23, 26, 24, .13);
	opacity: 0;
	transform: translateY(7px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.mga-desktop-menu .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: #343835;
	font-size: 13px;
	text-decoration: none;
}

.mga-desktop-menu .sub-menu a:hover {
	background: #f0f1ee;
}

.mga-desktop-menu li:hover > .sub-menu,
.mga-desktop-menu li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.mga-help-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: #202321;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .035em;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mga-help-link svg,
.mga-help-link i {
	display: block;
	flex: 0 0 auto;
}

.mga-menu-trigger,
.mga-menu-close {
	place-items: center;
	padding: 0;
	border: 0;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mga-menu-trigger {
	display: none;
}

.mga-menu-close {
	display: inline-grid;
	flex: 0 0 auto;
}

.mga-menu-trigger svg,
.mga-menu-close svg {
	display: block;
	fill: currentColor;
}

.mga-menu-overlay {
	position: fixed;
	inset: 0;
	visibility: hidden;
	background: rgba(20, 22, 21, .42);
	opacity: 0;
	pointer-events: none;
	transition: opacity .28s ease, visibility .28s ease;
}

.mga-mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	max-width: 100vw;
	max-height: 100dvh;
	overflow-y: auto;
	overflow-x: hidden;
	background: #fafaf8;
	-webkit-overflow-scrolling: touch;
	transform: translate3d(-105%, 0, 0);
	transition: transform .3s cubic-bezier(.22, .75, .18, 1);
}

.mga-menu-widget.is-open .mga-menu-overlay {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.mga-menu-widget.is-open .mga-mobile-drawer {
	transform: translate3d(0, 0, 0);
}

.mga-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.mga-drawer-title {
	min-width: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 25px;
	line-height: 1.15;
}

.mga-mobile-nav {
	width: 100%;
}

.mga-mobile-menu {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.mga-mobile-menu li {
	width: 100%;
	margin: 0;
	padding: 0;
}

.mga-mobile-menu a {
	display: flex;
	align-items: center;
	width: 100%;
	color: #202321;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	line-height: 1.2;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.mga-mobile-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding-top: 0;
	padding-right: 0;
	padding-bottom: 0;
}

.mga-mobile-menu .sub-menu a {
	font-size: .88em;
}

.mga-mobile-help {
	width: 100%;
	margin-top: auto;
}

.mga-mobile-help .mga-help-link {
	width: 100%;
	padding-top: 18px;
	padding-bottom: 4px;
	justify-content: flex-start;
}

.mga-editor-notice {
	width: 100%;
	padding: 12px 15px;
	border: 1px dashed #aeb2ad;
	border-radius: 8px;
	color: #595e59;
	background: #f4f5f2;
	font-size: 13px;
	text-align: center;
}

body.mga-menu-lock {
	overflow: hidden !important;
}

.mga-account-cart {
	display: flex;
	width: 100%;
}

.mga-header-action {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	padding: 0;
	color: #202321;
	line-height: 1;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mga-header-action:hover {
	transform: translateY(-1px);
}

.mga-header-action svg,
.mga-header-action i {
	display: block;
	fill: currentColor;
}

.mga-cart-count {
	position: absolute;
	display: grid;
	place-items: center;
	padding: 0 4px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.mga-cart-action.mga-hide-zero .mga-cart-count-zero {
	display: none;
}

/* Banner principal */
.mga-hero-slider,
.mga-hero-slider * {
	box-sizing: border-box;
}

.mga-hero-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #efefeb;
	isolation: isolate;
}

.mga-slider-track {
	display: flex;
	height: 100%;
	will-change: transform;
	transition-property: transform;
	transition-timing-function: cubic-bezier(.22, .75, .18, 1);
}

.mga-hero-slide {
	position: relative;
	display: flex;
	flex: 0 0 100%;
	width: 100%;
	background-color: #efefeb;
	background-image: var(--mga-slide-image);
	background-repeat: no-repeat;
	background-position: center;
	color: var(--mga-slide-text, #242725);
	isolation: isolate;
}

.mga-hero-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--mga-slide-overlay, rgba(247,247,244,.5));
	pointer-events: none;
}

.mga-hero-slide.mga-image-left { background-position: left center; }
.mga-hero-slide.mga-image-center { background-position: center center; }
.mga-hero-slide.mga-image-right { background-position: right center; }
.mga-hero-slide.mga-content-left { justify-content: flex-start; }
.mga-hero-slide.mga-content-center { justify-content: center; }
.mga-hero-slide.mga-content-right { justify-content: flex-end; }
.mga-hero-slide.mga-text-left { text-align: left; }
.mga-hero-slide.mga-text-center { text-align: center; }
.mga-hero-slide.mga-text-right { text-align: right; }
.mga-hero-slide.mga-text-center .mga-hero-actions { justify-content: center; }
.mga-hero-slide.mga-text-right .mga-hero-actions { justify-content: flex-end; }

.mga-hero-content {
	width: 100%;
	background: var(--mga-content-bg, transparent);
}

.mga-hero-eyebrow {
	color: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.mga-hero-title {
	margin: 0;
	color: inherit;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 5.5vw, 78px);
	font-weight: 400;
	line-height: 1.01;
	letter-spacing: -.042em;
}

.mga-hero-description {
	max-width: 540px;
	color: inherit;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	line-height: 1.62;
}

.mga-text-center .mga-hero-description { margin-right: auto; margin-left: auto; }
.mga-text-right .mga-hero-description { margin-left: auto; }

.mga-hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.mga-hero-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .11em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.mga-hero-button:hover { transform: translateY(-1px); }

.mga-slider-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.mga-slider-arrow:disabled {
	opacity: .28;
	cursor: not-allowed;
}

.mga-slider-arrow svg { fill: currentColor; }

.mga-slider-dots {
	position: absolute;
	left: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	transform: translateX(-50%);
}

.mga-slider-dot {
	position: relative;
	padding: 0;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: width .2s ease, background-color .2s ease;
}

.mga-slider-dot.is-active { width: 28px !important; }

.mga-slider-counter {
	position: absolute;
	right: 28px;
	z-index: 5;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
}

/* Círculos de categorías */
.mga-category-carousel,
.mga-category-carousel * {
	box-sizing: border-box;
}

.mga-category-carousel {
	position: relative;
	width: 100%;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

.mga-category-navigation {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	width: 100%;
}

.mga-category-hint,
.mga-category-arrows {
	display: flex;
	align-items: center;
}

.mga-category-hint {
	color: #6c716d;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .11em;
	text-transform: uppercase;
	white-space: nowrap;
}

.mga-category-hint svg { fill: currentColor; }

.mga-category-arrow {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.mga-category-arrow:not(:disabled):hover { transform: translateY(-1px); }
.mga-category-arrow:disabled { cursor: not-allowed; }
.mga-category-arrow svg { fill: currentColor; }

.mga-category-track {
	display: flex;
	align-items: flex-start;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
	padding: 0 !important;
}

.mga-category-track::-webkit-scrollbar { display: none; }
.mga-category-track.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }

.mga-category-item {
	display: block;
	flex: 0 0 auto;
	scroll-snap-align: start;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.mga-category-image {
	position: relative;
	display: block;
	overflow: hidden;
	background: transparent !important;
	background-image: none !important;
	isolation: isolate;
}

.mga-category-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	transition: background-color .25s ease;
}

.mga-category-image img {
	width: 100%;
	height: 100%;
	display: block;
	transition: transform .45s cubic-bezier(.2,.75,.2,1);
}

.mga-category-name {
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .07em;
	text-transform: uppercase;
	transition: color .2s ease;
}

.mga-category-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.mga-hero-slide {
		background-image: var(--mga-slide-mobile-image);
	}
	.mga-slider-arrow {
		top: auto;
		bottom: 20px;
		transform: none;
	}
	.mga-slider-prev { left: 20px !important; }
	.mga-slider-next { right: 20px !important; }
	.mga-hero-actions { align-items: stretch; }
	.mga-hero-button { flex: 1 1 100%; }
	.mga-category-navigation { justify-content: flex-end; }
	.mga-category-hint { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	.mga-menu-widget *,
	.mga-account-cart *,
	.mga-hero-slider *,
	.mga-category-carousel * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
