/* =========================================================
   Ayesha's Collection – motion layer
   Everything that hides content waits for .ayc-motion (added by motion.js),
   so if scripts fail the site still shows fully.
   ========================================================= */

/* ---------- Wipe reveal (images) – used by templates & builder option ---------- */
.ayc-js .ayc-anim-on [data-anim="clip"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.25s cubic-bezier(.77, 0, .18, 1); }
.ayc-js .ayc-anim-on [data-anim="clip"].is-in { clip-path: inset(0 0 0 0); }
.ayc-js .ayc-anim-on [data-anim="clip"] img { transform: scale(1.18); transition: transform 1.8s cubic-bezier(.22, .61, .36, 1), opacity .6s; }
.ayc-js .ayc-anim-on [data-anim="clip"].is-in img { transform: scale(1); }
.ayc-js .ayc-anim-on .ayc-story__media[data-anim="clip"].is-in:hover img, .ayc-js .ayc-anim-on .ayc-banner[data-anim="clip"].is-in:hover img { transform: scale(1.05); }
.ayc-js .ayc-anim-on [data-anim="fade"] { transform: none; }

/* ---------- Words reveal (headings) ---------- */
.ayc-split { display: inline; }
.ayc-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.ayc-wi { display: inline-block; transition: transform .95s cubic-bezier(.22, .61, .36, 1) calc(var(--i, 0) * 75ms + 120ms), opacity .6s calc(var(--i, 0) * 75ms + 120ms); }
.ayc-js .ayc-motion [data-anim]:not(.is-in) .ayc-wi { transform: translateY(110%) rotate(4deg); opacity: 0; }
.ayc-js .ayc-motion .ayc-heading[data-anim], .ayc-js .ayc-motion .ayc-page-header__title[data-anim] { transform: none; opacity: 1; }

/* Gold lines & eyebrow lines grow when their block appears */
.ayc-motion .ayc-eyebrow--line::after { transform-origin: left; transition: transform 1s cubic-bezier(.22, .61, .36, 1) .45s; }
.ayc-js .ayc-motion [data-anim]:not(.is-in) .ayc-eyebrow--line::after { transform: scaleX(0); }
.ayc-motion .ayc-heading--left .ayc-heading__title::after { transform-origin: left; transition: transform 1s cubic-bezier(.22, .61, .36, 1) .5s; }
.ayc-js .ayc-motion [data-anim]:not(.is-in) .ayc-heading--left .ayc-heading__title::after,
.ayc-js .ayc-motion .ayc-heading--left[data-anim]:not(.is-in) .ayc-heading__title::after { transform: scaleX(0); }

/* ---------- Announcement bar ---------- */
.ayc-motion .ayc-announce::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-100%); animation: aycSweep 6s ease-in-out 2s infinite; pointer-events: none; }
.ayc-motion .ayc-announce .ayc-icon-truck { animation: aycDrive 3.2s ease-in-out infinite; }
.ayc-motion .ayc-announce__sep { animation: aycBlink 3.2s ease-in-out infinite; }

/* ---------- Logo ---------- */
.ayc-motion .ayc-logo__name {
	background: linear-gradient(110deg, #C9862B 0%, #F2B333 28%, #FFE9A8 42%, #FFF8DE 48%, #F2B333 60%, #C9862B 100%);
	background-size: 260% 100%; -webkit-background-clip: text; background-clip: text;
	animation: aycGoldShine 7s ease-in-out 2.4s infinite;
}
.ayc-motion .ayc-logo__mark svg { transform-origin: 60% 80%; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.ayc-motion .ayc-logo:hover .ayc-logo__mark svg { transform: rotate(-14deg) scale(1.12); }
.ayc-motion .ayc-logo:has(.ayc-logo__img) { position: relative; overflow: hidden; }
.ayc-motion .ayc-logo:has(.ayc-logo__img)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 245, 210, .55), transparent); transform: skewX(-20deg); animation: aycLogoShine 7s ease-in-out 2.4s infinite; pointer-events: none; }

/* ---------- Entrance intro (first page of a visit) ---------- */
.ayc-intro .ayc-announce { animation: aycAnnIn .7s cubic-bezier(.22, .61, .36, 1) both; }
.ayc-intro .ayc-announce__msg, .ayc-intro .ayc-announce__sep { animation: aycFadeUpSm .6s cubic-bezier(.22, .61, .36, 1) both; animation-delay: calc(.45s + var(--i, 0) * .12s); }
.ayc-intro .ayc-header { animation: aycFadeIn .6s ease both .1s; }
.ayc-intro .ayc-logo__mark { animation: aycLeafIn 1s cubic-bezier(.34, 1.56, .64, 1) both .35s; }
.ayc-intro .ayc-logo__name { animation: aycWrite 1.3s cubic-bezier(.65, 0, .35, 1) both .5s, aycGoldShine 7s ease-in-out 2.4s infinite; }
.ayc-intro .ayc-logo__img { animation: aycWrite 1.3s cubic-bezier(.65, 0, .35, 1) both .4s; }
.ayc-intro .ayc-logo__tag { animation: aycFadeUpSm .7s ease both 1.5s; }
.ayc-intro .ayc-menu > li { animation: aycDrop .7s cubic-bezier(.22, .61, .36, 1) both; animation-delay: calc(.6s + var(--i, 0) * .08s); }
.ayc-intro .ayc-header__icons > *, .ayc-intro .ayc-header__left > * { animation: aycPopIn .6s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(1s + var(--i, 0) * .09s); }
@media (max-width: 991px) { .ayc-intro .ayc-header__burger { animation-delay: .5s; } .ayc-intro .ayc-header__acc-m { animation-delay: .6s; } }

/* ---------- Header & menu ---------- */
.ayc-motion .ayc-header { transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .3s; }
.ayc-motion .ayc-header.is-hidden { transform: translateY(calc(-100% - 50px)); }
.ayc-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--ayc-gold-dark), var(--ayc-gold), #FFE9A8); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.ayc-motion .ayc-menu .sub-menu > li { opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s cubic-bezier(.22, .61, .36, 1); transition-delay: calc(var(--i, 0) * 40ms); }
.ayc-motion .ayc-menu li:hover > .sub-menu > li, .ayc-motion .ayc-menu li:focus-within > .sub-menu > li { opacity: 1; transform: none; }
.ayc-motion .ayc-header__icon:hover .ayc-icon { animation: aycWiggle .5s ease; }
.ayc-badge.is-bump { animation: aycBump .6s cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- Buttons ---------- */
.ayc-motion .ayc-btn:active, .ayc-motion .woocommerce .button:active { transform: scale(.96); }
.ayc-motion .ayc-btn--outline { background-image: linear-gradient(var(--ayc-gold), var(--ayc-gold)); background-repeat: no-repeat; background-position: left center; background-size: 0% 100%; transition: background-size .45s cubic-bezier(.22, .61, .36, 1), color .3s, border-color .3s, transform .2s; }
.ayc-motion .ayc-btn--outline:hover, .ayc-motion .ayc-xcard:hover .ayc-btn--outline, .ayc-motion .ayc-pcard:hover .ayc-pcard__btn { background-color: transparent; background-size: 100% 100%; border-color: var(--ayc-gold); color: #1a1a1a; }

/* ---------- Hero ---------- */
.ayc-motion .ayc-hero .swiper { will-change: transform; }
.ayc-motion .ayc-hero__dots .swiper-pagination-bullet-active { position: relative; overflow: hidden; background: rgba(201, 150, 43, .35); }
.ayc-motion .ayc-hero__dots .swiper-pagination-bullet-active::after { content: ""; position: absolute; inset: 0; background: var(--ayc-gold); transform-origin: left; animation: aycDotFill var(--ayc-dot-dur, 5s) linear both; }
.ayc-motion .ayc-hero:hover .ayc-hero__dots .swiper-pagination-bullet-active::after { animation-play-state: paused; }

/* ---------- Parallax holders ---------- */
.ayc-px { overflow: hidden; }
.ayc-px picture { display: block; will-change: transform; }

/* ---------- Image load fade ---------- */
.ayc-img-wait { opacity: 0 !important; }
.ayc-motion .ayc-coll__img img, .ayc-motion .ayc-xcard__media img { transition: transform .9s cubic-bezier(.22, .61, .36, 1), opacity .6s; }

/* ---------- Collections ---------- */
.ayc-motion .ayc-coll:hover .ayc-coll__img img { transform: scale(1.1) rotate(3deg); }
.ayc-motion .ayc-coll__label { position: relative; }
.ayc-motion .ayc-coll__label::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -4px; height: 1.5px; background: var(--ayc-gold-dark); transform: scaleX(0); transition: transform .4s cubic-bezier(.22, .61, .36, 1); }
.ayc-motion .ayc-coll:hover .ayc-coll__label::after { transform: scaleX(1); }

/* ---------- Product cards ---------- */
.ayc-js .ayc-motion .ayc-carousel__item[data-anim]:not(.is-in) .ayc-pcard__media, .ayc-js .ayc-motion li[data-anim]:not(.is-in) .ayc-pcard__media { clip-path: inset(100% 0 0 0); }
.ayc-motion .ayc-pcard__media { clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.77, 0, .18, 1) .1s; }
.ayc-motion .ayc-pcard__price { transition: transform .3s; }
.ayc-motion .ayc-pcard:hover .ayc-pcard__price { transform: scale(1.06); }

/* ---------- Explore cards (3D tilt + glare) ---------- */
.ayc-tilt { transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .45s; will-change: transform; position: relative; }
.ayc-tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 240, 200, .28), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ayc-tilt:hover::after { opacity: 1; }

/* ---------- FAQ, newsletter, features ---------- */
.ayc-motion .ayc-acc__inner { opacity: 0; transform: translateY(-8px); transition: opacity .4s .1s, transform .4s .1s; }
.ayc-motion .ayc-acc.is-open .ayc-acc__inner { opacity: 1; transform: none; }
.ayc-motion .ayc-acc:hover { border-color: var(--ayc-gold); }
.ayc-motion .ayc-news__icon svg *, .ayc-motion .ayc-feature__icon svg *, .ayc-motion .ayc-empty-state svg * { stroke-dasharray: 90; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1) .3s; }
.ayc-js .ayc-motion [data-anim]:not(.is-in) .ayc-news__icon svg *, .ayc-js .ayc-motion [data-anim]:not(.is-in) .ayc-feature__icon svg * { stroke-dashoffset: 90; }
.ayc-motion .ayc-subscribe:focus-within { transform: translateY(-2px); }
.ayc-motion .ayc-subscribe { transition: box-shadow .3s, border-color .3s, transform .3s; }

/* ---------- Page header ---------- */
.ayc-motion .ayc-page-header { background-size: 200% 200%; animation: aycPan 14s ease-in-out infinite alternate; }
.ayc-motion .ayc-page-header.has-bg { background-size: cover; animation: aycKen 12s ease-out both; }
.ayc-motion .ayc-page-header__title::after { content: ""; display: block; width: 60px; height: 1.5px; margin: 14px auto 0; background: var(--ayc-gold-dark); transform-origin: center; transition: transform 1s cubic-bezier(.22, .61, .36, 1) .5s; }
.ayc-js .ayc-motion .ayc-page-header__title[data-anim]:not(.is-in)::after { transform: scaleX(0); }

/* ---------- Woo extras ---------- */
.ayc-motion.woocommerce div.product div.images, .ayc-motion.woocommerce div.product div.summary, .ayc-motion .woocommerce div.product div.images, .ayc-motion .woocommerce div.product div.summary { animation: none; }
.ayc-motion .woocommerce-Tabs-panel { animation: aycFadeUpSm .5s cubic-bezier(.22, .61, .36, 1) both; }
.ayc-motion .woocommerce div.product .woocommerce-tabs ul.tabs li a { transition: color .3s; }
.ayc-motion .ayc-pbadges li .ayc-icon { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.ayc-motion .ayc-pbadges li:hover .ayc-icon { transform: scale(1.25) rotate(-8deg); }
.ayc-motion .ayc-pill { transition: all .3s cubic-bezier(.22, .61, .36, 1); }

/* ---------- Footer ---------- */
.ayc-motion .ayc-backtotop__circle { animation: aycBob 2.4s ease-in-out infinite; }
.ayc-motion .ayc-backtotop:hover .ayc-backtotop__circle { animation: none; }
.ayc-motion .ayc-footer .ayc-logo__name { animation-delay: 4s; }

/* ---------- 404 ---------- */
.ayc-motion .ayc-404 .ayc-display { animation: aycBob 4s ease-in-out infinite 1.5s; }

/* ---------- Respect reduced motion when that setting is on ---------- */
@media (prefers-reduced-motion: reduce) {
	.ayc-respect-motion .ayc-wi { transform: none !important; opacity: 1 !important; }
	.ayc-respect-motion [data-anim="clip"] { clip-path: none !important; }
}

/* ---------- Keyframes ---------- */
@keyframes aycSweep { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }
@keyframes aycDrive { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(4px); } 50% { transform: translateX(4px) rotate(-3deg); } 60% { transform: translateX(-1px); } }
@keyframes aycBlink { 0%, 100% { opacity: .7; } 50% { opacity: .25; } }
@keyframes aycGoldShine { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes aycLogoShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes aycAnnIn { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes aycFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes aycFadeUpSm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aycLeafIn { from { opacity: 0; transform: rotate(-120deg) scale(.3); } to { opacity: 1; transform: none; } }
@keyframes aycWrite { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes aycDrop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes aycPopIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes aycWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(9deg); } }
@keyframes aycBump { 0% { transform: scale(1); } 35% { transform: scale(1.6); } 100% { transform: scale(1); } }
@keyframes aycDotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes aycPan { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes aycBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* =========================================================
   Logo – signature animation (v1.2)
   ========================================================= */
.ayc-logo { position: relative; }
.ayc-logo__imgwrap { position: relative; display: inline-block; overflow: hidden; line-height: 0; }
.ayc-leaf__line { opacity: .55; }
.ayc-logo__sparks { position: absolute; inset: -6px -8px; pointer-events: none; }
.ayc-spark { position: absolute; width: 11px; height: 11px; opacity: 0; transform: scale(0); background: radial-gradient(circle, #fff 0 18%, #FFE7A0 40%, #F4B731 62%, transparent 72%); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.ayc-spark--1 { left: 2px; top: 0; }
.ayc-spark--2 { left: 44%; top: -3px; width: 8px; height: 8px; }
.ayc-spark--3 { right: 2px; top: 4px; }
.ayc-spark--4 { right: 22%; bottom: -2px; width: 7px; height: 7px; }

/* always on – no hover needed (desktop + mobile). One 6s loop:
   leaf sways → spins with a pop, sparkles burst, gold shine sweeps the name and it glows */
.ayc-motion .ayc-logo__mark svg, .ayc-motion .ayc-logo:hover .ayc-logo__mark svg { transition: none; transform: none; }
.ayc-motion .ayc-leaf { transform-origin: 50% 55%; animation: aycLeafLoop 6s cubic-bezier(.45, 0, .25, 1) infinite 2.2s; }
.ayc-motion .ayc-spark { animation: aycSparkLoop 6s ease-out infinite 2.2s; }
.ayc-motion .ayc-spark--1 { animation-name: aycSparkLoopB; }
.ayc-motion .ayc-spark--2 { animation-delay: 2.32s; }
.ayc-motion .ayc-spark--3 { animation-name: aycSparkLoopB; animation-delay: 2.44s; }
.ayc-motion .ayc-spark--4 { animation-delay: 2.56s; }
.ayc-motion .ayc-logo__name { animation: aycGoldShine 6s ease-in-out infinite 2.2s, aycNameGlow 6s ease-in-out infinite 2.2s; }
.ayc-motion .ayc-logo--img .ayc-logo__img { animation: aycNameGlow 6s ease-in-out infinite 2.2s; }
.ayc-motion .ayc-logo:has(.ayc-logo__img)::after { display: none; }
.ayc-motion .ayc-logo__imgwrap::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 245, 210, .6), transparent); transform: skewX(-20deg); animation: aycLogoShine 6s ease-in-out 2.2s infinite; pointer-events: none; }

/* intro (first page of a visit): leaf draws itself, fills with gold, name writes in from blur */
.ayc-intro .ayc-logo__mark { animation: aycPopIn .7s cubic-bezier(.34, 1.56, .64, 1) both .2s; }
.ayc-intro .ayc-leaf__line { stroke-dasharray: 100; animation: aycDraw 1.3s cubic-bezier(.65, 0, .35, 1) both .3s; }
.ayc-intro .ayc-leaf__fill { animation: aycFillIn .9s ease both 1.2s; }
.ayc-intro .ayc-logo__name { animation: aycWriteBlur 1.4s cubic-bezier(.65, 0, .35, 1) both .55s, aycGoldShine 6s ease-in-out infinite 2.2s, aycNameGlow 6s ease-in-out infinite 2.2s; }
.ayc-intro .ayc-logo__tag { animation: aycTagIn .9s cubic-bezier(.22, .61, .36, 1) both 1.55s; }
.ayc-intro .ayc-logo__img { animation: aycWriteBlur 1.4s cubic-bezier(.65, 0, .35, 1) both .4s, aycNameGlow 6s ease-in-out infinite 2.2s; }
.ayc-intro .ayc-spark--1 { animation: aycBurst 1s ease-out both 1.3s, aycSparkLoopB 6s ease-out infinite 2.3s; }
.ayc-intro .ayc-spark--3 { animation: aycBurst 1s ease-out both 1.6s, aycSparkLoopB 6s ease-out infinite 2.44s; }

/* loop keyframes (6s): 0–45% gentle sway, 58–78% spin + sparkle burst + glow */
@keyframes aycLeafLoop { 0%, 45%, 100% { transform: rotate(0) scale(1); } 15% { transform: rotate(-8deg); } 30% { transform: rotate(5deg); } 56% { transform: rotate(10deg) scale(.94); } 68% { transform: rotate(-200deg) scale(1.22); } 80% { transform: rotate(-360deg) scale(1); } }
@keyframes aycSparkLoop { 0%, 58%, 100% { opacity: 0; transform: scale(0) rotate(0); } 66% { opacity: 1; transform: scale(1.5) rotate(90deg); } 78% { opacity: 0; transform: scale(0) rotate(180deg); } }
@keyframes aycSparkLoopB { 0%, 16%, 30%, 58%, 100% { opacity: 0; transform: scale(0) rotate(0); } 23% { opacity: .9; transform: scale(.9) rotate(45deg); } 66% { opacity: 1; transform: scale(1.5) rotate(90deg); } 78% { opacity: 0; transform: scale(0) rotate(180deg); } }
@keyframes aycNameGlow { 0%, 55%, 90%, 100% { filter: drop-shadow(0 0 0 rgba(244, 183, 49, 0)); } 70% { filter: drop-shadow(0 0 8px rgba(244, 183, 49, .7)); } }

@keyframes aycTwinkle { 0%, 70%, 100% { opacity: 0; transform: scale(0) rotate(0); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } 90% { opacity: .8; transform: scale(.6) rotate(90deg); } }
@keyframes aycBurst { 0% { opacity: 0; transform: scale(0) rotate(0); } 40% { opacity: 1; transform: scale(1.5) rotate(90deg); } 100% { opacity: 0; transform: scale(0) rotate(180deg); } }
@keyframes aycSway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-7deg); } 65% { transform: rotate(4deg); } }
@keyframes aycLeafSpin { from { transform: rotate(0) scale(1); } 50% { transform: rotate(-200deg) scale(1.25); } to { transform: rotate(-360deg) scale(1); } }
@keyframes aycGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(244, 183, 49, 0)); } 50% { filter: drop-shadow(0 0 6px rgba(244, 183, 49, .45)); } }
@keyframes aycDraw { from { stroke-dashoffset: 100; opacity: 1; } to { stroke-dashoffset: 0; opacity: .55; } }
@keyframes aycFillIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes aycWriteBlur { from { clip-path: inset(-25% 100% -25% 0); filter: blur(5px); } 70% { filter: blur(0); } to { clip-path: inset(-25% 0 -25% 0); filter: blur(0); } }
@keyframes aycTagIn { from { opacity: 0; letter-spacing: .35em; } to { opacity: 1; letter-spacing: .02em; } }
