body.sly-v2 .sly-v2-plp {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: var(--sly-space-4);
  min-width: 0;
  box-sizing: border-box;
}

/* Broad centered catalog (~75–80% viewport on large desktops). */
@media (min-width: 1024px) {
  body.sly-v2 .sly-v2-plp {
    width: var(--sly-plp-max);
    max-width: var(--sly-plp-max);
    padding-left: 0;
    padding-right: 0;
  }
}

body.sly-v2 .sly-v2-plp__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sly-space-2) var(--sly-space-3);
  margin-bottom: var(--sly-space-4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.sly-v2 .sly-v2-plp__count {
  color: var(--sly-fg-muted);
  font-size: var(--sly-fs-sm);
  flex: 0 1 auto;
  min-width: 0;
}

body.sly-v2 .sly-v2-plp__controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sly-space-2);
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

body.sly-v2 .sly-v2-plp__active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sly-space-3);
  margin-bottom: var(--sly-space-5);
  padding: var(--sly-space-3) 0;
  border-top: 1px solid var(--sly-line);
  border-bottom: 1px solid var(--sly-line);
}

body.sly-v2 .sly-v2-plp__active[hidden] {
  display: none;
}

body.sly-v2 .sly-v2-plp__active-label {
  font-size: var(--sly-fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sly-fg-muted);
}

body.sly-v2 .sly-v2-plp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sly-space-2);
  flex: 1;
}

body.sly-v2 .sly-v2-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--sly-space-2);
  border: 1px solid var(--sly-line);
  color: var(--sly-fg);
  font-size: var(--sly-fs-xs);
}

body.sly-v2 .sly-v2-plp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sly-space-5);
  min-width: 0;
  width: 100%;
}

body.sly-v2 .sly-v2-plp__catalog {
  min-width: 0;
  width: 100%;
}

/* Permanent sidebar removed — filters live in the drawer only. */
body.sly-v2 .sly-v2-filters--desktop {
  display: none !important;
}

body.sly-v2 .sly-v2-filters {
  border: 1px solid var(--sly-line);
  padding: var(--sly-space-4);
}

body.sly-v2 .sly-v2-filters__group + .sly-v2-filters__group {
  margin-top: var(--sly-space-3);
  padding-top: var(--sly-space-3);
  border-top: 1px solid var(--sly-line);
}

body.sly-v2 .sly-v2-filters__toggle {
  display: flex;
  align-items: center;
  gap: var(--sly-space-2);
  width: 100%;
  padding: var(--sly-space-2) 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

body.sly-v2 .sly-v2-filters__label {
  flex: 1;
  font-size: var(--sly-fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sly-fg-muted);
}

body.sly-v2 .sly-v2-filters__selected-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--sly-fg);
  color: var(--sly-bg);
  font-size: 0.7rem;
  line-height: 1.25rem;
  text-align: center;
}

body.sly-v2 .sly-v2-filters__chev {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  opacity: 0.55;
}

body.sly-v2 .sly-v2-filters__toggle[aria-expanded="true"] .sly-v2-filters__chev {
  transform: rotate(-135deg);
}

body.sly-v2 .sly-v2-filters__panel {
  display: grid;
  gap: var(--sly-space-2);
  padding: 0 0 var(--sly-space-3);
}

body.sly-v2 .sly-v2-filters__panel[hidden] {
  display: none;
}

body.sly-v2 .sly-v2-filters__actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sly-space-2);
  margin-top: var(--sly-space-5);
  position: sticky;
  bottom: 0;
  padding-top: var(--sly-space-3);
  background: var(--sly-bg, #fff);
}

body.sly-v2 .sly-v2-chip--removable {
  cursor: pointer;
  gap: 0.35rem;
}

body.sly-v2 .sly-v2-plp__filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--sly-fg);
  color: var(--sly-bg);
  font-size: 0.7rem;
  line-height: 1;
}

body.sly-v2 .sly-v2-plp__filter-badge[hidden] {
  display: none;
}

body.sly-v2 .sly-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sly-card-gap);
  min-width: 0;
  width: 100%;
}

@media (min-width: 768px) {
  body.sly-v2 .sly-v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body.sly-v2 .sly-v2-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Continuous light-grey product card: image + copy + swatches in one field. */
body.sly-v2 .sly-v2-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  background: #e8e8ea;
  color: #111;
}

body.sly-v2 .sly-v2-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #e8e8ea;
  display: block;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

body.sly-v2 .sly-v2-card__media > a {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body.sly-v2 .sly-v2-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
}

body.sly-v2 .sly-v2-card__wish {
  position: absolute;
  top: var(--sly-space-2);
  right: var(--sly-space-2);
  z-index: 2;
  color: #111;
  background: rgba(232, 232, 234, 0.92);
}

body.sly-v2 .sly-v2-card__title {
  font-size: var(--sly-fs-md);
  font-weight: 600;
  margin: 0;
  padding: var(--sly-space-3) var(--sly-space-4) 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #111;
}

body.sly-v2 .sly-v2-card__title a {
  color: #111;
}

body.sly-v2 .sly-v2-card__meta {
  color: #444;
  font-size: var(--sly-fs-sm);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: var(--sly-space-1) var(--sly-space-4) 0;
}

body.sly-v2 .sly-v2-card__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sly-space-2);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: var(--sly-space-3) var(--sly-space-4) var(--sly-space-4);
  box-sizing: border-box;
}

body.sly-v2 .sly-v2-card__swatch {
  width: 32px;
  height: 32px;
  min-width: 0;
  min-height: 32px;
  flex: 0 1 32px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #e8e8ea;
  color: #111;
  font-size: var(--sly-fs-xs);
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.sly-v2 .sly-v2-card__swatch img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  background: #e8e8ea;
}

body.sly-v2 .sly-v2-load-more {
  display: flex;
  justify-content: center;
  margin: var(--sly-section-gap) 0;
}

/* --------------------------------------------------------------------------
 * PLP composition preview (?sly_plp_composition=1) — Ray-Ban-like card framing.
 * -------------------------------------------------------------------------- */

body.sly-v2 .sly-v2-plp--composition {
  padding: var(--sly-space-4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.sly-v2 .sly-v2-plp__composition-head {
  margin-bottom: var(--sly-space-6);
  max-width: 100%;
  min-width: 0;
}

body.sly-v2 .sly-v2-plp__composition-kicker {
  margin: 0 0 var(--sly-space-2);
  font-size: var(--sly-fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sly-fg-muted);
  overflow-wrap: anywhere;
}

body.sly-v2 .sly-v2-plp__composition-title {
  margin: 0 0 var(--sly-space-2);
  font-size: var(--sly-fs-xl);
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.sly-v2 .sly-v2-plp__composition-note {
  margin: 0;
  color: var(--sly-fg-muted);
  font-size: var(--sly-fs-sm);
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Two equal shrinkable columns on mobile; three from tablet up. */
body.sly-v2 .sly-v2-grid--composition {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sly-space-5) var(--sly-space-3);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  body.sly-v2 .sly-v2-grid--composition {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sly-space-6) var(--sly-space-5);
  }
}

body.sly-v2 .sly-v2-plp--composition .sly-v2-card {
  gap: var(--sly-space-3);
  height: 100%;
  min-width: 0;
  max-width: 100%;
}

/*
 * Portrait plates (4:5): derived assets already compose glasses ~72% width on
 * an opaque light-grey field. Fill the media frame edge-to-edge — no CSS inset,
 * no dark tile, no visible white photo rectangle.
 * Images must remain max-width:100% so intrinsic 1200px plates cannot force
 * grid columns wider than the viewport (no overflow:hidden page mask).
 */
body.sly-v2 .sly-v2-plp--composition .sly-v2-card__media {
  aspect-ratio: 4 / 5;
  background: #e8e8ea;
  padding: 0;
  overflow: hidden; /* crop within the 4:5 frame only */
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.sly-v2 .sly-v2-plp--composition .sly-v2-card__media > a {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body.sly-v2 .sly-v2-plp--composition .sly-v2-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
}

body.sly-v2 .sly-v2-plp--composition .sly-v2-card__media .sly-v2-empty-media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: #e8e8ea;
  color: #6b6b70;
  border-bottom: 0;
}

body.sly-v2 .sly-v2-plp--composition .sly-v2-card__wish {
  color: #111;
  background: rgba(232, 232, 234, 0.92);
}

/* Kill default blue/purple underlined product links on cards (all PLP cards). */
body.sly-v2 .sly-v2-card__title a,
body.sly-v2 .sly-v2-card__media > a {
  color: inherit;
  text-decoration: none;
}

body.sly-v2 .sly-v2-card__title a:hover,
body.sly-v2 .sly-v2-card__title a:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

body.sly-v2 .sly-v2-plp--composition .sly-v2-card__title {
  margin: 0;
  min-height: 1.35em;
  font-size: var(--sly-fs-md);
  font-weight: 600;
  line-height: 1.3;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.sly-v2 .sly-v2-plp--composition .sly-v2-card__meta {
  min-height: 1.25em;
  color: var(--sly-fg-muted);
  font-size: var(--sly-fs-sm);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.sly-v2 .sly-v2-plp--composition .sly-v2-card__swatches {
  margin-top: auto;
  min-height: 40px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.sly-v2 .sly-v2-plp--composition .sly-v2-card__swatch {
  width: 32px;
  height: 32px;
  min-width: 0;
  min-height: 32px;
  flex: 0 1 32px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.sly-v2 .sly-v2-plp--composition .sly-v2-card__swatch img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  background: #e8e8ea;
}
