/*
 * Karta produktu (body#product). Ładowana z catalog/product.tpl przez blok „head”.
 * Kolejność w kodzie = kolejność na telefonie: powrót → nazwa → galeria → cena → koszyk → opis.
 * Od 768 px galeria i panel zakupu stoją obok siebie. Karty treści zawsze zajmują pełną szerokość.
 * Tło jest czysto białe, bo zdjęcia produktów mają białe tło.
 */
body#product {
  --op-ink: #0f172a;
  --op-text: #475569;
  --op-muted: #64748b;
  --op-line: #e2e8f0;
  --op-orange: #f5831f;
  --op-orange-text: #94470c;
  --op-sticky-top: 5.5rem;
  background: #fff;
}

body#product #wrapper,
body#product .breadcrumb__wrapper,
body#product #center-column {
  background: #fff;
}

body#product .breadcrumb__wrapper {
  margin-bottom: .25rem;
}

body#product .breadcrumb {
  --bs-breadcrumb-padding-y: .625rem;
  font-size: .8125rem;
}

/* ---------- Powrót do listy ---------- */
.os-product-back {
  margin: .25rem 0 .5rem;
}

.os-product-back__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin-left: -.5rem;
  padding: .375rem .875rem .375rem .5rem;
  border-radius: .75rem;
  color: #334155;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.os-product-back__link svg {
  flex: none;
  transition: transform .15s ease;
}

.os-product-back__link:hover {
  background: #fff7ed;
  color: var(--op-orange-text);
}

.os-product-back__link:hover svg {
  transform: translateX(-3px);
}

/* ---------- Układ górnej części ---------- */
body#product .product__container {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Na telefonie elementy panelu zakupu układają się razem z galerią w jednej kolumnie. */
body#product .product__right {
  display: contents;
}

body#product .product__right > * {
  order: 5;
  min-width: 0;
}

body#product .product__right > .product__name { order: 1; }
body#product .product__right > .product__meta { order: 2; }
body#product .product__left { order: 3; min-width: 0; margin-top: .875rem; }
body#product .product__right > .product__prices { order: 4; }
body#product .product__right > .product__description-short { order: 6; }

body#product .product__name {
  margin: 0;
  color: var(--op-ink);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

body#product .product__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .375rem .875rem;
  margin: .625rem 0 0;
}

body#product .product__manufacturer {
  margin: 0;
  line-height: 1;
}

body#product .product__manufacturer :is(a, span) {
  display: inline-flex;
  align-items: center;
  color: var(--op-ink);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

body#product .product__manufacturer-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 6.5rem;
  max-height: 2rem;
  object-fit: contain;
}

body#product .product__identifiers {
  display: flex;
  flex: 1 1 12rem;
  flex-wrap: wrap;
  min-width: 0;
  gap: .125rem .875rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--op-muted);
  font-size: .8125rem;
  line-height: 1.5;
}

body#product .product__identifiers span {
  color: #334155;
  font-variant-numeric: tabular-nums;
}

/* ---------- Galeria: białe tło, bez szarych kafli ---------- */
body#product .product__images {
  margin: 0;
}

body#product .product__carousel {
  border-radius: 0;
  background: #fff;
}

body#product .product__carousel .carousel-item {
  background: #fff;
}

body#product .product__carousel .carousel-item img,
body#product .product__no-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(40vh, 21rem);
  max-height: min(40svh, 21rem);
  object-fit: contain;
  background: #fff;
}

body#product .product__carousel :is(.carousel-control-prev, .carousel-control-next) {
  width: 3rem;
  opacity: 1;
}

body#product .product__carousel :is(.carousel-control-prev-icon, .carousel-control-next-icon) {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--op-line);
  border-radius: 50%;
  background-color: rgb(255 255 255 / .94);
  box-shadow: 0 1px 2px rgb(15 23 42 / .08);
}

body#product .product__carousel :is(.carousel-control-prev, .carousel-control-next):hover :is(.carousel-control-prev-icon, .carousel-control-next-icon) {
  border-color: #fdba74;
}

body#product .product__zoom {
  right: .25rem;
  bottom: .25rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--op-line);
  border-radius: 50%;
  background: rgb(255 255 255 / .94);
  color: var(--op-ink);
  box-shadow: 0 1px 2px rgb(15 23 42 / .08);
}

body#product .product__zoom:hover {
  border-color: #fdba74;
  background: #fff;
  color: var(--op-ink);
}

body#product .product__images .product-flags {
  padding: .25rem 3.5rem .25rem 0;
}

body#product .product__images .product-flags .badge {
  border-radius: .5rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Miniatury w jednym, przewijanym wierszu. */
body#product .product__thumbnails {
  margin: .75rem 0 0;
}

body#product .product__thumbnails-list {
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: .1875rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

body#product .product__thumbnails-item {
  flex: 0 0 3.5rem;
  scroll-snap-align: start;
}

body#product .product__thumbnail {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--op-line);
  border-radius: .625rem;
  background: #fff;
}

body#product .product__thumbnail picture {
  display: block;
  width: 100%;
  height: 100%;
}

body#product .product__thumbnail-image,
body#product .product__thumbnail.active .product__thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  outline: 0;
  object-fit: contain;
}

body#product .product__thumbnail:hover {
  border-color: #fdba74;
}

body#product .product__thumbnail.active {
  border-color: var(--op-orange);
  box-shadow: 0 0 0 1px var(--op-orange);
}

body#product .product__thumbnail:focus-visible {
  outline: 3px solid #b45a0d;
  outline-offset: 2px;
}

/* ---------- Cena ---------- */
body#product .product__prices {
  margin: 1.125rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 1rem;
  line-height: 1.2;
}

body#product .product__prices-block {
  display: flex;
  flex-flow: row wrap;
  align-items: baseline;
  gap: .25rem .625rem;
}

body#product .product__discount-price {
  flex: 0 0 100%;
  color: var(--op-muted);
  font-size: .9375rem;
}

body#product .product__regular-price {
  text-decoration: line-through;
}

body#product .product__price {
  color: var(--ostrzalnia-orange-text,#c94f00);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

body#product .product__prices-block:has(.product__regular-price) .product__price {
  color: var(--ostrzalnia-orange-text,#c94f00);
}

body#product .product__tax-infos,
body#product .product__taxless-price,
body#product .product__unit-price,
body#product .product__pack-price {
  margin: 0;
  color: var(--op-muted);
  font-size: .875rem;
  line-height: 1.3;
}

body#product .product__tax-label {
  text-transform: lowercase;
}

/* ---------- Dostępność, ilość, koszyk ---------- */
body#product .product__actions,
body#product .product__actions form {
  margin: 0;
}

body#product .product__actions :is(.product__variants, .product__pack, .product__discounts):not([hidden]) {
  margin: 1rem 0 0;
}

body#product .product__customization {
  margin: 1rem 0 0;
}

body#product .product__stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.125rem;
  margin: .5rem 0 0;
  color: #334155;
  font-size: .9375rem;
  line-height: 1.35;
}

body#product .product__stock-state {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  color: var(--op-ink);
  font-weight: 700;
}

body#product .product__stock-dot {
  flex: none;
  width: .625rem;
  height: .625rem;
  margin: 0;
  border-radius: 50%;
}

body#product .product__stock-dot--in { background: #15803d; box-shadow: 0 0 0 3px #dcfce7; }
body#product .product__stock-dot--order { background: #b45309; box-shadow: 0 0 0 3px #fef3c7; }
body#product .product__stock-dot--out { background: #b91c1c; box-shadow: 0 0 0 3px #fee2e2; }

body#product .product__stock-delivery {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2.75rem;
  color: #334155;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: .2em;
}

body#product .product__stock-delivery .material-icons {
  color: var(--op-muted);
  font-size: 1.25rem;
}

body#product .product__stock-delivery:hover {
  color: var(--op-orange-text);
  text-decoration-color: currentColor;
}

body#product .product__add-to-cart-container {
  margin: .375rem 0 0;
}

body#product .product__availability:not([hidden]) {
  margin: 0 0 .75rem;
  font-size: .9375rem;
}

/* Brak w magazynie: linia dostępności już to mówi, natywny komunikat byłby powtórzeniem. */
body#product .product__stock:has(.product__stock-dot--out) + .product__add-to-cart-container .product__availability:not(:has(.product__delivery-infos)) {
  display: none;
}

body#product .product__actions-qty-add {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .75rem;
  margin: 0;
}

body#product .product__quantity {
  flex: 0 0 auto;
  width: auto;
}

body#product .product__quantity .quantity-button__group {
  flex-wrap: nowrap;
  width: auto;
  height: 3.25rem;
}

body#product .product__quantity .quantity-button__group > .btn {
  display: grid;
  place-items: center;
  flex: 0 0 2.875rem;
  width: 2.875rem;
  height: 100%;
  padding: 0;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--op-ink);
}

body#product .product__quantity .quantity-button__group > .btn:first-child { border-radius: .75rem 0 0 .75rem; }
body#product .product__quantity .quantity-button__group > .btn:last-child { border-radius: 0 .75rem .75rem 0; }

body#product .product__quantity .quantity-button__group > input {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  max-width: none;
  height: 100%;
  min-height: 0;
  padding: 0 .25rem;
  border: 1px solid #cbd5e1;
  border-inline: 0;
  border-radius: 0;
  background: #fff;
  color: var(--op-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

body#product .product__add-to-cart {
  flex: 1 1 11rem;
  min-width: 0;
}

body#product .product__add-to-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
}

body#product .product__add-to-cart-button .material-icons {
  font-size: 1.375rem;
}

body#product .product__add-to-cart-button:disabled {
  opacity: .5;
}

body#product .product__minimal-quantity:not([hidden]) {
  margin: .625rem 0 0;
}

/* ---------- Informacje pod koszykiem ---------- */
body#product .product__reassurance {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: .5rem 0 0;
  border-top: 1px solid var(--op-line);
  list-style: none;
  color: var(--op-text);
  font-size: .9375rem;
  line-height: 1.35;
}

body#product .product__reassurance-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
}

body#product .product__reassurance-item .material-icons {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  color: var(--op-muted);
  font-size: 1.25rem;
}

body#product .product__reassurance-item a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #334155;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: .2em;
}

body#product .product__reassurance-item a:hover {
  color: var(--op-orange-text);
  text-decoration-color: currentColor;
}

body#product .product__additional-info {
  gap: 1rem;
  margin: .75rem 0 0;
}

body#product .product__additional-info:empty {
  display: none;
}

body#product .product__description-short {
  max-width: 65ch;
  margin: 1.25rem 0 0;
  color: var(--op-text);
  font-size: 1rem;
  line-height: 1.6;
}

body#product .product__description-short > :last-child {
  margin-bottom: 0;
}

/* ---------- Dane techniczne, opis, szczegóły ---------- */
body#product .product__bottom {
  display: block;
  margin: 2rem 0 0;
}

body#product .product__bottom-left,
body#product .product__bottom-right {
  margin: 0;
}

body#product .product__bottom-right:empty { display: none; }

body#product .product-info-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
  margin: 0 0 1.25rem;
  padding: .375rem;
  border: 1px solid var(--op-line);
  border-radius: .875rem;
  background: #fafbfc;
}
body#product .product-info-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem .75rem;
  border-radius: .625rem;
  color: #334155;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
body#product .product-info-nav a:hover,
body#product .product-info-nav a[aria-current] { background: #fff; color: #8a410b; box-shadow: 0 1px 5px rgb(15 23 42 / .1); }
body#product .product-info-nav a:focus-visible { outline: 3px solid #a84f09; outline-offset: 2px; }
@media (max-width: 767.98px) {
  body#product .product-info-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body#product .product-info-nav a { font-size: .8125rem; }
}

body#product .product-specs {
  margin: 0;
}

body#product :is(.product-specs__title, .product-info__title, .product-policies__title) {
  margin: 0;
  color: var(--op-ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

body#product .product-specs__list {
  margin: .75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--op-line);
}

body#product .product-specs__row {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
  gap: .75rem;
  padding: .625rem 0;
  border-bottom: 1px solid var(--op-line);
  font-size: .9375rem;
  line-height: 1.45;
  break-inside: avoid;
}

body#product .product-specs__row dt {
  margin: 0;
  color: var(--op-muted);
  font-weight: 400;
  overflow-wrap: anywhere;
}

body#product .product-specs__row dd {
  margin: 0;
  color: var(--op-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

body#product .product-specs__row dd a {
  color: inherit;
}

body#product .product-info {
  display: grid;
  gap: 1rem;
  border: 0;
}

body#product .product-info__item {
  min-width: 0;
  margin: 0;
  border: 1px solid #dce1e7;
  border-radius: 1rem;
  background: #fff;
  scroll-margin-top: 6.5rem;
}
body#product .product-info__item[open] {
  border-color: #cbd2db;
}

body#product .product-info__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 1rem 1.5rem;
  list-style: none;
  cursor: pointer;
}

body#product .product-info__summary::-webkit-details-marker {
  display: none;
}

body#product .product-info__summary::after {
  content: '';
  flex: none;
  width: .625rem;
  height: .625rem;
  margin: -.25rem .375rem 0 0;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: rotate(45deg);
  transition: transform .15s ease;
}

body#product .product-info__item[open] > .product-info__summary::after {
  margin-top: .25rem;
  transform: rotate(-135deg);
}

body#product .product-info__summary:hover .product-info__title {
  color: var(--op-orange-text);
}

body#product .product-info__summary:focus-visible {
  outline: 3px solid #b45a0d;
  outline-offset: 2px;
  border-radius: .25rem;
}

body#product .product-info__body {
  padding: .5rem 1.5rem 1.5rem;
}

body#product .product-info__body .product-specs__list {
  margin-top: 0;
}

body#product .product__description {
  width: 100%;
  max-width: none;
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

body#product .product__description :is(h2, h3, h4, h5) {
  margin: 2rem 0 .875rem;
  color: var(--op-ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

body#product .product__description h2 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
body#product .product__description :is(h3, h4, h5) { font-size: 1.125rem; }
body#product .product__description > :first-child { margin-top: 0; }
body#product .product__description > :last-child { margin-bottom: 0; }
body#product .product__description p { margin: 0 0 .875rem; }
body#product .product__description :is(ul, ol) { margin: 0 0 .875rem; padding-left: 1.25rem; }
body#product .product__description li + li { margin-top: .3rem; }
body#product .product__description img { max-width: 100%; height: auto; }
body#product .product__description table { display: block; max-width: 100%; overflow-x: auto; }
body#product .product__description-intro {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid #c36415;
  border-radius: 0 .5rem .5rem 0;
  background: #fff9f3;
  color: #17212f;
  font-size: 1.0625rem;
  line-height: 1.7;
}
body#product .product__description-intro > :last-child { margin-bottom: 0; }
body#product .product__description strong { color: #17212f; font-weight: 700; }
body#product .product__description :is(ul.characteristics, ul.specs) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem 2rem;
  padding-left: 1.25rem;
}
body#product .product__description :is(ul.characteristics, ul.specs) li { margin: 0; padding-left: .25rem; }
body#product .product__description li::marker { color: #a84f09; }
body#product .product__description a { color: #8a410b; text-decoration: underline; text-underline-offset: .2em; }
body#product .product-policies__content { max-width: none; }
@media (max-width: 767.98px) {
  body#product .product-info__summary { padding: 1rem; }
  body#product .product-info__body { padding: .25rem 1rem 1.25rem; }
  body#product .product__description :is(ul.characteristics, ul.specs) { grid-template-columns: minmax(0, 1fr); }
  body#product .product__description-intro { padding: .875rem; font-size: 1rem; }
}

body#product .product__attachments {
  display: grid;
  gap: 1rem;
}

body#product .attachment__name {
  margin: 0 0 .25rem;
  color: var(--op-ink);
  font-weight: 700;
}

body#product .attachment__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2.75rem;
}

/* Moduły pod kartą (opinie, produkty z kategorii) nie dokładają szarych pasów. */
body#product .details__list {
  background: #fff;
}

body#product #center-column > section,
body#product #product-comments-list-header {
  margin-top: 2.5rem;
}

body#product .section-title {
  color: var(--op-ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Pasek zakupu na telefonie ---------- */
.os-buybar {
  display: none;
}

@media (max-width: 767.98px) {
  body#product .breadcrumb__wrapper {
    display: none;
  }

  body#product #wrapper {
    padding-top: .25rem;
  }

  /* Pasek stoi nad stopką strony, więc strona dostaje zapas na jego wysokość. */
  body#product {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  .os-buybar {
    position: fixed;
    z-index: 1022;
    inset: auto 0 0;
    display: block;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    border-top: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 -8px 24px rgb(15 23 42 / .1);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
  }

  .os-buybar.is-visible {
    transform: none;
    visibility: visible;
    transition: transform .2s ease, visibility 0s;
  }

  .os-buybar.is-visible.is-at-footer {
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
  }

  .os-buybar[hidden] {
    display: none;
  }

  .os-buybar__inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 33.75rem;
    margin: 0 auto;
  }

  .os-buybar__info {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
  }

  .os-buybar__name {
    overflow: hidden;
    color: #64748b;
    font-size: .75rem;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .os-buybar__price {
    color: var(--ostrzalnia-orange-text,#c94f00);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
  }

  .os-buybar__add {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 50px;
    padding: .6rem 1rem;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .os-buybar__add svg {
    flex: none;
  }
}

@media (max-width: 359.98px) {
  body#product .product__name { font-size: 1.25rem; }
  .os-buybar__add svg { display: none; }
}

/* ---------- Tablet i komputer: galeria obok panelu zakupu ---------- */
@media (min-width: 768px) {
  .os-product-back {
    margin: 0 0 1rem;
  }

  body#product .product__container {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }

  body#product .product__left {
    order: 0;
    align-self: stretch;
    margin-top: 0;
  }

  body#product .product__images {
    height: 100%;
  }

  body#product .product__right {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  body#product .product__name {
    font-size: 1.5rem;
  }

  body#product .product__carousel .carousel-item img,
  body#product .product__no-image img {
    max-height: min(70vh, 32rem);
  }

  body#product .product__thumbnails-list {
    flex-wrap: wrap;
    overflow: visible;
  }

  body#product .product__thumbnails-item {
    flex-basis: 4rem;
  }

  body#product .product__thumbnail {
    width: 4rem;
    height: 4rem;
  }

  body#product .product__prices {
    margin-top: 1.25rem;
  }

  body#product .product__bottom {
    margin-top: 2.5rem;
  }

  body#product .product-specs .product-specs__list {
    column-count: 2;
    column-gap: 2.5rem;
  }
}

/* Krótsza z kolumn zostaje w widoku, gdy druga się przewija. Okno powiększenia leży poza .product__gallery. */
@media (min-width: 768px) and (min-height: 760px) {
  body#product .product__gallery,
  body#product .product__right:not(:has(.modal)) {
    position: sticky;
    top: var(--op-sticky-top);
  }
}

@media (min-width: 992px) {
  body#product .product__container {
    gap: 2.5rem;
  }

  body#product .product__name {
    font-size: 1.625rem;
  }

  body#product .product__price {
    font-size: 2.25rem;
  }

  /* Wszystkie karty treści pod zakupem, w pełnej szerokości. */
  body#product .product__bottom {
    display: block;
    margin-top: 3rem;
  }
}

@media (min-width: 1200px) {
  body#product .product__container {
    grid-template-columns: minmax(0, 52%) minmax(0, 1fr);
    gap: 3rem;
  }

  body#product .product__name {
    font-size: 1.75rem;
  }

  body#product .product__carousel .carousel-item img,
  body#product .product__no-image img {
    max-height: min(72vh, 36rem);
  }

  body#product .product__thumbnails-item {
    flex-basis: 4.5rem;
  }

  body#product .product__thumbnail {
    width: 4.5rem;
    height: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-product-back__link svg,
  .os-buybar,
  .os-buybar.is-visible,
  body#product .product-info__summary::after {
    transition: none;
  }
}
