/* ISHRA luxury motion: slow, soft, deliberate. Gold hairlines, curtain reveals, fill-wipe buttons.
   Everything here is switched off for "reduce motion". Content stays visible if JS is off. */
:root {
  --is-lux: cubic-bezier(.16, 1, .3, 1);   /* long, silky deceleration */
  --is-gold: #B8935A;
}

/* ---------- entrance veil (once per visit; JS adds/removes it) ---------- */
.is-veil { position: fixed; inset: 0; z-index: 9999; background: var(--is-cream, #FBF4EE); display: flex; align-items: center; justify-content: center; pointer-events: none; animation: is-veil-out .9s var(--is-lux) 1.15s forwards; }
.is-veil b { font-family: var(--is-serif, serif); font-weight: 500; font-size: clamp(30px, 8vw, 54px); color: var(--is-maroon, #6B1E2E); letter-spacing: .6em; padding-left: .6em; opacity: 0; animation: is-veil-word 1.1s var(--is-lux) .1s forwards; position: relative; }
.is-veil b::after { content: ""; position: absolute; left: 50%; bottom: -14px; height: 1px; width: 0; background: var(--is-gold); transform: translateX(-50%); animation: is-veil-line 1s var(--is-lux) .45s forwards; }
@keyframes is-veil-word { from { opacity: 0; letter-spacing: 1em; filter: blur(6px); } to { opacity: 1; letter-spacing: .6em; filter: blur(0); } }
@keyframes is-veil-line { to { width: 72px; } }
@keyframes is-veil-out { to { opacity: 0; visibility: hidden; transform: translateY(-3%); } }

/* ---------- scroll reveal: rise + unblur, staggered ---------- */
.is-rv { opacity: 0; transform: translateY(26px); filter: blur(4px); transition: opacity 1.1s var(--is-lux), transform 1.2s var(--is-lux), filter 1.1s var(--is-lux); will-change: opacity, transform; }
.is-rv.is-in { opacity: 1; transform: none; filter: none; }
.is-grid > *, .is-cats > * { animation: none !important; }

/* images unveil like a curtain lifting */
.is-card-media, .is-cat-img, .is-arch, .is-story-media, .is-gallery-main { position: relative; }
.is-img-rv { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--is-lux); }
.is-img-rv.is-in { clip-path: inset(0 0 0 0); }
.is-img-rv img { transform: scale(1.14); transition: transform 1.8s var(--is-lux); }
.is-img-rv.is-in img { transform: scale(1); }

/* ---------- section titles get a drawn gold hairline ---------- */
.is-section-head h2, .is-section-head .is-eyebrow + h2 { position: relative; }
.is-section-head h2::after { content: ""; display: block; height: 1px; width: 0; margin-top: 12px; background: var(--is-gold); transition: width 1.2s var(--is-lux) .25s; }
.is-section-head.is-in h2::after { width: 64px; }

/* ---------- header ---------- */
.is-header { transition: box-shadow .5s ease, background-color .5s ease; }
.is-bar-inner { transition: min-height .5s var(--is-lux); }
.is-header.is-scrolled .is-bar { box-shadow: 0 10px 34px rgba(74,18,32,.08); }
@media (min-width: 768px) { .is-header.is-scrolled .is-bar-inner { min-height: 62px; } }
.is-nav a { position: relative; transition: color .4s ease, letter-spacing .6s var(--is-lux); }
.is-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--is-gold); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--is-lux); }
.is-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.is-brand img { transition: transform 1.2s var(--is-lux); }
.is-brand:hover img { transform: rotate(-8deg) scale(1.05); }

/* ---------- buttons: colour floods up from below, no bounce, no ripple ---------- */
.is-btn { position: relative; overflow: hidden; isolation: isolate; transition: color .6s var(--is-lux), border-color .6s var(--is-lux), letter-spacing .7s var(--is-lux), box-shadow .7s var(--is-lux); }
.is-btn::before { content: ""; position: absolute; left: -5%; right: -5%; bottom: 0; height: 0; z-index: -1; border-radius: 50% 50% 0 0 / 30% 30% 0 0; transition: height .75s var(--is-lux), border-radius .75s var(--is-lux); pointer-events: none; }
.is-btn::after { content: none; }
.is-btn-primary::before { background: #3E0F1B; }
.is-btn-outline::before { background: var(--is-maroon, #6B1E2E); }
.is-btn-light::before { background: #fff; }
@media (hover: hover) {
  .is-btn:hover::before { height: 120%; border-radius: 0; }
  .is-btn-primary:hover, .is-btn-outline:hover { letter-spacing: .035em; }
  .is-btn-primary:hover { box-shadow: 0 14px 30px rgba(74,18,32,.22); }
}
.is-btn-primary:hover { background: var(--is-maroon, #6B1E2E); }          /* the flood does the colour change */
.is-btn-outline:hover { background: transparent; }
.is-btn:active { transform: scale(.992); transition: transform .25s ease; }
.is-ripple { display: none !important; }

/* ---------- cards ---------- */
.is-card, .is-cat { transition: transform .9s var(--is-lux); }
.is-card-media img, .is-cat-img img { transition: transform 1.6s var(--is-lux), opacity .6s ease; }
.is-card-media::after, .is-cat-img::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.0); border-radius: inherit; pointer-events: none; transition: border-color .8s ease, inset .9s var(--is-lux); }
@media (hover: hover) {
  .is-card:hover { transform: translateY(-4px); }
  .is-cat:hover { transform: translateY(-3px); }
  .is-card:hover .is-card-media img, .is-cat:hover .is-cat-img img { transform: scale(1.07); }
  .is-card:hover .is-card-media::after { border-color: rgba(255,255,255,.75); inset: 12px; }
}
.is-card-name, .is-cat-name { transition: color .5s ease; }
.is-card:hover .is-card-name { color: var(--is-maroon); }
.is-benefits > div { transition: transform .8s var(--is-lux), box-shadow .8s var(--is-lux); }
@media (hover: hover) { .is-benefits > div:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(74,18,32,.09); } }

/* hero: slow, barely-there drift (no pulsing) */
@keyframes is-drift { from { transform: scale(1.02); } to { transform: scale(1.07); } }
.is-arch img { animation: is-drift 16s ease-in-out infinite alternate; }

/* ---------- product options: soft ring blooms, tick draws in ---------- */
@keyframes is-soft { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.is-swatch, .is-size { transition: border-color .5s var(--is-lux), background-color .5s var(--is-lux), color .4s ease, box-shadow .6s var(--is-lux), transform .6s var(--is-lux); }
@media (hover: hover) { .is-swatch:hover, .is-size:hover { transform: translateY(-2px); } }
.is-swatch.is-active { box-shadow: 0 0 0 3px rgba(184,147,90,.35), 0 8px 20px rgba(74,18,32,.12); }
.is-size.is-active { box-shadow: 0 8px 20px rgba(74,18,32,.2); }
.is-swatch.is-active, .is-size.is-active, .is-size.is-active .is-tick { animation: none; }
.is-picked, .is-pick-hint, .is-chosen, .is-stock, .is-error { animation: is-soft .7s var(--is-lux); }
.is-gallery-main img { transition: opacity .7s ease, transform 1.4s var(--is-lux); }
.is-price-now { display: inline-block; animation: is-soft .6s var(--is-lux); }
.is-out { opacity: .75 !important; text-decoration: none !important; cursor: pointer !important; }
.is-swatch.is-out::after { content: none !important; }

/* the buy buttons get a slow gold edge-light instead of a pulsing glow */
@keyframes is-edge { 0%, 100% { box-shadow: 0 10px 24px rgba(107,30,46,.22), 0 0 0 0 rgba(184,147,90,0); } 50% { box-shadow: 0 12px 28px rgba(107,30,46,.3), 0 0 0 4px rgba(184,147,90,.22); } }
.order_now_btn:not([disabled]), .is-co-confirm:not([disabled]) { animation: is-edge 5s ease-in-out infinite; }
.is-btn[disabled], button[disabled] { animation: none !important; }

/* ---------- bag badge + toast ---------- */
@keyframes is-badge { 0% { transform: translateY(-8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.is-bag-count.is-bump { animation: is-badge .8s var(--is-lux); }
.is-toast { transition: opacity .6s ease, transform .9s var(--is-lux); }

/* ---------- checkout ---------- */
.is-co-item { animation: is-soft .7s var(--is-lux) both; }
.is-area { transition: background-color .5s var(--is-lux), color .4s ease, border-color .5s ease; }
.is-co-totals > div { transition: color .3s ease; }

/* ---------- mobile tab bar ---------- */
.is-tabbar svg { transition: transform .5s var(--is-lux); }
.is-tabbar a:active svg, .is-tabbar button:active svg { transform: scale(.9); }

@media (prefers-reduced-motion: reduce) {
  .is-veil { display: none !important; }
  .is-rv, .is-img-rv, .is-img-rv img { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; transition: none !important; }
  .order_now_btn, .is-co-confirm, .is-arch img { animation: none !important; }
  .is-btn::before { display: none !important; }
}

/* photos always fill their frame (arch / card), whatever the original ratio */
.is-cat-img, .is-card-media { position: relative; overflow: hidden; }
.is-cat-img img, .is-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* "body.ishra img { height: auto }" is more specific than the frame rules above, so restate the heights with the same weight */
body.ishra .is-cat-img img, body.ishra .is-card-media img { height: 100%; }
body.ishra .is-gallery-main img, body.ishra .is-thumb img, body.ishra .is-co-photo img { height: 100%; }
body.ishra .is-arch img { height: 560px; }
body.ishra .is-story-media img { height: 520px; }
@media (max-width: 767px) { body.ishra .is-arch img { height: 440px; } body.ishra .is-story-media img { height: 400px; } }

/* ---- Signature button motion: gold shine sweep, breathing sticky bar, press ripple, loading shimmer ---- */
@keyframes is-shine { 0%, 62% { transform: translateX(-130%) skewX(-22deg); } 100% { transform: translateX(260%) skewX(-22deg); } }
@keyframes is-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes is-ripple { from { transform: scale(0); opacity: .55; } to { transform: scale(4.2); opacity: 0; } }
@keyframes is-rise { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes is-load { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
body.ishra .order_now_btn:not([disabled])::after,
body.ishra .is-co-confirm:not([disabled])::after,
body.ishra .is-sticky-buy .is-btn-primary:not([disabled])::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,236,200,.0) 10%, rgba(255,236,200,.55) 50%, rgba(255,236,200,0) 90%, transparent 100%);
  transform: translateX(-130%) skewX(-22deg); animation: is-shine 4.6s cubic-bezier(.4,0,.2,1) 1.2s infinite;
}
body.ishra .add_cart_btn:not([disabled]) { animation: none; }
body.ishra .add_cart_btn:not([disabled]):hover { box-shadow: 0 10px 24px rgba(107,30,46,.18); }
body.ishra .is-sticky-buy { animation: is-rise .8s var(--is-lux, cubic-bezier(.22,1,.36,1)) .4s both; }
body.ishra .is-sticky-buy .is-btn-primary:not([disabled]) { animation: is-edge 5s ease-in-out infinite, is-breathe 3.2s ease-in-out infinite; }
body.ishra .is-btn .is-rip { position: absolute; border-radius: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(255,255,255,.55); pointer-events: none; z-index: 2; animation: is-ripple .75s ease-out forwards; }
body.ishra .is-btn-outline .is-rip { background: rgba(107,30,46,.22); }
body.ishra .is-btn[disabled][wire\:loading], body.ishra .is-btn:disabled { background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 70%); background-size: 200% 100%; animation: is-load 1.2s linear infinite !important; }
@media (prefers-reduced-motion: reduce) {
  body.ishra .order_now_btn::after, body.ishra .is-co-confirm::after, body.ishra .is-sticky-buy .is-btn-primary::after { display: none; }
  body.ishra .is-sticky-buy, body.ishra .is-sticky-buy .is-btn-primary, body.ishra .is-btn .is-rip { animation: none !important; }
}
