/* ============================================================
   Motion layer (update 184)
   - saree fan hero (sarees spread on the counter, swipe / tap)
   - woven zari ribbon of shop promises
   - gold scroll thread under the header
   - smooth photo hand-off from a product card to its page (View Transitions)
   - heritage headings, two products per row on phones
   Loaded after modern2.css. Overrides only; nothing else depends on it.
   ============================================================ */
:root {
  --loom: #0f4d32;
  --leaf: #1b7a4b;
  --zari-hi: #e3c47a;
  --zari-lo: #9c7a2c;
  --kumkum: #9b1b30;
  --ease-silk: cubic-bezier(.22, .8, .18, 1);
}

/* ---------- headings: one heritage voice ---------- */
.section-head h2 { font-family: 'Marcellus', serif; font-weight: 400; letter-spacing: 0; font-size: clamp(2rem, 3.8vw, 3rem); color: var(--loom); }
.section-head .eyebrow { background: none; padding: 0; margin-bottom: 8px; color: var(--zari-lo); font-weight: 600; font-size: .92rem; }
.section-head .eyebrow::after { content: ""; display: block; width: 46px; height: 2px; margin: 10px auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--zari), transparent); }

/* ---------- gold scroll thread under the header ---------- */
@supports (animation-timeline: scroll()) {
  .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--zari-lo), var(--zari-hi) 50%, var(--zari-lo));
    transform-origin: 0 50%; transform: scaleX(0);
    animation: tr-thread linear both; animation-timeline: scroll(root); }
  @keyframes tr-thread { to { transform: scaleX(1); } }
}

/* ---------- saree fan hero ---------- */
.fan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; user-select: none; -webkit-user-select: none; }
.fan__stage { position: relative; width: 100%; height: clamp(440px, 46vw, 600px); touch-action: pan-y; }
.fan__card {
  --x: 0%; --r: 0deg; --s: 1; --y: 0px; --z: 1; --o: 1;
  position: absolute; left: 50%; bottom: 8px; width: min(290px, 46%); aspect-ratio: 3 / 4.2;
  margin-left: calc(min(290px, 46%) / -2);
  border-radius: 50% 50% 18px 18px / 36% 36% 18px 18px;
  overflow: hidden; background: var(--loom); color: #fff; text-decoration: none;
  transform-origin: 50% 106%;
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(var(--s));
  z-index: var(--z); opacity: var(--o);
  box-shadow: 0 2px 0 3px rgba(255,255,255,.9), 0 0 0 5px var(--zari-hi), 0 30px 50px -24px rgba(15,77,50,.55);
  transition: transform .9s var(--ease-silk), opacity .6s ease, box-shadow .4s;
  transition-delay: calc(var(--d, 0) * 1ms);
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transform: scale(1.04); transition: transform 1.2s var(--ease-silk); }
.fan__card.is-front img { transform: scale(1); }
/* woven zari border band, like the saree's own border */
.fan__border { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--zari-hi) 0 10px, var(--zari-lo) 10px 12px, var(--zari-hi) 12px 22px),
              linear-gradient(var(--zari-hi), var(--zari-hi));
  box-shadow: 0 -3px 0 rgba(255,255,255,.35) inset; }
.fan__tag { position: absolute; left: 12px; right: 12px; bottom: 26px; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 14px; background: rgba(15,77,50,.72); -webkit-backdrop-filter: blur(8px) saturate(1.3); backdrop-filter: blur(8px) saturate(1.3);
  font-size: .82rem; line-height: 1.25; opacity: 0; transform: translateY(10px); transition: opacity .4s .25s, transform .5s .25s var(--ease-silk); }
.fan__tag b { font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fan__tag span { color: var(--zari-hi); font-weight: 700; }
.fan__card.is-front .fan__tag { opacity: 1; transform: none; }
.fan__card:not(.is-front) { cursor: pointer; }
.fan__card:not(.is-front)::after { content: ""; position: absolute; inset: 0; background: rgba(15,77,50,.18); transition: background .4s; }
.fan__card.is-front:hover { box-shadow: 0 2px 0 3px #fff, 0 0 0 5px var(--zari-hi), 0 40px 60px -26px rgba(15,77,50,.7); }
.fan__nav { display: flex; align-items: center; gap: 14px; }
.fan__btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--loom); background: #fff; box-shadow: inset 0 0 0 1.5px rgba(15,77,50,.22), 0 8px 18px -10px rgba(15,77,50,.5); transition: background .2s, color .2s, transform .15s; }
.fan__btn:hover { background: var(--loom); color: #fff; }
.fan__btn:active { transform: scale(.92); }
.fan__count { font-size: .86rem; color: var(--muted); min-width: 56px; text-align: center; }
.fan__count b { color: var(--loom); }
/* before the script runs (and while sarees are still stacked) only the first card shows */
.fan:not(.is-ready) .fan__card:not(:first-child) { --o: 0; --y: 30px; }
.hero .wrap:has(.fan) { grid-template-columns: 1fr 1.1fr; }
.hero:has(.fan) .hero-copy { position: relative; z-index: 2; }

@media (max-width: 900px) {
  .hero .wrap:has(.fan) { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; }
  .hero .fan { order: -1; }
  .fan__stage { height: min(100vw, 400px); }
  .fan__card { width: min(240px, 60vw); margin-left: calc(min(240px, 60vw) / -2); }
}

/* ---------- woven zari ribbon ---------- */
.zribbon { position: relative; overflow: hidden; background: var(--loom); color: #f6efdc; padding: 13px 0;
  border-block: 3px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--zari-hi) 0 14px, var(--zari-lo) 14px 18px) 3; }
.zribbon__track { display: flex; width: max-content; animation: tr-ribbon 46s linear infinite; }
.zribbon:hover .zribbon__track { animation-play-state: paused; }
.zribbon__set { display: flex; margin: 0; padding: 0; list-style: none; }
.zribbon__set li { display: flex; align-items: center; white-space: nowrap; font-family: 'Marcellus', serif; font-size: 1.02rem; letter-spacing: .01em; }
.zribbon__set li::after { content: ""; width: 9px; height: 9px; margin: 0 26px; transform: rotate(45deg); background: var(--zari-hi); box-shadow: 0 0 0 3px rgba(227,196,122,.18); }
@keyframes tr-ribbon { to { transform: translateX(-50%); } }

/* ---------- collection tiles: the photo drifts inside its frame as you scroll ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cat-tile { overflow: hidden; }
    .cat-tile__bg { inset: -8% 0; animation: tr-drift linear both; animation-timeline: view(); }
    @keyframes tr-drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
  }
}

/* ---------- product cards ---------- */
@media (hover: hover) and (pointer: fine) {
  .card .media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,246,220,.42) 48%, transparent 60%);
    transform: translateX(-110%); }
  .card:hover .media::after { transform: translateX(110%); transition: transform 1s var(--ease-silk); }
}
.card:active { transform: scale(.985); }

@media (max-width: 560px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-grid .card { border-radius: 16px; }
  .product-grid .card .body { padding: 10px 10px 12px; }
  .product-grid .card h3 { font-size: .86rem; line-height: 1.3; }
  .product-grid .card .cat { font-size: .68rem; }
  .product-grid .card .meta { display: none; }
  .product-grid .card .color-thumbs { display: flex; gap: 4px; margin: 2px 0 8px; }
  .product-grid .card .color-thumb { width: 30px; height: 38px; }
  .product-grid .card .swatches { margin: 4px 0; }
  .product-grid .card .swatch { width: 14px; height: 14px; }
  .product-grid .card .price { flex-wrap: wrap; gap: 0 6px; }
  .product-grid .card .price .now { font-size: 1rem; }
  .product-grid .card .price .was { font-size: .74rem; }
  .product-grid .card .actions .btn { padding: .5rem .4rem; font-size: .76rem; }
  .product-grid .card .badge { top: 8px; left: 8px; padding: 3px 9px; font-size: .66rem; }
}

/* ---------- photo hand-off between pages (Chrome, Edge, Safari 18+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }
::view-transition-group(pimg) { animation-duration: .5s; animation-timing-function: var(--ease-silk); }
::view-transition-old(pimg), ::view-transition-new(pimg) { height: 100%; object-fit: cover; }
#pdpMain { view-transition-name: pimg; }

/* ---------- add to cart: the saree flies to the bag ---------- */
.fly-thumb { position: fixed; z-index: 9999; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: 0 16px 30px -12px rgba(15,77,50,.6);
  transition: transform .62s cubic-bezier(.5,-.2,.7,1), opacity .62s ease-in; }
.bag-bump { animation: tr-bump .45s var(--ease-silk); }
@keyframes tr-bump { 40% { transform: scale(1.25); } }

/* ---------- reduced motion: everything still works, nothing moves on its own ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .fan__card, .fan__card img, .fan__tag { transition: none !important; }
  .zribbon__track { animation: none; width: auto; justify-content: center; }
  .zribbon__set { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .zribbon__set[aria-hidden] { display: none; }
  .site-header::after { display: none; }
  .card:active { transform: none; }
}

/* ---------- collections: heritage names; a swipeable rail on phones ---------- */
.cat-tile h3 { font-family: 'Marcellus', serif; font-weight: 400; letter-spacing: 0; }
@media (max-width: 720px) {
  .cat-grid { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -20px; padding: 4px 20px 14px; scroll-padding-inline: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-grid .cat-tile, .cat-grid .cat-tile:last-child:nth-child(odd) { flex: 0 0 44%; aspect-ratio: 3 / 4; grid-column: auto; scroll-snap-align: start; }
  .cat-tile h3 { font-size: 1.18rem; }
}

/* ============================================================
   Update 185: promotion banners + motion on every page
   ============================================================ */

/* ---------- promotion banners ---------- */
.pbanners { padding: 34px 0; }
.section--tint + .pbanners { background: var(--ivory-warm); padding-top: 0; }
.pb { position: relative; }
.pb__track { display: grid; }
.pb__slide { grid-area: 1 / 1; position: relative; display: block; overflow: hidden; border-radius: 26px; text-decoration: none; color: inherit;
  opacity: 0; visibility: hidden; transform: translateX(28px) scale(.985);
  transition: opacity .7s ease, transform .9s var(--ease-silk), visibility 0s .9s; box-shadow: 0 26px 50px -30px rgba(15,77,50,.55); }
.pb__slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .9s var(--ease-silk), visibility 0s; z-index: 2; }
.pb__slide.is-out { transform: translateX(-28px) scale(.985); }
.pb__slide--image::before { content: ""; display: block; padding-top: 33.333%; }
.pb__pic { position: absolute; inset: 0; }
.pb__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.pb__slide.is-on .pb__pic img { transform: scale(1); }
a.pb__slide:hover .pb__pic img { transform: scale(1.02); transition-duration: .8s; }

.pb__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(26px, 4vw, 52px); max-width: 640px; }
.pb__copy--over { position: absolute; left: 0; bottom: 0; right: 0; max-width: none; padding: clamp(18px, 3vw, 40px); color: #fff;
  background: linear-gradient(0deg, rgba(10,30,20,.78), rgba(10,30,20,0)); }
.pb__title { font-family: 'Marcellus', serif; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.08; max-width: 20ch; }
.pb__sub { font-size: clamp(.92rem, 1.3vw, 1.08rem); opacity: .9; max-width: 48ch; }
.pb__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pb__btn { display: inline-flex; align-items: center; padding: .78rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .92rem; background: var(--pb-btn, #fff); color: var(--pb-btn-t, var(--loom)); box-shadow: 0 12px 24px -14px rgba(0,0,0,.6); transition: transform .2s; }
a.pb__slide:hover .pb__btn { transform: translateY(-2px); }
.pb__code { display: inline-flex; align-items: center; gap: 8px; padding: .62rem .5rem .62rem 1rem; border-radius: 999px; border: 1.5px dashed currentColor; background: rgba(255,255,255,.1); color: inherit; font: inherit; font-size: .88rem; cursor: copy; }
.pb__code b { letter-spacing: .06em; }
.pb__code i { font-style: normal; font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--pb-acc, var(--zari-hi)); color: var(--pb-acc-t, var(--loom)); transition: background .3s; }
.pb__code.is-copied i { animation: tr-pop .4s ease-out; }
.pb__clock { display: flex; gap: 8px; }
.pb__clock > span { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 7px 6px 5px; border-radius: 12px; background: rgba(255,255,255,.12); font-size: .64rem; letter-spacing: .04em; opacity: .95; }
.pb__clock b { font-family: 'Marcellus', serif; font-size: 1.5rem; font-weight: 400; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pb__clock b.tick { animation: tr-tick .45s var(--ease-silk); }
@keyframes tr-tick { from { transform: translateY(-40%); opacity: .2; } }

/* designed text banners */
.pb__slide--text { min-height: 230px; display: flex; align-items: center; color: var(--pb-t, #f7f0dd); background: var(--pb-bg); }
.pb__weave { position: absolute; inset: -40px; pointer-events: none; opacity: .14;
  background: repeating-linear-gradient(45deg, var(--pb-acc, #e3c47a) 0 2px, transparent 2px 14px), repeating-linear-gradient(-45deg, var(--pb-acc, #e3c47a) 0 2px, transparent 2px 14px);
  animation: tr-weave 26s linear infinite; }
@keyframes tr-weave { to { transform: translate(28px, 28px); } }
.pb__slide--text::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 58%); transform: translateX(-120%); }
.pb__slide--text.is-on::after { animation: tr-sheen 5.5s 1s ease-in-out infinite; }
@keyframes tr-sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.pb__slide--text::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--pb-acc, #e3c47a) 0 12px, transparent 12px 16px); opacity: .9; }
.pb__side { position: absolute; top: 18px; bottom: 30px; right: clamp(18px, 4vw, 54px); width: min(30%, 260px); z-index: 1;
  border-radius: 50% 50% 16px 16px / 24% 24% 16px 16px; background-size: cover; background-position: center;
  box-shadow: 0 0 0 4px var(--pb-acc, #e3c47a), 0 22px 40px -18px rgba(0,0,0,.6); transform: rotate(3deg); transition: transform 1.2s var(--ease-silk); }
.pb__slide.is-on .pb__side { animation: tr-sway 6s ease-in-out infinite alternate; }
@keyframes tr-sway { from { transform: rotate(3deg); } to { transform: rotate(-2deg) translateY(-6px); } }
.pb__slide--text .pb__side ~ .pb__copy { padding-right: calc(min(30%, 260px) + 70px); max-width: none; }
.pb__slide--text .pb__title, .pb__slide--text .pb__sub, .pb__slide--text .pb__clock, .pb__slide--text .pb__acts { opacity: 0; transform: translateY(14px); }
.pb__slide--text.is-on .pb__title, .pb__slide--text.is-on .pb__sub, .pb__slide--text.is-on .pb__clock, .pb__slide--text.is-on .pb__acts { animation: tr-rise .8s var(--ease-silk) forwards; }
.pb__slide--text.is-on .pb__sub { animation-delay: .12s; }
.pb__slide--text.is-on .pb__clock { animation-delay: .22s; }
.pb__slide--text.is-on .pb__acts { animation-delay: .32s; }

.pb-theme--loom    { --pb-bg: radial-gradient(120% 140% at 0% 0%, #1f8a57 0%, #0f4d32 55%, #0a3a26 100%); --pb-acc: #e3c47a; }
.pb-theme--kumkum  { --pb-bg: radial-gradient(120% 140% at 0% 0%, #c62f4c 0%, #8e1530 55%, #5e0b1f 100%); --pb-acc: #f3d38a; --pb-btn-t: #8e1530; --pb-acc-t: #5e0b1f; }
.pb-theme--zari    { --pb-bg: radial-gradient(120% 140% at 0% 0%, #f1d68f 0%, #d2a94c 55%, #a97d27 100%); --pb-t: #2a1d06; --pb-acc: #0f4d32; --pb-acc-t: #fff; --pb-btn: #0f4d32; --pb-btn-t: #fff; }
.pb-theme--peacock { --pb-bg: radial-gradient(120% 140% at 0% 0%, #1696a3 0%, #0b5a7a 55%, #083e57 100%); --pb-acc: #e3c47a; --pb-btn-t: #0b5a7a; }
.pb-theme--night   { --pb-bg: radial-gradient(2px 2px at 20% 30%, #fff8 50%, transparent 51%), radial-gradient(2px 2px at 70% 20%, #fff6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 45% 70%, #fff7 50%, transparent 51%), radial-gradient(120% 140% at 0% 0%, #4a3699 0%, #261b5c 55%, #150f36 100%); --pb-acc: #f5cf6a; --pb-btn-t: #261b5c; }

.pb__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.pb__dot { width: 34px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: rgba(15,77,50,.16); overflow: hidden; cursor: pointer; }
.pb__dot i { display: block; height: 100%; width: 0; background: var(--zari); border-radius: 6px; }
.pb__dot.is-on i { animation: tr-dot var(--pb-dur, 6s) linear forwards; }
.pb.is-paused .pb__dot.is-on i { animation-play-state: paused; }
@keyframes tr-dot { to { width: 100%; } }

@media (max-width: 640px) {
  .pbanners { padding: 22px 0; }
  .pb__slide { border-radius: 20px; }
  .pb__slide--image::before { padding-top: 56.25%; }
  .pb__slide--image.has-m::before { padding-top: 125%; }
  .pb__slide--text { min-height: 0; align-items: stretch; flex-direction: column; }
  .pb__side { position: relative; top: auto; bottom: auto; right: auto; width: 46%; aspect-ratio: 3 / 3.4; margin: 22px auto -6px; order: -1; }
  .pb__slide--text .pb__side ~ .pb__copy { padding-right: 22px; }
  .pb__copy { padding: 22px 22px 30px; align-items: center; text-align: center; }
  .pb__acts { justify-content: center; }
  .pb__copy--over { align-items: flex-start; text-align: left; padding: 16px; }
  .pb__copy--over .pb__sub { display: none; }
  .pb__clock > span { min-width: 50px; }
}

/* ---------- every page: gentle entrance ---------- */
.mo-ready body:not(.page-home) main { animation: tr-page .6s var(--ease-silk) backwards; }
@keyframes tr-page { from { opacity: 0; transform: translateY(12px); } }

/* section titles: the gold line draws as the title scrolls in */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head h2 { animation: tr-title linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .section-head .eyebrow::after { transform-origin: 50% 50%; animation: tr-line linear both; animation-timeline: view(); animation-range: entry 10% cover 32%; }
    @keyframes tr-title { from { opacity: 0; transform: translateY(24px); letter-spacing: .04em; } }
    @keyframes tr-line { from { transform: scaleX(0); } }
    .site-footer .footer-grid > * { animation: tr-title linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}

/* product photos fade in as they arrive */
.mo-ready .card .media img { opacity: 0; transition: opacity .6s ease, transform .5s; }
.mo-ready .card .media img.is-loaded { opacity: 1; }

/* promise icons pop in */
.promise .item.in .ic { animation: tr-iconpop .8s var(--ease-silk) backwards; }
.promise .item.in:nth-child(2) .ic { animation-delay: .12s; }
.promise .item.in:nth-child(3) .ic { animation-delay: .24s; }
.promise .item.in:nth-child(4) .ic { animation-delay: .36s; }
@keyframes tr-iconpop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); } }

/* tap ripple on buttons */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.tr-ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; background: rgba(255,255,255,.4); transform: scale(0); animation: tr-ripple .6s ease-out forwards; }
.btn--ghost .tr-ripple { background: rgba(20,96,58,.18); }
@keyframes tr-ripple { to { transform: scale(2.6); opacity: 0; } }

/* phone menu: links slide in one after another */
@media (max-width: 900px) {
  .nav.open > * { animation: tr-slidein .45s var(--ease-silk) backwards; animation-delay: calc(var(--n, 0) * 45ms + 80ms); }
  @keyframes tr-slidein { from { opacity: 0; transform: translateX(24px); } }
}

/* ---------- product page ---------- */
.pdp .arch-inner img#pdpMain { animation: tr-photo .9s var(--ease-silk) backwards; }
.pdp .arch-inner img#pdpMain.swap { animation: tr-swap .45s ease both; }
@keyframes tr-photo { from { opacity: 0; transform: scale(1.06); } }
@keyframes tr-swap { from { opacity: .15; transform: scale(1.03); } }
.pdp-thumb { transition: transform .25s var(--ease-silk), box-shadow .25s; }
.pdp-thumb.is-active { transform: translateY(-3px); }
.swatch-lg.is-active { animation: tr-ring .6s ease-out; }
@keyframes tr-ring { 0% { box-shadow: 0 0 0 0 rgba(184,146,58,.7); } 100% { box-shadow: 0 0 0 12px rgba(184,146,58,0); } }
.pdp h1, .pdp .price-row, .pdp-colors, .pdp .buy-row { animation: tr-up .7s var(--ease-silk) backwards; }
.pdp .price-row { animation-delay: .08s; } .pdp-colors { animation-delay: .16s; } .pdp .buy-row { animation-delay: .24s; }

/* sticky buy bar on phones */
.buybar { position: fixed; left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 75; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 8px; border-radius: 18px; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(15,77,50,.55), 0 0 0 1px rgba(15,77,50,.08);
  transform: translateY(140%); opacity: 0; transition: transform .45s var(--ease-silk), opacity .3s; }
.buybar.is-on { transform: none; opacity: 1; }
.buybar img { width: 44px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
.buybar .bb-t { flex: 1; min-width: 0; line-height: 1.2; }
.buybar .bb-t b { display: block; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .bb-t span { font-family: 'Marcellus', serif; color: var(--loom); font-size: 1rem; }
.buybar .btn { padding: .7rem 1.1rem; font-size: .84rem; white-space: nowrap; }
.buybar .btn[disabled] { opacity: .5; }
body.buybar-on .wa-float { bottom: calc(150px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { .buybar { display: none; } }

/* ---------- cart and checkout ---------- */
.cart-table tbody tr { animation: tr-up .6s var(--ease-silk) backwards; }
.cart-table tbody tr:nth-child(2) { animation-delay: .07s; } .cart-table tbody tr:nth-child(3) { animation-delay: .14s; }
.cart-table tbody tr:nth-child(4) { animation-delay: .21s; } .cart-table tbody tr:nth-child(n+5) { animation-delay: .28s; }
.cart-grid > :last-child, .checkout-summary { animation: tr-side .8s .15s var(--ease-silk) backwards; }
@keyframes tr-side { from { opacity: 0; transform: translateX(26px); } }
.qty-step button:active:not(:disabled) { transform: scale(.82); transition: transform .1s; }
.radio-card { transition: border-color .25s, box-shadow .25s, transform .2s; }
.radio-card:has(input:checked) { border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(20,96,58,.1), 0 12px 24px -18px rgba(15,77,50,.6); }
.radio-card:has(input:checked) input { animation: tr-pop .35s ease-out; }
.radio-card:active { transform: scale(.99); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(184,146,58,.18); transition: box-shadow .25s; }
.empty { animation: tr-up .8s var(--ease-silk) backwards; }

/* ---------- order tracking: the journey draws itself ---------- */
.trk-step .dot { animation: tr-dotin .5s var(--ease-silk) backwards; }
.trk-step:not(:first-child)::before { transform-origin: 0 50%; animation: tr-fill .5s ease-out backwards; }
.trk-step:nth-child(1) .dot { animation-delay: .1s; }
.trk-step:nth-child(2)::before { animation-delay: .2s; } .trk-step:nth-child(2) .dot { animation-delay: .45s; }
.trk-step:nth-child(3)::before { animation-delay: .55s; } .trk-step:nth-child(3) .dot { animation-delay: .8s; }
.trk-step:nth-child(4)::before { animation-delay: .9s; } .trk-step:nth-child(4) .dot { animation-delay: 1.15s; }
.trk-step:nth-child(5)::before { animation-delay: 1.25s; } .trk-step:nth-child(5) .dot { animation-delay: 1.5s; }
.trk-step:nth-child(6)::before { animation-delay: 1.6s; } .trk-step:nth-child(6) .dot { animation-delay: 1.85s; }
.trk-step.now .dot { animation: tr-dotin .5s var(--ease-silk) backwards, tr-beat 2.2s 2.2s ease-in-out infinite; }
@keyframes tr-dotin { from { transform: scale(.3); opacity: 0; } }
@keyframes tr-fill { from { transform: scaleX(0); } }
@keyframes tr-beat { 0%, 100% { box-shadow: 0 0 0 5px rgba(20,96,58,.15); } 50% { box-shadow: 0 0 0 11px rgba(20,96,58,0); } }
.trk-card { animation: tr-up .7s var(--ease-silk) backwards; }

/* ---------- back to top with a scroll ring (desktop) ---------- */
.totop { position: fixed; right: 26px; bottom: 92px; z-index: 79; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: var(--loom);
  display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(15,77,50,.6); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-silk); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop svg.ring circle { fill: none; stroke: var(--zari); stroke-width: 2.5; stroke-dasharray: 138; stroke-dashoffset: calc(138 - 138 * var(--p, 0)); }
@media (max-width: 760px) { .totop { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .pb__slide, .pb__pic img, .pb__side { transition: none !important; animation: none !important; transform: none !important; }
  .pb__slide--text::after, .pb__weave { animation: none !important; }
  .pb__slide--text .pb__title, .pb__slide--text .pb__sub, .pb__slide--text .pb__clock, .pb__slide--text .pb__acts { opacity: 1; transform: none; animation: none !important; }
  .mo-ready body:not(.page-home) main, .pdp .arch-inner img#pdpMain, .pdp h1, .pdp .price-row, .pdp-colors, .pdp .buy-row,
  .cart-table tbody tr, .cart-grid > :last-child, .trk-step .dot, .trk-step::before, .trk-card, .empty, .promise .item.in .ic, .nav.open > * { animation: none !important; }
  .tr-ripple { display: none; }
  .mo-ready .card .media img { opacity: 1; transition: none; }
  .buybar { transition: none; }
}

@keyframes tr-up { from { opacity: 0; transform: translateY(16px); } }
