/* Product selection controls; management pages and original media stay unchanged. */
.detail-page .product-summary {
  color: #222;
  padding-top: 10px;
}

.detail-page .detail-title-row h1 {
  font-family: var(--sans, Arial, sans-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

.detail-page .detail-price {
  color: #e95732;
  font-family: var(--sans, Arial, sans-serif);
  font-size: 32px;
  font-weight: 650;
  line-height: 1.3;
  margin: 22px 0;
  padding-bottom: 22px;
  border-color: #ededed;
}

.detail-page .detail-price > small {
  color: #777;
  font-size: 11px;
  font-weight: 400;
  margin-left: 7px;
}

.detail-page .detail-price .review-price-amount {
  color: #e95732;
  font-family: var(--sans, Arial, sans-serif);
  font-size: 30px;
  font-weight: 650;
}

.detail-page .detail-price > .price-pending {
  color: #777;
  font-size: 18px;
  font-weight: 400;
}

.detail-page .product-summary .spec-heading {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 12px;
}

.detail-page .product-summary .spec-heading > span {
  color: #777;
  font-size: 12px;
  font-weight: 400;
}

.detail-page .color-options {
  gap: 9px;
}

.detail-page .color-option {
  min-height: 48px;
  padding: 6px 10px 6px 6px;
  gap: 8px;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 2px;
  color: #444;
  font-size: 12px;
  box-shadow: none;
}

.detail-page .color-option:hover {
  background: #fff;
  border-color: #888;
  color: #222;
}

.detail-page .color-option.active {
  background: #fff;
  border-color: #222;
  color: #222;
  box-shadow: inset 0 0 0 1px #222;
}

.detail-page .color-option > .color-swatch {
  width: 32px;
  height: 38px;
  object-fit: contain;
  border-radius: 0;
}

.detail-page .product-purchase {
  margin-top: 28px;
  color: #222;
}

.detail-page .purchase-price-types {
  margin-bottom: 22px;
}

.detail-page .purchase-price-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-page .purchase-price-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  min-height: 42px;
  padding: 10px 25px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  color: #333;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color .15s, background-color .15s, color .15s;
}

.detail-page .purchase-price-option:hover {
  border-color: #222;
  color: #222;
}

.detail-page .purchase-price-option.active,
.detail-page .purchase-price-option[aria-pressed="true"] {
  border-color: #222;
  background: #222;
  color: #fff;
  font-weight: 600;
}

.detail-page .purchase-condition-controls {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}

.detail-page .purchase-condition-controls:empty {
  margin: 0;
}

.detail-page .product-purchase .matrix-control {
  margin-top: 0;
  gap: 12px;
}

.detail-page .product-purchase .matrix-control > span {
  min-width: 64px;
  padding-top: 8px;
  color: #777;
  font-size: 12px;
}

.detail-page .product-purchase .matrix-control > div {
  gap: 8px;
}

.detail-page .product-purchase .condition-chip {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #dedede;
  border-radius: 2px;
  background: #fff;
  color: #555;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: none;
}

.detail-page .product-purchase .condition-chip:hover {
  border-color: #888;
  color: #222;
}

.detail-page .product-purchase .condition-chip.active {
  border-color: #333;
  background: #fff;
  color: #222;
  box-shadow: inset 0 0 0 1px #333;
}

.detail-page .purchase-sizes {
  margin-top: 20px;
}

.detail-page .purchase-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-page .purchase-size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid #dedede;
  border-radius: 24px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: none;
  transition: border-color .15s, background-color .15s;
}

.detail-page .purchase-size-option:hover {
  border-color: #777;
  background: #fafafa;
}

.detail-page .purchase-size-option.active,
.detail-page .purchase-size-option[aria-pressed="true"] {
  padding: 8px 17px;
  border: 2px solid #222;
  background: #fff;
  color: #222;
  font-weight: 600;
}

.detail-page .purchase-size-option.is-unavailable {
  color: #999;
}

.detail-page .purchase-size-option.is-unavailable.active {
  color: #555;
}

.detail-page .product-purchase button:focus-visible,
.detail-page .color-option:focus-visible {
  outline: 2px solid #222;
  outline-offset: 3px;
}

.detail-page .product-purchase .price-fulfillment-source {
  margin-top: 12px;
  color: #666;
  font-size: 12px;
  line-height: 1.7;
}

.detail-page .product-purchase .price-fulfillment-source strong {
  color: #444;
  font-weight: 500;
}

@media (max-width: 900px) {
  .detail-page .detail-title-row h1 { font-size: 22px; }
  .detail-page .product-summary { padding-top: 0; }
  .detail-page .detail-price { font-size: 30px; }
}

@media (max-width: 540px) {
  .detail-page .detail-title-row h1 { font-size: 21px; line-height: 1.5; }
  .detail-page .detail-price { margin: 18px 0; padding-bottom: 18px; font-size: 28px; }
  .detail-page .detail-price .review-price-amount { font-size: 28px; }
  .detail-page .color-options { gap: 8px; }
  .detail-page .color-option { min-height: 44px; padding: 5px 8px 5px 5px; gap: 6px; }
  .detail-page .color-option > .color-swatch { width: 28px; height: 34px; }
  .detail-page .product-purchase { margin-top: 24px; }
  .detail-page .purchase-price-option { min-width: 110px; min-height: 40px; padding: 9px 22px; }
  .detail-page .purchase-condition-controls { gap: 11px; margin-bottom: 20px; }
  .detail-page .product-purchase .matrix-control { gap: 8px; }
  .detail-page .product-purchase .matrix-control > span { min-width: 58px; font-size: 11px; }
  .detail-page .product-purchase .condition-chip { padding: 7px 10px; font-size: 11px; }
  .detail-page .purchase-size-options { gap: 9px; }
  .detail-page .purchase-size-option { min-width: 62px; min-height: 40px; padding: 9px 16px; }
  .detail-page .purchase-size-option.active,
  .detail-page .purchase-size-option[aria-pressed="true"] { padding: 8px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-page .purchase-price-option,
  .detail-page .purchase-size-option { transition: none; }
}
