.btn-outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.section-more { text-align: center; margin-top: 48px; }

.product-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media .hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}

.product-card:hover .has-hover .hover-img { opacity: 1; }

.product-tag, .quick-add { z-index: 2; }

.product-info h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cart-thumb { display: block; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-variant { display: block; font-size: 12px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 20px 0;
}

.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }
.breadcrumb .sep { opacity: .5; }

.collection { max-width: 1440px; margin: 0 auto; padding: 0 24px 72px; }

.collection-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.collection-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.collection-count { font-size: 13px; color: var(--muted); }

.toolbar {
  position: sticky;
  top: calc(var(--header-h) + 46px);
  z-index: 20;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 4px;
}

.toolbar-btn svg { width: 18px; height: 18px; }

.filter-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toolbar-right { display: flex; align-items: center; gap: 20px; }

.select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.select span { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

.select select {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 28px 7px 10px;
  border-radius: var(--radius);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.density { display: flex; gap: 2px; }

.density button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: var(--radius);
}

.density button svg { width: 18px; height: 18px; }
.density button.active { color: var(--ink); background: var(--surface); }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.active-filters:empty { margin: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 20px;
}

.chip span { font-size: 15px; line-height: 1; }
.chip:hover { background: var(--ink); color: #fff; }

.collection .product-grid { margin-top: 28px; }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.pagination button:hover:not(:disabled) { border-color: var(--line); }
.pagination button.current { background: var(--ink); color: #fff; }
.pagination button:disabled { opacity: .3; cursor: default; }
.pagination .gap { color: var(--muted); padding: 0 4px; }

.filter-panel { padding-bottom: 0; }
.filter-groups { flex: 1; overflow-y: auto; }

.filter-group { border-bottom: 1px solid var(--line); }

.filter-group summary, .pdp-acc summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 0;
}

.filter-group summary::-webkit-details-marker, .pdp-acc summary::-webkit-details-marker { display: none; }

.filter-group summary::after, .pdp-acc summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  transition: transform .2s;
}

.filter-group[open] summary::after, .pdp-acc[open] summary::after { transform: rotate(45deg); }

.filter-group ul { padding-bottom: 14px; }

.facet {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
  text-align: left;
}

.facet:disabled { opacity: .35; cursor: default; }

.facet-check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--muted);
  border-radius: 2px;
  flex-shrink: 0;
}

.facet.on .facet-check {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 3px #fff;
}

.facet-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.facet.on .facet-swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink); }
.facet-label { flex: 1; }
.facet-count { font-size: 12px; color: var(--muted); }

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.filter-actions .btn { padding: 14px 12px; }

.product-page { max-width: 1440px; margin: 0 auto; padding: 0 24px 72px; }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.pdp-gallery { position: relative; display: flex; gap: 16px; }

.gallery-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-slide {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide.has-image { background: #f1ede8; cursor: zoom-in; }

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.gallery-slide.zoom { cursor: zoom-out; }
.gallery-slide.zoom img { transform: scale(2); }

.gallery-slide svg {
  width: 38%;
  height: auto;
  stroke: rgba(255, 255, 255, .85);
  stroke-width: 1;
}

.gallery-dots {
  position: sticky;
  top: calc(var(--header-h) + 80px);
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  order: -1;
}

.gallery-dots button {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 4px 6px;
  border-left: 2px solid transparent;
  text-align: left;
}

.gallery-dots button.active { color: var(--ink); border-color: var(--ink); }

.pdp-sticky {
  position: sticky;
  top: calc(var(--header-h) + 72px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdp-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}

.pdp-sku { font-size: 12px; color: var(--muted); margin-top: -12px; letter-spacing: .04em; }

.pdp-price { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.pdp-price-row { display: flex; align-items: baseline; gap: 12px; }
.pdp-price-row strong { font-size: 24px; color: var(--ink); }
.pdp-price-row del { font-size: 15px; }

.pdp-off {
  background: var(--sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: .06em;
}



@keyframes pulse { 50% { opacity: .3; } }

.pdp-option { display: flex; flex-direction: column; gap: 12px; }

.option-head { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.option-head span { color: var(--muted); }
.option-link { margin-left: auto; font-size: 12px; text-decoration: underline; color: var(--muted); }
.option-link:hover { color: var(--ink); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 3px;
  border: 1px solid transparent;
  transition: border-color .2s;
}

.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); }
.swatch:hover { border-color: var(--line); }
.swatch.active { border-color: var(--ink); }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }

.size {
  min-width: 48px;
  height: 44px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: .2s;
}

.size:hover { border-color: var(--ink); }
.size.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.pdp-option.error .sizes { animation: shake .35s; }
.pdp-option.error .option-head strong { color: var(--sale); }

@keyframes shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.pdp-buy { display: flex; gap: 10px; }
.pdp-buy[hidden] { display: none; }

.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stepper button { width: 40px; height: 100%; font-size: 18px; }

.stepper input {
  width: 36px;
  border: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  outline: 0;
  -moz-appearance: textfield;
}

.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-add { flex: 1; padding: 16px 20px; }


.pdp-actions { display: flex; gap: 24px; }

.pdp-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-actions button:hover { color: var(--ink); }
.pdp-actions svg { width: 18px; height: 18px; }
#favBtn.on { color: var(--sale); }
#favBtn.on svg { fill: currentColor; }

.pdp-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
}

.pdp-perks li { display: flex; align-items: center; gap: 12px; }
.pdp-perks svg { width: 20px; height: 20px; flex-shrink: 0; }

.pdp-acc { border-bottom: 1px solid var(--line); }
.pdp-acc:first-child { border-top: 1px solid var(--line); }

.pdp-acc-body {
  padding-bottom: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #4a443e;
}

.pdp-acc-body ul { list-style: disc; padding-left: 18px; }
.pdp-acc-body li + li { margin-top: 4px; }

.pdp-missing {
  grid-column: 1 / -1;
  text-align: center;
  padding: 96px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pdp-missing h1 { font-size: 28px; font-weight: 800; text-transform: uppercase; }
.pdp-missing p { color: var(--muted); }

.related { margin-top: 96px; }
.related .product-grid { grid-template-columns: repeat(4, 1fr); }

.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.size-table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.size-tip { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 20px; }

@media (max-width: 1024px) {
  .product-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .pdp { gap: 32px; }
}

@media (max-width: 860px) {
  .toolbar { top: var(--header-h); }
  .toolbar-right { gap: 10px; }
  .select span, .density { display: none; }
  .product-grid.cols-2, .product-grid.cols-3, .product-grid.cols-4, .related .product-grid { grid-template-columns: repeat(2, 1fr); }
  .collection, .product-page { padding: 0 16px 56px; }

  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .pdp-gallery { margin: 0 -16px; flex-direction: column; gap: 10px; }

  .gallery-track {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0;
  }

  .gallery-track::-webkit-scrollbar { display: none; }
  .gallery-slide { flex: 0 0 100%; scroll-snap-align: start; }
  .gallery-slide.zoom img { transform: none; }

  .gallery-dots {
    position: static;
    flex-direction: row;
    justify-content: center;
    order: 0;
    gap: 8px;
  }

  .gallery-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    font-size: 0;
  }

  .gallery-dots button.active { background: var(--ink); }

  .pdp-sticky { position: static; }

  .pdp-buy {
    position: sticky;
    bottom: 0;
    background: var(--bg);
    padding: 12px 0;
    z-index: 5;
  }

  .related { margin-top: 64px; }
}

@media (max-width: 520px) {
  .collection-head { margin-bottom: 16px; }
  .select select { padding: 7px 24px 7px 8px; font-size: 12px; }
}
