/* listing.html · a product page: a code-drawn media carousel (auto-advancing, pausable, swipeable) beside a sticky
   buy box with a live payment total; "How buying works" in three steps (the third you can press); a plain close card. */

.ls { --brown: #3b2414; --tan: #c8743a; --cream: #f3e3cc; }

/* ═══ product ═══ */
.pd { padding: 100px 0 clamp(64px, 7vw, 104px); background: linear-gradient(180deg, #faf6ff 0%, #fff 340px); }
.pd__head { margin: 14px 0 22px; }
.pd__k { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cat-design-d); }
.pd__k span { width: 8px; height: 8px; border-radius: 50%; background: var(--cat-design); }
.pd__title { margin-top: 8px; font-family: var(--display); font-size: clamp(34px, 4.2vw, 60px); line-height: 1; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.pd__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .pd__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; } .pd { padding-top: 96px; } }
@media (min-width: 1200px) { .pd__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; } }

/* carousel */
.car { position: relative; border-radius: 28px; overflow: hidden; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(3, 21, 20, .05); }
.car__track { position: relative; aspect-ratio: 16 / 11; touch-action: pan-y; }
@media (min-width: 960px) and (max-height: 800px) { .car__track { aspect-ratio: 16 / 10; } }
.sl { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; opacity: 0; transform: translateX(calc(var(--dir, 1) * 6%)) scale(.98); transition: opacity .6s ease, transform .9s var(--spring); pointer-events: none; overflow: hidden; }
.sl.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sl.is-out { opacity: 0; transform: translateX(calc(var(--dir, 1) * -6%)) scale(.98); }
.sl figcaption { position: absolute; left: 20px; top: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-weight: 700; font-size: 13px; color: var(--ink); }
.sl--cup { background: radial-gradient(70% 70% at 50% 40%, #fff7ea 0%, var(--cream) 70%); }
.sl--two { background: #fff; gap: 0; grid-template-columns: 1fr 1fr; }
.sl--card { background: linear-gradient(160deg, #e9e3fa, #cfc6f1); }
.sl--kit { background: var(--brown); }

/* slide 1 · cup */
.cup { position: relative; display: block; width: 26%; aspect-ratio: .78; }
.cup__lid { position: absolute; left: -6%; right: -6%; top: 0; height: 11%; border-radius: 10px 10px 4px 4px; background: #fff; box-shadow: 0 4px 0 #e6dccd; }
.cup__body { position: absolute; left: 0; right: 0; top: 10%; bottom: 0; display: grid; justify-items: center; align-content: start; padding-top: 14%; gap: 4%; background: #fff; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); box-shadow: inset -18px 0 24px -14px rgba(0, 0, 0, .15); color: var(--brown); }
.cup__mk { width: 46%; height: auto; aspect-ratio: 1; color: var(--tan); --mk2: #fff; }
.cup__body b { font-family: var(--display); font-size: clamp(14px, 1.8vw, 24px); letter-spacing: .14em; }
.cup__sleeve { position: absolute; left: 5%; right: 5%; top: 74%; height: 14%; background: var(--brown); clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); opacity: .9; }
.steam { position: absolute; left: 50%; top: 12%; width: 16%; height: 16%; transform: translateX(-50%); }
.steam i { position: absolute; bottom: 0; width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 12px 4px rgba(255, 255, 255, .7); opacity: 0; }
.steam i:nth-child(1) { left: 10%; } .steam i:nth-child(2) { left: 45%; } .steam i:nth-child(3) { left: 80%; }
.car.is-live .sl--cup.is-on .steam i { animation: steam 2.6s ease-in-out infinite; }
.car.is-live .sl--cup.is-on .steam i:nth-child(2) { animation-delay: -.9s; }
.car.is-live .sl--cup.is-on .steam i:nth-child(3) { animation-delay: -1.7s; }
@keyframes steam { 0% { transform: translate(0, 20px) scale(.5); opacity: 0; } 40% { opacity: .9; } 100% { transform: translate(8px, -40px) scale(1.6); opacity: 0; } }

/* slide 2 · concepts */
.cn { display: grid; justify-items: center; align-content: center; gap: 10px; height: 100%; width: 100%; color: var(--brown); }
.cn + .cn { box-shadow: inset 1px 0 0 var(--line); background: #fbf7f1; }
.cn__mk { width: 34%; aspect-ratio: 1; height: auto; color: var(--tan); --mk2: #fff; }
.cn b { font-family: var(--display); font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -.01em; }
.cn small { margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: var(--cat-design-s); color: var(--cat-design-d); font-weight: 700; font-size: 12px; }
.cn__arch { display: grid; place-items: center; width: 52%; aspect-ratio: 1.1; border-radius: 999px 999px 18px 18px; background: var(--brown); color: var(--cream); font-family: var(--display); font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .18em; }
.cn__ar { font-family: "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif !important; color: var(--tan); }
.car.is-live .sl--two.is-on .cn__mk { animation: cn-spin 4s var(--spring) infinite; }
@keyframes cn-spin { 0%, 60% { transform: rotate(0); } 80% { transform: rotate(-12deg) scale(1.05); } 100% { transform: rotate(0); } }

/* slide 3 · card + sign */
.bc { position: absolute; left: 14%; top: 28%; display: grid; place-items: center; width: 36%; aspect-ratio: 1.75; border-radius: 14px; background: var(--brown); box-shadow: 0 30px 40px -24px rgba(30, 10, 60, .6); transform: rotate(-8deg); }
.bc__mk { width: 34%; aspect-ratio: 1; height: auto; color: var(--cream); --mk2: var(--brown); }
.bc--back { left: 20%; top: 40%; display: grid; align-content: center; justify-items: start; gap: 8px; padding: 0 8%; background: var(--cream); transform: rotate(4deg); }
.bc--back b { font-family: var(--display); font-size: clamp(16px, 1.8vw, 24px); color: var(--brown); }
.bc--back i { display: block; width: 60%; height: 6px; border-radius: 3px; background: rgba(59, 36, 20, .25); }
.bc--back i + i { width: 40%; }
.sign { position: absolute; right: 10%; top: 18%; display: grid; justify-items: center; gap: 8px; padding: 18px 20px; border-radius: 50%; width: 26%; aspect-ratio: 1; align-content: center; background: #fff; box-shadow: 0 0 0 8px var(--brown), 0 30px 40px -20px rgba(30, 10, 60, .6); color: var(--brown); transform-origin: 50% -40%; }
.sign::before { content: ""; position: absolute; left: 50%; top: -34%; width: 3px; height: 34%; background: var(--brown); }
.sign svg { width: 44%; aspect-ratio: 1; height: auto; color: var(--tan); --mk2: #fff; }
.sign b { font-family: var(--display); font-size: clamp(10px, 1.2vw, 15px); letter-spacing: .16em; }
.car.is-live .sl--card.is-on .sign { animation: swing 3.2s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* slide 4 · kit */
.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 74%; }
.kit__sw { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kit__sw i { aspect-ratio: 1.3; border-radius: 14px; background: var(--s); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.car.is-live .sl--kit.is-on .kit__sw i { animation: pop .6s var(--spring) both; }
.kit__sw i:nth-child(2) { animation-delay: .08s !important; } .kit__sw i:nth-child(3) { animation-delay: .16s !important; } .kit__sw i:nth-child(4) { animation-delay: .24s !important; }
.kit__aa { display: grid; align-content: center; padding: 14px 18px; border-radius: 14px; background: var(--cream); color: var(--brown); }
.kit__aa b { font-family: var(--display); font-size: clamp(34px, 4vw, 56px); line-height: 1; }
.kit__aa small { font-weight: 700; font-size: 13px; }
.kit__files { display: grid; gap: 8px; align-content: center; }
.kit__files i { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: .1em; box-shadow: inset 4px 0 0 var(--tan); }

.car__ui { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.car__ui > * { pointer-events: auto; }
.car__dots { display: flex; gap: 6px; padding: 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.car__dots button { position: relative; width: 34px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.car__dots i { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: rgba(3, 21, 20, .18); overflow: hidden; }
.car__dots i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.car__dots [aria-selected="true"] i::after { transform: scaleX(var(--p, 1)); }
.car__arrows { display: flex; gap: 8px; }
.car__a { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow-s); cursor: pointer; transition: transform .3s var(--spring); }
.car__a:active { transform: scale(.9); }
.car__a svg { width: 18px; height: 18px; transform: rotate(90deg); }
.car__a[data-car-step="1"] svg { transform: rotate(-90deg); }
.car__note { margin-top: 10px; }

@media (max-width: 959px) {
  .pd__main { display: contents; }
  .car { order: 1; } .car__note { order: 2; margin-top: -18px; } .buy { order: 3; } .about { order: 4; margin-top: 12px; }
}

/* about */
.ls-h { font-family: var(--display); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.02; letter-spacing: -.03em; color: var(--ink); }
.ls-mini { margin: 0 0 10px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.about { margin-top: clamp(40px, 5vw, 64px); }
.about__p { margin-top: 14px; max-width: 36em; font-size: 18px; color: var(--text); }
.about__cols { display: grid; gap: 22px; margin-top: 26px; }
@media (min-width: 640px) { .about__cols { grid-template-columns: 1fr 1fr; } }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 16.5px; color: var(--ink); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--cat-design-s) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%236D28D9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks--q li::before { background: #fff1da url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' fill='none' stroke='%238a5a12' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* buy box */
.buy { display: grid; gap: 12px; padding: 22px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(3, 21, 20, .05); }
@media (min-width: 960px) { .buy { position: sticky; top: 92px; } }
.buy__k { font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.buy__price { display: flex; align-items: baseline; gap: 8px; margin-top: -4px; }
.buy__price small { font-size: 15px; color: var(--muted); }
.buy__price b { font-family: var(--display); font-size: 54px; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.buy__del { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); }
.buy__del svg { width: 18px; height: 18px; color: var(--cat-design-d); }
.seller { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--paper); text-decoration: none; color: inherit; transition: background-color .2s; }
.seller:hover { background: var(--paper-2); }
.seller img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cat-design); }
.seller span { display: grid; line-height: 1.2; }
.seller small { font-size: 12.5px; color: var(--muted); }
.seller b { display: inline-flex; align-items: center; gap: 5px; font-size: 17px; color: var(--ink); }
.seller b svg { width: 16px; height: 16px; }
.seller em { font-style: normal; font-size: 13px; color: var(--muted); }
.tot { display: grid; gap: 10px; padding-top: 4px; }
.tot__seg { width: 100%; }
.tot__seg .seg__b { flex: 1 1 0; white-space: nowrap; justify-content: center; min-height: 38px; padding: 0 10px; font-size: 13px; line-height: 1.15; text-align: center; }
.tot__dl { display: grid; gap: 6px; margin: 0; font-size: 15px; }
.tot__dl div { display: flex; justify-content: space-between; gap: 10px; }
.tot__dl dt { color: var(--muted); }
.tot__dl dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tot__fee { transition: opacity .3s; }
.tot__fee.is-off { opacity: .4; text-decoration: line-through; }
.tot__sum { padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 17px; }
.tot__sum dt { color: var(--ink); font-weight: 700; }
.tot__sum dd { font-size: 20px; }
.tot__note { font-size: 13px; color: var(--muted); }
.buy__hire { font-size: 13.5px; color: var(--muted); }
.buy__hire b { color: var(--ink); }
.buy__hold { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--teal); }
.buy__hold svg { width: 16px; height: 16px; flex: none; }
@media (min-width: 960px) and (max-height: 800px) {
  .pd__head { margin: 6px 0 14px; }
  .pd__title { font-size: 46px; }
  .pd { padding-top: 84px; }
  .pd .crumbs a { min-height: 28px; }
  .buy { gap: 8px; padding: 16px 20px 18px; }
  .buy__price b { font-size: 44px; }
  .buy .btn--lg { height: 50px; }
  .seller { padding: 7px 10px; }
  .seller img { width: 40px; height: 40px; }
  .tot { gap: 8px; }
  .tot__dl { gap: 4px; font-size: 14px; }
  .tot__sum { padding-top: 6px; }
  .buy__hire { font-size: 12.5px; line-height: 1.4; }
}

/* ═══ how buying works ═══ */
.hb { padding: clamp(64px, 7vw, 104px) 0; background: var(--paper); }
.hb__t { margin-bottom: 28px; }
.hb__list { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .hb__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.hbs { position: relative; display: grid; gap: 8px; align-content: start; padding: 0 0 22px; border-radius: 26px; background: #fff; overflow: hidden; box-shadow: var(--shadow-s); }
.hbs__art { position: relative; display: grid; place-items: center; height: 190px; margin-bottom: 8px; background: linear-gradient(160deg, var(--cat-design-s), #f5f1ff); }
.hbs:nth-child(2) .hbs__art { background: linear-gradient(160deg, #fff1da, #fff8ec); }
.hbs:nth-child(3) .hbs__art { background: linear-gradient(160deg, var(--teal-soft), #f1faf9); }
.hbs__n { position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-size: 16px; }
.hbs__t { padding: 0 22px; font-family: var(--display); font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.hbs__p { padding: 0 22px; font-size: 16px; color: var(--text); }
.rcpt { display: grid; grid-template-columns: 1fr auto; gap: 5px 22px; padding: 16px 18px 18px; width: 64%; border-radius: 12px 12px 4px 4px; background: #fff; box-shadow: 0 16px 30px -18px rgba(70, 40, 140, .5); font-size: 13px; color: var(--muted); -webkit-mask: radial-gradient(6px at 50% 100%, transparent 98%, #000) -6px 0 / 12px 100% repeat-x; mask: radial-gradient(6px at 50% 100%, transparent 98%, #000) -6px 0 / 12px 100% repeat-x; }
.rcpt i { font-style: normal; }
.rcpt i:nth-child(even), .rcpt b:nth-of-type(2) { text-align: end; font-variant-numeric: tabular-nums; }
.rcpt b { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-2); color: var(--ink); font-size: 15px; }
.rcpt__ok { position: absolute; right: 12%; top: 10%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cat-admin); color: #fff; box-shadow: 0 8px 18px -8px rgba(16, 185, 129, .9); }
.rcpt__ok svg { width: 22px; height: 22px; }
.hb.is-live .rcpt__ok { animation: stamp 3.6s var(--spring) infinite; }
@keyframes stamp { 0%, 15% { transform: scale(0) rotate(-30deg); opacity: 0; } 30%, 85% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.bub { max-width: 74%; padding: 12px 14px; border-radius: 18px 18px 4px 18px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.35; }
.att { position: absolute; left: 14%; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-s); font-weight: 700; font-size: 12.5px; color: var(--ink); }
.att i { width: 22px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, var(--tan), var(--cream)); }
.hb.is-live .bub { animation: bub 3.6s var(--spring) infinite; transform-origin: 100% 100%; }
@keyframes bub { 0%, 8% { transform: scale(.6); opacity: 0; } 22%, 90% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.hbs__art--ok { gap: 14px; align-content: center; }
.dl { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-s); font-weight: 700; font-size: 14px; color: var(--ink); }
.dl svg { width: 30px; height: 30px; color: var(--tan); --mk2: #fff; }
.appr { position: relative; display: grid; grid-template-rows: 46px; height: 46px; min-width: 190px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; overflow: hidden; transition: background-color .35s, transform .3s var(--spring); }
.appr:active { transform: scale(.95); }
.appr > span { grid-area: 1 / 1; display: grid; place-items: center; height: 46px; transition: transform .5s var(--spring), opacity .3s; }
.appr__b { transform: translateY(120%); opacity: 0; }
.appr[aria-pressed="true"] { background: var(--cat-admin-d); }
.appr[aria-pressed="true"] .appr__a { transform: translateY(-120%); opacity: 0; }
.appr[aria-pressed="true"] .appr__b { transform: none; opacity: 1; }
.hbs__art--ok { overflow: visible; }
.hb__cap { margin-top: 20px; }

/* close */
.ls-close { padding: clamp(56px, 6vw, 96px) 0 clamp(72px, 8vw, 120px); }
.ls-close__card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; padding: clamp(24px, 3vw, 40px); border-radius: 30px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; overflow: hidden; }
.ls-close__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--cat-design), var(--cat-writing), var(--orange)); }
.ls-close__p { margin-top: 8px; max-width: 32em; font-size: 17px; color: var(--text); }
.ls-close__cta { display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .steam i, .cn__mk, .sign, .kit__sw i, .rcpt__ok, .bub { animation: none !important; }
  .sl { transition: none; }
}

/* phone pass: Approve centred in its pill; carousel dots and pay toggle get 40px targets (same look) */
@media (max-width: 767px) {
  .appr > span { height: 46px; }
  .car__dots button { height: 40px; margin-block: -6px; }
  .car__dots i { top: 18px; }
  .tot__seg .seg__b { min-height: 40px; }
}
