.collection-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.collection-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.collection-breadcrumbs a {
  color: #111827;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.collection-breadcrumbs a:hover {
  opacity: 0.7;
}

.collection-hero {
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid #ececec;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.03), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #faf8f6 100%);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.collection-hero__content h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #111111;
}

.collection-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b5e3c;
}

.collection-hero__meta {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.collection-panel {
  border: 1px solid #ececec;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  padding: 18px;
}

.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.collection-toolbar__left,
.collection-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toolbar-group label,
.view-switch__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.toolbar-group select {
  min-width: 140px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.toolbar-group select:focus {
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.view-switch__btn {
  width: 44px;
  height: 44px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.view-switch__btn span {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: #111;
  opacity: 0.8;
}

.view-switch__btn[data-view-mode="compact"] {
  grid-template-columns: repeat(2, 1fr);
}

.view-switch__btn[data-view-mode="compact"] span {
  height: 8px;
}

.view-switch__btn[data-view-mode="comfort"] {
  grid-template-columns: 1fr;
}

.view-switch__btn[data-view-mode="comfort"] span {
  height: 6px;
}

.view-switch__btn[data-view-mode="wide"] {
  grid-template-columns: 1fr;
}

.view-switch__btn[data-view-mode="wide"] span {
  height: 10px;
}

.view-switch__btn:hover {
  transform: translateY(-1px);
  border-color: #d1d5db;
}

.view-switch__btn.is-active {
  background: linear-gradient(180deg, #111, #262626);
  border-color: #111;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.14);
}

.view-switch__btn.is-active span {
  background: #fff;
  opacity: 1;
}

.product-grid {
  display: grid;
  gap: 16px;
}

.product-grid.is-view-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid.is-view-comfort {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid.is-view-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 22px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #dddddd;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.25s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

.product-card__media.is-protected img {
  filter: blur(6px);
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card__body {
  padding: 14px 15px 16px;
}

.product-card__vendor {
  margin-bottom: 6px;
  color: #8b8b8b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card__title {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.3;
  color: #111111;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  opacity: 0.75;
}

.product-card__price {
  color: #111111;
  font-size: 16px;
  font-weight: 700;
}

.product-card__locked {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
}

.product-card__locked-sub {
  color: #8b8b8b;
}

.collection-empty-state {
  padding: 28px 18px;
  border: 1px dashed #d6d6d6;
  border-radius: 18px;
  background: #fafafa;
  text-align: center;
  color: #4b5563;
}

.pager-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.pager-info {
  font-size: 14px;
  color: #6b7280;
}

.pager {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.16s ease;
}

.pager a:hover {
  transform: translateY(-1px);
  border-color: #d1d5db;
}

.pager .is-active,
.pager a[aria-current="page"] {
  background: linear-gradient(180deg, #111, #262626);
  color: #fff;
  border-color: #111;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.12);
}

.pager .disabled {
  color: #b7b7b7;
  background: #fafafa;
  border-color: #eeeeee;
  pointer-events: none;
}

.pager .gap {
  min-width: auto;
  padding: 0 6px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.pager .chev {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .product-grid.is-view-compact,
  .product-grid.is-view-comfort {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid.is-view-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .view-switch__btn--3 {
    display: none;
  }
}

@media (max-width: 780px) {
  .collection-shell {
    width: min(100%, calc(100% - 20px));
    padding: 14px 0 24px;
  }

  .collection-hero,
  .collection-panel {
    border-radius: 18px;
  }

  .collection-toolbar {
    align-items: stretch;
  }

  .collection-toolbar__left,
  .collection-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-group {
    flex: 1 1 0;
  }

  .toolbar-group select {
    width: 100%;
    min-width: 0;
  }

  .product-grid.is-view-compact,
  .product-grid.is-view-comfort {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid.is-view-wide {
    grid-template-columns: 1fr;
  }

  .pager-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .product-card__title {
    font-size: 15px;
  }

  .product-card__body {
    padding: 12px 12px 14px;
  }

  .view-switch__btn--3 {
    display: none;
  }
  .view-switch__btn--2 span:nth-child(2) {
    display: none;
  }
  .view-switch__btn--1 span:first-child {
    display: none;
  }
  .view-switch__btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}