  .dept-page {
    padding: 0 0 4rem;
    background: #fff;
  }

  /* ---- Hero: full-bleed accent-tinted band carrying the page title,
     same as the category / brand / departments pages. ---- */
  .dept-hero {
    background: color-mix(in srgb, var(--dept-accent) 85%, #000 15%);
    padding: 4.5rem 0;
  }

  .dept-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 34rem;
    margin: 0 auto;
  }

  .dept-hero__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
  }

  .dept-hero__desc {
    margin: 0.75rem 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
  }

  @media (max-width: 640px) {
    .dept-hero {
      padding: 2.75rem 0;
    }

    .dept-hero__title {
      font-size: 1.45rem;
    }
  }

  /* Shown only when the hero is hidden on mobile (see layout/theme.liquid). */
  .dept-mobile-title {
    display: none;
    margin: 0 0 1.25rem;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: #111;
  }

  .dept-body {
    padding-top: 2.5rem;
  }

  /* ---- Category grid --------------------------------------------------- */
  .dept-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  /* Category card — same layout as the product card: bordered rounded
     box, square photo, then title + meta line beneath. */
  .dept-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgb(236, 236, 236);
    border-radius: 12px;
    box-sizing: border-box;
    padding: 1rem;
    text-align: start;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: 0.3s;
  }

  .dept-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
  }

  .dept-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
  }

  .dept-card:hover .dept-card__media img {
    transform: scale(1.05);
  }

  .dept-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: color-mix(in srgb, var(--s-main-department-1) 45%, #999);
  }

  .dept-card__details {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 1.4rem;
    padding-bottom: 0.4rem;
  }

  .dept-card__title {
    margin: 0 0 0.3rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dept-card:hover .dept-card__title {
    color: var(--s-main-department-1);
  }

  .dept-card__count {
    font-size: 13px;
    font-weight: 700;
    color: var(--s-main-department-1);
  }

  /* ---- Empty state ------------------------------------------------------ */
  .dept-empty {
    max-width: 26rem;
    margin: 2.5rem auto 0;
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border: 1px solid var(--adi-gray-200, #e5e5e5);
  }

  .dept-empty__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: 1.1rem;
    color: #000;
  }

  .dept-empty__sub {
    margin: 0 0 1.75rem;
    font-size: 14px;
    line-height: 1.5;
    color: var(--adi-gray-500, #767677);
  }

  .dept-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: var(--s-main-department-1);
    color: #fff;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .dept-empty__btn:hover {
    opacity: 0.85;
  }

  /* ---- Tablet -------------------------------------------------------- */
  @media (max-width: 991px) {
    .dept-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  /* ---- Mobile: tighten spacing & typography, single-column grid --------- */
  @media (max-width: 640px) {
    .dept-page {
      padding: 0 0 3rem;
    }

    .dept-body {
      padding-top: 1.75rem;
    }

    .dept-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.85rem;
    }

    .dept-card {
      padding: 0.75rem;
    }

    .dept-empty {
      padding: 2.5rem 1.5rem;
    }
  }
