/* Additive pilot controls only; products without size metadata are unchanged. */
.nh-size-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 10px 0 14px;
}
.nh-size-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}
.nh-size-choice[aria-current="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--surface);
}
.nh-size-choice:hover {
  border-color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nh-size-choice:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.nh-size-search {
  display: block;
}
.nh-size-search-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
.nh-size-search .result-info,
.quick-product:has(.nh-size-choices) .quick-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.quick-product:has(.nh-size-choices) .gallery-thumbnails {
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

/* PDP: title first, photographs next, then a single compact size rail. */
.product-page .pdp-hero {
  grid-template-rows: auto auto 1fr;
  row-gap: 18px;
  column-gap: clamp(28px, 4vw, 64px);
}
.product-page .pdp-heading { grid-column: 1 / -1; grid-row: 1; }
.product-page .pdp-heading h1 { font-size: clamp(30px, 3.4vw, 42px); max-width: 30ch; }
.product-page .pdp-gallery { grid-column: 1; grid-row: 2 / span 2; }
.product-page .pdp-overview { grid-column: 2; grid-row: 2; min-width: 0; }
.product-page .pdp-summary { grid-column: 2; grid-row: 3; min-width: 0; }
.product-page .pdp-overview:has(.nh-size-choices)::before {
  content: 'Ölçü seçin';
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}
.product-page .pdp-overview .nh-size-choices {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #b9afa6 transparent;
  margin: 8px 0 12px;
  padding: 2px 2px 9px;
}
.product-page .pdp-overview .nh-size-choice {
  flex: 0 0 auto;
  max-width: min(260px, calc(100vw - 52px));
  min-height: 44px;
  padding-inline: 12px;
  scroll-snap-align: start;
}
.product-page .pdp-gallery-bottom .pdp-thumbnails {
  flex: 1 1 100%;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  padding-bottom: 5px;
}
.product-page .pdp-thumbnails > button { flex: 0 0 auto; scroll-snap-align: start; }
@media (max-width: 759px) {
  .product-page .pdp-hero { display: flex; flex-direction: column; gap: 0; }
  .product-page .pdp-heading { order: 0; }
  .product-page .pdp-gallery { order: 1; }
  .product-page .pdp-overview { order: 2; width: 100%; padding: 16px 0 0; }
  .product-page .pdp-summary { order: 3; }
  .product-page .pdp-heading h1 { font-size: clamp(28px, 8vw, 34px); }
  .product-page .pdp-overview .nh-size-choices { margin-bottom: 10px; }
  .product-page .pdp-attributes { margin-top: 12px; }
  .product-page .pdp-gallery-bottom .pdp-thumbnails { flex-basis: 100%; }
}
