/* Shop additions on top of site.css (the home page's own styles). Same tokens, radii, buttons and type. */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
.dim { color: var(--dim); }
.center { text-align: center; }

/* The header is always on here (no intro on this page). */
.bar { opacity: 1; transform: none; pointer-events: auto; }
.bagbtn { position: relative; }
.bagbtn b { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: #041a10; color: var(--aurora); font: 600 .74rem/1 var(--body); }
.bagbtn.pulse { box-shadow: 0 0 0 6px rgba(125, 240, 184, .18), 0 10px 40px -4px rgba(125, 240, 184, .8); }

.preview { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--ember); color: #2a1503; font: 500 .62rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; max-width: calc(100% - 32px); }

/* Arrival */
.arrival .copy { justify-content: flex-end; }
.arrival .copy > .mono { color: var(--aurora); }
.arrival .readout { color: rgba(233, 238, 246, .72); font-size: .66rem; line-height: 1.7; }
.arrival .readout b { color: var(--aurora); font-weight: 500; }

/* Collection */
.collection { background: linear-gradient(var(--space), var(--night)); }
.shelf { max-width: 74rem; margin: 2.5rem auto 0; }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 1.4rem; padding: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font-family: var(--display); font-size: .9rem; padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--dim); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { color: var(--ink); }
.chip.on { color: var(--ink); border-color: rgba(125, 240, 184, .55); background: rgba(125, 240, 184, .1); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
.prod { display: grid; gap: .8rem; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; align-content: start; }
.tile, .pv { position: relative; overflow: hidden; border: 1px solid var(--line); background: #dfe5ea url(/photos/shop-stage.webp) center top / cover no-repeat; }
.pv { background-image: url(/photos/shop-stage-wide.webp); }
.tile { aspect-ratio: 4 / 4.6; border-radius: 22px; transition: border-color .3s ease, transform .3s ease; }
.tile::after, .pv::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(6, 9, 18, .35), rgba(6, 9, 18, 0) 16%); }
.tile svg, .pv svg { position: absolute; z-index: 1; left: 10%; top: 12%; width: 80%; height: 80%; filter: drop-shadow(0 0 1px rgba(233, 238, 246, .3)) drop-shadow(0 24px 30px rgba(0, 0, 0, .6)); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.tile img.mock, .pv img.mock { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .no { position: absolute; z-index: 2; top: 14px; left: 16px; font: 400 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(233, 238, 246, .75); }
.prod:hover .tile { border-color: rgba(125, 240, 184, .5); transform: translateY(-2px); }
.prod:hover .tile svg { transform: translateY(-4px) scale(1.03); }
.prod:focus-visible { outline: none; }
.prod:focus-visible .tile { outline: 2px solid var(--aurora); outline-offset: 3px; }
.prod-meta { display: grid; gap: .3rem; padding-inline: 2px; }
.prod-meta h3 { font-size: 1.05rem; }
.prod-meta .tag { color: var(--dim); font-size: .92rem; line-height: 1.4; }
.prod-meta .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: .2rem; }
.prod-meta .price { font-weight: 600; }
.dots { display: flex; gap: 5px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(233, 238, 246, .35); }
@media (max-width: 520px) { .prod-meta .tag { display: none; } .prod-meta h3 { font-size: .95rem; } }

.crew-photo { margin: 0; }
.fluent { background: var(--night); }
.fluent .includes { margin-top: 2.5rem; }
.promise { background: var(--night); padding-top: 0; }
.promise .trio { margin-top: 0; }

/* Coziness and bag meters: the header's progress line, grown up */
.meterbar { position: relative; height: 4px; border-radius: 4px; background: var(--line); }
.meterbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--aurora), #9fe7ff 55%, var(--violet)); box-shadow: 0 0 12px rgba(125, 240, 184, .5); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.meterbar .goal { position: absolute; left: 55.5%; top: -5px; bottom: -5px; width: 2px; background: var(--ink); opacity: .55; border-radius: 2px; }

/* Dialogs, in the look of the home page's cards */
dialog { padding: 0; border: 0; color: var(--ink); max-width: none; max-height: none; background: linear-gradient(160deg, rgba(125, 240, 184, .07), rgba(183, 162, 255, .05) 70%), var(--night); }
dialog::backdrop { background: rgba(2, 4, 10, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.x { margin: 0; }
.x button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(6, 9, 18, .55); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.x button:hover { border-color: rgba(233, 238, 246, .4); }

.sheet { width: 100%; height: 100%; margin: 0; }
.sheet > .x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 3; }
.sheet-in { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pv { aspect-ratio: 1 / 1; border: 0; border-bottom: 1px solid var(--line); }
.pinfo { display: grid; gap: 1rem; padding: 1.5rem var(--gutter-r) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.pinfo > .mono { color: var(--aurora); }
.pinfo h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
.ptag { font-family: var(--display); font-size: 1.05rem; line-height: 1.35; color: var(--ink); margin-top: -.3rem; }
.pprice { font: 600 1.2rem/1 var(--body); }
.pblurb { color: var(--dim); }
.cozy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(11, 18, 34, .6); }
.cozy .cozy-l { grid-column: 1 / -1; color: var(--dim); font-size: .9rem; }
.opt { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; }
.opt legend { font-weight: 600; padding: 0; margin-bottom: .6rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: none; cursor: pointer; }
.sw i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(233, 238, 246, .3); }
.sw[aria-checked="true"] { border-color: var(--aurora); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.sz { min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 500; transition: border-color .2s; }
.sz:hover { border-color: rgba(233, 238, 246, .4); }
.sz[aria-checked="true"] { border-color: var(--aurora); background: rgba(125, 240, 184, .12); color: var(--ink); }
.need { color: var(--ember); font-size: .92rem; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.addrow { display: flex; gap: 10px; align-items: stretch; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; min-height: 48px; border: 0; background: none; cursor: pointer; font-size: 1.15rem; }
.qty output { min-width: 22px; text-align: center; font-weight: 600; }
.add { flex: 1; justify-content: center; }
.details { margin: .2rem 0 0; padding: 1rem 0 0 1.1rem; border-top: 1px solid var(--line); color: var(--dim); display: grid; gap: .3rem; }

@media (min-width: 860px) {
  .sheet { width: min(1040px, calc(100vw - 48px)); height: auto; max-height: calc(100vh - 48px); margin: auto; border-radius: 22px; border: 1px solid var(--line); }
  .sheet-in { display: grid; grid-template-columns: 1.1fr 1fr; max-height: calc(100vh - 48px); }
  .pv { aspect-ratio: auto; min-height: 580px; border-bottom: 0; border-right: 1px solid var(--line); }
  .pinfo { padding: 2.6rem 2.4rem; align-content: start; overflow-y: auto; }
}

.bag { width: 100%; height: 100%; margin: 0; }
@media (min-width: 640px) { .bag { width: 440px; margin: 0 0 0 auto; border-left: 1px solid var(--line); } }
.bag-in { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.bag-top { display: flex; justify-content: space-between; align-items: center; padding: max(14px, env(safe-area-inset-top)) var(--gutter-r) 14px var(--gutter-l); border-bottom: 1px solid var(--line); }
.bag-top h2 { font-size: 1.2rem; }
.bag-scroll { overflow-y: auto; }
.meter { margin: 1rem var(--gutter-r) .3rem var(--gutter-l); padding: 1rem 1.1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(6, 9, 18, .45); display: grid; gap: .75rem; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; }
.meter-top b { font: 500 1rem/1 var(--display); color: var(--aurora); }
.meter-msg { font-size: .92rem; color: var(--dim); }
.meter-msg b { color: var(--ink); font-weight: 600; }
.bag-list { padding: 0 var(--gutter-r) 6px var(--gutter-l); }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .th { position: relative; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: #dfe5ea url(/photos/shop-stage.webp) center 40% / cover; }
.line .th::after { content: none; }
.line .th svg { position: absolute; z-index: 1; top: 8%; left: 8%; width: 84%; height: 84%; filter: drop-shadow(0 0 1px rgba(233, 238, 246, .3)); }
.line .th img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.line h3 { font-size: .98rem; }
.line .opts { color: var(--dim); font-size: .88rem; display: block; margin-top: 2px; }
.line .ctl { display: flex; align-items: center; gap: 2px; margin-top: 6px; }
.line .ctl button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; }
.line .ctl span { min-width: 26px; text-align: center; }
.line .ctl .rm { width: auto; height: auto; border: 0; border-radius: 0; padding: 4px 0; margin-left: 10px; color: var(--dim); text-decoration: underline; font-size: .85rem; }
.line .lp { font-weight: 600; align-self: start; padding-top: 2px; }
.empty { padding: 2.5rem 0; text-align: center; color: var(--dim); display: grid; gap: 1rem; justify-items: center; }
.bag-foot { display: grid; gap: .7rem; padding: 1rem var(--gutter-r) calc(1.1rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l); border-top: 1px solid var(--line); background: var(--space); }
.shipto { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shipto span { color: var(--dim); }
.shipto select { flex: 1; max-width: 250px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--night); color: var(--ink); font: inherit; }
.sum { display: flex; justify-content: space-between; font-size: 1.05rem; }
.sum.dim2 { font-size: .95rem; color: var(--dim); }
.wide { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: progress; }
.status { margin: 0; font-size: .92rem; padding: .8rem 1rem; border-radius: 14px; border: 1px solid rgba(255, 176, 102, .45); color: var(--ink); }
.bag .fine { font-size: .8rem; }

/* The shooting star that carries an item to the bag (the home page's star, put to work) */
.streak { position: fixed; z-index: 60; left: 0; top: 0; width: 120px; height: 2px; pointer-events: none; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(125, 240, 184, .4), #eafff4); box-shadow: 0 0 12px rgba(125, 240, 184, .9); }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70; max-width: calc(100vw - 32px); text-align: center; padding: 12px 18px; border-radius: 18px; background: rgba(8, 12, 26, .92); border: 1px solid rgba(125, 240, 184, .35); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .95rem; transition: opacity .3s ease, transform .3s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { .tile, .tile svg, .toast, .meterbar i { transition: none; } .shake { animation: none; } }

/* Crew store (opened from the Guest Desk) */
[hidden] { display: none !important; }
.crewbar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 41; background: #7df0b8; color: #062016; font: 500 .8rem/1.35 system-ui, sans-serif; padding: 9px 16px; border-radius: 999px; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); }

.sz:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }

/* Product photo gallery (transparent Printful mockups over the aurora) */
.tile img.mock.cut, .pv img.mock.cut { object-fit: contain; object-position: center bottom; padding: 12% 6% 4%; filter: drop-shadow(0 14px 18px rgba(20,30,40,.35)); }
.pv .gal { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(233,238,246,.25); background: rgba(6,9,18,.55); color: #e9eef6; font-size: 26px; line-height: 1; cursor: pointer; }
.pv .gal.prev { left: 12px; } .pv .gal.next { right: 12px; }
.pv .galdots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.pv .galdots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(233,238,246,.35); cursor: pointer; }
.pv .galdots button[aria-current="true"] { background: var(--aurora); }

/* Background video: hidden until it actually plays (no stray play button on iPhone) */
.arrival video, .finale video { opacity: 0; transition: opacity .8s ease; }
.arrival video.on, .finale video.on { opacity: 1; }
video::-webkit-media-controls-start-playback-button, video::-webkit-media-controls { display: none !important; -webkit-appearance: none; }

/* Product cards never wider than their column */
.prod, .prod-meta, .prod .tile { min-width: 0; }
.prod-meta .row { flex-wrap: wrap; row-gap: 6px; }
.dots { flex-wrap: wrap; align-items: center; }
.dots em { font-style: normal; font-size: .72rem; color: var(--dim); margin-left: 2px; }

/* Phones: shorter arrival so the products are one swipe away */
@media (max-width: 760px) {
  .arrival { min-height: 0; }
  .arrival .copy { min-height: 0; padding-top: calc(96px + env(safe-area-inset-top, 0px)); padding-bottom: 2.2rem; gap: 1rem; }
  .arrival h1 { font-size: clamp(2rem, 8.6vw, 3.2rem); }
  .arrival .sub { font-size: 1rem; }
  .arrival .readout { display: none; }
  .arrival .cue { display: none; }
  .collection { padding-top: 2.2rem; }
  .collection .scene-head { gap: .6rem; margin-bottom: 1.2rem; }
  .collection .scene-head h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .collection .lede { font-size: .98rem; }
  .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.kitnote { margin: .2rem 0 .6rem; padding: .6rem .85rem; border-radius: 12px; border: 1px solid rgba(125, 240, 184, .35); background: rgba(125, 240, 184, .08); color: var(--ink); font-size: .9rem; }
a.prod { text-decoration: none; }
.pricerow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sharebtn { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 .85rem/1 var(--body); cursor: pointer; }
.sharebtn:hover { border-color: rgba(125, 240, 184, .55); }
.sharemenu { display: flex; flex-wrap: wrap; gap: 8px; margin: .2rem 0 .8rem; }
.sharemenu a, .sharemenu button { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: rgba(125, 240, 184, .06); color: var(--ink); font: 500 .85rem/1 var(--body); text-decoration: none; cursor: pointer; }
.realphoto { margin: .1rem 0 .6rem; font: 400 .7rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--aurora); }
.finalsale { margin-top: .8rem; font-size: .82rem; color: var(--dim); }
.finalsale a { color: var(--dim); text-decoration: underline; }
/* The page opens straight on the collection (Nick, Nov 14): no big hero. */
.collection { position: relative; padding-top: calc(120px + env(safe-area-inset-top, 0px)); background: radial-gradient(90% 60% at 70% 0%, rgba(125, 240, 184, .16), rgba(120, 110, 255, .06) 45%, transparent 70%), linear-gradient(var(--space), var(--night)); }
.collection .scene-head h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 500; line-height: 1.02; }
.collection .scene-head > .mono { color: var(--aurora); }
.tourlink { align-self: flex-start; color: var(--dim); font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.tourlink:hover { color: var(--ink); }
@media (max-width: 760px) { .collection { padding-top: calc(92px + env(safe-area-inset-top, 0px)); } .collection .scene-head h1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); } }
.tourlink { display: inline-block; width: max-content; max-width: 100%; }
