/* Feeling Yachty — app shell: the site-wide layer that makes the store feel
   like the mobile app. Floating checkout pill (live cart total), app-style
   press feedback, page-to-page view transitions, sticky fleet toolbar,
   image shimmer. Loaded on every front-end page; kept dependency-free and
   tiny on purpose — the "app feel" must never cost the speed budget. */

/* ---- Cross-document view transitions (Chrome/Edge/Safari) ----
   One CSS rule gives every internal navigation a native-app cross-fade.
   Browsers without support simply ignore it; reduced-motion users get
   instant cuts. */
@media not (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: auto;
	}
	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: 0.18s;
	}
}

html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* ---- Floating checkout pill (live "due today" total) ---- */
.fy-cart-pill {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 18px 11px 13px;
	border-radius: 999px;
	background: linear-gradient(135deg, #172033, #22304b);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(23, 32, 51, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
	transform: translateY(0);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fy-cart-pill:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 38px rgba(23, 32, 51, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
	color: #fff;
}
.fy-cart-pill:active {
	transform: translateY(0) scale(0.97);
}
.fy-cart-pill__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: #e45c9c;
	font-size: 18px;
	box-shadow: 0 4px 12px rgba(228, 92, 156, 0.45);
}
.fy-cart-pill__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}
.fy-cart-pill__meta strong {
	font-size: 15px;
	font-weight: 900;
	color: #fff;
}
.fy-cart-pill__meta small {
	font-size: 11.5px;
	font-weight: 700;
	color: #b8c4d8;
}
/* Product pages already pin the Book bar to the bottom edge — lift the
   pill above it so both stay reachable. */
body.single-product .fy-cart-pill {
	bottom: 96px;
}
@media (max-width: 640px) {
	.fy-cart-pill {
		right: 12px;
		bottom: 12px;
		padding: 9px 15px 9px 11px;
	}
	body.single-product .fy-cart-pill {
		bottom: 104px;
	}
}

/* ---- App-style press feedback (mirrors the app's PressScale) ---- */
.fy-card,
.fy-filter-button,
.fy-sticky-book__btn,
.fy-cart-added__btn,
.single_add_to_cart_button,
.fy-contact-btn {
	transition: transform 0.12s ease;
}
.fy-card:active,
.fy-filter-button:active,
.fy-sticky-book__btn:active,
.fy-cart-added__btn:active,
.single_add_to_cart_button:active,
.fy-contact-btn:active {
	transform: scale(0.97);
}

/* (The fleet page's own .fy-inventory-panel handles sticky search/sort —
   an extra frosted sticky layer here stacked translucency on translucency
   and made content behind the panel ghost through. Removed in 3.73.33.) */

/* ---- Image shimmer while fleet card photos stream in ---- */
.fy-card-image {
	background: linear-gradient(100deg, #eef2f8 40%, #f8fafd 50%, #eef2f8 60%);
	background-size: 200% 100%;
	animation: fy-shimmer 1.4s ease infinite;
}
@keyframes fy-shimmer {
	to {
		background-position: -200% 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.fy-card-image {
		animation: none;
	}
}

/* ---- Menu rescue: submenu revealed by the app-shell click toggle.
   Beats theme/Elementor hiding tricks (display, height, opacity,
   visibility, pointer-events) in one shot. ---- */
.fy-submenu-open > .sub-menu,
.fy-submenu-open > ul.children,
.fy-submenu-open > ul {
	display: block !important;
	position: static !important;
	max-height: none !important;
	height: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: none !important;
}
li.menu-item-has-children > a[href="#"],
li.page_item_has_children > a[href="#"] {
	cursor: pointer;
}

/* While an Elementor popup (the site menu) is open, the checkout pill
   gets out of the way so it can never cover a menu item. */
body.fy-popup-open .fy-cart-pill {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* ---- Mobile menu (the Elementor popup the hamburger opens) ----
   App-style list: big 48px touch targets, soft dividers, blush hover,
   a pink chevron on expandable parents that flips when open, and an
   indented submenu that fades in. Scoped to menus inside Elementor
   popups so desktop nav widgets elsewhere are untouched. ---- */
.elementor-popup-modal ul.menu li a,
.elementor-popup-modal .elementor-nav-menu li a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 10px 14px;
	border-radius: 12px;
	font-weight: 800;
	transition: background 0.15s ease, color 0.15s ease;
}
.elementor-popup-modal ul.menu > li + li {
	border-top: 1px solid rgba(23, 32, 51, 0.06);
}
.elementor-popup-modal ul.menu li a:hover,
.elementor-popup-modal ul.menu li a:active {
	background: #fff7fb;
	color: #c94386;
}
/* Expandable parents (Miami, Panama, …): pink chevron that flips open. */
.elementor-popup-modal li.menu-item-has-children > a::after {
	content: "›";
	margin-left: auto;
	padding-left: 10px;
	color: #e45c9c;
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}
.elementor-popup-modal li.menu-item-has-children.fy-submenu-open > a::after {
	transform: rotate(-90deg);
}
.elementor-popup-modal .fy-submenu-open > .sub-menu {
	margin: 2px 0 8px 12px !important;
	padding-left: 10px !important;
	border-left: 3px solid rgba(228, 92, 156, 0.35);
	animation: fy-menu-in 0.18s ease;
}
.elementor-popup-modal .sub-menu li a {
	min-height: 42px;
	font-weight: 700;
	font-size: 0.95em;
}
@keyframes fy-menu-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}
@media (prefers-reduced-motion: reduce) {
	.elementor-popup-modal .fy-submenu-open > .sub-menu {
		animation: none;
	}
}

/* ---- Live "Due today" state on the product sticky bar ---- */
.fy-sticky-book.fy-live .fy-sticky-book__label {
	color: #ffd7ea;
}
.fy-sticky-book.fy-live .fy-sticky-book__price {
	animation: fy-price-pop 0.25s ease;
}
@keyframes fy-price-pop {
	40% {
		transform: scale(1.12);
	}
	100% {
		transform: scale(1);
	}
}
