/* ==========================================================
   MØSH — SHOP + PRODUCT PAGES
   Loaded after style.css, so it uses the same colours and fonts.
   ========================================================== */

.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* extra buttons */
.btn--burgundy { background: var(--burgundy); color: var(--bone); }
.btn--burgundy:hover { background: #3A3A3A; }
.btn--outline { border: 1px solid var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--paper); }
.btn--block { display: block; width: 100%; text-align: center; padding: 17px 20px; }
.btn--block + .btn--block { margin-top: 10px; }

.link-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
}

/* ==========================================================
   SHOP BANNER — dark and grainy, artwork ghosted behind,
   one huge line of type, the two tees in front
   ========================================================== */
.banner {
  position: relative;
  height: clamp(420px, 66vh, 660px);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #2C2C2C 0%, #161616 55%, #0B0B0B 100%);
  color: var(--bone);
  isolation: isolate;
}
/* film grain */
.banner::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.banner__ghost {
  position: absolute; z-index: 0; pointer-events: none;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: screen;
}
.banner__ghost--a { width: min(62vw, 760px); left: -8%; top: -10%; opacity: .16; transform: rotate(-12deg); }
.banner__ghost--b { width: min(38vw, 460px); right: -4%; bottom: -14%; opacity: .12; transform: rotate(9deg); }

.banner__corner {
  position: absolute; z-index: 5;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6;
  color: #BDBDBD;
}
.banner__corner--tl { top: 22px; left: var(--pad); }
.banner__corner--tr { top: 22px; right: var(--pad); }
.banner__corner--bl { bottom: 22px; left: var(--pad); }
.banner__corner--br { bottom: 22px; right: var(--pad); text-align: right; }

.banner__title {
  position: absolute; z-index: 1; left: 0; right: 0; top: 13%;
  margin: 0; text-align: center;
  font-family: var(--display); font-weight: 400;
  font-size: min(12.2vw, 21vh); line-height: .86;
  text-transform: uppercase; white-space: nowrap;
  color: #F2F2EF;
}

.banner__rack {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: -4%;
  display: flex; justify-content: center; align-items: flex-end; gap: 2vw;
}
.rack__item { position: relative; display: block; }
.banner__rack img {
  width: min(24vw, 40vh); height: auto;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .65));
}
.rack__item + .rack__item img { transform: rotate(4deg); }
.rack__item + .rack__item { margin-left: -2vw; }

/* the small curved arrows naming each tee */
.tag {
  position: absolute; z-index: 3; top: 26%;
  display: flex; align-items: flex-start; gap: 4px;
  font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: .02em; text-transform: uppercase;
  color: #BDBDBD; white-space: nowrap; pointer-events: none;
}
.tag--l { right: 88%; }
.tag--r { left: 90%; }
.tag__arrow { width: 54px; height: 34px; margin-top: 8px; flex: none; }
.tag__arrow path { fill: none; stroke: #BDBDBD; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rack__item:hover .tag { color: #fff; }
.rack__item:hover .tag__arrow path { stroke: #fff; }

/* ==========================================================
   SHOP GRID
   ========================================================== */
.shop { padding: 34px var(--pad) 80px; }
.shop__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}

/* ==========================================================
   PRODUCT PAGE
   ========================================================== */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: 28px var(--pad) 72px;
  align-items: start;
}

/* ----- gallery ----- */
.pd__gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.pd__thumbs { display: flex; flex-direction: column; gap: 10px; }
.pd__thumb {
  aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid transparent; opacity: .6;
  transition: opacity .2s, border-color .2s;
}
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumb:hover { opacity: 1; }
.pd__thumb.is-on { opacity: 1; border-color: var(--burgundy); }

.pd__stage { position: relative; }
.pd__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #C7C7C7;
  cursor: zoom-in;
}
.pd__track::-webkit-scrollbar { display: none; }
.pd__slide { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.pd__slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; }

.pd__arrow {
  position: absolute; top: 50%; z-index: 3;
  width: 40px; height: 40px; margin-top: -20px;
  border-radius: 50%;
  background: rgba(236, 236, 236, .88); color: var(--charcoal);
  font-size: 24px; line-height: 38px;
  transition: background .2s;
}
.pd__arrow:hover { background: var(--paper); }
.pd__arrow--prev { left: 14px; }
.pd__arrow--next { right: 14px; }

.pd__dots {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.pd__dots span {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(236, 236, 236, .55);
  transition: width .3s, background .3s;
}
.pd__dots span.is-on { width: 22px; background: var(--paper); }

.pd__label {
  position: absolute; z-index: 3; left: 12px; top: 12px;
  padding: 5px 8px;
  background: rgba(43, 43, 43, .85); color: var(--bone);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  pointer-events: none;
}

/* the round magnifier */
.pd__lens {
  position: absolute; z-index: 4;
  width: 170px; height: 170px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0; transform: scale(.85);
  transition: opacity .15s, transform .15s;
}
.pd__lens.is-on { opacity: 1; transform: none; }

/* ----- details column ----- */
.pd__info { position: sticky; top: calc(var(--header-h) + 20px); }
.crumbs {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #878787; margin-bottom: 14px;
}
.crumbs a:hover { color: var(--charcoal); }
.pd__name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 3.6vw, 52px); line-height: 1;
  text-transform: uppercase;
}
.pd__price {
  font-family: var(--mono); font-size: 18px; color: var(--burgundy);
  margin: 12px 0 28px;
}
.pd__sizehead {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}

.sizes { display: flex; gap: 8px; margin-bottom: 6px; }
.size {
  min-width: 56px; height: 44px; padding: 0 10px;
  border: 1px solid #B9B9B9;
  font-family: var(--mono); font-size: 12px;
  transition: border-color .2s, background .2s, color .2s;
}
.size:hover { border-color: var(--charcoal); }
.size.is-on { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }
.size:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.shake { animation: shake .4s; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.pd__msg { min-height: 22px; font-size: 13px; color: var(--burgundy); margin-bottom: 8px; }

/* expandable tabs */
.acc { margin-top: 28px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between;
  padding: 16px 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 14px; }
.acc details[open] summary::after { content: '–'; }
.acc__body { padding: 0 0 18px; font-size: 15px; color: #484848; }
.specs { display: grid; grid-template-columns: 90px 1fr; gap: 8px 16px; margin: 0; }
.specs dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #878787; padding-top: 3px; }
.specs dd { margin: 0; }

/* ----- process strip ----- */
.process {
  background: var(--charcoal); color: var(--bone);
  padding: clamp(48px, 7vw, 96px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
.process h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; text-transform: uppercase;
  margin-bottom: 16px;
}
.process__text p { color: #BABABA; max-width: 36ch; }
.process__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.process figure { margin: 0; }
.process figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.process figcaption {
  margin-top: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
}

/* ----- you may also feel ----- */
.also {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; align-items: center;
  padding: clamp(48px, 7vw, 96px) var(--pad);
}
.also h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; text-transform: uppercase;
}
.also__card { max-width: 420px; justify-self: end; width: 100%; }

/* ----- wrong link ----- */
.missing {
  min-height: 60vh; padding: 80px var(--pad);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px;
  background: var(--charcoal); color: var(--bone);
}
.missing h1 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 10vw, 140px); line-height: .9; text-transform: uppercase; }

/* ==========================================================
   SIZE GUIDE POP-UP
   ========================================================== */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; visibility: hidden; }
.modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; }
.modal__box {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow: auto;
  background: var(--paper); padding: 36px 32px 28px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .3s, transform .3s;
}
.modal.is-open { visibility: visible; }
.modal.is-open .modal__bg { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__x { position: absolute; top: 10px; right: 14px; font-size: 30px; line-height: 1; }
.modal h2 { font-family: var(--display); font-weight: 400; font-size: 40px; text-transform: uppercase; margin-bottom: 10px; }
.modal p { font-size: 14px; color: #484848; margin-bottom: 18px; }
.modal__note { margin: 16px 0 0 !important; font-size: 13px !important; }

.table-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.size-table th, .size-table td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table th { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #878787; font-weight: 400; }
.size-table td:first-child { font-weight: 500; color: var(--burgundy); }

/* ==========================================================
   FULL-SCREEN PHOTO VIEW
   ========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: #111111;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__frame {
  width: min(92vw, calc(88vh * .8)); aspect-ratio: 4 / 5;
  overflow: hidden; touch-action: none; cursor: zoom-in;
}
.lightbox__frame.is-zoomed { cursor: grab; }
.lightbox__frame img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; user-select: none; -webkit-user-drag: none; }
.lightbox__x { position: absolute; top: 12px; right: 18px; z-index: 2; color: var(--bone); font-size: 40px; line-height: 1; }
.lightbox__arrow {
  position: absolute; top: 50%; z-index: 2; margin-top: -24px;
  width: 48px; height: 48px; color: var(--bone); font-size: 36px;
}
.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }
.lightbox__hint {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
}

/* ==========================================================
   "ADDED TO CART" MESSAGE
   ========================================================== */
.toast {
  position: fixed; z-index: 95; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  max-width: calc(100vw - 32px);
  background: var(--charcoal); color: var(--bone);
  padding: 14px 18px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), visibility .35s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.toast a { margin-left: 12px; color: var(--paper); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ==========================================================
   PHONES
   ========================================================== */
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; padding: 0 0 56px; gap: 22px; }
  .pd__gallery { display: block; }
  .pd__thumbs { display: none; }               /* phones swipe instead */
  .pd__arrow { display: none; }
  .pd__info { position: static; padding: 0 var(--pad); }
  .process { grid-template-columns: 1fr; }
  .process__strip { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .process figure { scroll-snap-align: start; }
  .also { grid-template-columns: 1fr; }
  .also__card { justify-self: stretch; max-width: none; }
}
@media (max-width: 760px) {
  .banner { height: 480px; }
  .banner__title { font-size: 21vw; top: 11%; white-space: normal; line-height: .84; padding: 0 10px; }
  .banner__rack { gap: 0; bottom: 3%; }
  .banner__rack img { width: 44vw; }
  .tag { top: -34px; font-size: 16px; }
  .tag--l { right: auto; left: 8%; }
  .tag--r { left: auto; right: 8%; }
  .tag__arrow { width: 30px; height: 24px; margin-top: 6px; }
  .tag--l .tag__arrow { transform: rotate(30deg); }
  .tag--r .tag__arrow { transform: rotate(-30deg); }
  .banner__corner--bl { display: none; }
  .banner__ghost--a { width: 120vw; left: -30%; }
  .banner__ghost--b { display: none; }
}
