/* Load after the existing style.css. Existing store logic stays untouched. */
:root{--motion-ease:cubic-bezier(.22,1,.36,1)}
html{scroll-padding-top:135px;overflow-x:clip}
.storefront{overflow-x:clip}
.storefront [hidden]{display:none!important}
.storefront .header{position:sticky;top:0;z-index:15;box-shadow:0 8px 30px #0002}
.storefront .brand img,.storefront footer img{max-width:100%;object-fit:contain;background:transparent}
.scrollProgress{position:fixed;inset:0 0 auto;height:3px;z-index:90;background:linear-gradient(90deg,#8e6426,#f5d27d);transform:scaleX(0);transform-origin:right;pointer-events:none}
.storefront .hero{min-height:630px;height:auto;background-image:url('/assets/kisra-hero.webp');background-position:center;overflow:hidden}
.storefront .heroCopy{position:relative;z-index:2;padding-block:84px;min-width:0}
.storefront .hero h1{overflow:visible;font-size:clamp(46px,5.7vw,78px)}
.headlineWord{display:inline-block;animation:wordReveal 850ms var(--motion-ease) both;animation-delay:calc(var(--word-index)*160ms)}
@keyframes wordReveal{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.marquee{overflow:hidden;background:#20160d;color:#e2c690;border-bottom:1px solid #4a331b;font-size:13px;direction:ltr}
.marqueeTrack{display:flex;width:max-content;animation:marqueeDrift 38s linear infinite}
.marqueeTrack span{direction:rtl;white-space:nowrap;display:block;padding:11px 36px;min-width:100vw;text-align:center}
.marquee:hover .marqueeTrack,.marquee:focus-within .marqueeTrack{animation-play-state:paused}
@keyframes marqueeDrift{to{transform:translateX(-50%)}}
.willReveal{transition:opacity 750ms var(--motion-ease),translate 750ms var(--motion-ease);transition-delay:var(--reveal-delay,0ms)}
.motion-ready .willReveal:not(.isVisible){opacity:0;translate:0 22px}
.willReveal.isVisible{opacity:1;translate:0 0}
.storefront .category,.storefront .product{min-width:0;transform:perspective(850px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) scale(var(--card-scale,1));transition:transform 650ms var(--motion-ease),border-color 600ms,box-shadow 650ms}
.storefront .category:focus-visible,.storefront .product:focus-within{border-color:#d5ab59;box-shadow:0 10px 26px #0003}
.storefront .assetSlot{display:grid;place-items:center;width:100%;min-height:46px;font-size:11px;color:#cbb68f}
.assetSlot>span{border:1px dashed #7e633c;border-radius:6px;padding:8px;line-height:1.4}
.assetSlot img{width:44px;height:44px;object-fit:contain}
.storefront .productArt{overflow:hidden;isolation:isolate}
.storefront .productArt>img{transition:opacity 700ms ease-out,transform 900ms var(--motion-ease)}
.storefront .productArt .secondaryImage{position:absolute;inset:0;opacity:0;z-index:1;object-fit:cover;width:100%;height:100%}
.storefront .productArt b{z-index:3}
.storefront .productArt .productBadge{top:auto;bottom:12px;right:12px;font-size:12px}
.storefront .productArt .mediaPlaceholder{font-size:13px;color:#d5c3a2;text-align:center;line-height:1.8;padding:20px;opacity:1}
.storefront .productArt .mediaPlaceholder small{display:block;font-size:11px}
.storefront .productBottom button{min-height:44px}
.storefront .story{position:relative;overflow:hidden;isolation:isolate;text-align:right;padding:64px 6%;display:grid;grid-template-columns:minmax(0,1fr);gap:30px}
.storyImage{width:100%;height:240px;object-fit:cover;border-radius:14px;border:1px solid #634421;transform:translate3d(0,var(--parallax-y,0px),0);opacity:.8}
.storyCopy{position:relative;min-width:0;align-self:center}
.storefront .storyCopy p{margin-inline:0;max-width:670px}
.storefront .storyCopy h2{font-size:clamp(28px,3.4vw,42px)}
.motion-ready .drawer{transition:transform 700ms var(--motion-ease),visibility 0s;transform:translateX(0);visibility:visible}
.storefront.motion-ready .drawer.hidden{display:flex!important;transform:translateX(-105%);visibility:hidden;pointer-events:none;transition:transform 700ms var(--motion-ease),visibility 0s 700ms}
.motion-ready .shade{transition:opacity 600ms ease-out,visibility 0s;opacity:1}
.storefront.motion-ready .shade.hidden{display:block!important;visibility:hidden;opacity:0;pointer-events:none;transition:opacity 600ms ease-out,visibility 0s 600ms}
.storefront .drawerHead,.storefront .drawerBottom{flex-shrink:0}
.storefront .modal{border-radius:16px}
.modalEnter{animation:modalReveal 650ms var(--motion-ease)}
@keyframes modalReveal{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
.motionOverlayOpen{overflow:hidden}
.freeShipping{margin:0 0 20px;padding:14px;background:#2a1d10;border:1px solid #634724;border-radius:10px}
.freeShipping p{font-size:14px;margin:0 0 10px;line-height:1.7;color:#f4dbab}
.freeShipping progress{display:block;width:100%;height:6px;border:0;border-radius:20px;overflow:hidden;accent-color:#e3ae4b;background:#4d371f}
.freeShipping progress::-webkit-progress-bar{background:#4d371f}
.freeShipping progress::-webkit-progress-value{background:#e3ae4b;transition:width 700ms var(--motion-ease)}
.freeShipping progress::-moz-progress-bar{background:#e3ae4b}
.checkoutSteps{list-style:none;counter-reset:steps;display:flex;gap:8px;justify-content:space-between;padding:18px 24px 0;margin:0;font-size:12px;color:#c4b79d}
.checkoutSteps li{counter-increment:steps;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.checkoutSteps li::before{content:counter(steps);display:grid;place-items:center;width:25px;height:25px;border:1px solid #71522b;border-radius:50%}
.checkoutSteps [aria-current=step]{color:#ffda8a;font-weight:700}
.checkoutSteps [aria-current=step]::before{background:#7b511b;color:#fff7e3;border-color:#d6a445}
.successCheck{display:block;width:48px;height:48px;border:1px solid #a3e9bc;border-radius:50%;margin:0 auto 16px;position:relative;animation:successCircle 650ms var(--motion-ease) both}
.successCheck::after{content:'';position:absolute;left:15px;top:11px;width:12px;height:21px;border:solid #a3e9bc;border-width:0 3px 3px 0;transform:rotate(45deg);animation:successTick 700ms var(--motion-ease) both}
@keyframes successCircle{from{opacity:0;scale:.85}to{opacity:1;scale:1}}
@keyframes successTick{0%,25%{opacity:0;clip-path:inset(0 0 100% 0)}100%{opacity:1;clip-path:inset(0)}}
.cartPulse{animation:cartPulse 700ms var(--motion-ease)}
@keyframes cartPulse{40%{transform:scale(1.22);box-shadow:0 0 0 7px #e2b05020}100%{transform:scale(1)}}
.flyingProduct{position:fixed;pointer-events:none;z-index:95;border-radius:12px;border:1px solid #cba65f;background:#302010;object-fit:cover;box-shadow:0 6px 25px #0005}
.whatsappFloat{position:fixed;left:18px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:16;border:1px solid #bba16c;border-radius:50px;background:#2b2115;color:#fff2d4;padding:14px 22px;font-weight:700;font-size:14px;box-shadow:0 6px 24px #0004;animation:whatsappPulse 5s ease-out infinite}
@keyframes whatsappPulse{0%,100%{box-shadow:0 6px 24px #0004,0 0 0 0 #d0ac5a20}65%{box-shadow:0 6px 24px #0004,0 0 0 9px #d0ac5a00}}
.goldCursor{display:none;position:fixed;left:0;top:0;width:9px;height:9px;border:1px solid #d6b66c;border-radius:50%;background:#d6b66c15;z-index:100;pointer-events:none;opacity:0}
.srOnly{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:801px){.storefront .story{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);padding:80px max(5%,calc((100vw - 1240px)/2))}.storyCopy{grid-column:1;grid-row:1}.storyImage{grid-column:2;grid-row:1;height:360px}.storefront .heroCopy{width:64%;max-width:820px}}
@media(hover:hover) and (pointer:fine){.storefront .category:hover,.storefront .product:hover{--card-scale:1.015;box-shadow:0 16px 35px #0004}.storefront .product.hasSecondary:hover .secondaryImage,.storefront .product.hasSecondary:focus-within .secondaryImage{opacity:1}.storefront .product:hover .productArt>img{transform:scale(1.025)}.goldCursor{display:block}}
@media(max-width:800px){html{scroll-padding-top:116px}.storefront .heroCopy{padding-block:70px}.storefront .hero{min-height:610px}.storefront .hero h1{font-size:clamp(42px,10vw,62px)}.marqueeTrack{animation:none;width:100%}.marqueeTrack span{min-width:0;width:100%;white-space:normal;font-size:11px;padding:10px 15px}.marqueeTrack span+span{display:none}.storefront .category,.storefront .product{transform:none!important}.goldCursor{display:none!important}.checkoutSteps{font-size:11px;padding-inline:15px;gap:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.storefront *, .storefront *::before,.storefront *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.motion-ready .willReveal:not(.isVisible){opacity:1;translate:0 0}.storyImage{transform:none!important}.marqueeTrack{animation:none}.goldCursor{display:none!important}.headlineWord{opacity:1;transform:none}.flyingProduct{display:none}}
.catalogMetrics{display:flex;justify-content:center;gap:24px;margin-block:16px 0!important;font-size:13px!important}.catalogMetrics b{display:inline-block;min-width:1.4em;color:#f5d397;font-size:21px;font-variant-numeric:tabular-nums}

/* Hero revision: cinematic oud scene with static poster fallback, no watermark. */
.storefront .hero{min-height:100svh;height:auto;max-height:none;background-image:url('/assets/hero-oud-poster.webp')}
.storefront .hero::before{background:rgba(18,12,7,.55);z-index:1;pointer-events:none}
.heroOudVideo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:0;pointer-events:none;transition:opacity 800ms ease-out}
.heroOudVideo.isPlaying{opacity:1}
.storefront .heroCopy{width:100%;max-width:960px;padding-block:100px}
.storefront .hero h1{font-size:clamp(30px,4vw,56px);line-height:1.5;isolation:isolate}
.headlineIntro{position:relative;z-index:2}
.storefront .hero .oudWord{color:#c39159;-webkit-text-stroke:.35px #e6b47b99;text-shadow:0 1px 1px #edcb9c44,0 3px 8px #0003}
/* Apply the finish to each reveal layer, so Arabic text remains visible. */
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 .storefront .hero .oudWord,.storefront .hero .oudWord>.headlineWord{background:linear-gradient(155deg,#a8723a 6%,#7a4b24 43%,#4a2c17 68%,#a8723a 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
}
.storefront .hero h1 .smokyHeadline{position:relative;display:inline-block;font-size:clamp(48px,6.4vw,90px);line-height:1.45;color:#f4efe8;background:none;-webkit-text-fill-color:currentColor;animation:oudTextBreathe 7s ease-in-out infinite}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 .storefront .hero .smokyHeadline .headlineWord{background:linear-gradient(180deg,#f4efe8 10%,#d9d2c8 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
}
.smokeWord{position:relative;display:inline-block;isolation:isolate}
.smokeWord::before,.smokeWord::after{content:'';position:absolute;z-index:-1;pointer-events:none;inset-inline-start:24%;bottom:76%;width:.48em;height:1.35em;border-radius:55% 45% 65% 35%;background:radial-gradient(ellipse at 50% 75%,#f4efe83d 0%,#e7e0d02b 30%,transparent 70%);filter:blur(8px);opacity:0;transform-origin:50% 100%;animation:oudWordSmoke 6s ease-in-out infinite}
.smokeWord::after{inset-inline-start:52%;width:.36em;height:1.7em;animation-duration:8s;animation-delay:-3s}
@keyframes oudWordSmoke{0%{opacity:0;transform:translate3d(0,0,0) scale(.6) rotate(-6deg)}25%{opacity:.55}65%{opacity:.3}100%{opacity:0;transform:translate3d(-.25em,-1.2em,0) scale(1.4) rotate(12deg)}}
@keyframes oudTextBreathe{0%,100%{text-shadow:0 0 8px #f4efe808}50%{text-shadow:0 0 18px #f4efe823}}
@media(max-width:800px){.heroOudVideo{display:none!important}.storefront .heroCopy{padding-block:80px}.storefront .hero h1{font-size:clamp(28px,5vw,40px)}.storefront .hero h1 .smokyHeadline{font-size:clamp(45px,8vw,64px)}.smokeWord::before,.smokeWord::after{filter:blur(6px)}}
@media(prefers-reduced-motion:reduce){.heroOudVideo{display:none!important}.smokeWord::before,.smokeWord::after{display:none}.storefront .hero h1 .smokyHeadline{animation:none!important;text-shadow:none}}
