/* ============================================================
   AP Design Enhancements — additive styles only.
   Nothing here removes theme styling; deactivating the plugin
   restores the original design exactly.
   ============================================================ */

/* ---------- 1. Hero background video ---------- */
.ap-hero {
	position: relative;
	overflow: hidden;
}
.ap-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.ap-hero .ap-wrap {
	position: relative;
	z-index: 2;
}

/* ---------- 2. Collection / line tiles ---------- */
a.ap-tile {
	position: relative;
	overflow: hidden;
}
a.ap-tile.ap-tile--bg {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
a.ap-tile.ap-tile--bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.05));
	pointer-events: none;
}
a.ap-tile.ap-tile--bg > * {
	position: relative;
	z-index: 1;
}

/* ---------- 3. Journal cards ---------- */
a.ap-post {
	display: block;
	overflow: hidden;
}
.ap-post__imgwrap {
	display: block;
	overflow: hidden;
}
.ap-post__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.6s ease;
}
@media (hover: hover) {
	a.ap-post:hover .ap-post__img {
		transform: scale(1.05);
	}
}

/* ---------- 4. Footer payment icons ---------- */
.ap-pay {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.ap-pay__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ap-pay__badges {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ap-pay__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 24px;
	padding: 0 7px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	white-space: nowrap;
}
.ap-pay__badge--visa {
	color: #9db8e8;
	font-style: italic;
}
.ap-pay__badge--mc i {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: inline-block;
}
.ap-pay__badge--mc i:first-child {
	background: #eb001b;
	margin-right: -6px;
	opacity: 0.9;
}
.ap-pay__badge--mc i:last-child {
	background: #f79e1b;
	opacity: 0.9;
}

/* ---------- 5. Product card hover polish ---------- */
@media (hover: hover) {
	/* Image zoom */
	li.product figure a.ct-media-container img,
	a.ap-card__img img {
		transition: transform 0.55s ease;
	}
	li.product:hover figure a.ct-media-container img,
	.ap-has-acts:hover a.ap-card__img img {
		transform: scale(1.06);
	}
	/* Wishlist / compare reveal on hover instead of overlapping the image */
	.ap-has-acts .ap-acts {
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity 0.28s ease, transform 0.28s ease;
	}
	.ap-has-acts:hover .ap-acts {
		opacity: 1;
		transform: none;
	}
	/* Keyboard users still get the controls */
	.ap-has-acts .ap-acts:focus-within {
		opacity: 1;
		transform: none;
	}
}

/* ---------- 6. Scroll reveals (motion-safe) ---------- */
.ap-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s ease;
	will-change: opacity, transform;
}
.ap-reveal.ap-inview {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.ap-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.ap-post__img,
	li.product figure a.ct-media-container img,
	a.ap-card__img img {
		transition: none;
	}
}

/* ---------- 7. Fragrance note pyramid ---------- */
#tab-description .ap-notes {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}
#tab-description .ap-notes li {
	position: relative;
	padding: 10px 12px 10px 16px;
	margin-bottom: 8px;
	border-left: 2px solid #c9a227;
	background: rgba(201, 162, 39, 0.06);
	border-radius: 0 6px 6px 0;
	opacity: 0;
	transform: translateX(-14px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
#tab-description .ap-notes.ap-inview li {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	#tab-description .ap-notes li {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- 9. Logo prominence ---------- */
.ap-header a.ap-sign .ap-sign__frame {
	/* Larger, easier to read */
	font-size: clamp(15px, 2.6vw, 28px);
	font-weight: 600;
	letter-spacing: 0.22em;
	padding: 14px 34px;
	text-indent: 0.22em; /* optically recenter tracked text */
	/* Metallic gold text */
	background-image: linear-gradient(180deg, #f9edbe 0%, #eed48a 28%, #c9a227 52%, #f4e2a0 74%, #a87e14 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 5px rgba(201, 162, 39, 0.3));
	/* Richer frame with glow */
	border: 1px solid rgba(232, 208, 130, 0.9);
	box-shadow:
		0 0 0 3px #000,
		0 0 0 4px rgba(232, 208, 130, 0.5),
		0 0 28px rgba(201, 162, 39, 0.35),
		0 18px 34px -14px rgba(232, 208, 130, 0.4);
}
.ap-header a.ap-sign {
	padding: 22px 8px 16px;
}
/* Brighter hanging lamps */
.ap-header a.ap-sign .ap-lamp {
	width: 20px;
	height: 7px;
	background: #f6e7b4;
	box-shadow: 0 0 12px 3px rgba(246, 231, 180, 0.8);
}
@media (prefers-reduced-motion: reduce) {
	.ap-header a.ap-sign .ap-sign__frame {
		filter: none;
	}
}

/* ---------- 9b. Image brand logo in the header ----------
   When JS swaps the text sign for the logo image, drop the text-sign
   chrome (frame, lamps) and size the image. Reversible: deactivating the
   plugin restores the original text sign.
   v1.2.3: Wajeeh 2026-10-07 — larger logo with glowing square frame,
   bold and easily readable. */
.ap-header a.ap-sign.apde-logo-link,
.site-header a.ap-sign.apde-logo-link {
	padding: 14px 22px;
	border: 2px solid rgba(232, 208, 130, 0.95);
	background: rgba(0, 0, 0, 0.55);
	/* Square glowing frame with layered light */
	box-shadow:
		0 0 0 1px #000,
		0 0 18px rgba(201, 162, 39, 0.55),
		0 0 42px rgba(201, 162, 39, 0.28),
		inset 0 0 18px rgba(201, 162, 39, 0.12);
	border-radius: 2px;
	/* Gentle glow pulse */
	animation: apde-logo-glow 3.2s ease-in-out infinite;
}
@keyframes apde-logo-glow {
	0%, 100% {
		box-shadow:
			0 0 0 1px #000,
			0 0 18px rgba(201, 162, 39, 0.55),
			0 0 42px rgba(201, 162, 39, 0.28),
			inset 0 0 18px rgba(201, 162, 39, 0.12);
	}
	50% {
		box-shadow:
			0 0 0 1px #000,
			0 0 26px rgba(246, 231, 180, 0.75),
			0 0 60px rgba(201, 162, 39, 0.4),
			inset 0 0 24px rgba(201, 162, 39, 0.18);
	}
}
@media (prefers-reduced-motion: reduce) {
	.ap-header a.ap-sign.apde-logo-link,
	.site-header a.ap-sign.apde-logo-link {
		animation: none;
	}
}
.ap-header a.ap-sign.apde-logo-link .ap-sign__frame,
.site-header a.ap-sign.apde-logo-link .ap-sign__frame,
.ap-header a.ap-sign.apde-logo-link .ap-lamp,
.site-header a.ap-sign.apde-logo-link .ap-lamp {
	display: none !important;
}
/* Logo height is driven by one variable so every breakpoint scales it
   without distorting the image (width follows the aspect ratio). */
.ap-header {
	--ap-logo-h: 76px;
}
img.apde-header-logo {
	display: block;
	height: var(--ap-logo-h);
	width: auto;
	max-width: 100%;
	object-fit: contain;
	margin: 0 auto;
	/* Crisp and bold on dark */
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)) brightness(1.06);
}
@media (max-width: 900px) {
	.ap-header {
		--ap-logo-h: 52px;
	}
	.ap-header a.ap-sign.apde-logo-link,
	.site-header a.ap-sign.apde-logo-link {
		padding: 8px 14px;
		border-width: 1px;
	}
}
@media (max-width: 600px) {
	.ap-header {
		--ap-logo-h: 50px;
	}
}
@media (max-width: 360px) {
	.ap-header {
		--ap-logo-h: 44px;
	}
}
@media (max-width: 900px) and (max-height: 500px) {
	.ap-header {
		--ap-logo-h: 40px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ap-hero-video {
		display: none;
	}
}
/* ---------- 8. Sticky add-to-cart ---------- */
.ap-sticky-cart {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 18px;
	background: rgba(10, 10, 10, 0.96);
	border-top: 1px solid rgba(201, 162, 39, 0.35);
	transform: translateY(110%);
	transition: transform 0.35s ease;
}
.ap-sticky-cart--show {
	transform: none;
}
.ap-sticky-cart__info {
	min-width: 0;
}
.ap-sticky-cart__info strong {
	display: block;
	color: #fff;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 46vw;
}
.ap-sticky-cart__price {
	color: #c9a227;
	font-size: 14px;
	font-weight: 700;
}
.ap-sticky-cart__btn {
	flex-shrink: 0;
	background: #c9a227;
	color: #111;
	border: none;
	border-radius: 6px;
	padding: 12px 26px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}
.ap-sticky-cart__btn:hover {
	background: #d9b545;
}
@media (max-width: 640px) {
	.ap-sticky-cart__info strong {
		max-width: 52vw;
		font-size: 13px;
	}
	.ap-sticky-cart__btn {
		padding: 10px 18px;
		font-size: 14px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ap-sticky-cart {
		transition: none;
	}
}
