/* ==========================================================================
   NOA – creative layer: arched hero, spinning seal, ornaments,
   arch product cards, orbit rings, scroll progress, mobile bottom nav.
   ========================================================================== */

/* ---------- Hero stage with arched frame ---------- */
body .noa-hero { position: relative; }
body .noa-hero-stage {
	--arch-h: min(74vh, 640px);
	--arch-w: calc(var(--arch-h) * .8);
	position: relative;
	overflow: visible;
}
body .noa-hero .noa-hero-arch {
	position: relative;
	z-index: 2;
	inline-size: var(--arch-w);
	block-size: var(--arch-h);
	max-inline-size: 100%;
	padding: 0;
	overflow: hidden;
	border-radius: 999px 999px 0 0;
	box-shadow: 0 40px 80px -20px rgba(17, 28, 85, .28);
	background: var(--n-navy);
}
body .noa-hero .noa-hero-arch img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center;
}
/* Gentler parallax inside the arch so the bottle is never cut. */
body .noa-hero .noa-hero-arch .noa-parallax {
	--noa-ps: 1.05;
	transform: translate3d(0, calc(var(--noa-py, 0%) * .3), 0) scale(var(--noa-ps));
}
html.noa-js body .noa-hero:not(.is-loaded) .noa-hero-arch .noa-parallax { --noa-ps: 1.22; }

body .noa-hero .noa-hero-arch-outline {
	position: absolute;
	z-index: 1;
	inset-inline-start: 50%;
	inset-block-start: 50%;
	inline-size: var(--arch-w);
	block-size: var(--arch-h);
	padding: 0;
	border: 1px solid var(--n-gold);
	border-radius: 999px 999px 0 0;
	transform: translate(calc(-50% + 24px), calc(-50% - 24px));
	pointer-events: none;
}
.rtl body .noa-hero .noa-hero-arch-outline,
body.rtl .noa-hero .noa-hero-arch-outline { transform: translate(calc(50% - 24px), calc(-50% - 24px)); }

/* Twinkling stars around the arch */
body .noa-hero-stage::before,
body .noa-hero-stage::after {
	content: "✦";
	position: absolute;
	z-index: 3;
	color: var(--n-gold);
	pointer-events: none;
	animation: noaStar 4s ease-in-out infinite;
}
body .noa-hero-stage::before { font-size: 26px; inset-block-start: 12%; inset-inline-end: 14%; }
body .noa-hero-stage::after { font-size: 14px; inset-block-start: 22%; inset-inline-end: 9%; animation-delay: 1.4s; }
@keyframes noaStar {
	0%, 100% { opacity: .35; transform: scale(.7) rotate(0deg); }
	50% { opacity: 1; transform: scale(1.15) rotate(90deg); }
}

/* Spinning seal */
body .noa-hero .noa-spin-badge {
	position: absolute;
	z-index: 4;
	inset-inline-start: calc(50% - var(--arch-w) / 2 - 58px);
	inset-block-start: calc(50% + var(--arch-h) / 2 - 150px);
	inline-size: 132px;
	block-size: 132px;
	padding: 0;
	border-radius: 50%;
	background: var(--n-navy);
	box-shadow: 0 18px 40px rgba(17, 28, 85, .25);
	display: grid;
	place-items: center;
}
body .noa-hero .noa-spin-badge::after {
	content: "✦";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 26px;
	color: var(--n-gold);
}
.noa-spin-badge > * { position: absolute; inset: 0; }
.noa-spin__ring { position: absolute; inset: 0; animation: noaSpin 18s linear infinite; }
.noa-spin__ring span {
	position: absolute;
	inset-inline-start: 50%;
	inset-block-start: 9px;
	block-size: calc(100% - 18px);
	font-family: var(--n-sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--n-ivory);
	transform-origin: 0 50%;
	line-height: 1;
}
@keyframes noaSpin { to { transform: rotate(360deg); } }
.noa-spin-badge .e-paragraph-base:not(.noa-spin__src) { opacity: 0; }

/* Outlined watermark */
body .noa-hero .noa-watermark {
	position: absolute;
	z-index: 0;
	inset-inline-start: 2vw;
	inset-block-end: -.2em;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(160px, 24vw, 380px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: .06em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(17, 28, 85, .09);
	pointer-events: none;
	user-select: none;
	white-space: nowrap;
}

@media (max-width: 1024px) {
	body .noa-hero-stage { --arch-w: min(64vw, 440px); --arch-h: calc(var(--arch-w) * 1.25); }
	body .noa-hero .noa-spin-badge { inline-size: 110px; block-size: 110px; inset-inline-start: calc(50% - var(--arch-w) / 2 - 30px); inset-block-start: calc(50% + var(--arch-h) / 2 - 110px); }
	body .noa-hero .noa-watermark { inset-block-end: auto; inset-block-start: 30px; inset-inline-start: auto; inset-inline-end: -4vw; font-size: 38vw; }
}
@media (max-width: 767px) {
	body .noa-hero-stage { --arch-w: 76vw; --arch-h: calc(76vw * 1.25); }
	body .noa-hero .noa-hero-arch-outline { transform: translate(calc(-50% + 14px), calc(-50% - 14px)); }
	body .noa-hero .noa-spin-badge { inline-size: 92px; block-size: 92px; inset-inline-start: 4px; }
	.noa-spin__ring span { font-size: 8px; inset-block-start: 6px; block-size: calc(100% - 12px); }
	body .noa-hero .noa-spin-badge::after { font-size: 18px; }
}

/* ---------- Ornaments ---------- */
.elementor .noa-eyebrow::before {
	content: "✦";
	display: inline-block;
	margin-inline-end: 10px;
	font-size: 10px;
	transform: translateY(-1px);
}
.elementor h1 em, .elementor h2 em { color: var(--n-gold); font-style: italic; }

/* ---------- Arch product cards (homepage shortcode) ---------- */
.noa-pcard { background: transparent; }
.noa-pcard:hover { box-shadow: none; }
.noa-pcard__media { border-radius: 999px 999px 0 0; box-shadow: 0 24px 50px -24px rgba(17, 28, 85, .35); }
.noa-pcard__body { padding: 24px 6px 0; text-align: center; }
.noa-pcard__titles { flex-direction: column; align-items: center; gap: 2px; }
.noa-pcard__foot { flex-direction: column; gap: 14px; border: 0; padding-block-start: 6px; }
.noa-pcard__rating { display: flex; justify-content: center; }
.noa-products--loved .noa-pcard { background: transparent; }
.noa-pcard__badge { inset-inline-start: 50%; transform: translateX(-50%); inset-block-start: 26px; }
.rtl .noa-pcard__badge { transform: translateX(50%); }

/* Shop grid gets the same arch */
.woocommerce ul.products li.product { background: transparent; padding-block-end: 8px !important; text-align: center; }
.woocommerce ul.products li.product:hover { box-shadow: none; }
.woocommerce ul.products li.product a img { border-radius: 999px 999px 0 0; box-shadow: 0 24px 50px -24px rgba(17, 28, 85, .35); }
.woocommerce ul.products li.product a:first-child { border-radius: 999px 999px 0 0; }
.woocommerce ul.products li.product .button { align-self: center !important; }

/* ---------- Scent family orbit ---------- */
.noa-family .noa-family__ring { overflow: visible; }
.noa-family .noa-family__ring::before {
	content: "";
	position: absolute;
	inset: -14px;
	border: 1px dashed rgba(182, 154, 112, .6);
	border-radius: 50%;
	animation: noaSpin 40s linear infinite;
}
.noa-family .noa-family__ring::after {
	content: "✦";
	position: absolute;
	inset: -14px;
	color: var(--n-gold);
	font-size: 12px;
	line-height: 1;
	text-align: center;
	transform-origin: 50% 50%;
	animation: noaSpin 12s linear infinite;
}
.noa-family__img { border-radius: 50%; }
.noa-family .noa-family__ring.has-img { overflow: visible; }
.noa-family .noa-family__ring.has-img .noa-family__img { clip-path: circle(50%); }

/* ---------- Scroll progress ---------- */
.noa-progress {
	position: fixed;
	inset-block-start: 0;
	inset-inline-start: 0;
	z-index: 10001;
	inline-size: 100%;
	block-size: 2px;
	background: var(--n-gold);
	transform: scaleX(var(--noa-progress, 0));
	transform-origin: left center;
	pointer-events: none;
}
.rtl .noa-progress { transform-origin: right center; }
.admin-bar .noa-progress { inset-block-start: 32px; }

/* ---------- Floating WhatsApp (desktop) ---------- */
.noa-wa-float {
	position: fixed;
	inset-block-end: 26px;
	inset-inline-end: 26px;
	z-index: 998;
	display: grid;
	place-items: center;
	inline-size: 58px;
	block-size: 58px;
	border-radius: 50%;
	color: var(--n-ivory);
	background: var(--n-navy);
	box-shadow: 0 14px 34px rgba(17, 28, 85, .3);
	transition: transform .35s var(--n-ease), background-color .35s;
}
.noa-wa-float:hover { color: var(--n-white); background: var(--n-gold); transform: translateY(-4px); }
.noa-wa-float .noa-icon { inline-size: 26px; block-size: 26px; }
.noa-wa-float::before {
	content: "";
	position: absolute;
	inset: -6px;
	border: 1px solid var(--n-gold);
	border-radius: 50%;
	animation: noaPulse 2.6s ease-out infinite;
}
@keyframes noaPulse { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }

/* ---------- Mobile bottom navigation ---------- */
.noa-bottom-nav { display: none; }

@media (max-width: 767px) {
	.noa-wa-float { display: none; }

	body.noa-site { padding-block-end: calc(70px + env(safe-area-inset-bottom)); }

	.noa-bottom-nav {
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 9990;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		align-items: end;
		padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
		background: rgba(255, 247, 230, .96);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-block-start: 1px solid rgba(17, 28, 85, .1);
		box-shadow: 0 -10px 30px rgba(17, 28, 85, .06);
		transition: transform .35s var(--n-ease);
	}
	.noa-bottom-nav.is-hidden { transform: translateY(110%); }

	.noa-bottom-nav__item {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		padding: 4px 0;
		font-family: var(--n-sans);
		font-size: 10px;
		font-weight: 500;
		letter-spacing: .8px;
		text-transform: uppercase;
		color: var(--n-muted);
		text-decoration: none;
		background: none;
		border: 0;
	}
	.rtl .noa-bottom-nav__item { text-transform: none; letter-spacing: 0; }
	.noa-bottom-nav__item .noa-icon { inline-size: 22px; block-size: 22px; }
	.noa-bottom-nav__item.is-active { color: var(--n-navy); }
	.noa-bottom-nav__item.is-active::before {
		content: "";
		position: absolute;
		inset-block-start: -8px;
		inline-size: 18px;
		block-size: 2px;
		background: var(--n-gold);
	}

	.noa-bottom-nav__item--wa { color: var(--n-navy); }
	.noa-bottom-nav__item--wa .noa-bottom-nav__bubble {
		display: grid;
		place-items: center;
		inline-size: 52px;
		block-size: 52px;
		margin-block-start: -26px;
		border-radius: 50%;
		color: var(--n-ivory);
		background: var(--n-navy);
		box-shadow: 0 10px 24px rgba(17, 28, 85, .3), 0 0 0 5px var(--n-ivory);
	}
	.noa-bottom-nav__item--wa .noa-icon { inline-size: 24px; block-size: 24px; }

	.noa-bottom-nav .noa-cart-count { inset-block-start: 0; inset-inline-end: calc(50% - 20px); }
}

/* ==========================================================================
   Unified product card – homepage shortcode cards match the shop grid.
   Elementor V4 resets links inside paragraphs (`.e-paragraph-base a { all: unset }`),
   so these selectors are scoped under .noa-products for higher specificity.
   ========================================================================== */
.noa-products .noa-pcard { display: flex; flex-direction: column; background: transparent; text-align: center; }
.noa-products .noa-pcard__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: var(--n-beige);
	border-radius: 999px 999px 0 0;
	box-shadow: 0 24px 50px -24px rgba(17, 28, 85, .35);
	cursor: pointer;
}
.noa-products .noa-pcard__media img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.noa-products .noa-pcard__body { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 6px 0; }
.noa-products .noa-pcard__titles { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.noa-products .noa-pcard__title { margin: 0; font-family: var(--n-serif); font-size: 25px; font-weight: 500; line-height: 1.2; }
.noa-products .noa-pcard__title a { display: inline; font: inherit; color: var(--n-navy); text-decoration: none; cursor: pointer; }
.noa-products .noa-pcard__ar { font-family: var(--n-ar); font-size: 14px; color: var(--n-gold); }
.noa-products .noa-pcard__notes { margin: 2px 0 0; max-inline-size: 300px; font-family: var(--n-sans); font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--n-muted); }
.noa-products .noa-pcard__foot { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-block-start: 6px; padding: 0; border: 0; }
.noa-products .noa-pcard__price { font-family: var(--n-sans); font-size: 15px; font-weight: 500; color: var(--n-navy); }
.noa-products .noa-pcard__btn,
.noa-products .noa-pcard__btn--ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	font-family: var(--n-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 2px;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--n-ivory);
	background: var(--n-navy);
	border: 1px solid var(--n-navy);
	border-radius: 0;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: background-color .35s, border-color .35s, color .35s;
}
.noa-products .noa-pcard__btn:hover,
.noa-products .noa-pcard__btn--ghost:hover { color: var(--n-white); background: var(--n-gold); border-color: var(--n-gold); }
.noa-products .noa-pcard__btn.loading { opacity: .6; pointer-events: none; }
.noa-products .noa-pcard__badge { position: absolute; inset-block-start: 26px; inset-inline-start: 50%; transform: translateX(-50%); padding: 6px 12px; font-family: var(--n-sans); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--n-navy); background: var(--n-ivory); }
.noa-products .added_to_cart { display: none; }
@media (max-width: 767px) {
	.noa-products .noa-pcard__title { font-size: 20px; }
	.noa-products .noa-pcard__notes { display: none; }
}

/* Shop grid: same typography as the homepage cards */
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 25px !important; }
.woocommerce ul.products li.product .button { letter-spacing: 2px; }
