/* iStore accessory release: category rail is the ONLY horizontal scroller.
   Product photographs remain complete; preserve exact SKU/media trust gates. */
.accessories-page [data-accessory-shelf] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-width: 0;
}
.accessories-page [data-accessory-shelf] .acc-jumps {
  margin-top: 0;
  margin-bottom: 7px;
  box-sizing: border-box;
  max-width: calc(100% + 24px);
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.accessories-page [data-accessory-shelf] .acc-section {
  min-width: 0;
  margin-top: 27px;
  scroll-margin-top: 156px;
}
.accessories-page [data-accessory-shelf] .acc-section h2 {
  margin: 0 0 13px;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  line-height: 1.16;
  letter-spacing: -.035em;
}
.accessories-page [data-accessory-shelf] .acc-section .acc-rail {
  box-sizing: border-box;
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: clamp(9px, 1.5vw, 16px);
  overflow: visible;
  padding: 0;
  margin: 0;
  scroll-snap-type: none;
  width: 100%;
}
.accessories-page [data-accessory-shelf] .acc-section .product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e9e9ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  transform: none;
}
.accessories-page [data-accessory-shelf] .acc-section .product-card__media {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  padding: clamp(12px, 2.4vw, 24px);
  background: #f7f7f9;
}
.accessories-page [data-accessory-shelf] .acc-section .product-card__media img {
  box-sizing: border-box;
  display: block;
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  margin: auto;
  object-fit: contain;
  object-position: center center;
  transform: none !important;
  transition: none;
}
.accessories-page [data-accessory-shelf] .acc-section .product-card__body {
  box-sizing: border-box;
  min-width: 0;
  padding: 11px 12px 14px;
  margin-top: auto;
  display: grid;
  gap: 5px;
  align-content: start;
}
.accessories-page [data-accessory-shelf] .acc-section .product-card__body h3 {
  min-height: 2.45em;
  font-size: clamp(12px, 1.4vw, 15px);
  line-height: 1.24;
  letter-spacing: -.02em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.accessories-page [data-accessory-shelf] .acc-section .product-card__body a {
  color: #1d1d1f;
  text-decoration: none;
}
.accessories-page [data-accessory-shelf] .acc-section .product-card__price {
  margin: 1px 0 0;
  font-size: clamp(12px, 1.4vw, 15px);
  font-variant-numeric: tabular-nums;
  color: #1d1d1f;
}
.accessories-page [data-accessory-shelf] .acc-section .product-card__image-note {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  font-size: 10px;
}
.accessories-page [data-accessory-shelf] .acc-section .product-card[data-acc-family="techwoven-wallet"] .product-card__media {
  /* The real, complete square owner photo has a tall wallet. Add room around it. */
  padding: clamp(19px, 5.8vw, 38px);
  background: #f8f8fa;
}
.accessories-page [data-accessory-shelf] .acc-section .product-card[data-acc-family="techwoven-wallet"] .product-card__media img {
  object-fit: contain;
  object-position: center;
  transform: none !important;
}
@media (max-width: 640px) {
  .accessories-page [data-accessory-shelf] .acc-section .acc-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .accessories-page [data-accessory-shelf] .acc-section .product-card__media {
    padding: clamp(12px, 3.3vw, 18px);
  }
  .accessories-page [data-accessory-shelf] .acc-section .product-card[data-acc-family="techwoven-wallet"] .product-card__media {
    padding: clamp(21px, 6vw, 30px);
  }
  .accessories-page [data-accessory-shelf] .acc-section .product-card__body {
    padding: 10px 10px 12px;
  }
  .accessories-page [data-accessory-shelf] .acc-jumps .acc-jump {
    min-height: 69px;
    flex-basis: 73px;
    padding: 8px 6px;
  }
}
@media (max-width: 350px) {
  .accessories-page [data-accessory-shelf] .acc-section .acc-rail { gap: 8px; }
  .accessories-page [data-accessory-shelf] .acc-section .product-card__body h3 { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .accessories-page [data-accessory-shelf] .acc-jumps { scroll-behavior: auto; }
}
