#product-product {
  display: flex;  
  padding-left: 70px;
}

.product-header {
  display: flex;
  gap: 74px;
  padding: 30px 0 0 0;
}

.product-gallery {
  display: flex;
  gap: 12px;
  max-width: 1000px;
  /* можно увеличить */
  margin: 0 auto;
  background: white;
  align-items: stretch;
  /* главное изображение будет растягиваться по высоте */
  flex-wrap: nowrap;
}



/* Контейнер для превью слева */
.thumbnails-container,
.thumbs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 211px;
  flex-shrink: 0;
  max-height: 643px; /* держим вровень с основной картинкой */
  overflow-y: auto; /* если миниатюр больше 4, можно скроллить */
}

/* Элемент превью */
.thumbnail-item,
.thumbs .thumb {
  width: 211px;
  height: 150px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f5f5f5;
  display: block;
}

.thumbnail-item img,
.thumbs .thumb {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
}

/* Основное изображение справа */
.main-image-container {
  flex: 0 0 700px; /* фиксируем ширину главного изображения */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;  
  overflow: hidden;
  max-height: 643px;
  /* ограничение высоты */
  position: relative;
  width: 700px;
}

.main-image {
  width: 100%;
  max-width: 700px; /* страховка */
  object-fit: contain;
  transition: opacity 0.3s ease;
  cursor: zoom-in;
}

/* Скрываем дополнительные изображения из разметки */
.addition-images {
  display: none;
}

.product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Wishlist icon */
.product-wishlist {
  margin: 8px 0 0;
}
.wishlist-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  line-height: 1;
}
.wishlist-btn .icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-color: #9aa0a6; /* gray inactive */
  -webkit-mask: url('/upload/assets/wish.svg') no-repeat center / contain;
  mask: url('/upload/assets/wish.svg') no-repeat center / contain;
  transition: background-color 0.2s ease;
}
.wishlist-btn:hover .icon {
  background-color: #5f6368;
}
.wishlist-btn.is-active .icon {
  background-color: #e53935; /* red filled when added */
}

/* Кнопки навигации - более тонкие и минималистичные */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #333;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-image-container:hover .nav-button {
  opacity: 1;
}

.nav-button:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-button:disabled:hover {
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-button.prev {
  left: 12px;
}

.nav-button.next {
  right: 12px;
}

/* Счетчик - скрыт по дизайну */
.image-counter {
  display: none;
}

/* Zoom overlay */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.zoom-overlay .close-zoom {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.zoom-overlay .close-zoom:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Fade анимация */
.main-image.fade-out {
  opacity: 0;
}

.main-image.fade-in {
  opacity: 1;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .product-gallery {
    flex-direction: column;
    gap: 16px;
  }

  .thumbnails-container,
  .thumbs {
    flex-direction: row;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    order: 1;
  }

  .thumbnails-container::-webkit-scrollbar,
  .thumbs::-webkit-scrollbar {
    height: 4px;
  }

  .thumbnails-container::-webkit-scrollbar-track,
  .thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }

  .thumbnails-container::-webkit-scrollbar-thumb,
  .thumbs::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
  }

  .thumbnail-item,
  .thumbs .thumb {
    min-width: 100px;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }

  .main-image-container {
    min-height: 400px;
    order: 0;
    border-radius: 12px;
  }

  .nav-button {
    opacity: 1;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .nav-button.prev {
    left: 8px;
  }

  .nav-button.next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .product-gallery {
    gap: 12px;
  }

  .thumbnail-item {
    min-width: 80px;
    width: 80px;
    height: 80px;
  }

  .main-image-container {
    min-height: 320px;
  }
}

div.product-info {}



div.product-info h1.product-title {
  color: #5F534C;
  font-weight: 600;
  font-family: Montserrat;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 5px 0;
}



div.product-info div.product-model {
  color: #5F534C;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 400;
}



div.product-info div.product-color {}

div.product-info div.product-color span.label {}



div.product-info div.product-color div.color-options {}

div.product-info div.product-color div.color-options label.color-item {}

div.product-info div.product-color div.color-options label.color-item input {
  display: none;
}




div.product-info div.product-color div.color-options label.color-item img {
  height: 24px;
  width: 24px;
}

div.product-info div.product-color div.color-options label.color-item input[type="radio"]:checked+img {
  width: 30px;
  height: 30px;
}

div.product-info div.product-color div.color-options label.color-item span {}



div.product-info div.product-size {}

div.product-info div.product-size span.label {}



div.product-info div.product-size div.size-options {}

div.product-info div.product-size div.size-options label.size-item {}

div.product-info div.product-size div.size-options label.size-item input {}



div.product-info div.product-size div.size-options label.size-item span {}



div.product-info div.product-price {
  font-family: Montserrat;
  font-size: 16px;
  color: #5F534C;
  margin: 0 0;
}

div.product-info div.product-price span.price {
  font-size: 24px;
  color: #5F534C;
  font-family: Montserrat;
  margin: 0 0 0 5px;
}



div.product-info div.product-cart {}

div.product-info div.product-cart button {
  background-color: #F6BC50;
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 16px;
  font-family: Montserrat;
  border: none;
  width: 100%;
  align-items: center;
  transition: all .3s ease-in-out;
}

div.product-info div.product-cart button:hover {
  background-color: #d8b77e;
}


/* =============================== */
/* Related products (swiper block) */
/* =============================== */
.related-products {
  margin: 56px auto 24px;
}

.related-products .related-title {
  text-align: center;
  color: #5F534C;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.related-swiper {
  overflow: hidden;
  padding: 6px 6px 12px;
}

.related-swiper .swiper-slide {
  width: auto;
}

.rel-card {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 300px;   /* фиксируем ширину карточки */
  height: 384px;  /* фиксируем общую высоту карточки */
}

н

.rel-card__img {
  position: relative;
  display: block;
  width: 100%;      /* = 300px по родителю */
  height: 320px;    /* чтобы в сумме с метой было 384px */
  background: #f6f4f2;
  border-radius: 12px;
  overflow: hidden;
}

.rel-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rel-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

/* Размер иконки в карточке (использует общий .wishlist-btn .icon) */
.rel-card__fav .icon {
  width: 24px;
  height: 24px;
}

.rel-card__meta {
  display: block;
  text-align: center;
  padding-top: 10px;
  height: 64px;     /* фиксируем зону подписи/цены */
}

.rel-card__price {
  display: block;
  color: #5F534C;
  font-weight: 600;
  font-size: 14px;
}

.rel-card__price .old {
  color: #9b8f87;
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

.rel-card__name {
  display: block;
  color: #9b8f87;
  font-size: 12px;
}

/* Swiper navigation tune */
.related-swiper .swiper-button-prev,
.related-swiper .swiper-button-next {
  color: #5F534C;
}

@media (max-width: 768px) {

  .related-swiper .swiper-button-prev,
  .related-swiper .swiper-button-next {
    display: none;
  }
}



/* ======================== */
/* Recommend grid (mosaic)  */
/* ======================== */
.recommend-section { margin: 40px auto 60px; }

.recommend-title {
  text-align: center;
  color: #5F534C;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Мозаика: слева 2x2 по 250x364 с колонн/строк отступами, справа 2 больших 549x760 */
.recommend-mosaic {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 48px; /* отступ между левым и правым блоками */
}

.recommend-mosaic .rec-left {
  display: grid;
  grid-template-columns: 250px 250px;
  column-gap: 48px; /* горизонтальный отступ малого блока */
  row-gap: 36px;    /* вертикальный отступ малого блока */
}

.recommend-mosaic .rec-right {
  display: grid;
  grid-template-columns: 549px 549px;
  column-gap: 48px; /* отступ между большими карточками */
  align-items: start;
}

.recommend-mosaic .rec-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.recommend-mosaic .rec-card .rec-card__img {
  display: block;
  width: 100%;
  background: #f6f4f2;
  border-radius: 12px;
  overflow: hidden;
}

.recommend-mosaic .rec-card .rec-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recommend-mosaic .rec-card .rec-card__name {
  text-align: center;
  margin-top: 10px;
  color: #5F534C;
  font-size: 14px;
}

/* Малые карточки */
.recommend-mosaic .rec-sm { width: 250px; height: 364px; }
.recommend-mosaic .rec-sm .rec-card__img { height: 320px; }

/* Большие карточки */
.recommend-mosaic .rec-lg { width: 549px; height: 760px; }
.recommend-mosaic .rec-lg .rec-card__img { height: 720px; }

/* large highlight card (last one) */
.rec-card--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.rec-card--lg .rec-card__img {
  aspect-ratio: 3 / 4;
}

.rec-card--lg .rec-card__name {
  font-size: 16px;
}

@media (max-width: 1200px) {
  .recommend-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rec-card--lg {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 768px) {
  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .rec-card--lg {
    grid-column: span 2;
    grid-row: span 1;
  }
}


.product-size {

}

.product-size .label {
  display: block;
  margin: 10px 0 10px 0;
  font-weight: 500;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  text-align: left;
  color: #333;
  padding: 0 0 0 0;
}

.size-options {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.size-options label {
  margin-bottom: 1px;
}

.size-item {
  position: relative;
  cursor: pointer;
}

.size-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-item span {
  font-family: Montserrat;
  display: inline-block;
  padding: 3px 16px;
  border: 1px solid #5F534C;
  background-color: #F9F6F2;
  color: #5F534C;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  min-width: 60px;
  transition: all 0.2s ease;
  user-select: none;
}

/* Hover состояние */
.size-item:hover span {
  border-color: #ccc;
  background-color: #f9f9f9;
}

/* Checked состояние (активный размер) */
.size-item input[type="radio"]:checked+span {
  border-color: #f4a261;
  background-color: #f4a261;
  color: #fff;
}

/* Disabled состояние */
.size-item input[type="radio"]:disabled+span {
  border-color: #e0e0e0;
  background-color: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
  position: relative;
}

.size-item input[type="radio"]:disabled+span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 8px);
  height: 2px;
  background-color: #ddd;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.size-item:has(input[type="radio"]:disabled):hover span {
  border-color: #e0e0e0;
  background-color: #f5f5f5;
}

/* Дополнительный стиль для отключенных элементов без :has() для старых браузеров */
.size-item.disabled span {
  border-color: #e0e0e0;
  background-color: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
  position: relative;
}

.size-item.disabled span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 8px);
  height: 2px;
  background-color: #ddd;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.size-item.disabled:hover span {
  border-color: #e0e0e0;
  background-color: #f5f5f5;
}

.related__nav--prev, .related__nav--next {
  opacity: 0!important;
}

/* ======================== */
/* Image Option color swatch*/
/* ======================== */
.product-color {
  margin: 18px 0 20px;
}



.product-color .label {
  display: none; /* скрываем подпись "Колір: ..." */
}

.io-colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.io-color-swatch {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #5F534C;
  background-color: #F9F6F2;
  color: #5F534C;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 14px;
  min-width: 60px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.io-color-swatch:hover {
  border-color: #ccc;
  background-color: #f9f9f9;
}

.io-color-swatch.active,
.io-color-swatch[aria-selected='true'] {
  border-color: #f4a261;
  background-color: #f4a261;
  color: #fff;
  transform: scale(1.1);
}

.io-color-swatch img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  display: block;
}

.io-color-swatch.active img,
.io-color-swatch[aria-selected='true'] img {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: -2px;
}

.io-color-swatch[disabled],
.io-color-swatch.is-disabled,
.io-color-swatch[aria-disabled='true'] {
  border-color: #e0e0e0;
  background-color: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
  position: relative;
}

.io-color-swatch[disabled]::after,
.io-color-swatch.is-disabled::after,
.io-color-swatch[aria-disabled='true']::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 8px);
  height: 2px;
  background-color: #ddd;
  transform: translate(-50%, -50%) rotate(-45deg);
}

details.product-chart {}

details.product-chart summary {
  font-size: 16px;
  color: #5F534C;
  font-family: Montserrat;
  list-style: none;
  /* убираем маркер */
  cursor: pointer;
  position: relative;
  padding-right: 20px;
  display: inline-block;
}

details summary::-webkit-details-marker {
  display: none;
  /* убираем стрелку в WebKit (Chrome, Safari) */
}

details.product-chart summary::after {
  content: "";
  /* своя стрелка/иконка */
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'><image xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAn0lEQVR4AbSSQQqDMBREpVB6uW5KF12U9nKCoCCCt1M3vhEEMY5fEGXGaH7mJSS5ZSefywB/FnbHodwKniRLHEIc4EtYang9sJUDDCQ+uMc1thAHIJMdguwBlhDBcnWsHQHW45P/CKBTqEip/dEm2gMoNIffJDucyAEUnu+BDYvmAIWK+IU3Z6Z/kgO0VHUPtPt8ejmAjiwMC+sAqh3yCAAA//+j5XhUAAAABklEQVQDANa7FiEspzlTAAAAAElFTkSuQmCC' x='0' y='0' width='16' height='16'/></svg>") no-repeat center/contain;
  position: absolute;
  width: 16px;
  height: 16px;
  right: 0;
  top: 4px;
  font-size: 14px;
  transition: transform 0.3s;
}

details.product-chart[open] summary::after {
  transform: rotate(90deg);
}


details.product-chart img.icon {}



/* Адаптивность */
@media (max-width: 768px) {
  .size-options {
    gap: 6px;
  }

  .size-item span {
    padding: 10px 12px;
    font-size: 13px;
    min-width: 50px;
  }
}


/* ---------------------- */
/* Product accordion      */
/* ---------------------- */

.product-accordion {
  margin: 24px 0 8px;
  /* border-top: 1px solid #E8E4DF; */
  max-width: 680px;
}

.product-accordion .acc-item {
  border-bottom: 1px solid #E8E4DF;
}


.product-accordion .acc-header {
  background: transparent;
  border: 0;
  padding: 16px 0;
  /* без растягивания на всю ширину */
  text-align: left;
  display: inline-flex;
  /* ширина по содержимому */
  align-items: center;
  cursor: pointer;
  color: #333;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-accordion .acc-header::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 1.5px solid #5F534C;
  border-bottom: 1.5px solid #5F534C;
  transform: rotate(45deg);
  margin-left: 20px;
  margin-top: -5px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.product-accordion .acc-item.open .acc-header::after {
  transform: rotate(225deg);
  margin-top: 5px;
}

.product-accordion .acc-content {
  height: 0;
  /* animate height */
  overflow: hidden;
  padding: 0;
  /* avoid jump during animation */
  opacity: 0;
  color: #5F534C;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  transition: height .3s ease, opacity .3s ease, padding-top .3s ease, padding-bottom .3s ease;
}

.product-accordion .acc-item.open .acc-content {
  /* height set via JS to exact content height; keep other props */
  opacity: 1;
  padding-bottom: 15px;
}

.product-accordion .acc-attributes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-accordion .acc-attributes li {
  padding: 4px 0;
}

.product-accordion .acc-attributes .attr-name {
  font-weight: 600;
}

.product-accordion .acc-empty {
  color: #8a807a;
}
