/* Product page follows the selected image-first storefront direction. */
.live-product {
  max-width: none;
  margin-bottom: 0;
  align-items: start;
}
.product-gallery {
  position: sticky;
  top: 25px;
}
.product-enlarge {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--photo);
  cursor: zoom-in;
  overflow: hidden;
}
.product-enlarge img {
  width: 100%;
  transition: transform 0.4s;
}
.product-enlarge:hover img {
  transform: scale(1.025);
}
.product-enlarge > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border-radius: 50%;
  font-size: 24px;
}
.product-image-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 10px;
  color: var(--muted);
}
.live-product .product-info {
  max-width: none;
}
.live-product .product-color {
  font-size: 12px;
  margin-top: 24px;
}
.product-color strong {
  font-weight: 400;
  margin-right: 20px;
  color: var(--ink);
}
.size-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 10px;
}
.size-heading button {
  min-height: 44px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-options label {
  position: relative;
  cursor: pointer;
}
.size-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.size-options label > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  min-width: 57px;
  min-height: 52px;
  padding: 8px;
  font-size: 12px;
}
.size-options input:checked + span {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.size-options input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.size-options .sold-out {
  cursor: not-allowed;
  color: var(--muted);
}
.size-options small {
  display: block;
  font-size: 8px;
}
.selection-status {
  font-size: 11px;
  color: var(--muted);
  min-height: 18px;
  margin: 12px 0 20px;
}
.live-product .accordions {
  margin-top: 28px;
}
.live-product .accordions ul {
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.live-product .specimen-note {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
#product-zoom {
  width: 1000px;
  max-width: calc(100vw - 30px);
}
#zoom-image {
  max-height: 75svh;
  width: 100%;
  object-fit: contain;
  margin-top: 20px;
}
#size-guide {
  width: 540px;
  max-width: calc(100vw - 30px);
}
#size-guide-content > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
#size-guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 24px 0;
}
#size-guide caption {
  text-align: left;
  font-size: 11px;
  margin-bottom: 12px;
  color: var(--muted);
}
#size-guide th,
#size-guide td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
#size-guide th {
  font-weight: 500;
}
#related[hidden] {
  display: none;
}
@media (max-width: 1000px) {
  .product-gallery {
    position: static;
  }
  .product-image-caption {
    font-size: 9px;
    flex-wrap: wrap;
  }
  .size-options label > span {
    min-width: 50px;
  }
}
@media (max-width: 650px) {
  .live-product {
    margin-bottom: 0;
  }
  .live-product h1 {
    font-size: 44px;
  }
  .product-image-caption {
    font-size: 8px;
  }
  .live-product .product-info {
    padding-top: 30px;
  }
  .size-options label > span {
    min-width: 53px;
  }
  .live-product .product-buy {
    margin-top: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-enlarge img {
    transition: none;
  }
}

.gallery-controls {
  margin-top: 20px;
}
#gallery-status {
  font-size: 11px;
  color: var(--muted);
}
.gallery-thumbnails {
  display: flex;
  gap: 12px;
}
.gallery-thumbnails button {
  padding: 4px;
  border: 1px solid var(--line);
  width: 80px;
  height: 80px;
}
.gallery-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbnails [aria-pressed="true"] {
  border: 2px solid var(--ink);
}
.gallery-thumbnails button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.live-product .primary:disabled {
  background: var(--line);
  color: var(--ink);
}
.size-options .sold-out {
  cursor: pointer;
}
.size-options .sold-out input:checked + span {
  background: var(--line);
  color: var(--ink);
}

/* Color and size choices share a compact, quiet selection rhythm. */
.variant-color {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}
.variant-label {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: 12px;
  margin-bottom: 16px;
}
.variant-label strong {
  font-weight: 400;
  color: var(--muted);
}
.color-sample {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid var(--paper);
  outline: 1px solid var(--ink);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 12px 0 2px;
  background: var(--ink);
}
.color-sneaker {
  background: #26374b;
}
.color-shirt {
  background: #e9e5da;
}
.color-tote {
  background: #a77745;
}
.color-cup {
  background: #8b916d;
}
.color-overshirt {
  background: #637687;
}
.color-cap {
  background: #aa5e43;
}
.color-bowl {
  background: #c3b49b;
}
.color-pouch {
  background: #6e7356;
}
.color-availability {
  font-size: 10px;
  color: var(--muted);
}
.live-product .product-buy {
  margin-top: 18px;
}
.size-heading {
  margin-bottom: 14px;
}
.size-heading > span {
  font-size: 12px;
}
.size-heading strong {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 18px;
}
.size-heading button {
  font-size: 11px;
  text-decoration-color: var(--line);
}
.size-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.size-options label > span {
  min-width: 0;
  min-height: 52px;
  border-radius: 3px;
  font-size: 12px;
  transition: border-color 0.15s;
}
.size-options label:hover > span {
  border-color: var(--ink);
}
.size-options input:checked + span {
  box-shadow: inset 0 0 0 1px var(--ink);
}
.size-options .sold-out > span {
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 7px,
    #173c3c05 7px,
    #173c3c05 8px
  );
  color: var(--muted);
}
.size-options small {
  font-size: 8px;
  margin-top: 2px;
}
.selection-status {
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
  margin: 4px 0 16px;
  font-size: 10px;
  line-height: 1.6;
}
.live-product .product-quantity {
  margin: 16px 0;
}
.live-product .product-quantity input {
  min-height: 44px;
  border-radius: 3px;
}
.live-product .product-buy .primary {
  min-height: 54px;
}
@media (max-width: 650px) {
  .variant-color {
    padding: 18px 0 22px;
  }
  .size-options {
    gap: 8px;
  }
  .size-options label > span {
    min-height: 52px;
  }
  .size-heading strong {
    margin-left: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .size-options label > span {
    transition: none;
  }
}

.color-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.color-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
}
.color-options button[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.color-options .color-sample {
  margin: 0;
  width: 26px;
  height: 26px;
  border-width: 3px;
  outline-color: var(--line);
}
.color-sneaker-sand {
  background: #c1aa87;
}
.color-options button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
