/* Homepage departments — Bixoto-style horizontal store cards */

.cc-homeDepartments {
  margin: 0 0 44px 0;
}

.cc-homeDepartments__head {
  margin-bottom: 24px;
}

.cc-homeDepartments__title {
  margin: 0;
  font-family: var(--cc-font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--cc-bx-ink);
}

.cc-homeDepartments__subtitle {
  margin: 10px 0 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cc-bx-muted);
}

.cc-deptStrip {
  margin: 0 -4px;
  overflow: hidden;
}

.cc-deptStrip__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 12px 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cc-deptCard__link {
  flex: 0 0 clamp(240px, 26vw, 300px);
  display: block;
  text-decoration: none;
  scroll-snap-align: start;
}

.cc-deptCard__link:hover {
  text-decoration: none;
}

.cc-deptCard__link--static {
  cursor: default;
}

.cc-deptCard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 0;
  border-radius: var(--cc-bx-radius-lg);
  border: 1px solid rgba(10, 10, 12, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.cc-deptCard__link:not(.cc-deptCard__link--static):hover .cc-deptCard {
  transform: translateY(-2px);
}

.cc-deptCard--soon {
  opacity: 0.92;
}

.cc-deptCard__top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  padding: 22px 20px 16px 20px;
}

.cc-deptCard__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-deptCard__brandName {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-bx-accent);
}

.cc-deptCard__brandDept {
  font-family: var(--cc-font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--cc-bx-ink);
}

.cc-deptCard__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cc-bx-muted);
}

.cc-deptCard__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-bx-muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 10, 12, 0.08);
}

.cc-deptCard__cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 2px;
  padding: 10px 16px;
  border-radius: var(--cc-bx-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--cc-bx-accent);
  transition: background 0.2s ease;
}

.cc-deptCard__link:hover .cc-deptCard__cta {
  background: var(--cc-bx-accent-hover);
}

.cc-deptCard__visualWrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  min-height: 200px;
  margin-top: auto;
  padding: 0 8px 8px 8px;
  pointer-events: none;
}

.cc-deptCard__visual {
  display: block;
  width: 108%;
  max-width: none;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 18px rgba(10, 10, 12, 0.14));
  transition: transform 0.3s ease;
}

.cc-deptCard__link:not(.cc-deptCard__link--static):hover .cc-deptCard__visual {
  transform: translateY(-2px) scale(1.02);
}

@media screen and (max-width: 960px) {
  .cc-homeDepartments {
    margin-bottom: 32px;
  }

  .cc-homeDepartments__head {
    margin-bottom: 16px;
  }

  .cc-homeDepartments__title {
    font-size: 1.5rem;
  }

  .cc-homeDepartments__subtitle {
    margin-top: 6px;
    font-size: 13px;
  }

  /* Show all department cards in a compact 2-col grid (no peek-scroll) */
  .cc-deptStrip {
    margin: 0;
    overflow: visible;
  }

  .cc-deptStrip__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .cc-deptCard__link {
    flex: none;
    min-width: 0;
    width: 100%;
  }

  .cc-deptCard {
    min-height: 0;
    height: 100%;
  }

  .cc-deptCard__top {
    gap: 6px;
    padding: 12px 12px 8px;
  }

  .cc-deptCard__brandName {
    font-size: 9px;
  }

  .cc-deptCard__brandDept {
    font-size: 15px;
  }

  .cc-deptCard__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.4;
  }

  .cc-deptCard__badge {
    padding: 3px 8px;
    font-size: 9px;
  }

  .cc-deptCard__cta {
    margin-top: 4px;
    padding: 7px 11px;
    font-size: 11px;
  }

  .cc-deptCard__visualWrap {
    min-height: 88px;
    padding: 0 6px 6px;
  }

  .cc-deptCard__visual {
    max-height: 110px;
    width: 100%;
  }
}

@media screen and (max-width: 380px) {
  .cc-deptStrip__track {
    grid-template-columns: 1fr;
  }

  .cc-deptCard__desc {
    -webkit-line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-deptCard,
  .cc-deptCard__visual,
  .cc-deptCard__cta {
    transition: none;
  }
}
