/* Mobile categories: chrome + left rail + explore grid */

.zs-cats {
  display: none;
}

@media (max-width: 1023px) {
  body.zs-cats-on #root,
  body.zs-cats-on .zs-bn {
    display: none !important;
  }

  body.zs-cats-on {
    padding-bottom: 0 !important;
    background: #fff;
    overflow: auto;
  }

  .zs-cats {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    overflow: auto;
    background: #fff;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
  }

  .zs-cats-chrome {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
  }

  .zs-cats-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 52px;
    padding: 0 12px;
  }

  .zs-cats-head img {
    height: 28px;
    width: auto;
  }

  .zs-cats-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
  }

  .zs-cats-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 10px;
  }

  .zs-cats-dept {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    background: #111;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .zs-cats-dept svg {
    width: 10px;
    height: 10px;
  }

  .zs-cats-search {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e4dfd4;
    border-radius: 20px;
    background: #f3f1ec;
    color: #9b9b9b;
    text-decoration: none;
    font-size: 14px;
    gap: 8px;
  }

  .zs-cats-search svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #2d2d2d;
  }

  .zs-cats-body {
    display: flex;
    align-items: stretch;
  }

  .zs-cats-rail {
    position: sticky;
    top: 98px;
    align-self: flex-start;
    width: 112px;
    max-height: calc(100vh - 98px);
    overflow-y: auto;
    background: #f7f7f7;
    padding: 6px 0 24px;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
  }

  .zs-cats-rail a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    margin-bottom: 2px;
    padding: 10px 10px 10px 12px;
    box-sizing: border-box;
    text-decoration: none;
    color: #2d2d2d;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.02em;
    font-weight: 400;
    background: #ececec;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .zs-cats-rail a.is-on {
    background: #fff;
    font-weight: 700;
  }

  .zs-cats-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 8px 24px;
  }

  .zs-cats-promo {
    display: block;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
    min-height: 88px;
  }

  .zs-cats-promo img {
    display: block;
    width: 100%;
    height: 96px;
    object-fit: cover;
  }

  .zs-cats-promo span {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .zs-cats-promo small {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: #fff;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    width: fit-content;
    border-radius: 2px;
  }

  .zs-cats-heading {
    margin: 14px 2px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2d2d;
  }

  .zs-cats-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -4px;
  }

  .zs-cats-tile {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    box-sizing: border-box;
    padding: 0 4px 12px;
    text-decoration: none;
  }

  .zs-cats-tile.is-all {
    aspect-ratio: auto;
  }

  .zs-cats-all {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #c41230;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
  }

  .zs-cats-tile figure {
    margin: 0;
  }

  .zs-cats-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f3f3f3;
  }

  .zs-cats-tile figcaption {
    margin-top: 6px;
    color: #8a1f2b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
  }
}

@media (min-width: 1024px) {
  .zs-cats {
    display: none !important;
  }
}
