
/* ===============================
   CATEGORY EXPLORER
================================ */
.xo-category-explorer {
  background: #000;
  padding: 100px clamp(24px, 6vw, 100px);
  position: relative;
  isolation: isolate;
}

.xo-category-explorer-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

/* ===============================
   CATEGORY PANEL (DESKTOP)
================================ */
.xo-category-panel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
}

/* IMAGE */
.xo-category-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* OVERLAY */
.xo-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.88) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* FULL CARD CLICK */
.xo-category-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* TITLE – DESKTOP */
.xo-category-title {
    position: absolute;
    bottom: 36px;
    left: 36px;
    z-index: 4;
    font-family: var(--xo-title-font);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    text-shadow: rgba(0,0,0,0.45) 3px 3px 6px;
    border-bottom: solid 2px rgba(0,0,0,0);
}
.xo-category-title:hover {
    border-bottom: solid 2px #EF3824;
}

/* ===============================
   EXPAND MENU (DESKTOP)
================================ */
.xo-category-expand {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  padding-bottom: 96px;
  background: rgba(0,0,0,0.92);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.xo-category-panel:hover .xo-category-expand {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.xo-category-expand a {
  font-family: var(--xo-title-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    color 0.25s ease;
  border-bottom: solid 2px rgba(0,0,0,0);
}

.xo-category-panel:hover .xo-category-expand a {
    opacity: 0.85;
    transform: translateY(0);
}

.xo-category-expand a:hover {
    opacity: 1;
    border-bottom: solid 2px #EF3824;
}

/* STAGGER */
.xo-category-expand a:nth-child(1) { transition-delay: 0.05s; }
.xo-category-expand a:nth-child(2) { transition-delay: 0.09s; }
.xo-category-expand a:nth-child(3) { transition-delay: 0.13s; }
.xo-category-expand a:nth-child(4) { transition-delay: 0.17s; }
.xo-category-expand a:nth-child(5) { transition-delay: 0.21s; }
.xo-category-expand a:nth-child(6) { transition-delay: 0.25s; }
.xo-category-expand a:nth-child(7) { transition-delay: 0.29s; }
.xo-category-expand a:nth-child(8) { transition-delay: 0.33s; }
.xo-category-expand a:nth-child(9) { transition-delay: 0.37s; }
.xo-category-expand a:nth-child(10) { transition-delay: 0.41s; }

/* ===============================
   MOBILE REFACTOR (≤900px)
================================ */
@media (max-width: 1050px) {

  /* SINGLE COLUMN */
  .xo-category-explorer-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  /* PANEL STACK */
  .xo-category-panel {
    display: flex;
    flex-direction: column;
    height: auto;
    border: none;
  }

  /* IMAGE */
  .xo-category-image {
    position: relative;
    height: 240px;
    order: 1;
  }

  /* REMOVE DESKTOP LAYERS */
  .xo-category-overlay,
  .xo-category-hit {
    display: none;
  }

  /* TITLE */
  .xo-category-title {
    position: relative;
    order: 2;
    margin: 18px 24px 12px;
    padding: 0;
    font-size: 26px;
    letter-spacing: 0.04em;
    bottom: auto;
    left: auto;
  }

  .xo-category-title::after {
    content: "";
    display: block;
    margin-top: 10px;
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.25);
  }

  /* LIST */
  .xo-category-expand {
    position: relative;
    order: 3;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
    padding: 0 24px 28px;
    gap: 12px;
  }

  .xo-category-expand a {
    opacity: 1;
    transform: none;
    transition: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 10px 0;
    border-bottom: 2px solid rgba(255,255,255,0.08);
  }

}