/* 6IX Artists mega-menu — genre tabs + featured hero. Used under SHOP BY ARTIST. */

.s6m-mm { box-sizing: border-box; color: var(--color-foreground, #f4f1ea); }
.s6m-mm *, .s6m-mm *::before, .s6m-mm *::after { box-sizing: border-box; }

.s6m-mm__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: stretch;
  max-height: calc(100vh - var(--sixm-header-bottom, 102px) - 32px);
  overflow: hidden;
}

/* ===== FEATURED DROP HERO ===== */
.s6m-mm__feat {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #0a0a0a;
  overflow: hidden;
  border-radius: 4px;
  /* No fixed floor: with align-items:stretch the featured card stretches to the menu's
     content height instead of forcing the whole panel to 380px. This kills the dead
     hover-area below the roster / "See all" in the tabbed menus (HOODIES / T-SHIRTS /
     ARTISTS) — moving the cursor just below the content now exits the menu. Cat menus
     keep their own floor via .s6m-mm__feat--cat; mobile keeps its own via .s6m-mm--mobile. */
  min-height: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.s6m-mm__feat:hover { transform: translateY(-2px); }
/* Category mega-menus (NBA / Football / Anime) have short featured link lists. Drop the
   380px floor so the featured card stretches (align-items:stretch) to the actual content
   height — the panel then fits its content and there's no dead hover-area below the menu,
   so moving the cursor just below "See all" exits the menu instead of forcing a long trip
   down the panel. Scoped to --cat so the taller Artists mega-menu keeps its full hero.
   Small floor (156px) just large enough for the compact hero + meta to not overlap; for
   richer categories (e.g. NBA) the menu content is taller and drives the height instead. */
.s6m-mm__feat--cat { min-height: 156px; }
/* ABOUT featured card: the only variant without a floor. Its panel content
   (two short link columns, ~166px) is shorter than the card's own composition
   (eyebrow + 2-line display title + 4-line meta ≈ 260px), so the stretched
   card crushed the backdrop type into the meta block. */
.s6m-mm__feat--about { min-height: 280px; }
.s6m-mm__feat-img {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
}
.s6m-mm__feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.s6m-mm__feat:hover .s6m-mm__feat-img img { transform: scale(1.05); }
.s6m-mm__feat-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--6m-display, ui-sans-serif, system-ui, sans-serif);
  font-size: 48px;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.12);
}
.s6m-mm__feat-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / 0.85) 100%);
  pointer-events: none;
}
.s6m-mm__feat-meta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 16px 16px 14px;
  color: #f4f1ea;
}
.s6m-mm__feat-eyebrow {
  font-family: var(--6m-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.65);
  margin-bottom: 4px;
}
.s6m-mm__feat-title {
  font-family: var(--6m-display, ui-sans-serif, system-ui, sans-serif);
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 4px;
}
.s6m-mm__feat-sub {
  font-family: var(--6m-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgb(255 255 255 / 0.78);
  margin-bottom: 10px;
}
.s6m-mm__feat-cta {
  font-family: var(--6m-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4f1ea;
  border-bottom: 1px solid rgb(255 255 255 / 0.6);
  display: inline-block;
  padding-bottom: 2px;
  transition: gap 0.2s ease;
}
.s6m-mm__feat:hover .s6m-mm__feat-cta { border-bottom-color: #fff; }

/* ===== RIGHT COLUMN: tabs + panels ===== */
.s6m-mm__right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.s6m-mm__tabs {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  margin-bottom: 18px;
}
.s6m-mm__tabs::-webkit-scrollbar { display: none; }
.s6m-mm__tabgroup {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}
.s6m-mm__tab-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 18px;
  background: rgb(255 255 255 / 0.18);
  margin: 0 4px;
}
/* (Search-relocation experiment removed 2026-06-10 — it hid the live search row.
   Mega-menu styles only below; search styling lives in s6m-search.css.) */

.s6m-mm__tab {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid transparent;
  color: rgb(255 255 255 / 0.55);
  font-family: var(--6m-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  border-radius: 2px;
}
.s6m-mm__tab:hover { color: #f4f1ea; }
.s6m-mm__tab.is-active {
  color: #f4f1ea;
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.18);
}
.s6m-mm__tab:focus-visible {
  outline: 2px solid var(--6m-signal, #d83a3a);
  outline-offset: 2px;
}

.s6m-mm__panels {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.25) transparent;
}
.s6m-mm__panels::-webkit-scrollbar { width: 6px; }
.s6m-mm__panels::-webkit-scrollbar-thumb { background: rgb(255 255 255 / 0.25); border-radius: 3px; }
.s6m-mm__panels::-webkit-scrollbar-track { background: transparent; }

.s6m-mm__panel { display: none; }
.s6m-mm__panel.is-active { display: block; animation: s6m-mm-fade 0.2s ease-out; }
@keyframes s6m-mm-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.s6m-mm__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 18px;
  margin-bottom: 16px;
}
.s6m-mm__artist {
  font-family: var(--6m-mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.82);
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease, transform 0.15s ease;
}
.s6m-mm__artist:hover {
  color: var(--6m-signal, #f4f1ea);
  transform: translateX(2px);
}
.s6m-mm__seeall {
  display: inline-block;
  font-family: var(--6m-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4f1ea;
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 0.4);
  padding-bottom: 2px;
}
.s6m-mm__seeall:hover { border-bottom-color: #fff; }
.s6m-mm__empty {
  color: rgb(255 255 255 / 0.6);
  font-size: 13px;
  padding: 12px 0;
}
.s6m-mm__empty p { margin: 0 0 12px; }

/* ===== MOBILE VARIANT — accordion inside drawer ===== */
.s6m-mm--mobile {
  color: var(--color-foreground, #111);
  padding: 4px 14px 16px;
  background: var(--color-background, #fff);
}
.s6m-mm--mobile .s6m-mm__layout {
  grid-template-columns: 1fr;
  gap: 16px;
  max-height: none;
  overflow: visible;
}
.s6m-mm--mobile .s6m-mm__feat {
  min-height: 160px;
  background: #0a0a0a;
}
.s6m-mm--mobile .s6m-mm__feat-title { font-size: 18px; }

.s6m-mm--mobile .s6m-mm__tabs {
  border-bottom-color: rgb(0 0 0 / 0.1);
  padding-bottom: 10px;
  margin-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.s6m-mm--mobile .s6m-mm__tab {
  color: rgb(0 0 0 / 0.55);
  scroll-snap-align: start;
}
.s6m-mm--mobile .s6m-mm__tab:hover { color: rgb(0 0 0 / 0.9); }
.s6m-mm--mobile .s6m-mm__tab.is-active {
  color: #0a0a0a;
  background: rgb(0 0 0 / 0.06);
  border-color: rgb(0 0 0 / 0.16);
}

.s6m-mm--mobile .s6m-mm__panels {
  overflow-y: visible;
  max-height: 340px;
  overflow-y: auto;
}
.s6m-mm--mobile .s6m-mm__list {
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 14px;
}
.s6m-mm--mobile .s6m-mm__artist {
  color: rgb(0 0 0 / 0.82);
  font-size: 13px;
  padding: 8px 0;
}
.s6m-mm--mobile .s6m-mm__artist:hover { color: var(--6m-signal, #d83a3a); }
.s6m-mm--mobile .s6m-mm__seeall {
  color: #0a0a0a;
  border-bottom-color: rgb(0 0 0 / 0.4);
}
.s6m-mm--mobile .s6m-mm__empty { color: rgb(0 0 0 / 0.6); }

/* ===== Desktop column tweak when nested inside the mega panel ===== */
.s6m-mega__panel-inner .s6m-mm--desktop { padding: 18px 18px 14px; }

/* The default .s6m-mega__panel uses left:50% + translateX(-50%) anchored to its <li>,
   which pushes a wide layout (280px hero + tabs/list) off-screen left. Anchor
   ARTISTS / T-SHIRTS / HOODIES panels to the viewport so the hero stays in view. */
@media (min-width: 1024px) {
  .s6m-mega__panel--artists,
  .s6m-mega__panel--tshirts,
  .s6m-mega__panel--hoodies,
  .s6m-mega__panel--about,
  .s6m-mega__panel--nba,
  .s6m-mega__panel--football,
  .s6m-mega__panel--anime {
    position: fixed !important;
    top: var(--sixm-header-bottom, 102px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: translateY(-6px) !important;
  }
  /* Transparent hover-bridge from nav LI down to the panel — closes the ~25px
     gap where :hover would otherwise drop and snap the dropdown shut as the
     cursor travels from the link to the panel. */
  .s6m-mega__panel--artists::before,
  .s6m-mega__panel--tshirts::before,
  .s6m-mega__panel--hoodies::before,
  .s6m-mega__panel--about::before,
  .s6m-mega__panel--nba::before,
  .s6m-mega__panel--football::before,
  .s6m-mega__panel--anime::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -40px;
    height: 40px;
    background: transparent;
    pointer-events: none;
  }
  .s6m-mega__item--has-panel:hover .s6m-mega__panel--artists,
  .s6m-mega__item--has-panel:focus-within .s6m-mega__panel--artists,
  .s6m-mega__item--has-panel:hover .s6m-mega__panel--tshirts,
  .s6m-mega__item--has-panel:focus-within .s6m-mega__panel--tshirts,
  .s6m-mega__item--has-panel:hover .s6m-mega__panel--hoodies,
  .s6m-mega__item--has-panel:focus-within .s6m-mega__panel--hoodies,
  .s6m-mega__item--has-panel:hover .s6m-mega__panel--about,
  .s6m-mega__item--has-panel:focus-within .s6m-mega__panel--about,
  .s6m-mega__item--has-panel:hover .s6m-mega__panel--nba,
  .s6m-mega__item--has-panel:focus-within .s6m-mega__panel--nba,
  .s6m-mega__item--has-panel:hover .s6m-mega__panel--football,
  .s6m-mega__item--has-panel:focus-within .s6m-mega__panel--football,
  .s6m-mega__item--has-panel:hover .s6m-mega__panel--anime,
  .s6m-mega__item--has-panel:focus-within .s6m-mega__panel--anime {
    transform: translateY(0) !important;
  }
  .s6m-mega__panel-inner--artists,
  .s6m-mega__panel-inner--tshirts,
  .s6m-mega__panel-inner--hoodies,
  .s6m-mega__panel-inner--about,
  .s6m-mega__panel-inner--nba,
  .s6m-mega__panel-inner--football,
  .s6m-mega__panel-inner--anime {
    max-width: 1280px;
    margin: 0 auto;
  }

  /* HEADER is sticky z:8 → creates stacking context. The collection sticky
     filter bar is also z:8 in body, so it paints OVER the dropdown panel
     when both are at z:8. Bump HEADER above filter when a mega panel is open. */
  header.shopify-section.header-section:has(.s6m-mega__item--has-panel:hover),
  header.shopify-section.header-section:has(.s6m-mega__item--has-panel:focus-within) {
    z-index: 20 !important;
  }

  /* ===== ABOUT panel specifics ===== */
  .s6m-mm__about-hero {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #161616 0%, #0a0a0a 100%);
    display: flex;
    flex-direction: column;
    /* top-anchored: centering let the backdrop type sink into the
       bottom-anchored meta block and the two texts collided */
    justify-content: flex-start;
    padding: 22px 24px;
    overflow: hidden;
  }
  .s6m-mm__about-hero-eyebrow {
    font-family: var(--6m-mono, ui-monospace, monospace);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--6m-signal, #e11d2a);
    margin-bottom: 14px;
  }
  .s6m-mm__about-hero-title {
    font-family: var(--6m-display, ui-sans-serif, system-ui, sans-serif);
    font-size: 34px;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-transform: uppercase;
    color: #f4f1ea;
    /* ghost-watermark treatment (site's established backdrop-type style):
       reads as texture behind the meta text instead of competing with it */
    opacity: 0.30;
  }
  .s6m-mm__about-hero-title span { color: var(--6m-signal, #e11d2a); }

  .s6m-mm__about-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-top: 4px;
  }
  .s6m-mm__about-col-label {
    font-family: var(--6m-mono, ui-monospace, monospace);
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.45);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
  }
  .s6m-mm__about-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  /* ===== CAT (NBA / FOOTBALL / ANIME) panel specifics ===== */
  .s6m-mm__cat-hero {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 28px 100px;
    color: #f4f1ea;
  }
  /* Per-category gradient tint */
  .s6m-mm__cat-hero--nba {
    background:
      radial-gradient(circle at 75% 25%, rgba(225, 29, 42, 0.18), transparent 55%),
      linear-gradient(135deg, #1a0f0f 0%, #0a0a0a 100%);
  }
  .s6m-mm__cat-hero--football {
    background:
      radial-gradient(circle at 25% 80%, rgba(40, 180, 100, 0.16), transparent 60%),
      linear-gradient(135deg, #0d1410 0%, #0a0a0a 100%);
  }
  .s6m-mm__cat-hero--anime {
    background:
      radial-gradient(circle at 50% 20%, rgba(255, 100, 180, 0.18), transparent 60%),
      linear-gradient(135deg, #161018 0%, #0a0a0a 100%);
  }
  .s6m-mm__cat-hero-eyebrow {
    font-family: var(--6m-mono, ui-monospace, monospace);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--6m-signal, #e11d2a);
    margin-bottom: 14px;
  }
  .s6m-mm__cat-hero--football .s6m-mm__cat-hero-eyebrow { color: #4cd084; }
  .s6m-mm__cat-hero--anime .s6m-mm__cat-hero-eyebrow { color: #ff6bb5; }
  .s6m-mm__cat-hero-title {
    font-family: var(--6m-display, ui-sans-serif, system-ui, sans-serif);
    font-size: 52px;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-transform: uppercase;
    color: #f4f1ea;
  }
  .s6m-mm__cat-hero-sub {
    margin-top: 10px;
    font-family: var(--6m-mono, ui-monospace, monospace);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgb(255 255 255 / 0.65);
    max-width: 200px;
    line-height: 1.4;
  }

  /* Compact treatment for the (now content-height) category featured card: anchor the
     hero to the top, shrink the wordmark, and drop the secondary tagline so the hero
     never collides with the bottom "SHOP ALL" meta block in the shorter card. */
  .s6m-mm__feat--cat .s6m-mm__cat-hero {
    justify-content: flex-start;
    padding: 18px 22px 60px;
  }
  .s6m-mm__feat--cat .s6m-mm__cat-hero-title { font-size: 34px; }
  .s6m-mm__feat--cat .s6m-mm__cat-hero-sub { display: none; }

  .s6m-mm__cat-label {
    font-family: var(--6m-mono, ui-monospace, monospace);
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.45);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
  }

  .s6m-mm__list--cat {
    /* Roster grid — same as music tab content */
    margin-bottom: 18px;
  }
}

@media (min-width: 1280px) {
  .s6m-mm__layout { grid-template-columns: 280px 1fr; gap: 36px; }
  .s6m-mm__list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  /* Hide desktop variant entirely below tablet (mobile drawer renders the mobile variant) */
  .s6m-mega__panel-inner .s6m-mm--desktop { display: none; }
}

/* ---------------------------------------------------------------------------
   .s6m-mm__viewall — moved here 2026-07-31 from the inline <style> at the foot of
   snippets/s6m-artists-megamenu.liquid. That snippet renders THREE times per page
   (blocks/_header-menu.liquid, snippets/header-drawer.liquid,
   sections/s6m-mobile-drawer.liquid), so the identical 768 B block shipped 3x in
   every HTML response and was re-downloaded on every pageview. Byte-identical
   rules, same selectors, now served once from this cached stylesheet.
   --------------------------------------------------------------------------- */
.s6m-mm__viewall {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 12px 0 2px;
  font-family: var(--6m-mono, ui-monospace, monospace);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  width: 100%;
  transition: color 0.15s, gap 0.15s;
}
/* Desktop panel is ink (#0a0a0a): ink-coloured text was invisible until hover. */
.s6m-mm--desktop .s6m-mm__viewall {
  color: #f4f1ea;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}
.s6m-mm--mobile .s6m-mm__viewall {
  color: var(--6m-ink, #0a0a0a);
  border-top: 1px solid var(--6m-line, rgba(10,10,10,0.1));
}
.s6m-mm__viewall:hover { color: var(--6m-signal, #d83a3a); gap: 12px; }

/* Preserve Horizon's buttons inside Kadence's global button rules. */
.s6m-mm button.s6m-mm__tab { line-height: normal; box-shadow: none; }
.s6m-mm button.s6m-mm__tab:hover,
.s6m-mm button.s6m-mm__tab:focus { background: transparent; }
.s6m-mm button.s6m-mm__tab.is-active { background: rgb(255 255 255 / 0.08); }
@media (prefers-reduced-motion: reduce) {
  .s6m-mm *, .s6m-mm *::before, .s6m-mm *::after { animation: none !important; transition: none !important; }
}

/* Dark-theme the artists mega-menu when embedded in the dark drawer */
.s6m-drawer .s6m-mm--mobile { color: #fff; background: transparent; padding: 4px 0 8px; }
.s6m-drawer .s6m-mm--mobile .s6m-mm__feat { display: none; }
.s6m-drawer .s6m-mm--mobile .s6m-mm__tabs { border-bottom-color: rgba(255,255,255,0.14); }
.s6m-drawer .s6m-mm--mobile .s6m-mm__tab { color: rgba(255,255,255,0.55); }
.s6m-drawer .s6m-mm--mobile .s6m-mm__tab:hover { color: rgba(255,255,255,0.95); }
.s6m-drawer .s6m-mm--mobile .s6m-mm__tab.is-active { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.s6m-drawer .s6m-mm--mobile .s6m-mm__artist { color: rgba(255,255,255,0.82); }
.s6m-drawer .s6m-mm--mobile .s6m-mm__artist:hover { color: var(--6m-signal); }
.s6m-drawer .s6m-mm--mobile .s6m-mm__seeall { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
.s6m-drawer .s6m-mm--mobile .s6m-mm__empty { color: rgba(255,255,255,0.6); }
.s6m-drawer .s6m-mm--mobile .s6m-mm__panels { max-height: 50vh; }


.s6m-drawer .s6m-mm--mobile .s6m-mm__viewall { color: #fff; border-top-color: rgb(255 255 255 / .16); }
