.product-page {
  min-width: 20rem;
}

.product-main {
  padding-top: 1.5rem;
}

.product-page-section {
  padding-bottom: 0;
}

.product-page-section__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-detail {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.product-gallery,
.product-info {
  flex: 1 1 46.25rem;
  max-width: calc((100% - 1.25rem) / 2);
  min-width: 0;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.product-gallery__main-wrap {
  position: relative;
  background: var(--color-bg-soft);
  min-height: 46.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  overflow: hidden;
}

.product-gallery__main-image {
  width: 100%;
  max-width: 25.25rem;
  max-height: 38rem;
  object-fit: contain;
  cursor: zoom-in;
}

.product-gallery__main-image:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 0.375rem;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 13, 13, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), opacity var(--transition-fast);
}

.product-gallery__arrow span {
  width: 0.625rem;
  height: 0.625rem;
  border-right: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  transform: rotate(-45deg);
  margin-left: -0.125rem;
}

.product-gallery__arrow--prev {
  left: 1rem;
}

.product-gallery__arrow--prev span {
  transform: rotate(135deg);
  margin-left: 0.125rem;
}

.product-gallery__arrow--next {
  right: 1rem;
}

.product-gallery__thumbs {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.625rem;
}

.product-gallery__thumb {
  width: 5.75rem;
  height: 4.875rem;
  flex: 0 0 5.75rem;
  background: var(--color-bg-soft);
  border: 1px solid transparent;
  min-height: 4.875rem;
  padding: 0.375rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), opacity var(--transition-fast);
}

.product-gallery__thumb img {
  max-width: 4.25rem;
  max-height: 4rem;
  object-fit: contain;
}

.product-gallery__thumb.is-active {
  border-color: var(--color-brand);
}

body.product-lightbox-open {
  overflow: hidden;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.product-lightbox[hidden] {
  display: none;
}

.product-lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 13, 13, 0.82);
  cursor: zoom-out;
}

.product-lightbox__frame {
  position: relative;
  z-index: 1;
  width: 70rem;
  max-width: 100%;
  height: 46rem;
  max-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.product-lightbox.is-loading .product-lightbox__image {
  opacity: 0.35;
}

/* absolute-exception: controlled lightbox loading indicator. */
.product-lightbox__loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  margin-left: -1.5rem;
  margin-top: -1.5rem;
  border: 0.1875rem solid rgba(255, 255, 255, 0.32);
  border-top-color: var(--color-white);
  border-radius: var(--radius-round);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  animation: product-lightbox-spin 0.8s linear infinite;
}

.product-lightbox.is-loading .product-lightbox__loader {
  opacity: 1;
}

/* absolute-exception: controlled lightbox load error message. */
.product-lightbox__error {
  position: absolute;
  left: 50%;
  bottom: 3.75rem;
  z-index: 2;
  width: 24rem;
  max-width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

.product-lightbox__error[hidden] {
  display: none;
}

@keyframes product-lightbox-spin {
  to {
    transform: rotate(360deg);
  }
}

.product-lightbox__close,
.product-lightbox__arrow {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast), background-color var(--transition-fast);
}

.product-lightbox__close:hover,
.product-lightbox__arrow:hover {
  opacity: 0.82;
}

.product-lightbox__close {
  top: 0;
  right: 0;
  width: 3rem;
  height: 3rem;
}

.product-lightbox__close span {
  position: absolute;
  left: 0.8125rem;
  right: 0.8125rem;
  top: 1.4375rem;
  height: 1px;
  background: currentColor;
}

.product-lightbox__close span:first-child {
  transform: rotate(45deg);
}

.product-lightbox__close span:last-child {
  transform: rotate(-45deg);
}

.product-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  margin: 0;
  min-width: 4.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.product-lightbox__arrow {
  top: 50%;
  width: 3.25rem;
  height: 3.25rem;
  transform: translateY(-50%);
}

.product-lightbox__arrow[hidden] {
  display: none;
}

.product-lightbox__arrow span {
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.product-lightbox__arrow--prev {
  left: 0;
}

.product-lightbox__arrow--prev span {
  transform: rotate(135deg);
  margin-left: 0.1875rem;
}

.product-lightbox__arrow--next {
  right: 0;
}

.product-lightbox__arrow--next span {
  transform: rotate(-45deg);
  margin-left: -0.1875rem;
}

.product-info {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-info__title {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  font-family: var(--font-body);
  font-size: 2.625rem;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025rem;
  text-transform: none;
}

.product-info__article {
  margin-top: 0.75rem;
  color: #909090;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.04rem;
}

.product-info__price {
  margin-top: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04rem;
  text-transform: uppercase;
}

.product-info__price-meter {
  color: #909090;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.04rem;
  text-transform: none;
}

.product-sizes {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-sizes__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-sizes__label {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04rem;
}

.product-sizes__guide {
  flex-shrink: 0;
  font-size: 1rem;
}

.product-sizes__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-sizes__list.form-group-error {
  outline: 1px solid #b3261e;
  outline-offset: 0.25rem;
}

.product-sizes__error {
  margin-top: 0.5rem;
  color: #b3261e;
  font-size: 0.875rem;
  line-height: 1.2;
}

.product-sizes__item {
  width: 4.1875rem;
  min-width: 4.1875rem;
  height: 2.875rem;
  border: 1px solid transparent;
  background: var(--color-bg-soft);
  padding: 0 0.5rem;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.04rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

.product-sizes__item:hover {
  border-color: #c8d3e2;
}

.product-sizes__item--disabled,
.product-sizes__item:disabled {
  color: #b4b4b4;
  background: #efefef;
  border-color: transparent;
  opacity: 1;
  cursor: default;
}

.product-meter {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-meter__label {
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.04rem;
}

.product-meter__control {
  display: inline-flex;
  align-items: stretch;
  background: var(--color-bg-soft);
}

.product-meter__button {
  position: relative;
  width: 3rem;
  height: 2.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
}

.product-meter__button span {
  width: 0.625rem;
  height: 1px;
  background: currentColor;
}

.product-meter__button span + span {
  position: absolute;
  transform: rotate(90deg);
}

.product-meter__input {
  width: 4.25rem;
  height: 2.375rem;
  border: 0;
  background: var(--color-bg-soft);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.04rem;
  text-align: center;
}

.product-meter__input::-webkit-outer-spin-button,
.product-meter__input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.product-meter__unit {
  height: 2.375rem;
  padding-right: 0.875rem;
  display: inline-flex;
  align-items: center;
  color: #909090;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.04rem;
}

.product-meter__button:hover {
  opacity: 0.82;
}

.product-info__cta {
  margin-top: 1.5rem;
  width: 22.75rem;
  max-width: 100%;
  height: 3.5rem;
  background: var(--color-brand);
  color: var(--color-white);
  text-transform: uppercase;
}

.product-info__cta:hover,
.product-gallery__arrow:hover,
.product-gallery__thumb:hover {
  opacity: 0.82;
}

.product-info__cta.is-success {
  background: #247b3f;
}

.product-cart-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 80;
  width: 27rem;
  max-width: 27rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto 1.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(13, 13, 13, 0.12);
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 1.25rem 3rem rgba(13, 13, 13, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.product-cart-toast[hidden] {
  display: none;
}

.product-cart-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.product-cart-toast__icon {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-round);
  background: #247b3f;
}

.product-cart-toast__icon::before {
  content: "";
  position: absolute;
  left: 0.6875rem;
  top: 0.5rem;
  width: 0.4375rem;
  height: 0.8125rem;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.product-cart-toast__text {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.product-cart-toast__link {
  color: #02265a;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  white-space: nowrap;
}

.product-cart-toast__close {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.product-cart-toast__close span {
  position: absolute;
  left: 0.3125rem;
  right: 0.3125rem;
  top: 0.7188rem;
  height: 1px;
  background: currentColor;
}

.product-cart-toast__close span:first-child {
  transform: rotate(45deg);
}

.product-cart-toast__close span:last-child {
  transform: rotate(-45deg);
}

.product-cart-toast--error {
  color: #b3261e;
}

.product-cart-toast--error .product-cart-toast__icon {
  background: #b3261e;
}

.product-cart-toast--error .product-cart-toast__icon::before {
  left: 0.9375rem;
  top: 0.5rem;
  width: 0;
  height: 0.75rem;
  border-width: 0 2px 0 0;
  transform: none;
}

@media (max-width: 575.98px) {
  .product-cart-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    grid-template-columns: 2rem minmax(0, 1fr) 1.5rem;
  }

  .product-cart-toast__link {
    grid-column: 2;
    justify-self: start;
  }

  .product-cart-toast__close {
    grid-column: 3;
    grid-row: 1;
  }
}

.product-accordion {
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.product-accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.product-accordion__toggle {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.875rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025rem;
}

.product-accordion__icon {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.product-accordion__icon::before,
.product-accordion__icon::after {
  content: "";
  position: absolute;
  left: 0.3125rem;
  right: 0.3125rem;
  top: 0.7188rem;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.product-accordion__icon::after {
  transform: rotate(90deg);
}

.product-accordion__toggle[aria-expanded="true"] .product-accordion__icon::after {
  opacity: 0;
}

.product-accordion__content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.26s ease;
}

.product-accordion__content p,
.product-accordion__content ul {
  padding: 0 0 0.75rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02rem;
}

.product-accordion__content ul {
  margin: 0;
  padding-left: 1.25rem;
}

.product-accordion__content li + li {
  margin-top: 0.25rem;
}

.product-accordion__content p:last-child,
.product-accordion__content ul:last-child {
  padding-bottom: 1.125rem;
}

.product-related {
  padding-top: 7.5rem;
  padding-bottom: 0;
}

.product-related__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.product-related__title {
  margin: 0;
}

.product-related .popular__grid .product-card {
  position: relative;
}

.product-related .product-card__image-wrap {
  position: relative;
}

@media (max-width: 1439.98px) {
  .product-gallery__main-wrap {
    min-height: 38rem;
    padding: 2rem;
  }

  .product-gallery__main-image {
    max-height: 31rem;
  }

  .product-info__title {
    font-size: 2.5rem;
    letter-spacing: -0.025rem;
  }
}

@media (max-width: 1199.98px) {
  .product-main {
    padding-top: 1.25rem;
  }

  .product-page-section__inner {
    gap: 1.25rem;
  }

  .product-info__title {
    font-size: 2.625rem;
    letter-spacing: -0.025rem;
  }

  .product-info__price {
    margin-top: 1.25rem;
    font-size: 1.75rem;
  }

  .product-sizes {
    margin-top: 1.5rem;
  }

  .product-gallery__main-wrap {
    min-height: 34.5rem;
    padding: 1.5rem;
  }

  .product-gallery__main-image {
    max-width: 21.5rem;
    max-height: 28rem;
  }

  .product-related {
    padding-top: 6.25rem;
  }
}

@media (max-width: 991.98px) {
  .product-main {
    padding-top: 1rem;
  }

  .product-page-section__inner {
    gap: 1.25rem;
  }

  .product-detail {
    flex-direction: column;
    gap: 1.5rem;
  }

  .product-gallery,
  .product-info {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .product-gallery__main-wrap {
    min-height: 32rem;
  }

  .product-info__title {
    font-size: 2.625rem;
    letter-spacing: -0.025rem;
  }

  .product-info__article {
    margin-top: 0.5rem;
  }

  .product-info__price {
    margin-top: 1rem;
  }

  .product-sizes {
    margin-top: 1.25rem;
  }

  .product-info__cta {
    margin-top: 1.25rem;
    width: 100%;
  }

  .product-accordion {
    margin-top: 1.25rem;
  }

  .product-related {
    padding-top: 5rem;
  }

  .product-related__inner {
    gap: 1.875rem;
  }
}

@media (max-width: 767.98px) {
  .product-page-section__inner {
    gap: 1rem;
  }

  .product-gallery {
    gap: 0.5rem;
  }

  .product-gallery__main-wrap {
    min-height: 25rem;
    padding: 1.25rem;
  }

  .product-gallery__main-image {
    max-height: 22rem;
  }

  .product-info__title {
    font-size: 2.125rem;
    letter-spacing: -0.01875rem;
  }

  .product-info__price {
    font-size: 1.5rem;
  }

  .product-sizes__item {
    height: 3.625rem;
    min-height: 3.625rem;
  }

  .product-info__cta {
    min-height: 3.625rem;
    height: 3.625rem;
  }

  .product-accordion__toggle {
    min-height: 3.25rem;
    padding: 0.75rem 0;
    font-size: 1.25rem;
    letter-spacing: -0.025rem;
  }

  .product-accordion__content p,
  .product-accordion__content ul {
    font-size: 0.875rem;
    line-height: 1.3;
    letter-spacing: -0.02rem;
    padding-bottom: 0.625rem;
  }

  .product-accordion__content p:last-child,
  .product-accordion__content ul:last-child {
    padding-bottom: 1rem;
  }

  .product-related {
    padding-top: 4rem;
  }

  .product-related__inner {
    gap: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .product-lightbox {
    padding: 1rem;
  }

  .product-lightbox__frame {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 2rem);
  }

  .product-lightbox__close {
    width: 2.75rem;
    height: 2.75rem;
  }

  .product-lightbox__arrow {
    width: 2.75rem;
    height: 2.75rem;
  }

  .product-lightbox__counter {
    bottom: 0.25rem;
  }

  .product-gallery__main-wrap {
    min-height: 20rem;
    padding: 1rem;
  }

  .product-gallery__arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .product-gallery__arrow--prev {
    left: 0.5rem;
  }

  .product-gallery__arrow--next {
    right: 0.5rem;
  }

  .product-info__title {
    font-size: 1.875rem;
    letter-spacing: -0.0125rem;
  }

  .product-sizes__head {
    align-items: flex-end;
  }

  .product-sizes__list {
    display: grid;
    grid-template-columns: repeat(4, 4.1875rem);
    justify-content: flex-start;
    gap: 0.375rem;
  }

  .product-sizes__item {
    width: 4.1875rem;
    min-width: 4.1875rem;
  }
}

@media (min-width: 480px) and (max-width: 575.98px) {
  .product-sizes__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .product-sizes__item {
    width: 100%;
    min-width: 0;
    height: 3.625rem;
    min-height: 3.625rem;
  }

  .product-info__cta {
    min-height: 3.625rem;
    height: 3.625rem;
  }
}

@media (max-width: 479.98px) {
  .product-page .container {
    max-width: 100%;
    padding-inline: 1rem;
  }

  .product-main {
    padding-top: 0.625rem;
  }

  .product-page-section__inner {
    gap: 1.25rem;
  }

  .product-detail {
    gap: 1.25rem;
  }

  .product-gallery {
    gap: 0.375rem;
  }

  .product-gallery__main-wrap {
    min-height: 20.5rem;
    padding: 1rem 0.75rem;
  }

  .product-gallery__main-image {
    max-width: 11.25rem;
    max-height: 18rem;
  }

  .product-gallery__thumbs {
    gap: 0.375rem;
  }

  .product-gallery__thumb {
    width: 5rem;
    height: 4.25rem;
    flex-basis: 5rem;
    min-height: 4.25rem;
    padding: 0.375rem;
  }

  .product-gallery__thumb img {
    max-width: 3.625rem;
    max-height: 3.375rem;
  }

  .product-info__title {
    overflow-wrap: normal;
    word-break: normal;
    font-size: 1.625rem;
    line-height: 1.1;
    letter-spacing: -0.0125rem;
  }

  .product-info__article {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: -0.0263rem;
  }

  .product-info__price {
    margin-top: 0.875rem;
    font-size: 1.5rem;
    letter-spacing: -0.03rem;
  }

  .product-sizes {
    margin-top: 1rem;
    gap: 0.5rem;
  }

  .product-sizes__label,
  .product-sizes__guide,
  .product-sizes__item {
    font-size: 0.875rem;
    letter-spacing: -0.0263rem;
  }

  .product-sizes__item {
    width: 4.1875rem;
    min-width: 4.1875rem;
    height: 3rem;
    min-height: 3rem;
  }

  .product-info__cta {
    margin-top: 1rem;
    min-height: 3rem;
    height: 3rem;
    font-size: 0.875rem;
    letter-spacing: -0.03rem;
  }

  .product-accordion {
    margin-top: 1rem;
  }

  .product-accordion__toggle {
    min-height: 3rem;
    padding: 0.625rem 0;
    font-size: 1.125rem;
    letter-spacing: -0.0125rem;
  }

  .product-accordion__content p,
  .product-accordion__content ul {
    padding-bottom: 0.5rem;
  }

  .product-accordion__content p:last-child,
  .product-accordion__content ul:last-child {
    padding-bottom: 0.875rem;
  }

  .product-related {
    padding-top: 3.25rem;
  }

  .product-related__inner {
    gap: 1.25rem;
  }

  .product-related .slider-controls {
    gap: 0.75rem;
  }

}

@media (min-width: 400px) and (max-width: 479.98px) {
  .product-info__title {
    font-size: 1.375rem;
    line-height: 1.15;
  }
}
