.photo-thumbs,
.detail-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.photo-thumbs {
  padding: 6px 8px 0;
}

.photo-thumb,
.detail-thumb {
  display: block;
  flex: 0 0 54px;
  width: 54px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111;
}

.photo-thumb img,
.detail-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-count {
  position: absolute;
  top: 9px;
  right: 9px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #141414d9;
  font-size: 11px;
}

#productDialog {
  position: fixed;
  inset: 0;
  width: min(1100px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  max-height: 96dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
}

#productDialog > .close {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  margin: 0;
  border: 1px solid #ffffffaa;
  background: #111c;
}

#productDialog .detail-images {
  width: 100%;
  gap: 0;
  margin: 0;
  scroll-snap-type: x mandatory;
}

#productDialog .detail-images img {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  max-height: 64dvh;
  object-fit: contain;
  scroll-snap-align: center;
}

.spec-link,
.detail-spec-link {
  display: inline-block;
  color: #9dc7ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.35;
}

.spec-link {
  margin-top: 9px;
  font-size: 11px;
}

.detail-spec-link {
  margin-top: 12px;
  font-size: 13px;
}

.detail-thumbs {
  padding: 8px 10px;
  background: #151515;
}

.detail-thumb {
  flex-basis: 64px;
  width: 64px;
  height: 52px;
  cursor: pointer;
}

.detail-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (min-width: 761px) {
  .photo > .badge,
  .photo > .photo-count {
    display: none;
  }

.seo-category-links {
    display: none;
  }
}

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

.pc-filter summary {
  position: relative;
  padding: 13px 24px 13px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.pc-filter summary::-webkit-details-marker { display: none; }
.pc-filter summary::after {
  content: "⌄";
  position: absolute;
  right: 2px;
  color: var(--muted);
  transition: transform .15s ease;
}
.pc-filter[open] summary::after { transform: rotate(180deg); }
.pc-filter .facet-options { padding: 0 0 10px; }
.pc-filter .facet-option small { margin-left: auto; color: var(--muted); }
.pc-price-filter { margin: 0; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--line); }
.pc-price-filter legend { padding: 12px 0 8px; font-size: 14px; font-weight: 650; }
.pc-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-price-range input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface2); }
.reset-filters { position: sticky; bottom: 0; z-index: 3; margin: 14px 0 0; background: var(--surface2); box-shadow: 0 -8px 12px var(--surface); }
.reset-filters.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.reset-filters.active:hover { color: #fff; filter: brightness(1.08); }
.share-link { position: absolute; top: 10px; right: 54px; z-index: 5; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #ffffffaa; border-radius: 50%; color: #fff; background: #111c; cursor: pointer; }
.share-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-link::after { position: absolute; top: calc(100% + 7px); right: 0; padding: 6px 9px; border-radius: 7px; color: #fff; background: #111e; font-size: 12px; white-space: nowrap; content: attr(data-tooltip); opacity: 0; visibility: hidden; transition: opacity .15s ease; }
.share-link:hover::after, .share-link:focus-visible::after { opacity: 1; visibility: visible; }
.share-link,
#productDialog > .close {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  border: 2px solid #ffffffa8;
  cursor: pointer;
}
.share-link {
  right: 64px;
  background: #28c840;
}
.share-link:hover { background: #22b638; }
.share-link svg { width: 20px; height: 20px; }
#productDialog > .close {
  top: 10px;
  right: 10px;
  margin: 0;
  border: 0;
  background: #ff5f57;
  font-size: 14px;
  line-height: 1;
}
#productDialog > .close:hover { background: #e64b44; }
.pc-no-options { padding: 5px 0 12px; color: var(--muted); font-size: 13px; }

/* Compact product-dialog actions: share, request, close. */
.detail-action,
#productDialog > .close {
  box-sizing: border-box;
  position: absolute;
  z-index: 6;
  top: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.detail-action svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-link { right: 70px; background: #28c840; }
.share-link:hover { background: #22b638; }
.cart-link { right: 40px; background: #0a84ff; }
.cart-link:hover { background: #006fe0; }
#productDialog > .close { right: 10px; background: #ff5f57; font-size: 12px; }
#productDialog > .close:hover { background: #e64b44; }
.detail-action::after { position: absolute; top: calc(100% + 7px); right: 0; padding: 6px 9px; border-radius: 7px; color: #fff; background: #111e; font-size: 12px; white-space: nowrap; content: attr(data-tooltip); opacity: 0; visibility: hidden; transition: opacity .15s ease; }
.detail-action:hover::after, .detail-action:focus-visible::after { opacity: 1; visibility: visible; }
