/* Paraiba — homepage / catalogue */

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero__copy .display { margin: 22px 0 0; }
.hero__sub { max-width: 440px; font-size: 18px; color: var(--ink-2); margin: 26px 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero__blob--a { width: 520px; height: 520px; background: var(--paraiba-glow); right: -120px; top: -80px; animation: drift 14s ease-in-out infinite alternate; }
.hero__blob--b { width: 360px; height: 360px; background: var(--copper-soft); right: 26%; bottom: -160px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }

.hero__art { position: relative; height: clamp(400px, 46vw, 580px); }
.polaroid {
  position: absolute; margin: 0; padding: 10px 10px 34px; background: var(--paper);
  border-radius: 6px; box-shadow: var(--shadow-lg);
  transition: transform .6s var(--ease);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: var(--mist); }
.polaroid:empty::before { content: ""; display: block; height: 100%; border-radius: 3px; background: var(--mist); } /* blank frame until the catalogue loads */
.polaroid img { animation: fade .5s ease; }
.polaroid figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 8px;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.polaroid--1 { width: 48%; aspect-ratio: 4/5.4; left: 2%; top: 8%; transform: rotate(-7deg); z-index: 2; }
.polaroid--2 { width: 44%; aspect-ratio: 4/5.4; right: 4%; top: 0; transform: rotate(5deg); z-index: 1; }
.polaroid--3 { width: 42%; aspect-ratio: 4/5.4; left: 34%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }
.hero__art:hover .polaroid--1 { transform: rotate(-10deg) translate(-8px, -6px); }
.hero__art:hover .polaroid--2 { transform: rotate(8deg) translate(8px, -6px); }
.hero__art:hover .polaroid--3 { transform: rotate(0deg) translateY(6px); }
.polaroid[data-id] { cursor: pointer; }
.hero__sticker { position: absolute; right: 0; bottom: 6%; z-index: 4; }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { height: 380px; max-width: 460px; width: 100%; margin: 8px auto 0; }
  .hero__sticker { width: 104px; height: 104px; right: -4px; bottom: 0; }
  .hero__sticker .sticker__core { font-size: 20px; }
}

/* ---------- shop ---------- */
.shop { padding: 40px 0 24px; scroll-margin-top: 60px; }
.shop__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.shop__head .h2 { margin-top: 12px; }
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px;
  background: var(--paper); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  width: min(340px, 100%); transition: box-shadow .2s;
}
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search input { border: 0; outline: 0; background: none; font: inherit; font-size: 15px; width: 100%; color: var(--ink); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

/* category cards — the "mini catalogue" covers */
.cats {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; margin: 0 -2px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  position: relative; scroll-snap-align: start; border: 0; padding: 0; text-align: left;
  aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; background: var(--ink);
  color: #fff; isolation: isolate; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,20,24,0) 35%, rgba(16,20,24,.82)); }
.cat:hover { transform: translateY(-4px); }
.cat:hover img { transform: scale(1.06); }
.cat__txt { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.cat__name { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; display: block; }
.cat__blurb { font-size: 13px; opacity: .85; display: block; margin-top: 6px; }
.cat__count {
  position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 12px; font-weight: 800;
}
.cat[aria-selected="true"] { box-shadow: 0 0 0 3px var(--pearl), 0 0 0 6px var(--paraiba), var(--shadow-lg); }
.cat[aria-selected="true"] .cat__count { background: var(--paraiba); }
.cat--all { background: var(--paraiba); color: var(--ink); }
.cat--all::after { display: none; }
.cat--all .cat__name { font-style: italic; font-size: 42px; }
.cat.cat--all .cat__count { background: var(--ink); color: var(--paraiba-glow); }
@media (max-width: 600px) { .cats { grid-auto-columns: 46%; } .cat__name { font-size: 26px; } .cat__blurb { display: none; } }

/* sticky chip bar — always-available category switcher while scrolling the grid */
.chipbar { position: sticky; top: 68px; z-index: 30; padding: 10px 0; background: color-mix(in srgb, var(--pearl) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (max-width: 760px) { .chipbar { top: 60px; } }
.chipbar__in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chipbar__in::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip sup { font-size: 10px; margin-left: 3px; opacity: .6; }

.grid-head { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 18px; scroll-margin-top: 140px; }
@media (max-width: 760px) { .grid-head { scroll-margin-top: 126px; } }
.grid-head h3 { font-size: 38px; line-height: 1; }
.grid-head span { font-size: 14px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.item { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.item__img { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; background: var(--mist); box-shadow: var(--shadow); }
.item__hit { display: block; width: 100%; height: 100%; }
.item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.item__img img + img { position: absolute; inset: 0; opacity: 0; }
.item:hover .item__img img:first-child { transform: scale(1.05); }
.item:hover .item__img img + img { opacity: 1; }
@media (hover: none) { .item__img img + img { display: none; } } /* phones: no hover, so don't download the second photo */
.item__badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 10px; border-radius: 999px;
  background: var(--paraiba); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  transform: rotate(-4deg);
}
.item__badge--out { background: var(--ink); color: var(--paper); transform: none; }
.item__quick {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--wa); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), background .2s, color .2s;
}
.item__quick svg { width: 22px; height: 22px; }
.item__quick:hover { transform: scale(1.1); background: var(--wa); color: #fff; }
.item__txt { text-decoration: none; color: inherit; padding: 12px 4px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.item__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.item__price { font-weight: 800; font-size: 15px; white-space: nowrap; }
.item__price s { font-weight: 500; color: var(--ink-3); font-size: 13px; margin-right: 4px; }
.item__price--ask { font-weight: 600; font-size: 13px; color: var(--paraiba-deep); }
.item.is-out .item__img img { filter: grayscale(.6); opacity: .75; }
@media (max-width: 680px) { .item__txt { flex-direction: column; gap: 2px; } .item__name, .item__price { font-size: 14px; } }

.skel { aspect-ratio: 4/5; border-radius: var(--r); background: linear-gradient(100deg, var(--mist) 30%, #f7fbfa 50%, var(--mist) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { text-align: center; padding: 48px 16px; font-size: 18px; color: var(--ink-2); }

/* ---------- how ---------- */
.how { padding: 110px 0 40px; }
.how .h2 { margin-top: 12px; }
.how__steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how__steps li { background: var(--paper); border-radius: var(--r-lg); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.how__steps li:nth-child(2) { background: var(--mist); transition-delay: .1s; }
.how__steps li:nth-child(3) { background: var(--ink); color: var(--paper); transition-delay: .2s; }
.how__steps li:nth-child(3) p { color: rgba(255,255,255,.7); }
.how__n { font-weight: 800; font-size: 12px; letter-spacing: .1em; color: var(--copper); }
.how__steps h3 { font-size: 38px; line-height: 1; margin: 46px 0 10px; }
.how__steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .how__steps { grid-template-columns: 1fr; } .how__steps h3 { margin-top: 24px; } }

/* ---------- store ---------- */
.store { padding: 80px 0 0; scroll-margin-top: 60px; }
.store__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.store__img { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.store__img img { width: 100%; height: 100%; object-fit: cover; }
.store__img figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: var(--paper); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.store__copy .h2 { margin-top: 12px; }
.store__lede { font-size: 18px; max-width: 460px; margin: 18px 0 0; }
.store__dl { margin: 28px 0 0; display: grid; gap: 0; }
.store__dl div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.store__dl dt { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.store__dl dd { margin: 0; font-weight: 600; }
.store__dl a { text-decoration: none; }
@media (max-width: 860px) { .store__in { grid-template-columns: 1fr; } .store__img { aspect-ratio: 5/4; } }

/* ---------- product sheet ---------- */
.sheet {
  border: 0; padding: 0; margin: auto; background: var(--paper); color: var(--ink);
  width: min(980px, calc(100% - 32px)); max-height: min(92vh, 760px); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.sheet::backdrop { background: rgba(16,20,24,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: pop .45s var(--ease); }
.sheet[open]::backdrop { animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.sheet__in:focus { outline: none; }
.sheet__in { display: grid; grid-template-columns: 1.05fr 1fr; max-height: inherit; }
.sheet__x {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow);
}
.sheet__x svg { width: 20px; height: 20px; }
.sheet__media { position: relative; background: var(--mist); min-height: 0; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; max-height: min(92vh, 760px); object-fit: cover; scroll-snap-align: center; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.6); transition: width .3s var(--ease), background .3s; }
.dots button[aria-current="true"] { width: 24px; background: #fff; }
.sheet__body { padding: clamp(24px, 4vw, 44px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.sheet__cat { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.sheet__name { font-size: clamp(40px, 5vw, 58px); line-height: 1; margin: 12px 0 0; }
.sheet__price { margin: 16px 0 0; font-size: 24px; font-weight: 800; }
.sheet__price s { font-size: 16px; font-weight: 500; color: var(--ink-3); margin-left: 8px; }
.sheet__price .off { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--copper-soft); color: var(--copper); font-size: 12px; vertical-align: middle; }
.sheet__price--ask { font-size: 17px; color: var(--paraiba-deep); }
.sheet__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.sheet__tags span { padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--paraiba-deep); font-size: 12px; font-weight: 700; }
.sheet__desc { color: var(--ink-2); margin: 18px 0 0; white-space: pre-line; }
.sheet__meta { margin: 18px 0 0; display: grid; }
.sheet__meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sheet__meta dt { color: var(--ink-3); }
.sheet__meta dd { margin: 0; font-weight: 700; text-align: right; }
.sheet__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; }
.sheet__actions .btn--ghost { flex: none; width: 48px; padding: 0; }

@media (max-width: 760px) {
  /* bottom sheet on phones */
  .sheet { width: 100%; max-width: none; margin: auto 0 0; max-height: 94vh; max-height: 94dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .sheet[open] { animation: up .45s var(--ease); }
  @keyframes up { from { transform: translateY(100%); } }
  /* plain block stack: a grid row + aspect-ratio + % heights let the photo spill over the title on mobile Safari */
  .sheet__in { display: block; overflow-y: auto; overscroll-behavior: contain; max-height: 94vh; max-height: 94dvh; }
  .sheet__media { height: min(100vw, 62vh); height: min(100vw, 62dvh); }
  .slides img { max-height: none; }
  .sheet__body { overflow: visible; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .sheet__actions { position: sticky; bottom: 0; background: var(--paper); padding: 16px 0 8px; margin-top: 20px; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px;
  pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Phase 1: shop-the-reel drops, shortlist
   ===================================================================== */

/* ---------- latest drop ---------- */
.drop { padding: 24px 0 72px; }
.drop__in {
  display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px);
  position: relative; overflow: hidden; isolation: isolate;
}
.drop__in::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,196,188,.45), transparent 65%);
}
.drop__reel {
  position: relative; display: block; aspect-ratio: 9/16; max-height: 560px; border-radius: 20px; overflow: hidden;
  background: #1d2329; box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); text-decoration: none; color: #fff;
}
.drop__reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.drop__reel:hover img { transform: scale(1.04); }
.drop__reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,20,24,.35), transparent 30%, transparent 60%, rgba(16,20,24,.7)); }
.drop__date {
  position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--paraiba); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.drop__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); transition: transform .3s var(--ease);
}
.drop__play svg { width: 26px; height: 26px; margin-left: 3px; }
.drop__reel:hover .drop__play { transform: scale(1.08); }
.drop__watch { position: absolute; z-index: 1; left: 16px; bottom: 14px; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.drop__copy { min-width: 0; }
.drop__copy .kicker { color: var(--paraiba-glow); }
.drop__copy .h2 { margin-top: 12px; color: var(--paper); }
.drop__sub { color: rgba(255,255,255,.72); font-size: 17px; max-width: 520px; margin: 14px 0 0; }
.drop__copy .btn--ghost { --fg: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.drop__copy .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.drop__copy .btn:not(.btn--ghost) { --bg: var(--paraiba); --fg: var(--ink); }
.drop__strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; margin-top: 26px; padding-bottom: 6px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.drop__strip::-webkit-scrollbar { display: none; }
.mini { scroll-snap-align: start; text-decoration: none; color: inherit; display: grid; gap: 4px; }
.mini__img { display: block; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; background: #1d2329; }
.mini__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mini:hover .mini__img img { transform: scale(1.06); }
.mini__name { font-size: 13px; font-weight: 700; line-height: 1.25; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__price { font-size: 12px; color: var(--paraiba-glow); font-weight: 700; }
.drop__past { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 13px; }
.drop__past span { color: rgba(255,255,255,.5); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; margin-right: 4px; }
.drop__past a { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); text-decoration: none; font-weight: 700; }
.drop__past a:hover { background: rgba(255,255,255,.16); }
.btn svg use[href="#i-play"] { fill: currentColor; }
@media (max-width: 760px) {
  .drop__in { grid-template-columns: 1fr; }
  .drop__reel { aspect-ratio: 4/5; max-height: none; }
  .drop__strip { grid-auto-columns: 116px; }
}

/* "Shop by reel" row under the categories — same cards, each opens a drop page */
.reels { margin-top: 18px; }
.reels .kicker { margin: 0 0 12px; }
.reels .cat { text-decoration: none; }

/* drop page (/d/<id>): just the reel and its pieces */
.is-droppage .hero, .is-droppage .how, .is-droppage .shop__head, .is-droppage .cats, .is-droppage .chipbar { display: none; }
.is-droppage .drop { padding-top: 28px; padding-bottom: 8px; }
.is-droppage .grid-head { scroll-margin-top: 84px; }

/* ---------- hearts ---------- */
.item__heart {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .25s var(--ease), color .2s;
}
.item__heart svg, .sheet__heart svg, .bagbtn svg, .bagpill svg { width: 20px; height: 20px; }
.item__heart:hover { transform: scale(1.1); }
.item__heart[aria-pressed="true"], .sheet__heart[aria-pressed="true"] { color: #e0475b; --heart-fill: #e0475b; }
.item__heart[aria-pressed="true"] svg, .sheet__heart[aria-pressed="true"] svg { animation: pulse .4s var(--ease); }
@keyframes pulse { 50% { transform: scale(1.3); } }
.sheet__actions .sheet__heart { flex: none; width: 48px; padding: 0; }

.bagbtn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--ink); transition: background .2s;
}
.bagbtn:hover { background: rgba(16,20,24,.06); }
.bagbtn.has-items { color: #e0475b; --heart-fill: #e0475b; }
.bagbtn__n {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

/* floating "send shortlist" pill */
.bagpill {
  position: fixed; left: 50%; bottom: 20px; z-index: 45; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 18px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg);
  --heart-fill: #e0475b; animation: pillIn .45s var(--ease);
}
.bagpill svg { color: #e0475b; }
.bagpill b { height: 38px; padding: 0 14px; border-radius: 999px; background: var(--wa); color: #fff; display: grid; place-items: center; }
@keyframes pillIn { from { opacity: 0; transform: translate(-50%, 20px); } }
@media (max-width: 760px) { .bagpill { left: 16px; transform: none; bottom: 22px; } @keyframes pillIn { from { opacity: 0; transform: translateY(20px); } } }

/* ---------- shortlist drawer ---------- */
.bag {
  border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; max-width: 100%; width: min(440px, 100%);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg);
}
.bag::backdrop { background: rgba(16,20,24,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.bag[open] { animation: bagIn .4s var(--ease); }
@keyframes bagIn { from { transform: translateX(40px); opacity: 0; } }
.bag__in { display: flex; flex-direction: column; height: 100%; }
.bag__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 24px 22px 16px; border-bottom: 1px solid var(--line); }
.bag__head h2 { font-size: 36px; line-height: 1; margin-top: 8px; }
.bag__x { position: static; flex: none; }
.bag__list { list-style: none; margin: 0; padding: 8px 22px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.bag__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bag__thumb { display: block; width: 64px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--mist); }
.bag__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag__txt { text-decoration: none; color: inherit; min-width: 0; }
.bag__name { display: block; font-weight: 700; line-height: 1.3; }
.bag__meta { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.bag__price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.bag__price .muted { font-weight: 600; font-size: 12px; }
.bag__rm { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.bag__rm:hover { background: rgba(16,20,24,.06); color: var(--ink); }
.bag__rm svg { width: 16px; height: 16px; }
.bag__empty { flex: 1; padding: 40px 22px; text-align: center; }
.bag__empty .serif { font-size: 30px; margin: 0 0 8px; }
.bag__foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--paper); }
.bag__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.bag__total span { color: var(--ink-2); font-weight: 600; }
.bag__total b { font-size: 22px; }
.bag__total small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.bag__gift { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.bag__gift input { width: 18px; height: 18px; accent-color: var(--paraiba-deep); }
.bag__clear { border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 4px; }
.bag__clear:hover { color: var(--ink); }

/* ---------- shop by budget ---------- */
.budgets { display: flex; align-items: center; gap: 8px; margin: -4px 0 18px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.budgets::-webkit-scrollbar { display: none; }
.budgets__label { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.bchip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.bchip:hover { box-shadow: inset 0 0 0 1px var(--paraiba-deep); color: var(--paraiba-deep); }
.bchip[aria-pressed="true"] { background: var(--paraiba); color: var(--ink); box-shadow: none; }
.bchip sup { font-size: 10px; margin-left: 3px; opacity: .6; }
.bchip.is-empty { opacity: .45; }
.budget-note { margin: 22px 0 0; padding: 14px 18px; border-radius: var(--r); background: var(--mist); color: var(--ink-2); font-size: 14px; text-align: center; }
.budget-note a { color: var(--paraiba-deep); font-weight: 700; }

/* reel preview video over the cover */
.drop__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.drop__reel.is-playing .drop__video { opacity: 1; }
.drop__reel.is-playing .drop__play { opacity: 0; transform: scale(.8); }
.drop__play { transition: transform .3s var(--ease), opacity .4s; }
