.product-gallery {
  --product-gallery-stage-h: clamp(620px, 66vh, 760px);
  --product-main-h: var(--product-gallery-stage-h);
  --product-gallery-stage-w: min(100%, 620px);
  --product-gallery-thumb-w: 112px;
  --product-gallery-surface: #fff;
  --product-gallery-border: #e7e7e7;
}

@media (min-width: 992px) {
  .product-gallery__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    column-gap: 22px;
  }

  .product-gallery__thumbs-col {
    flex: 0 0 calc(var(--product-gallery-thumb-w) + 48px);
    max-width: calc(var(--product-gallery-thumb-w) + 48px);
    padding: 0;
  }

  .product-gallery__main-col {
    flex: 0 1 var(--product-gallery-stage-w);
    max-width: var(--product-gallery-stage-w);
    min-width: 0;
    padding: 0 24px 0 0;
    border-right: 1px solid var(--product-gallery-border);
  }

  .product-gallery__details-col {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    padding: 0 0 0 12px;
  }
}

@media (max-width: 991.98px) {
  .product-gallery {
    --product-gallery-stage-h: auto;
  }

  .mobile-gallery-wrapper {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-gallery-slides {
    width: 100%;
    aspect-ratio: 4/5;
    position: relative;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    background: var(--product-gallery-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    display: block;
  }

  .mobile-gallery-slides li {
    width: 100%;
    height: 100%;
    flex: 1 0 100%;
    transition: opacity .3s;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
  }

  .mobile-gallery-slides li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .mobile-gallery-slides li.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
  }

  .mobile-gallery-bullets {
    display: flex;
    gap: 8px;
    margin: 14px 0 0;
    justify-content: center;
    width: 100%;
  }

  .mobile-gallery-bullets button {
    width: 38px;
    height: 5px;
    border-radius: 999px;
    background: #d8d2d0;
    border: none;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
    padding: 0;
  }

  .mobile-gallery-bullets button.active {
    background: #e6007e;
    opacity: 1;
  }
}

.product-image {
  position: relative;
  width: 100%;
  height: var(--product-main-h);
  padding: clamp(18px, 2.2vw, 24px);
  background: var(--product-gallery-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none;
}

.product-image > .product-image__img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.thumbs-wrapper {
  position: relative;
  overflow: hidden;
  height: var(--product-main-h);
  padding: 0 0 0 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.thumbs-wrapper .thumb-scroll {
  opacity: 1;
  transition: opacity .2s ease, filter .2s ease;
}

/* --- TYLKO FILTER DLA DISABLED --- */
.thumbs-wrapper .thumb-scroll:disabled,
.thumbs-wrapper .thumb-scroll.disabled,
.thumb-scroll[disabled] {
  filter: grayscale(1) brightness(0.75);
}

/* lista miniaturek */
.thumbnails-vertical {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-right: 0 !important;
}

.thumbnails-vertical::-webkit-scrollbar {
  display: none;
}

.thumbnail-item {
  width: 100%;
  cursor: pointer;
  object-fit: contain;
  border: 0;
  transition: border-color .2s, box-shadow .2s ease, transform .2s ease;
  aspect-ratio: 4/5;
  background-color: var(--product-gallery-surface);
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px;
}

.thumbnail-item:hover {
  box-shadow: inset 0 0 0 1px rgba(230, 0, 126, 0.14);
}

.thumbnail-item.active {
  background-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(230, 0, 126, 0.08);
}

.thumb-scroll {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity .15s;
  z-index: 2;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

.thumb-scroll:hover {
  opacity: 1;
}

/* usunieto wczesniejsze opacity/cursor dla disabled */
.thumb-scroll-up {
  top: 0;
}

.thumb-scroll-down {
  bottom: 0;
}

/* MOBILE carousel (slides, bullets) */
.mobile-glide .glide-prev,
.mobile-glide .glide-next {
  display: none;
}

.mobile-glide .glide__slide {
  height: 90vh;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.mobile-glide .glide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-glide {
  position: relative;
}

.mobile-glide .glide__bullets {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
}

.mobile-glide .glide__bullet {
  width: 50px;
  height: 5px;
  border-radius: 5px;
  background: #fff;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.mobile-glide .glide__bullet.active {
  opacity: 1;
  background: #e6007e;
}

/* Opis produktu */
/* ====== PRODUCT TABS ====== */
.product-tabs {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

@media (max-width: 575.98px) {
  .product-tabs {
    margin-top: 0;
  }
}

/* Nawigacja */
.pt-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  row-gap: .5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #e5e5e5;
}

.pt-nav li {
  margin: 0;
}

.pt-nav button {
  background: none;
  border: none;
  padding: .5rem 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #2c2c2c;
  cursor: pointer;
  position: relative;
}

.pt-nav button.active {
  color: #fff;
  background-color: #2c2c2c;
}

.pt-nav button.active::after,
.pt-nav button:hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: #2c2c2c;
}

/* Zakladki */
.pt-pane {
  display: none;
}

.pt-pane.active {
  display: block;
}

#pt-desc img,
#accDesc img {
  display: none !important;
}

.pt-safety-section {
  max-width: 960px;
}

.pt-safety-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.pt-richtext p {
  margin: 0 0 1rem;
}

.pt-richtext p:last-child {
  margin-bottom: 0;
}

/* Lista bulletowa w opisie */
.pt-bullets {
  padding-left: 1rem;
  margin: 0 0 1rem;
}

.pt-bullets li {
  margin-bottom: .5rem;
  list-style: disc;
}

/* Prawa kolumna - parametry */
.pt-meta {
  padding-left: 0;
  list-style: none;
}

.pt-meta li {
  margin-bottom: .25rem;
}

/* --- FIX: strzalki zawsze z ikona, obrot nie znika na :disabled:hover --- */
.thumbs-wrapper .thumb-scroll-up,
.thumbs-wrapper .thumb-scroll-up:hover,
.thumbs-wrapper .thumb-scroll-up:disabled,
.thumbs-wrapper .thumb-scroll-up:disabled:hover,
.thumbs-wrapper .thumb-scroll-up.disabled,
.thumbs-wrapper .thumb-scroll-up.disabled:hover,
.thumbs-wrapper .thumb-scroll-up[aria-disabled="true"],
.thumbs-wrapper .thumb-scroll-up[aria-disabled="true"]:hover {
  background-image: url("../../images/footer/upscrollarrow.svg") !important;
  background-size: 40px 40px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: rotate(0deg) !important;
}

.thumbs-wrapper .thumb-scroll-down,
.thumbs-wrapper .thumb-scroll-down:hover,
.thumbs-wrapper .thumb-scroll-down:disabled,
.thumbs-wrapper .thumb-scroll-down:disabled:hover,
.thumbs-wrapper .thumb-scroll-down.disabled,
.thumbs-wrapper .thumb-scroll-down.disabled:hover,
.thumbs-wrapper .thumb-scroll-down[aria-disabled="true"],
.thumbs-wrapper .thumb-scroll-down[aria-disabled="true"]:hover {
  background-image: url("../../images/footer/upscrollarrow.svg") !important;
  background-size: 40px 40px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: rotate(180deg) !important;
}

/* tylko wyszarzenie stanu nieaktywnego */
.thumbs-wrapper .thumb-scroll:disabled,
.thumbs-wrapper .thumb-scroll.disabled,
.thumbs-wrapper .thumb-scroll[aria-disabled="true"] {
  filter: grayscale(1) brightness(.75);
}

/* MOBILE: akordeon w opisie produktu - tylko separator + uppercase + bold */
@media (max-width: 767.98px) {
  #productAccordion .accordion-item {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #productAccordion .accordion-button {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: .9rem 0;
    color: #111;
    font-weight: 700;
    text-transform: uppercase;
  }

  /* ten sam wyglad po rozwinieciu */
  #productAccordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: #111;
    box-shadow: none;
  }

  /* jeden separator (linia) miedzy pozycjami */
  #productAccordion .accordion-header .accordion-button {
    border-top: 1px solid #e9ecef;
  }

  #productAccordion .accordion-item:last-child .accordion-button {
    border-bottom: 1px solid #e9ecef;
  }

  /* bez ramek wokol tresci */
  #productAccordion .accordion-collapse {
    border: 0;
  }
}
