.container-project-wide {
  width: 100vw;
  max-width: 100vw !important;
  min-width: 100%;
  padding-left: 30px !important;
  padding-right: 30px !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Ensure product grid breathes edge-to-edge */
.container-project-wide .loop-collections {
  column-gap: 0;
  row-gap: 20px;
  column-gap: 19px;
}

.container-project-wide .category-tabs-wrap {
  margin: 4px 0 20px;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  background: #fff;
}

.container-project-wide .category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: var(--edge-pad-start, 2px);
  padding-right: var(--edge-pad-end, 2px);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.container-project-wide .category-tabs.is-overflow {
  justify-content: flex-start;
}

.container-project-wide .category-tabs::-webkit-scrollbar {
  display: none;
}

.container-project-wide .category-tabs .category-tab {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  color: #b3b3b3;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.15px;
  line-height: 1.2;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.container-project-wide .category-tabs .category-tab:hover {
  color: #2c2c2c;
}

.container-project-wide .category-tabs .category-tab.is-active {
  color: #111;
  font-weight: 600;
  border-bottom-color: var(--theme-color, #111);
}

.container-project-wide .loop-collections .card-collections-products,
.container-project-wide .loop-collections .card-collections-products-other,
.container-project-wide .loop-collections .card-collections {
  box-sizing: border-box;
}

.container-project-wide .pd-list-pagination {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.container-project-wide .pd-list-pagination .pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.08);
}

.container-project-wide .pd-list-pagination .pagination .page-item {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 2px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #1a1a1a;
  background: #fff;
  transition: all 0.2s ease;
}

.container-project-wide .pd-list-pagination .pagination a.page-item:hover {
  color: var(--theme-color, #111);
  border-color: var(--theme-color, #111);
  transform: translateY(-1px);
}

.container-project-wide .pd-list-pagination .pagination .page-item.is-active {
  color: #fff;
  border-color: var(--theme-color, #111);
  background: var(--theme-color, #111);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.2);
}

.container-project-wide .pd-list-pagination .pagination .page-item.is-control {
  min-width: 76px;
  padding: 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.container-project-wide .pd-list-pagination .pagination .page-item.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.container-project-wide .pd-list-pagination .pagination .page-item.is-ellipsis {
  min-width: auto;
  border: none;
  background: transparent;
  color: #9a9a9a;
  padding: 0 2px;
}

.container-project-wide
  .pd-list-pagination
  .pagination
  .page-item:focus-visible {
  outline: 2px solid var(--theme-color, #111);
  outline-offset: 2px;
}

/* Ensure lookbook button matches home outline style */
.btn.btn-lookbook {
  background: transparent !important;
  border: 1px solid #fff !important;
  color: #fff !important;
  box-shadow: none !important;
  border-radius: 0;
}

.btn.btn-lookbook:hover {
  background: #fff !important;
  color: #000 !important;
}

/* Match home product image layout */
.container-project-wide .card-collections-products .continer-preview,
.container-project-wide .card-collections-products-other .continer-preview {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: none;
}

.container-project-wide
  .card-collections-products
  .continer-preview
  .preview-link,
.container-project-wide
  .card-collections-products-other
  .continer-preview
  .preview-link {
  position: absolute;
  inset: 0;
  display: block;
}

.container-project-wide .card-collections-products .continer-preview .img-v1,
.container-project-wide .card-collections-products .continer-preview .img-v2,
.container-project-wide
  .card-collections-products-other
  .continer-preview
  .img-v1,
.container-project-wide
  .card-collections-products-other
  .continer-preview
  .img-v2 {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover !important;
  transition: opacity 0.25s ease;
}

.container-project-wide .card-collections-products .continer-preview .img-v1,
.container-project-wide
  .card-collections-products-other
  .continer-preview
  .img-v1 {
  opacity: 1;
  z-index: 1;
}

.container-project-wide .card-collections-products .continer-preview .img-v2,
.container-project-wide
  .card-collections-products-other
  .continer-preview
  .img-v2 {
  opacity: 0;
  z-index: 2;
}

.container-project-wide
  .card-collections-products:hover
  .continer-preview
  .img-v1,
.container-project-wide
  .card-collections-products-other:hover
  .continer-preview
  .img-v1 {
  opacity: 0;
}

.container-project-wide
  .card-collections-products:hover
  .continer-preview
  .img-v2,
.container-project-wide
  .card-collections-products-other:hover
  .continer-preview
  .img-v2 {
  opacity: 1;
}

/* Keep four items per row on desktop; let existing 25% widths work */
@media (max-width: 1200px) {
  .container-project-wide .loop-collections .card-collections-products,
  .container-project-wide .loop-collections .card-collections-products-other,
  .container-project-wide .loop-collections .card-collections {
    width: 33.333%;
  }
}

@media (max-width: 992px) {
  .container-project-wide {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  .container-project-wide .loop-collections .card-collections-products,
  .container-project-wide .loop-collections .card-collections-products-other,
  .container-project-wide .loop-collections .card-collections {
    width: 46%;
  }
}

@media (max-width: 576px) {
  .container-project-wide {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .container-project-wide .category-tabs-wrap {
    margin-bottom: 16px;
  }
  .container-project-wide .category-tabs {
    gap: 14px;
    padding: 8px 0;
  }
  .container-project-wide .category-tabs .category-tab {
    min-height: 32px;
    font-size: 13px;
  }
  .container-project-wide .pd-list-pagination .pagination {
    gap: 6px;
    padding: 6px 8px;
  }
  .container-project-wide .pd-list-pagination .pagination .page-item {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }
  .container-project-wide
    .pd-list-pagination
    .pagination
    .page-item.is-control {
    min-width: 34px;
    padding: 0 10px;
  }
  .container-project-wide
    .pd-list-pagination
    .pagination
    .page-item.is-control
    span {
    display: none;
  }
  .container-project-wide .loop-collections .card-collections-products,
  .container-project-wide .loop-collections .card-collections-products-other,
  .container-project-wide .loop-collections .card-collections {
    width: 46%;
  }
}
