/*
 * Migrated from category-slider/style.module.css.
 * The section is a fixed full-screen stage that slides up when the hero exits.
 */
/* Imported from: ../../sub-components/Icon/styles.css */
/*
 * Icon — the old theme never styled its inline SVGs beyond the occasional
 * `.navIcon` class, relying on `currentColor` and the parent's font size.
 * These rules preserve that behaviour.
 */
.cc_dkzbevli_C0raKgWPvK .icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  color: inherit;
}

/* End import: ../../sub-components/Icon/styles.css */

.cc_dkzbevli_C0raKgWPvK .cat-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Percentage, not vh — see the note in HeroSlider/styles.css. */
  height: 100%;
  background-color: var(--color-ink-pure);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: var(--space-xl);
  box-sizing: border-box;
  z-index: 700;
  transform: translateY(100%);
  transition: transform 0.6s ease-out;
  pointer-events: none;
  font-family: var(--font-sans);
}

.cc_dkzbevli_C0raKgWPvK .cat-section-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cc_dkzbevli_C0raKgWPvK .cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  margin-bottom: var(--space-xl);
}

.cc_dkzbevli_C0raKgWPvK .cat-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--tracking-mega);
  color: var(--color-paper);
  text-transform: uppercase;
  margin: 0;
}

.cc_dkzbevli_C0raKgWPvK .cat-arrows {
  display: flex;
  gap: var(--space-xs);
}

.cc_dkzbevli_C0raKgWPvK .cat-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--color-paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-fast) ease;
}

.cc_dkzbevli_C0raKgWPvK .cat-arrow:hover {
  border-color: var(--color-paper);
}

.cc_dkzbevli_C0raKgWPvK .cat-track {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 48px;
  cursor: grab;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cc_dkzbevli_C0raKgWPvK .cat-track::-webkit-scrollbar {
  display: none;
}

.cc_dkzbevli_C0raKgWPvK .cat-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* Desktop: 4 cards visible plus a peek of the 5th. */
.cc_dkzbevli_C0raKgWPvK .cat-card {
  position: relative;
  flex-shrink: 0;
  width: calc((100vw - 96px - 48px) / 4.25);
  /* Fills exactly the height left over after the header row, so the card can never
     be clipped no matter how short the window (or the editor preview) is. */
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  user-select: none;
}

.cc_dkzbevli_C0raKgWPvK .cat-image {
  position: absolute;
  inset: 0;
}

.cc_dkzbevli_C0raKgWPvK .cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc_dkzbevli_C0raKgWPvK .cat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-lg);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.cc_dkzbevli_C0raKgWPvK .cat-name {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--color-paper);
  text-transform: uppercase;
}

.cc_dkzbevli_C0raKgWPvK .cat-explore {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  color: var(--color-paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .cc_dkzbevli_C0raKgWPvK .cat-header {
    padding: 0 20px;
    margin-bottom: 20px;
  }

  .cc_dkzbevli_C0raKgWPvK .cat-track {
    padding: 0 20px;
    gap: var(--space-sm);
  }

  /* One card plus a 10% peek of the next, fixed 2:3. */
  .cc_dkzbevli_C0raKgWPvK .cat-card {
    width: calc(100vw - 40px - 12px - (100vw - 40px) * 0.1);
    height: auto;
    aspect-ratio: 2 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_dkzbevli_C0raKgWPvK .cat-section {
    transition: none;
  }
}
