.desktop-nav .mystery-nav-link,
.category-strip .mystery-category-link {
  white-space: nowrap;
  text-transform: uppercase;
}

.desktop-nav .mystery-nav-link {
  color: #f0c990;
}

.desktop-nav .mystery-nav-link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .4em;
}

.category-strip .mystery-category-link {
  color: #862a21;
}

.mystery-page,
.mystery-overlay {
  --mystery-ink: #161311;
  --mystery-paper: #fff2df;
  --mystery-gold: #edc38c;
  --mystery-line: #bc946446;
}

.mystery-page {
  color: var(--mystery-paper);
  background: var(--mystery-ink);
}

.mystery-hero {
  border-bottom: 1px solid var(--mystery-line);
  background: radial-gradient(ellipse at 75% 45%, #533321 0%, #211813 48%, #161311 76%);
}

.mystery-hero > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding-block: clamp(36px, 6vw, 84px);
}

.mystery-kicker {
  margin-bottom: 12px;
  color: var(--mystery-gold);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.mystery-hero h1,
.mystery-offer-copy h2 {
  color: var(--mystery-paper);
  margin: 0;
  font-size: clamp(3.25rem, 7.4vw, 7.5rem);
  letter-spacing: -.025em;
  line-height: .9;
}

.mystery-hero-copy > p:last-child {
  max-width: 25rem;
  margin: 20px 0 0;
  color: #e3cbb4;
  font-size: clamp(.875rem, 1.5vw, 1.05rem);
  line-height: 1.6;
}

.mystery-hero-art {
  max-width: 690px;
  width: 100%;
  justify-self: end;
  padding: 8px;
  border: 1px solid var(--mystery-line);
  border-radius: 18px;
  background: #151210;
  box-shadow: 0 20px 56px #0005;
}

.mystery-photo {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1.8;
  background: #ece5db;
}

.mystery-photo img,
.product-image .mystery-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.mystery-photo.is-flyer img,
.product-image .mystery-photo.is-flyer img {
  inset: -27.5% auto auto -7.5%;
  width: 115%;
  height: auto;
  max-width: none;
}

.mystery-photo-hero {
  border-radius: 10px;
}

.mystery-photo-detail {
  aspect-ratio: 1.02;
  border-radius: 8px;
}

.mystery-photo-detail.is-flyer img {
  inset: 0;
  width: 100%;
}

.product-detail .thumbnails[hidden] {
  display: none;
}

.mystery-editions.wrap {
  padding-block: clamp(35px, 5vw, 70px) clamp(48px, 7vw, 100px);
}

.mystery-editions h2 {
  font-size: clamp(2.25rem, 4.4vw, 4.5rem);
  line-height: .95;
  margin: 0 0 26px;
}

.mystery-grid.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mystery-grid > article {
  min-width: 0;
  overflow: hidden;
  background: #24201c;
  border: 1px solid var(--mystery-line);
  border-radius: 12px;
}

.mystery-grid .product-info {
  padding: 16px 18px 20px;
}

.mystery-grid .product-brand,
.mystery-grid .price {
  color: var(--mystery-gold);
}

.mystery-grid .price del {
  color: #c7b1a0;
}

.mystery-grid .product-name {
  min-height: 2.9em;
}

.mystery-grid .product-quick {
  width: 44px;
  height: 44px;
  color: #1e140b;
  background: var(--mystery-gold);
  border-radius: 50%;
}

.mystery-grid .product-quick:hover,
.mystery-cta:hover {
  background: #ffe1b0;
  color: #1e140b;
}

.mystery-empty {
  grid-column: 1 / -1;
  color: #e3cbb4;
}

.mystery-overlay {
  height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #100c0acc;
  backdrop-filter: blur(6px);
}

.mystery-overlay .modal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  width: min(765px, 100%);
  max-height: 100%;
  padding: 0;
  border: 1px solid #ad845d;
  border-radius: 20px;
  color: var(--mystery-paper);
  background: radial-gradient(ellipse at 10% 10%, #533622, #1f1612 58%, #161311);
  box-shadow: 0 24px 90px #000b;
  animation: mystery-appear .24s ease-out both;
}

.mystery-overlay .close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  top: 10px;
  right: 10px;
  border: 1px solid var(--mystery-line);
  border-radius: 50%;
  color: var(--mystery-paper);
  background: #241a14;
}

.mystery-overlay .close:hover {
  background: #423025;
}

.mystery-offer-art {
  min-width: 0;
  padding: 8px;
  margin: 26px 0 26px 26px;
  border: 1px solid var(--mystery-line);
  border-radius: 14px;
  background: #1e1510;
}

.mystery-photo-offer {
  border-radius: 8px;
}

.mystery-offer-copy {
  min-width: 0;
  padding: 52px 30px 30px;
}

.mystery-offer-copy h2 {
  font-size: clamp(2.65rem, 6vw, 4.2rem);
  margin-bottom: 14px;
}

.mystery-offer-copy > p:not(.mystery-kicker) {
  color: #f0d8c0;
  font-size: .875rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.mystery-offer-price strong {
  color: var(--mystery-gold);
}

.mystery-cta,
.mystery-dismiss {
  width: 100%;
  text-align: center;
}

.mystery-cta {
  justify-content: center;
  border-radius: 6px;
  color: #1e140b;
  background: var(--mystery-gold);
}

.mystery-dismiss {
  min-height: 44px;
  margin-top: 5px;
  color: #e7d1bd;
  font-size: .75rem;
  text-decoration: underline;
  text-underline-offset: .25em;
}

@keyframes mystery-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 761px) and (max-width: 960px) {
  .desktop-nav { gap: 12px; }
  .desktop-nav a { white-space: nowrap; }
}

@media (max-width: 700px) {
  .mystery-hero > .wrap { grid-template-columns: minmax(0, 1fr); }
  .mystery-hero-art { justify-self: start; }
  .mystery-hero-copy > p:last-child { margin-top: 14px; }
  .mystery-grid.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mystery-grid .product-info { padding: 11px 10px 14px; }
  .mystery-grid .product-quick { right: 5px; bottom: 5px; }
}

@media (max-width: 560px) {
  .mystery-overlay .modal {
    grid-template-columns: minmax(0, 1fr);
    width: min(400px, 100%);
  }
  .mystery-offer-art { margin: 49px 17px 0; }
  .mystery-offer-copy { padding: 20px 18px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mystery-overlay .modal { animation: none; }
}
