/* Collection / Shop All page */
.collection-header {
  text-align: center;
  padding: 32px 0 16px;
}

.collection-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 16px;
}

.breadcrumb {
  padding-bottom: 10px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.breadcrumb__list::-webkit-scrollbar { display: none; }

.breadcrumb__link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  opacity: .85;
  white-space: nowrap;
}

.breadcrumb__link:hover { opacity: 1; text-decoration: underline; }

.breadcrumb__divider {
  color: rgba(18,18,18,.35);
  font-size: 12px;
}

.breadcrumb__current {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.collection-description {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(18,18,18,.75);
}

.collection-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.collection-sidebar {
  position: sticky;
  top: calc(var(--site-top-offset, 64px) + 16px);
}

.filter-block {
  border-bottom: 1px solid rgba(18,18,18,.1);
  padding: 16px 0;
}

.filter-block:first-child { padding-top: 0; }

.filter-block__title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-block__title::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

.filter-block.is-open .filter-block__title::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.filter-block__body {
  display: none;
}

.filter-block.is-open .filter-block__body {
  display: block;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  cursor: pointer;
}

.filter-option input { accent-color: #272727; }

.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.price-range input {
  width: 72px;
  height: 36px;
  border: 1px solid rgba(18,18,18,.2);
  border-radius: 4px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 13px;
}

.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.collection-count {
  font-size: 13px;
  color: rgba(18,18,18,.7);
}

.sort-by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.sort-by select {
  height: 38px;
  border: 1px solid rgba(18,18,18,.2);
  border-radius: 4px;
  padding: 0 32px 0 12px;
  font-family: inherit;
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath d='m1 1.5 3 3 3-3' fill='none' stroke='%23121212' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  cursor: pointer;
}

.filter-toggle {
  display: none;
  height: 44px;
  padding: 0 20px;
  background: #121212;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.product-grid .product-card {
  flex: none;
  min-width: 0;
  width: 100%;
}

.product-grid .product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-grid .product-card__title a:hover {
  text-decoration: underline;
}

/* Mobile filter drawer */
.filter-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.4);
}

.filter-drawer.is-open { display: block; }

.filter-drawer__panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s ease;
}

.filter-drawer.is-open .filter-drawer__panel {
  transform: translateX(0);
}

.filter-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 24px;
}

.filter-drawer__apply {
  width: 100%;
  height: 48px;
  margin-top: 24px;
  background: #272727;
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 1199px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 999px) {
  .collection-layout { grid-template-columns: 1fr; }
  .collection-sidebar { display: none; }
  .filter-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 699px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
