/* Shop / Product Archive — Cotton collection layout */

.bsp-shop-archive--cotton {
  --bsp-shop-pad-x: 24px;
  --bsp-shop-gap: 16px;
  --bsp-fp-gap: 16px;
  --bsp-fp-columns: var(--bsp-shop-columns, 4);
  background: #ffffff;
  color: #111111;
}

.bsp-shop-archive--cotton .bsp-shop-archive__hero {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 36vw, 500px);
  overflow: hidden;
  background: #1a1a1a;
}

.bsp-shop-archive--cotton .bsp-shop-archive__hero-media {
  position: absolute;
  inset: 0;
  background-color: #2a2a2a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bsp-shop-archive--cotton .bsp-shop-archive__hero--fallback .bsp-shop-archive__hero-media {
  background-image: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%);
}

.bsp-shop-archive--cotton .bsp-shop-archive__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.48) 100%);
  pointer-events: none;
}

.bsp-shop-archive--cotton .bsp-shop-archive__hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 40px var(--bsp-shop-pad-x);
  box-sizing: border-box;
}

.bsp-shop-archive--cotton .bsp-shop-archive__hero-title {
  margin: 0;
  max-width: min(640px, 58vw);
  color: #ffffff;
  font-family: var(--bsp-font-heading, inherit);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: right;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.bsp-shop-archive--cotton .bsp-shop-archive__shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--bsp-shop-pad-x) 64px;
  box-sizing: border-box;
}

.bsp-shop-archive--cotton .bsp-shop-archive__breadcrumbs {
  display: none;
}

.bsp-shop-archive--cotton .bsp-shop-archive__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 24px;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  min-width: 0;
  flex: 1 1 auto;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet {
  position: relative;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: #111111;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-trigger::-webkit-details-marker {
  display: none;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-trigger svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet[open] .bsp-shop-archive__facet-trigger svg {
  transform: rotate(180deg);
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 1200;
  min-width: 240px;
  max-width: min(320px, 86vw);
  max-height: min(360px, 60vh);
  overflow: auto;
  padding: 16px;
  border: 1px solid #e8e8e8;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-panel--price {
  min-width: 280px;
  overflow: visible;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list li {
  margin: 0 0 8px;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list li:last-child {
  margin-bottom: 0;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list a,
.bsp-shop-archive--cotton .bsp-shop-archive__facet-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333333;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list a.is-active,
.bsp-shop-archive--cotton .bsp-shop-archive__facet-list a:hover {
  color: #111111;
  font-weight: 600;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list--sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list--sizes li {
  margin: 0;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list--sizes label {
  min-width: 40px;
  min-height: 34px;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list--sizes input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list--sizes input:checked + span {
  font-weight: 600;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-list--sizes label:has(input:checked) {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facet-count {
  color: #8a8a8a;
  margin-left: auto;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facets-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid #111111;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facets-apply:hover {
  background: #111111;
  color: #ffffff;
}

.bsp-shop-archive--cotton .bsp-shop-archive__facets-clear {
  color: #111111;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bsp-shop-archive--cotton .bsp-shop-archive__toolbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.bsp-shop-archive--cotton .bsp-shop-archive__count {
  display: block;
  margin: 0;
  color: #6b6b6b;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.bsp-shop-archive--cotton .bsp-shop-archive__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.bsp-shop-archive--cotton .bsp-shop-archive__sort-label {
  color: #111111;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.bsp-shop-archive--cotton .bsp-shop-archive__sort-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 140px;
  padding: 6px 28px 6px 0;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23111111' stroke-width='1.6' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center;
  color: #111111;
  font-size: 14px;
  cursor: pointer;
}

.bsp-shop-archive--cotton .bsp-shop-archive__sort-select:focus {
  outline: none;
}

.bsp-shop-archive--cotton .bsp-shop-archive__mobile-filters {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0 0 16px;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Product grid */
.bsp-shop-archive--cotton .bsp-shop-archive__grid {
  width: 100%;
  padding: 0;
  background: transparent;
  --bsp-fp-pad-x: 0;
}

.bsp-shop-archive--cotton .bsp-shop-archive__grid-track {
  display: grid;
  grid-template-columns: repeat(var(--bsp-shop-columns, 4), minmax(0, 1fr));
  gap: var(--bsp-shop-gap);
}

.bsp-shop-archive--cotton .bsp-fp-slider__card {
  flex: none;
  width: auto;
}

.bsp-shop-archive--cotton .bsp-fp-slider__card-media {
  margin-bottom: 12px;
}

.bsp-shop-archive--cotton .bsp-fp-slider__badge {
  background: #ffffff;
  color: #111111;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
}

.bsp-shop-archive--cotton .bsp-fp-slider__badge--new {
  background: #ffffff;
  color: #111111;
}

.bsp-shop-archive--cotton .bsp-fp-slider__badge--sale {
  color: #cf2e2e;
}

.bsp-shop-archive--cotton .bsp-fp-slider__wishlist {
  opacity: 0;
}

.bsp-shop-archive--cotton .bsp-fp-slider__card:hover .bsp-fp-slider__wishlist {
  opacity: 1;
}

.bsp-shop-archive--cotton .bsp-shop-archive__pagination {
  margin-top: 40px;
}

.bsp-shop-archive--cotton .bsp-shop-archive__pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsp-shop-archive--cotton .bsp-shop-archive__pagination .page-numbers a,
.bsp-shop-archive--cotton .bsp-shop-archive__pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
  color: #111111;
  font-size: 13px;
  text-decoration: none;
}

.bsp-shop-archive--cotton .bsp-shop-archive__pagination .page-numbers .current {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.bsp-shop-archive--cotton .bsp-shop-archive__empty {
  padding: 48px 0;
  text-align: center;
  color: #6b6b6b;
}

/* Desktop: hide sidebar drawer filters (used on mobile) */
.bsp-shop-archive--cotton > .bsp-shop-archive__filters {
  display: none;
}

/* Legacy filter pieces (drawer / shared) */
.bsp-shop-archive__breadcrumbs {
  margin: 0 0 12px;
  color: var(--bsp-sr-muted, #9ca3af);
  font-size: 13px;
}

.bsp-shop-archive__breadcrumbs a {
  color: var(--bsp-sr-muted, #9ca3af);
  text-decoration: none;
}

.bsp-shop-archive__breadcrumbs a:hover {
  color: var(--bsp-sr-accent, #1a1a1a);
}

.bsp-shop-archive__breadcrumb-sep {
  margin: 0 6px;
  color: var(--bsp-sr-muted, #9ca3af);
}

.bsp-shop-archive__title {
  font-family: var(--bsp-font-heading);
}

.bsp-shop-archive__filter-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--bsp-sr-border, #e5e7eb);
}

.bsp-shop-archive__filter-title {
  margin: 0 0 12px;
  color: var(--bsp-sr-title, #111827);
  font-size: 14px;
  font-weight: 700;
}

.bsp-shop-archive__category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsp-shop-archive__category-list li {
  margin-bottom: 8px;
}

.bsp-shop-archive__category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--bsp-sr-text, #6b7280);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bsp-shop-archive__category-link span {
  color: var(--bsp-sr-muted, #9ca3af);
}

.bsp-shop-archive__category-link:hover,
.bsp-shop-archive__category-link.is-active {
  color: var(--bsp-sr-accent, #1a1a1a);
  font-weight: 600;
}

.bsp-shop-archive__brand-search {
  width: 100%;
  min-height: 36px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid var(--bsp-sr-border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  color: var(--bsp-sr-title, #111827);
  font-size: 13px;
}

.bsp-shop-archive__brand-search:focus {
  outline: none;
  border-color: var(--bsp-sr-accent, #1a1a1a);
}

.bsp-shop-archive__show-more {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bsp-sr-accent, #1a1a1a);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bsp-shop-archive__filter-collapsible {
  border-bottom: 1px solid var(--bsp-sr-border, #e5e7eb);
}

.bsp-shop-archive__filter-collapsible-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  color: var(--bsp-sr-title, #111827);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.bsp-shop-archive__filter-collapsible-head::-webkit-details-marker {
  display: none;
}

.bsp-shop-archive__filter-collapsible-head i {
  color: var(--bsp-sr-muted, #9ca3af);
  font-size: 12px;
}

.bsp-shop-archive__filter-collapsible[open] .bsp-shop-archive__filter-collapsible-head i {
  transform: rotate(45deg);
}

.bsp-shop-archive__filter-collapsible .bsp-search-results__filter-list {
  padding-bottom: 14px;
}

.bsp-shop-archive__apply-filters {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid #111111;
  border-radius: 0;
  background: #fff;
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bsp-shop-archive__apply-filters:hover {
  background: #111111;
  color: #fff;
}

.bsp-shop-archive__clear-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1.5px solid var(--bsp-sr-accent, #1a1a1a);
  border-radius: 8px;
  background: #fff;
  color: var(--bsp-sr-accent, #1a1a1a);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.bsp-shop-archive__clear-filters:hover {
  background: var(--bsp-sr-accent, #1a1a1a);
  color: #fff;
}

.bsp-shop-archive__filters .bsp-search-results__filters-head {
  display: none;
}

.bsp-shop-archive__size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bsp-shop-archive__size-item {
  margin: 0 !important;
}

.bsp-shop-archive__size-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.bsp-shop-archive__size-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bsp-shop-archive__size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--bsp-sr-border, #e5e7eb);
  background: #fff;
  color: var(--bsp-sr-title, #111827);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bsp-shop-archive__size-label input:checked + .bsp-shop-archive__size-pill {
  border-color: var(--bsp-sr-accent, #1a1a1a);
  background: var(--bsp-sr-accent, #1a1a1a);
  color: #fff;
}

.bsp-shop-archive__size-label .bsp-search-results__filter-count {
  display: none;
}

.bsp-shop-archive__color-list .bsp-search-results__filter-item label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bsp-shop-archive__color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 50%;
  background: var(--bsp-filter-swatch, #d1d5db);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media (max-width: 1199px) {
  .bsp-shop-archive--cotton .bsp-shop-archive__grid-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .bsp-shop-archive--cotton {
    --bsp-shop-pad-x: 16px;
  }

  .bsp-shop-archive--cotton .bsp-shop-archive__hero-content {
    justify-content: center;
  }

  .bsp-shop-archive--cotton .bsp-shop-archive__hero-title {
    max-width: none;
    text-align: center;
  }

  .bsp-shop-archive--cotton .bsp-shop-archive__facets {
    display: none;
  }

  .bsp-shop-archive--cotton .bsp-shop-archive__toolbar {
    justify-content: flex-end;
    padding: 12px 0;
    margin-bottom: 12px;
  }

  .bsp-shop-archive--cotton .bsp-shop-archive__mobile-filters {
    display: inline-flex;
  }

  .bsp-shop-archive--cotton .bsp-shop-archive__grid-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* Re-enable drawer filters on tablet/mobile */
  .bsp-shop-archive--cotton > .bsp-shop-archive__filters {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100070;
    width: min(320px, 88vw);
    margin: 0;
    padding: 20px 16px;
    border-radius: 0;
    background: #ffffff;
    transform: translateX(-110%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-sizing: border-box;
  }

  body.bsp-search-filters-open .bsp-shop-archive--cotton > .bsp-shop-archive__filters {
    transform: translateX(0);
  }
}

@media (max-width: 575px) {
  .bsp-shop-archive--cotton .bsp-shop-archive__toolbar-meta {
    width: 100%;
    justify-content: space-between;
  }

  .bsp-shop-archive--cotton .bsp-shop-archive__sort-label {
    display: none;
  }
}
