.single-product-page {
  padding-top: 0;
  padding-bottom: 25px;
}

.single-product-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 35px 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 60px;
  row-gap: 24px;
  align-items: start;
}

.product-page-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 0;
  margin-bottom: 4px;
}

.product-breadcrumbs-wrapper {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.woocommerce-breadcrumb.product-breadcrumb,
.product-breadcrumbs-wrapper .woocommerce-breadcrumb {
  font-size: 11px;
  line-height: 16px;
  color: #858585;
  margin: 0;
}

.product-breadcrumbs-wrapper .bc-sep {
  margin: 0 6px;
  color: #858585;
}

.product-breadcrumbs-wrapper .woocommerce-breadcrumb a {
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

.product-breadcrumbs-wrapper .woocommerce-breadcrumb a:hover,
.product-breadcrumbs-wrapper .woocommerce-breadcrumb a:focus {
  color: #202020;
  text-decoration: underline;
}

.single-product-inner .woocommerce-product-gallery {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  margin: 0;
  position: relative;
}

.single-product-inner .woocommerce-product-gallery__wrapper {
  background: #f5f5f5;
}

.single-product-inner .woocommerce-product-gallery .flex-viewport {
  aspect-ratio: 1 / 1;
  height: auto !important;
  overflow: hidden;
}

.single-product-inner .woocommerce-product-gallery__image,
.single-product-inner .woocommerce-product-gallery__image a {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.single-product-inner .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  user-select: none;
}

.single-product-inner .woocommerce-product-gallery__trigger {
  display: none !important;
}

.single-product-inner .flex-control-thumbs,
.single-product-inner ol.flex-control-nav.flex-control-thumbs {
  display: none !important;
}

.single-product-inner .flex-direction-nav {
  display: none !important;
}

.single-product-inner .flex-viewport {
  cursor: default;
}

.single-product-inner .product-gallery-dots {
  text-align: center;
  margin: 24px 0 0;
  padding: 0;
}

.single-product-inner .product-gallery-dots .dot {
  display: inline-block;
  cursor: pointer;
  margin: 0 9px;
  transition: transform 0.2s;
  line-height: 0;
  vertical-align: middle;
}

.single-product-inner .product-gallery-dots .dot:hover {
  transform: scale(1.2);
}

.single-product-inner .product-gallery-dots .dot img {
  display: block;
}

.single-product-inner .summary {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  margin: 0 !important;
  float: none !important;
}

.product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.product-title {
  font-size: 22px;
  line-height: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #202020;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.product-title-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.product-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #202020;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.product-action-btn:hover {
  opacity: 0.55;
}

.product-action-btn__icon {
  display: block;
  flex-shrink: 0;
}

.product-action-btn.js-wishlist-toggle.is-active .product-action-btn__icon {
  filter: invert(27%) sepia(82%) saturate(1800%) hue-rotate(337deg) brightness(88%) contrast(94%);
}

.single-product-inner .summary .price {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: #555;
  margin-bottom: 24px;
}

.single-product-inner .summary .price:not(:has(del)),
.single-product-inner .summary .price:not(:has(del)) .woocommerce-Price-amount,
.single-product-inner .summary .price:not(:has(del)) bdi {
  color: #555;
  font-weight: 400;
}

.single-product-inner .reset_variations {
  display: none !important;
}

.single-product-inner form.cart {
  margin-bottom: 8px;
}

.single-product-inner table.variations {
  width: 100%;
  border: none;
  margin-bottom: 8px;
}

.single-product-inner table.variations th,
.single-product-inner table.variations td {
  border: none;
  padding: 0;
  display: block;
  text-align: left;
}

.single-product-inner table.variations th.label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #202020;
  margin-bottom: 12px;
}

.single-product-inner table.variations th.label label {
  font: inherit;
  color: inherit;
  cursor: default;
}

.single-product-inner table.variations tbody tr {
  margin-bottom: 4px;
}

.single-product-inner table.variations select {
  display: none;
}

.variation-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.variation-swatch {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ccc;
  background: #fff;
  color: #202020;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.variation-swatch:hover {
  border-color: #202020;
}

.variation-swatch.selected {
  background: #202020;
  color: #fdfdfd;
  border-color: #202020;
}

.variation-swatch:disabled,
.variation-swatch.unavailable {
  opacity: 0.35;
  cursor: not-allowed;
}

.size-chart-wrap {
  margin: 0 0 28px;
}

.size-chart-link {
  font-size: 12px;
  line-height: 16px;
  color: #202020;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.size-chart-link:hover {
  opacity: 0.6;
}

.size-chart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100002;
  align-items: center;
  justify-content: center;
  padding: 24px max(16px, env(safe-area-inset-left)) 24px max(16px, env(safe-area-inset-right));
  background: rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.size-chart-overlay.is-open {
  display: flex;
}

.size-chart-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: min(85vh, 900px);
  display: flex;
  flex-direction: column;
  background: #fdfdfd;
  color: #202020;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.size-chart-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.size-chart-modal__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.size-chart-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #202020;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity 0.2s, background 0.2s;
}

.size-chart-modal__close:hover {
  opacity: 0.65;
  background: rgba(0, 0, 0, 0.05);
}

.size-chart-modal__body {
  padding: 20px 20px 24px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.size-chart-modal__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.4;
}

.size-chart-modal__body th,
.size-chart-modal__body td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: center;
}

.size-chart-modal__body th {
  font-weight: 700;
  background: #f5f5f5;
}

.size-chart-modal__body caption {
  caption-side: top;
  padding-bottom: 12px;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
}

.size-chart-modal__empty {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.product-photo-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100003;
}

.product-photo-overlay.is-open {
  display: block;
}

.product-photo-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.product-photo-modal {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.product-photo-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #202020;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, transform 0.2s;
}

.product-photo-modal__close:hover {
  background: #fff;
  transform: scale(1.05);
}

.product-photo-modal__close:focus-visible {
  outline: 2px solid #202020;
  outline-offset: 3px;
}

.product-photo-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #202020;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, transform 0.2s;
}

.product-photo-modal__nav:hover {
  background: #fff;
}

.product-photo-modal__nav:focus-visible {
  outline: 2px solid #202020;
  outline-offset: 3px;
}

.product-photo-modal__nav--prev {
  left: 16px;
}

.product-photo-modal__nav--next {
  right: 16px;
}

@media (max-width: 600px) {
  .product-photo-modal__nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .product-photo-modal__nav--prev { left: 8px; }
  .product-photo-modal__nav--next { right: 8px; }
}

.product-photo-modal__stage {
  width: min(960px, calc(100vw - 48px));
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  max-width: calc(100vw - 48px);
  overflow: auto;
  display: flex;
  touch-action: pan-x pan-y;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.7) rgba(0, 0, 0, 0.2);
  cursor: grab;
}

.product-photo-modal__stage.is-loading {
  overflow: hidden;
  cursor: progress;
}

.product-photo-modal__stage.is-loading img {
  visibility: hidden;
}

.product-photo-modal__stage.is-grabbing {
  cursor: grabbing;
}

.product-photo-modal__stage::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.product-photo-modal__stage::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}

.product-photo-modal__stage::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.25);
}

.product-photo-modal__stage::-webkit-scrollbar-thumb:hover {
  background: #fff;
}

.product-photo-modal__stage img {
  display: block;
  margin: auto;
  flex: none;
  width: auto;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@media (max-width: 768px) {
  .product-photo-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}

.single-product-inner .single_add_to_cart_button {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: 16px 24px;
  border-radius: 10px;
  border: none;
  background: #202020;
  color: #fdfdfd !important;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.single-product-inner .single_add_to_cart_button:hover {
  opacity: 0.88;
}

.single-product-inner .single_add_to_cart_button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.single-product-inner form.cart .quantity {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.single-product-inner form.cart .quantity input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-desc-block {
  margin: 28px 0 20px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.product-desc-heading {
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  color: #202020;
}

.product-lead-time {
  font-size: 13px;
  line-height: 18px;
  color: #202020;
  font-weight: 400;
  margin: 0 0 12px;
}

.product-short-desc {
  font-size: 13px;
  line-height: 18px;
  color: #555;
  font-weight: 300;
}

.product-short-desc p {
  margin: 0 0 12px;
}

.product-more-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #202020;
}

.product-more-link:hover {
  opacity: 0.65;
}

.single-product-inner .stock {
  font-size: 12px;
  margin-bottom: 12px;
}

.single-product-inner .onsale {
  position: absolute;
  z-index: 2;
}

@media (max-width: 900px) {
  .single-product-inner {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .product-page-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .single-product-inner .woocommerce-product-gallery,
  .single-product-inner .summary {
    grid-column: 1;
    grid-row: auto;
  }

  .single-product-inner .woocommerce-product-gallery {
    grid-row: 2;
  }

  .single-product-inner .summary {
    grid-row: 3;
  }

  .product-title-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* flexslider иначе распирает страницу шире вьюпорта */
.woocommerce-product-gallery {
  max-width: 100%;
  overflow: hidden;
}

.woocommerce-product-gallery__wrapper {
  max-width: 100%;
}

.woocommerce-product-gallery .flex-viewport {
  max-width: 100%;
  max-height: 100vw;
}

.woocommerce-product-gallery__image {
  max-width: 100vw;
}

.woocommerce-product-gallery img {
  max-width: 100%;
  height: auto;
}
