/* Editorial category / product listing (PLP) — uses shared editorial-tokens.css. */
body.page-categories--editorial {
  color: var(--editorial-ink);
  background: var(--editorial-surface);
}

body.page-categories--editorial .breadcrumb-wrap {
  border-bottom: none;
  background: transparent;
}

body.page-categories--editorial .breadcrumb-wrap .container {
  max-width: none;
  padding-inline: clamp(20px, 3.2vw, 64px);
}

body.page-categories--editorial .breadcrumb-filter-btn {
  display: none !important;
}

body.page-categories--editorial .editorial-plp {
  width: 100%;
  max-width: none;
  padding-inline: clamp(20px, 3.2vw, 64px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

body.page-categories--editorial .editorial-plp__main {
  width: 100%;
}

/* Title */
body.page-categories--editorial .editorial-plp__intro {
  padding-top: clamp(12px, 1.6vw, 28px);
  padding-bottom: clamp(18px, 2vw, 28px);
}

body.page-categories--editorial .editorial-plp__title {
  margin: 0;
  color: var(--editorial-ink);
  font: 600 var(--editorial-title-md) / 1.15 var(--editorial-font);
  letter-spacing: -.01em;
}

body.page-categories--editorial .editorial-plp__summary {
  max-width: 52rem;
  margin-top: 12px;
  color: var(--editorial-muted);
  font: 400 var(--editorial-body-size) / var(--editorial-body-line) var(--editorial-font);
}

body.page-categories--editorial .editorial-plp__summary p {
  margin-bottom: .4em;
}

body.page-categories--editorial .editorial-plp__summary p:last-child {
  margin-bottom: 0;
}

/* Toolbar: subnav + actions */
body.page-categories--editorial .editorial-plp__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--editorial-line);
}

body.page-categories--editorial .editorial-plp__subnav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.page-categories--editorial .editorial-plp__subnav::-webkit-scrollbar {
  display: none;
}

body.page-categories--editorial .editorial-plp__subnav-link {
  flex: 0 0 auto;
  color: var(--editorial-ink);
  font: 500 var(--editorial-label-size) / var(--editorial-label-line) var(--editorial-font);
  letter-spacing: var(--editorial-label-tracking);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: .72;
  transition: opacity .2s ease;
}

body.page-categories--editorial .editorial-plp__subnav-link:hover,
body.page-categories--editorial .editorial-plp__subnav-link:focus-visible,
body.page-categories--editorial .editorial-plp__subnav-link.is-active {
  opacity: 1;
  text-decoration: none;
  color: var(--editorial-ink);
}

body.page-categories--editorial .editorial-plp__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 22px;
}

body.page-categories--editorial .editorial-plp__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--editorial-ink);
  font: 500 var(--editorial-label-size) / var(--editorial-label-line) var(--editorial-font);
  letter-spacing: var(--editorial-label-tracking);
  text-transform: uppercase;
  cursor: pointer;
}

body.page-categories--editorial .editorial-plp__action:hover,
body.page-categories--editorial .editorial-plp__action:focus-visible {
  opacity: .7;
}

body.page-categories--editorial .editorial-plp__filters-btn i {
  font-size: 13px;
}

body.page-categories--editorial .editorial-plp__sort {
  position: relative;
}

body.page-categories--editorial .editorial-plp__sort-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
}

body.page-categories--editorial .editorial-plp__sort-label::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}

/* Grid + hero */
body.page-categories--editorial .editorial-plp__grid {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 32px;
  margin-top: 8px;
}

@media (min-width: 992px) {
  body.page-categories--editorial .editorial-plp__grid {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 36px;
  }
}

body.page-categories--editorial .editorial-plp__hero-col {
  display: flex;
}

body.page-categories--editorial .editorial-plp__hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--editorial-stone);
  aspect-ratio: 3 / 4.4;
}

@media (min-width: 992px) {
  body.page-categories--editorial .editorial-plp__grid.row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 16px;
    margin-left: 0;
    margin-right: 0;
  }

  body.page-categories--editorial .editorial-plp__grid.row > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
  }

  body.page-categories--editorial .editorial-plp__hero-col {
    grid-row: span 2;
    align-self: stretch;
  }

  body.page-categories--editorial .editorial-plp__hero {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

body.page-categories--editorial .editorial-plp__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product cards — minimal, centered */
body.page-categories--editorial .product-grid-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.page-categories--editorial .product-grid-item .image {
  background: var(--editorial-stone);
  margin-bottom: 14px;
  overflow: hidden;
}

body.page-categories--editorial .product-grid-item .image a {
  display: block;
  aspect-ratio: 3 / 4;
}

body.page-categories--editorial .product-grid-item .image img,
body.page-categories--editorial .product-grid-item .product-main-image,
body.page-categories--editorial .product-grid-item .product-hover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-categories--editorial .product-grid-item .wishlist-container,
body.page-categories--editorial .product-grid-item .product-bottom-btns,
body.page-categories--editorial .product-grid-item .btn-add-cart {
  display: none !important;
}

body.page-categories--editorial .product-grid-item .product-item-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 4px;
}

body.page-categories--editorial .product-grid-item .product-name {
  width: 100%;
  margin: 0;
}

body.page-categories--editorial .product-grid-item .product-name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--editorial-ink);
  font: 500 var(--editorial-label-size) / 1.35 var(--editorial-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

body.page-categories--editorial .product-grid-item .product-name a:hover {
  color: var(--editorial-ink);
  opacity: .7;
  text-decoration: none;
}

body.page-categories--editorial .product-grid-item .product-bottom {
  display: flex;
  justify-content: center;
  position: static;
  overflow: visible;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

body.page-categories--editorial .product-grid-item .product-price {
  display: flex;
  position: static;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: none;
}

body.page-categories--editorial .product-grid-item:hover .product-price {
  transform: none;
}

body.page-categories--editorial .product-grid-item .price-new,
body.page-categories--editorial .product-grid-item .price-old {
  margin: 0;
  font: 400 var(--editorial-meta-size) / 1.3 var(--editorial-font);
  letter-spacing: .04em;
  color: var(--editorial-ink);
}

body.page-categories--editorial .product-grid-item .price-old {
  color: var(--editorial-muted);
  text-decoration: line-through;
}

/* Story */
body.page-categories--editorial .editorial-plp__story {
  max-width: 42rem;
  margin: clamp(48px, 7vw, 88px) auto 0;
  text-align: center;
}

body.page-categories--editorial .editorial-plp__story-body {
  color: var(--editorial-muted);
  font: 400 var(--editorial-body-lg-size) / var(--editorial-body-lg-line) var(--editorial-font);
}

body.page-categories--editorial .editorial-plp__story-body p:last-child {
  margin-bottom: 0;
}

body.page-categories--editorial .editorial-plp__pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

body.page-categories--editorial .editorial-plp__pagination .pagination {
  gap: 4px;
}

body.page-categories--editorial .editorial-plp__pagination .page-link {
  border: 0;
  background: transparent;
  color: var(--editorial-ink);
  font: 500 12px / 1 var(--editorial-font);
  letter-spacing: .08em;
}

/* Always-on filter drawer for editorial PLP */
body.page-categories--editorial .filter-sidebar {
  position: fixed !important;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 1050;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -2px 0 10px rgba(0, 0, 0, .1);
  padding: 1rem;
  padding-bottom: max(2.25rem, calc(1.25rem + env(safe-area-inset-bottom, 0px)));
}

body.page-categories--editorial .filter-sidebar.show {
  transform: translateX(0);
}

@media (max-width: 767.98px) {
  body.page-categories--editorial .editorial-plp__toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
  }

  body.page-categories--editorial .editorial-plp__subnav {
    order: 2;
    width: 100%;
    padding-bottom: 4px;
  }

  body.page-categories--editorial .editorial-plp__actions {
    order: 1;
    width: 100%;
    justify-content: flex-end;
  }

  body.page-categories--editorial .editorial-plp__title {
    font-size: clamp(26px, 7vw, 32px);
  }
}
