/* ============================================================
 * FloresYa — Mobile Drawer Stitch (2026-04-28)
 * Full-screen navigation drawer — solo en mobile (<= 900px)
 * ============================================================ */

/* ── Base: oculto por default ───────────────────────────────── */
.fy-drawer {
	display: none; /* Solo mostrar en mobile — ver @media abajo */
}

@media (max-width: 900px) {

.fy-drawer {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none; /* Invisible cuando cerrado */
}

/* Estado abierto */
.fy-drawer.is-open {
	pointer-events: auto;
}

/* ── Backdrop ───────────────────────────────────────────────── */
.fy-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(38, 24, 26, 0.55);
	opacity: 0;
	transition: opacity 280ms ease;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.fy-drawer.is-open .fy-drawer__backdrop {
	opacity: 1;
}

/* ── Panel ──────────────────────────────────────────────────── */
.fy-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(88vw, 360px);
	height: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	box-shadow: -4px 0 40px rgba(38, 24, 26, 0.18);
}
.fy-drawer.is-open .fy-drawer__panel {
	transform: translateX(0);
}

/* ── Header ─────────────────────────────────────────────────── */
.fy-drawer__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--fy-outline-variant, #e1bdc7);
	background: #fff;
	flex-shrink: 0;
}
.fy-drawer__close {
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fy-on-surface-variant, #594043);
	transition: background 200ms ease, color 200ms ease;
	padding: 0;
	flex-shrink: 0;
}
.fy-drawer__close:hover {
	background: var(--fy-surface-container-low, #f6f3f2);
	color: var(--fy-on-surface, #1b1c1c);
}
.fy-drawer__close .material-symbols-outlined {
	font-size: 22px;
}
.fy-drawer__brand {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.fy-drawer__brand img {
	max-height: 36px;
	width: auto;
}
.fy-drawer__brand-text {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fy-primary, #b70068);
}
.fy-drawer__header-icons {
	display: flex;
	gap: 4px;
	align-items: center;
	flex-shrink: 0;
}
.fy-drawer__icon-btn {
	position: relative;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--fy-on-surface-variant, #594043);
	text-decoration: none;
	transition: background 200ms ease;
}
.fy-drawer__icon-btn:hover {
	background: var(--fy-surface-container-low, #f6f3f2);
}
.fy-drawer__icon-btn .material-symbols-outlined {
	font-size: 22px;
}
.fy-drawer__cart-dot {
	position: absolute;
	top: 5px;
	right: 5px;
	background: var(--fy-primary, #b70068);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}

/* ── Body ────────────────────────────────────────────────────── */
.fy-drawer__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0 0 24px;
}
.fy-drawer__body::-webkit-scrollbar {
	width: 3px;
}
.fy-drawer__body::-webkit-scrollbar-thumb {
	background: var(--fy-outline-variant, #e1bdc7);
	border-radius: 99px;
}

/* ── Section ─────────────────────────────────────────────────── */
.fy-drawer__section {
	padding: 20px 20px 0;
}
.fy-drawer__section--top-links {
	padding-top: 8px;
}

/* ── Tienda toggle ───────────────────────────────────────────── */
.fy-drawer__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0 0 12px;
	margin: 0;
}
.fy-drawer__toggle-label {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--fy-on-surface, #1b1c1c);
	letter-spacing: -0.01em;
}
.fy-drawer__toggle-chevron {
	color: var(--fy-on-surface-variant, #594043);
	font-size: 20px;
	transition: transform 250ms ease;
}
.fy-drawer__toggle[aria-expanded="false"] .fy-drawer__toggle-chevron {
	transform: rotate(-90deg);
}

/* ── Category list ───────────────────────────────────────────── */
.fy-drawer__cat-list {
	list-style: none;
	margin: 0;
	padding: 0 0 8px 12px;
	border-left: 2px solid var(--fy-primary-container, #ffd9dc);
	overflow: hidden;
	transition: max-height 300ms ease, opacity 250ms ease;
	max-height: 600px;
	opacity: 1;
}
.fy-drawer__cat-list[aria-hidden="true"] {
	max-height: 0;
	opacity: 0;
}
.fy-drawer__cat-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 8px;
	font-size: 16px;
	font-weight: 500;
	color: var(--fy-on-surface-variant, #594043);
	text-decoration: none;
	border-radius: 8px;
	transition: color 200ms ease, background 200ms ease;
}
.fy-drawer__cat-link:hover {
	color: var(--fy-primary, #b70068);
	background: var(--fy-surface-container-low, #f6f3f2);
}
.fy-drawer__cat-icon {
	font-size: 20px;
	color: var(--fy-primary, #b70068);
	flex-shrink: 0;
}
.fy-drawer__cat-link--all {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--fy-primary, #b70068);
	text-transform: uppercase;
	margin-top: 4px;
}
.fy-drawer__cat-link--all:hover {
	background: rgba(183, 0, 104, 0.06);
}

/* ── Top links ───────────────────────────────────────────────── */
.fy-drawer__top-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--fy-on-surface, #1b1c1c);
	text-decoration: none;
	border-bottom: 1px solid var(--fy-outline-variant, #e1bdc7);
	transition: color 200ms ease;
}
.fy-drawer__top-link:last-child {
	border-bottom: 0;
}
.fy-drawer__top-link:hover {
	color: var(--fy-primary, #b70068);
}
.fy-drawer__top-link .material-symbols-outlined {
	font-size: 16px;
	color: var(--fy-on-surface-variant, #594043);
}
.fy-drawer__top-link--promo {
	color: var(--fy-primary, #b70068);
}
.fy-drawer__promo-badge {
	background: var(--fy-primary, #b70068);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	letter-spacing: 0.02em;
}

/* ── Divider ─────────────────────────────────────────────────── */
.fy-drawer__hr {
	border: none;
	border-top: 1px solid var(--fy-outline-variant, #e1bdc7);
	margin: 20px 20px 0;
}

/* ── Account section ─────────────────────────────────────────── */
.fy-drawer__section-heading {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fy-on-surface-variant, #594043);
	margin: 0 0 14px;
	opacity: 0.75;
}
.fy-drawer__account-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.fy-drawer__account-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 16px 10px;
	background: var(--fy-surface-container-low, #f6f3f2);
	border-radius: 14px;
	text-decoration: none;
	color: var(--fy-on-surface, #1b1c1c);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	transition: background 200ms ease, color 200ms ease;
	border: 1px solid transparent;
}
.fy-drawer__account-card:hover {
	background: var(--fy-primary-container, #ffd9dc);
	color: var(--fy-primary, #b70068);
	border-color: rgba(183, 0, 104, 0.15);
}
.fy-drawer__account-card .material-symbols-outlined {
	font-size: 22px;
	color: var(--fy-secondary, #984351);
}
.fy-drawer__account-card:hover .material-symbols-outlined {
	color: var(--fy-primary, #b70068);
}

/* ── Footer ──────────────────────────────────────────────────── */
.fy-drawer__footer {
	flex-shrink: 0;
	padding: 16px 20px 24px;
	border-top: 1px solid var(--fy-outline-variant, #e1bdc7);
	background: var(--fy-surface-container-low, #f6f3f2);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.fy-drawer__wa-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 20px;
	background: #25d366;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border-radius: 999px;
	text-decoration: none;
	transition: background 200ms ease, transform 150ms ease;
}
.fy-drawer__wa-btn:hover {
	background: #1fba58;
	transform: translateY(-1px);
}
.fy-drawer__footer-links {
	display: flex;
	justify-content: center;
	gap: 20px;
}
.fy-drawer__footer-link {
	font-size: 12px;
	color: var(--fy-on-surface-variant, #594043);
	text-decoration: none;
	opacity: 0.75;
	transition: opacity 200ms ease, color 200ms ease;
}
.fy-drawer__footer-link:hover {
	opacity: 1;
	color: var(--fy-primary, #b70068);
}

/* ── Focus styles (a11y) ─────────────────────────────────────── */
.fy-drawer__close:focus-visible,
.fy-drawer__icon-btn:focus-visible,
.fy-drawer__cat-link:focus-visible,
.fy-drawer__top-link:focus-visible,
.fy-drawer__account-card:focus-visible,
.fy-drawer__toggle:focus-visible {
	outline: 3px solid var(--fy-primary, #b70068);
	outline-offset: 2px;
}

/* ── Cuando el drawer está abierto: bloquear scroll del body ─── */
body.fy-drawer-open {
	overflow: hidden !important;
}

} /* @media (max-width: 900px) */
