/**
 * Plik: assets/css/pages/product.css
 *
 * Odpowiada za:
 * - wygląd karty produktu (PDP) Cercasa
 * - galeria, ceny, warianty, ATC, accordion, akcesoria, hooki FO
 *
 * Nie umieszczać tutaj:
 * - logiki JS
 * - @import
 * - usuwania / nadpisywania selektorów wymaganych przez core.js
 *
 * Powiązane pliki:
 * - templates/catalog/product.tpl
 * - assets/css/tokens.css
 * - assets/css/components/product-card.css
 */

body#product {
  --cercasa-pdp-text: var(--cercasa-text, #1a1a1a);
  --cercasa-pdp-muted: var(--cercasa-text-muted, #5a605b);
  --cercasa-pdp-soft: var(--cercasa-text-soft, #8a908a);
  --cercasa-pdp-line: var(--cercasa-line, #e4e8e3);
  --cercasa-pdp-bg: var(--cercasa-bg, #fff);
  --cercasa-pdp-bg-soft: var(--cercasa-bg-soft, #f5f5f5);
  --cercasa-pdp-gutter: var(--cercasa-hero-gutter, clamp(1.25rem, 3vw, 3rem));
  font-family: var(--cercasa-font-sans, "Poppins", sans-serif);
  color: var(--cercasa-pdp-text);
  background: var(--cercasa-pdp-bg);
  overflow-x: visible;
}

/* ——— Przyciski ——— */
body#product .btn-primary,
body#product .btn-outline-primary,
body#product .btn-tertiary {
  --bs-btn-font-family: inherit;
  --bs-btn-border-radius: 0;
  --bs-btn-font-weight: 500;
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-padding-x: 1.15rem;
}

body#product .btn-primary,
body#product .product__add-to-cart-button {
  --bs-btn-color: #fff;
  --bs-btn-bg: #111;
  --bs-btn-border-color: #111;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #000;
  --bs-btn-active-border-color: #000;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #9aa0a6;
  --bs-btn-disabled-border-color: #9aa0a6;
  cursor: pointer;
}

body#product .btn-outline-primary {
  --bs-btn-color: #111;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #cfd3d7;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--cercasa-pdp-bg-soft);
  --bs-btn-hover-border-color: #b8bdc2;
}

/* ——— Breadcrumb ——— */
body#product .breadcrumb__wrapper {
  margin: 0;
  padding: 0.85rem 0;
  background: #fff;
  border-bottom: 1px solid var(--cercasa-pdp-line);
}

body#product .breadcrumb__wrapper .container {
  max-width: none;
  padding-inline: var(--cercasa-pdp-gutter);
}

body#product .breadcrumb {
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--cercasa-pdp-soft);
  background: transparent;
}

body#product .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--cercasa-pdp-soft);
  padding-inline: 0.45rem;
}

body#product .breadcrumb-link {
  color: var(--cercasa-pdp-muted);
  text-decoration: none;
}

body#product .breadcrumb-link:hover {
  color: var(--cercasa-pdp-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body#product .breadcrumb-item:last-child > span {
  color: #7A9A7E;
  font-weight: 500;
}

body#product .breadcrumb__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body#product .breadcrumb__scroller::-webkit-scrollbar {
  display: none;
}

body#product .breadcrumb-item {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ——— Layout shell ——— */
body#product #content-wrapper,
body#product #main {
  max-width: none;
}

body#product .columns-container.container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  overflow: visible;
}

body#product #center-column,
body#product .cercasa-product,
body#product .cercasa-product__reviews,
body#product .cercasa-product__footer-hooks {
  overflow: visible;
}

body#product .cercasa-product {
  margin: 0;
  padding-block: 1.75rem 0;
  max-width: 100%;
  overflow-x: visible;
}

/* Top: gallery + buybox */
body#product .cercasa-product__top.product__container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 2.5rem;
  padding-inline: var(--cercasa-pdp-gutter);
  box-sizing: border-box;
  min-width: 0;
}

body#product .cercasa-product__gallery,
body#product .cercasa-product__buybox,
body#product .cercasa-product__actions,
body#product .product__actions {
  min-width: 0;
  max-width: 100%;
}

body#product .cercasa-product__buybox {
  position: sticky;
  top: 6.5rem;
  padding-block: 0.15rem;
}

/* ——— Title / brand ——— */
body#product .cercasa-product__title.product__name {
  margin: 0;
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cercasa-pdp-text);
}

body#product .cercasa-product__brand {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
}

body#product .cercasa-product__brand a {
  color: var(--cercasa-pdp-muted);
  text-decoration: none;
  font-weight: 500;
}

body#product .cercasa-product__brand a:hover {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ——— Prices ——— */
body#product .product__prices {
  margin: 0 0 1rem;
}

body#product .product__price {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cercasa-pdp-text);
}

body#product .product__regular-price {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cercasa-pdp-muted);
  text-decoration: line-through;
}

body#product .product__discount-percentage,
body#product .product__discount-amount,
body#product .text-primary-emphasis {
  color: #111 !important;
  font-weight: 600;
}

body#product .product__tax-infos,
body#product .product__unit-price,
body#product .product__pack-price,
body#product .product__ecotax-price,
body#product .product__taxless-price {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--cercasa-pdp-muted);
}

body#product .product__prices-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

/* ——— Short description ——— */
body#product .cercasa-product__short {
  margin: 0 0 1.25rem;
  font-size: 0.90rem;
  line-height: 1.55;
  color: #333;
}

body#product .cercasa-product__short p:last-child {
  margin-bottom: 0;
}

/* ——— Variants ——— */
body#product .product__variants {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0 0 1.35rem;
  min-width: 0;
  max-width: 100%;
}

body#product .product-variant {
  margin: 0;
  padding: 0;
  border: 0;
  /* fieldset domyślnie ma min-width: min-content → rozpycha mobile */
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body#product .product-variant__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}

body#product .product-variant__legend,
body#product .product-variant .form-label {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cercasa-pdp-text);
}

body#product .product-variant__selected {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--cercasa-pdp-muted);
}

/* Select: pełna szerokość, bez wychodzenia poza kartę */
body#product .product__variants .form-select,
body#product .cercasa-pdp-variant__select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  padding: 0.65rem 2.5rem 0.65rem 0.9rem;
  border: 1px solid #d5d9de;
  border-radius: 0;
  background-color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cercasa-pdp-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 0.75rem;
}

body#product .product__variants .form-select:focus,
body#product .cercasa-pdp-variant__select:focus {
  border-color: #7A9A7E;
  box-shadow: 0 0 0 3px rgba(122, 154, 126, 0.15);
  outline: none;
}

/* Chipy tylko dla typu „Przyciski jednokrotnego wyboru” (radio) */
body#product .cercasa-pdp-variant__chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.75rem, 1fr));
  gap: 0.45rem;
}

body#product .cercasa-pdp-variant__chip {
  position: relative;
  margin: 0;
  min-width: 0;
}

body#product .cercasa-pdp-variant__chip-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

body#product .cercasa-pdp-variant__chip-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d5d9de;
  border-radius: 0;
  background: #fff;
  color: var(--cercasa-pdp-text);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

body#product .cercasa-pdp-variant__chip-label:hover {
  border-color: #7A9A7E;
}

body#product .cercasa-pdp-variant__chip-input:focus-visible + .cercasa-pdp-variant__chip-label {
  outline: 2px solid #7A9A7E;
  outline-offset: 2px;
}

body#product .cercasa-pdp-variant__chip-input:checked + .cercasa-pdp-variant__chip-label {
  border-color: #7A9A7E;
  background: #FFE5E5;
  color: #7A9A7E;
  box-shadow: inset 0 0 0 1px #7A9A7E;
}

body#product .product-variant__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body#product .product-variant__color .input-color__label,
body#product .product-variant__color .color {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50% !important;
  border: 1px solid rgba(26, 26, 26, 0.15);
  cursor: pointer;
}

body#product .product-variant__color .input-color__label--active .color,
body#product .product-variant__color .color.active,
body#product .product-variant__color .input-color__input:checked + .input-color__label .color {
  outline: 2px solid #7A9A7E;
  outline-offset: 3px;
}

body#product .product-variant__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

body#product .product-variant__radio .form-check-input:checked {
  background-color: #111;
  border-color: #111;
}

body#product .product-variant__radio .form-check-label {
  font-size: 0.9rem;
  color: var(--cercasa-pdp-muted);
  cursor: pointer;
}

/* ——— Product promo code ——— */
body#product .cercasa-product-promo {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.45rem;
  width: 100%;
  margin: 0 0 0.85rem;
}

body#product .cercasa-product-promo__row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  min-height: 2.75rem;
  padding: 0.15rem 0.25rem 0.15rem 0.7rem;
  border-radius: 0;
  background: #ff6b1a;
  color: #1a1a1a;
}

body#product .cercasa-product-promo__row:hover {
  background: #f25a0a;
}

body#product .cercasa-product-promo__copy {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body#product .cercasa-product-promo__copy:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

body#product .cercasa-product-promo__row--ship {
  background: #111;
  color: #fff;
  cursor: default;
}

body#product .cercasa-product-promo__row--ship:hover {
  background: #111;
}

body#product .cercasa-product-promo__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a1a1a;
}

body#product .cercasa-product-promo__row--ship .cercasa-product-promo__label,
body#product .cercasa-product-promo__row--ship .cercasa-product-promo__code,
body#product .cercasa-product-promo__row--ship .cercasa-product-promo__copied {
  color: #fff;
}

body#product .cercasa-product-promo__code {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

body#product .cercasa-product-promo__copied {
  margin-left: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: inherit;
}

body#product .cercasa-product-promo__row.is-copied .cercasa-product-promo__copied {
  display: inline;
}

body#product .cercasa-product-promo__hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.75rem;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  line-height: 0;
  cursor: help;
}

body#product .cercasa-product-promo__hint::before {
  content: none;
  display: none;
}

body#product .cercasa-product-promo__hint-icon,
body#product .cercasa-product-promo__hint-mark {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

body#product .cercasa-product-promo__hint:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

body#product .cercasa-product-promo__row--ship .cercasa-product-promo__hint:focus-visible {
  outline-color: #fff;
}

body#product .cercasa-product-promo__bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 8;
  width: 15.8rem;
  max-width: calc(100vw - 2.4rem);
  padding: 0.65rem 0.75rem;
  border-radius: 0;
  background: #222;
  color: #fff;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body#product .cercasa-product-promo__hint:hover .cercasa-product-promo__bubble,
body#product .cercasa-product-promo__hint:focus-visible .cercasa-product-promo__bubble,
body#product .cercasa-product-promo__hint.is-open .cercasa-product-promo__bubble {
  opacity: 1;
  visibility: visible;
}

/* ——— Quantity + ATC ——— */
body#product .product__add-to-cart-container {
  margin: 0 0 1rem;
}

body#product .product__availability {
  margin: 0 0 0.85rem;
}

body#product .product__availability-status {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cercasa-pdp-text);
}

body#product .product__availability-status.is-in-stock,
body#product .product__availability-status.text-success {
  align-items: center;
  color: var(--cercasa-pdp-text);
}

body#product .product__availability-status.is-in-stock .product__availability-icon,
body#product .product__availability-status.text-success .product__availability-icon,
body#product .product__availability-dot {
  display: none !important;
}

body#product .product__availability-status.is-in-stock::before,
body#product .product__availability-status.text-success::before {
  content: "" !important;
  display: block;
  flex: 0 0 0.85em;
  width: 0.85em;
  height: 0.85em;
  margin: 0;
  transform: translateY(-0.08em);
  border-radius: 50% !important;
  background: #2ec25a;
}

body#product .product__availability-icon {
  font-size: 1.15rem;
  line-height: 1.2;
}

body#product .product__delivery-infos {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cercasa-pdp-text);
}

body#product .product__delivery-infos::before {
  content: "";
  display: block;
  flex: 0 0 0.85em;
  width: 0.85em;
  height: 0.85em;
  margin: 0;
  transform: translateY(-0.08em);
  border-radius: 0;
  background: #7A9A7E;
}

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

body#product .product__quantity,
body#product .quantity-button {
  flex: 0 0 auto;
}

body#product .product__quantity .input-group,
body#product .js-quantity-button .input-group,
body#product .quantity-button__group {
  display: inline-grid;
  grid-template-columns: 2.75rem 3.25rem 2.75rem;
  align-items: stretch;
  width: auto;
  max-width: 100%;
  border: 1px solid #d5d9de;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

body#product .product__quantity .btn,
body#product .js-quantity-button .btn,
body#product .js-increment-button,
body#product .js-decrement-button,
body#product .quantity-button__group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: 2.85rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f6f7f8;
  color: var(--cercasa-pdp-text);
  box-shadow: none;
  cursor: pointer;
}

body#product .product__quantity .btn:hover,
body#product .js-quantity-button .btn:hover,
body#product .quantity-button__group .btn:hover {
  background: #eef0f2;
}

body#product .product__quantity .form-control,
body#product .js-quantity-wanted,
body#product .quantity-button__group .form-control {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 2.85rem;
  margin: 0;
  padding: 0 0.25rem;
  text-align: center;
  border: 0;
  border-inline: 1px solid #e6e8eb;
  border-radius: 0;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
}

body#product .product__add-to-cart {
  flex: 1 1 12rem;
}

body#product .product__wishlist,
body#product .cercasa-product__wishlist {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

body#product .product__wishlist:empty,
body#product .cercasa-product__wishlist:empty {
  display: none;
}

body#product .product__wishlist .wishlist-button,
body#product .cercasa-product__wishlist .wishlist-button {
  position: static !important;
  display: flex !important;
  align-items: stretch;
  margin: 0 !important;
  top: auto !important;
  right: auto !important;
}

body#product .product__wishlist .wishlist-button-add,
body#product .cercasa-product__wishlist .wishlist-button-add,
body#product .product__wishlist button.wishlist-button-add,
body#product .cercasa-product__wishlist button.wishlist-button-add {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.85rem !important;
  min-width: 2.85rem !important;
  height: 2.85rem !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #d5d9de !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #1a1a1a !important;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

body#product .product__wishlist .wishlist-button-add:hover,
body#product .cercasa-product__wishlist .wishlist-button-add:hover,
body#product .product__wishlist .wishlist-button-add:focus-visible,
body#product .cercasa-product__wishlist .wishlist-button-add:focus-visible {
  border-color: #111 !important;
  background: #f5f5f5 !important;
  color: #111 !important;
  outline: none;
}

body#product .product__wishlist .wishlist-button-add i,
body#product .cercasa-product__wishlist .wishlist-button-add i,
body#product .product__wishlist .wishlist-button-add .material-icons,
body#product .cercasa-product__wishlist .wishlist-button-add .material-icons {
  font-family: "Material Icons" !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  background: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

body#product .product__wishlist .cercasa-wl-btn,
body#product .cercasa-product__wishlist .cercasa-wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  min-width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  margin: 0;
  border: 1px solid #d5d9de;
  border-radius: 0;
  background: #fff;
  color: #1a1a1a;
  box-shadow: none;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

body#product .product__wishlist .cercasa-wl-btn:hover,
body#product .cercasa-product__wishlist .cercasa-wl-btn:hover,
body#product .product__wishlist .cercasa-wl-btn:focus-visible,
body#product .cercasa-product__wishlist .cercasa-wl-btn:focus-visible {
  border-color: #111;
  background: #f5f5f5;
  color: #111;
  outline: none;
}

body#product .product__wishlist .cercasa-wl-btn.is-active,
body#product .cercasa-product__wishlist .cercasa-wl-btn.is-active {
  color: #c62828;
  border-color: #c62828;
  background: #fff5f5;
}

body#product .product__add-to-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.85rem;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

body#product .product__add-to-cart-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: currentColor;
}

body#product .product__add-to-cart-icon .cercasa-icon__svg {
  display: block;
  width: 1.2rem;
  height: 1.3rem;
}

body#product .product__minimal-quantity {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--cercasa-pdp-muted);
}

/* ——— Wysuwane panele pod ATC (płatności i kolejne) ——— */
body#product .cercasa-pdp-drawers {
  margin: 0.85rem 0 0;
  border-top: 1px solid var(--cercasa-pdp-line);
}

body#product .cercasa-pdp-pay {
  margin: 0;
  border-bottom: 1px solid var(--cercasa-pdp-line);
}

body#product .product-add-to-cart:has(.cercasa-pdp-drawers) + .product__additional-info,
body#product .product-add-to-cart:has(.cercasa-pdp-drawers) + .js-product-additional-info,
body#product .js-product-add-to-cart:has(.cercasa-pdp-drawers) + .product__additional-info,
body#product .js-product-add-to-cart:has(.cercasa-pdp-drawers) + .js-product-additional-info {
  margin-top: 0;
  padding-top: 1rem;
  border-top: none;
}

body#product .cercasa-pdp-pay__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 0;
  list-style: none;
  cursor: pointer;
  color: var(--cercasa-pdp-text);
}

body#product .cercasa-pdp-pay__toggle::-webkit-details-marker,
body#product .cercasa-pdp-pay__toggle::marker {
  display: none;
}

body#product .cercasa-pdp-pay__title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

body#product .cercasa-pdp-pay__chevron {
  display: flex;
  flex: 0 0 1rem;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #111;
}

body#product .cercasa-pdp-pay__chevron svg {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s ease;
}

body#product .cercasa-pdp-pay[open] .cercasa-pdp-pay__chevron svg {
  transform: rotate(180deg);
}

body#product .cercasa-pdp-pay__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0 1.1rem;
}

body#product .cercasa-pdp-pay__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 2.65rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

body#product .cercasa-pdp-pay__item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 2.65rem;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  body#product .cercasa-pdp-pay[open] .cercasa-pdp-pay__list {
    box-sizing: border-box;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding: 0 0 1.1rem;
  }

  body#product .cercasa-pdp-pay__item {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    overflow: visible;
  }

  body#product .cercasa-pdp-pay__item img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

/* ——— Additional info (share / comments teaser / alerts) ——— */
body#product .product-additional-info,
body#product .js-product-additional-info {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cercasa-pdp-line);
  font-size: 0.88rem;
  color: var(--cercasa-pdp-muted);
}

body#product .product-additional-info a,
body#product .js-product-additional-info a {
  color: var(--cercasa-pdp-text);
  text-decoration: none;
  font-weight: 500;
}

body#product .product-additional-info a:hover,
body#product .js-product-additional-info a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ——— Gallery (miniatury lewo + duże zdjęcie, klik = modal) ——— */
body#product .product__images.cercasa-pdp-gallery,
body#product .cercasa-pdp-gallery {
  position: relative;
}

body#product .cercasa-pdp-gallery__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

body#product .cercasa-pdp-gallery__layout--with-thumbs {
  grid-template-columns: 7.5rem minmax(0, 1fr);
}

body#product .cercasa-pdp-gallery__thumbs {
  margin: 0;
  min-width: 0;
  width: 100%;
}

body#product .cercasa-pdp-gallery__thumbs-list,
body#product .product__thumbnails-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0 0.35rem 0 0; /* miejsce na scrollbar — bez ucinania miniatur */
  list-style: none;
  max-height: min(36rem, 70vh);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  box-sizing: border-box;
}

body#product .cercasa-pdp-gallery__thumb,
body#product .product__thumbnail {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 0;
  background: #f7f7f7;
  box-shadow: none;
  outline: none !important;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 0.18s ease,
    opacity 0.18s ease;
}

body#product .cercasa-pdp-gallery__thumb:focus,
body#product .cercasa-pdp-gallery__thumb:focus-visible,
body#product .cercasa-pdp-gallery__thumb:active,
body#product .product__thumbnail:focus,
body#product .product__thumbnail:focus-visible,
body#product .product__thumbnail:active {
  outline: none !important;
  box-shadow: none !important;
}

body#product .cercasa-pdp-gallery__thumb.active,
body#product .cercasa-pdp-gallery__thumb:hover,
body#product .product__thumbnail.active,
body#product .product__thumbnail:hover {
  border-color: #111;
  box-shadow: none;
}

body#product .cercasa-pdp-gallery__thumb-img,
body#product .product__thumbnail-image,
body#product .cercasa-pdp-gallery__thumb img,
body#product .product__thumbnail img,
body#product .cercasa-pdp-gallery__thumb picture {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

body#product .cercasa-pdp-gallery__thumb-img,
body#product .product__thumbnail-image,
body#product .cercasa-pdp-gallery__thumb img,
body#product .product__thumbnail img {
  object-fit: cover;
  object-position: center;
  border: 0 !important;
  border-radius: 0;
  outline: none !important;
  box-shadow: none !important;
}

/* HB / Bootstrap: focus-ring i .outline na miniaturach */
body#product .cercasa-pdp-gallery__thumb.focus-ring,
body#product .product__thumbnail.focus-ring,
body#product .cercasa-pdp-gallery__thumb .outline,
body#product .product__thumbnail .outline,
body#product .cercasa-pdp-gallery__thumb .outline--rounded,
body#product .product__thumbnail .outline--rounded {
  outline: none !important;
  box-shadow: none !important;
}

body#product .cercasa-pdp-gallery__stage,
body#product .product__carousel,
body#product .product__no-image {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 0;
  background: #fff;
}

body#product .cercasa-pdp-gallery__open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

body#product .cercasa-pdp-gallery__open:focus-visible {
  outline: 2px solid #111;
  outline-offset: -2px;
}

body#product .cercasa-pdp-gallery__open picture,
body#product .product__carousel .carousel-item picture {
  display: block;
  width: 100%;
}

body#product .product__carousel .carousel-item img,
body#product .cercasa-pdp-gallery__open img,
body#product .product__no-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  image-rendering: auto;
}

/* Standardowy Bootstrap slide — bez własnych absolute/opacity */
body#product .cercasa-pdp-gallery__stage.carousel,
body#product .product__carousel.carousel {
  position: relative;
  overflow: hidden;
}

body#product .cercasa-pdp-gallery__stage .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Strzałki galerii — większe kółko, ta sama strzałka, bez cienia */
body#product .product__carousel .carousel-control-prev,
body#product .product__carousel .carousel-control-next,
body#product .cercasa-pdp-gallery__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  top: 50%;
  bottom: auto;
  z-index: 5;
  padding: 0;
  transform: translateY(-50%);
  opacity: 1;
  color: #1a1a1a;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  cursor: pointer;
  outline: none !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

body#product .product__carousel .carousel-control-prev,
body#product .cercasa-pdp-gallery__nav--prev {
  left: 0.7rem;
}

body#product .product__carousel .carousel-control-next,
body#product .cercasa-pdp-gallery__nav--next {
  right: 0.7rem;
}

body#product .product__carousel .carousel-control-prev:hover,
body#product .product__carousel .carousel-control-next:hover,
body#product .cercasa-pdp-gallery__nav:hover {
  background: #fff;
  color: #111;
  box-shadow: none;
  opacity: 1;
}

body#product .product__carousel .carousel-control-prev:hover,
body#product .cercasa-pdp-gallery__nav--prev:hover {
  transform: translateY(-50%) translateX(-1px);
}

body#product .product__carousel .carousel-control-next:hover,
body#product .cercasa-pdp-gallery__nav--next:hover {
  transform: translateY(-50%) translateX(1px);
}

body#product .product__carousel .carousel-control-prev:focus-visible,
body#product .product__carousel .carousel-control-next:focus-visible,
body#product .cercasa-pdp-gallery__nav:focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 2px;
}

body#product .cercasa-pdp-gallery__nav-icon {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  margin: 0;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  background: none;
  flex: 0 0 auto;
}

body#product .cercasa-pdp-gallery__nav--prev .cercasa-pdp-gallery__nav-icon {
  margin-left: 0.12rem;
  transform: rotate(-135deg);
}

body#product .cercasa-pdp-gallery__nav--next .cercasa-pdp-gallery__nav-icon {
  margin-right: 0.12rem;
  transform: rotate(45deg);
}

body#product .product__carousel .carousel-control-prev-icon,
body#product .product__carousel .carousel-control-next-icon,
body#product .product__carousel .carousel-control-prev-icon::before,
body#product .product__carousel .carousel-control-next-icon::before {
  display: none !important;
  background: none !important;
  content: none !important;
}

body#product .product__zoom {
  display: none !important;
}

/* Flags on PDP */
body#product .product__carousel .product-flags,
body#product .product__no-image .product-flags {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

body#product .product__carousel .product-flags .badge,
body#product .product__no-image .product-flags .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  height: 1.45rem;
  padding: 0.12em 0.45rem 0;
  border-radius: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #111;
  color: #fff;
}

/* Modal podglądu */
body#product #product-modal .modal-content,
body#product .product-images-modal .modal-content {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #111;
}

body#product #product-modal .modal-header,
body#product .product-images-modal .modal-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  width: auto;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
}

body#product #product-modal .btn-close,
body#product .product-images-modal .btn-close {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.92);
  opacity: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

body#product #product-modal .modal-body,
body#product .product-images-modal__body {
  padding: 0;
  background: #111;
}

body#product #product-modal .carousel-item img,
body#product .product-images-modal__carousel .carousel-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(85vh, 56rem);
  margin-inline: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #111;
  image-rendering: auto;
}

body#product #product-modal .carousel-control-prev,
body#product #product-modal .carousel-control-next,
body#product .product-images-modal .carousel-control-prev,
body#product .product-images-modal .carousel-control-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  top: 50%;
  bottom: auto;
  z-index: 5;
  padding: 0;
  transform: translateY(-50%);
  opacity: 0.9;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body#product #product-modal .carousel-control-prev,
body#product .product-images-modal .carousel-control-prev {
  left: 0.65rem;
}

body#product #product-modal .carousel-control-next,
body#product .product-images-modal .carousel-control-next {
  right: 0.65rem;
}

body#product #product-modal .carousel-control-prev:hover,
body#product #product-modal .carousel-control-next:hover,
body#product .product-images-modal .carousel-control-prev:hover,
body#product .product-images-modal .carousel-control-next:hover {
  opacity: 1;
  background: transparent;
}

body#product #product-modal .carousel-control-prev-icon,
body#product #product-modal .carousel-control-next-icon,
body#product .product-images-modal .carousel-control-prev-icon,
body#product .product-images-modal .carousel-control-next-icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  background-color: transparent !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.55rem 1.55rem;
  border: 0;
}

body#product #product-modal .carousel-control-prev-icon,
body#product .product-images-modal .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15 5L8 12l7 7' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

body#product #product-modal .carousel-control-next-icon,
body#product .product-images-modal .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 5l7 7-7 7' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

body#product #product-modal .carousel-control-prev-icon::before,
body#product #product-modal .carousel-control-next-icon::before,
body#product .product-images-modal .carousel-control-prev-icon::before,
body#product .product-images-modal .carousel-control-next-icon::before {
  content: none !important;
  display: none !important;
}

/* ——— Discounts / pack / customization ——— */
body#product .product-discounts,
body#product .js-product-discounts,
body#product .product-pack,
body#product .product-customization {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
}

body#product .product-discounts table {
  width: 100%;
  border-collapse: collapse;
}

body#product .product-discounts th,
body#product .product-discounts td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--cercasa-pdp-line);
  text-align: left;
  font-weight: 500;
}

/* ——— Bottom: accordion (pełna szerokość — bez kolumny reassurance) ——— */
body#product .cercasa-product__bottom {
  display: block;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 2.5rem;
  padding-top: 0.5rem;
  padding-inline: var(--cercasa-pdp-gutter);
  box-sizing: border-box;
  border-top: 1px solid var(--cercasa-pdp-line);
}

body#product .cercasa-product__tabs {
  width: 100%;
  max-width: none;
}

body#product .product__accordion.accordion {
  --bs-accordion-border-color: var(--cercasa-pdp-line);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-color: var(--cercasa-pdp-text);
  --bs-accordion-active-color: #7A9A7E;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 1rem;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0 0 1.15rem;
}

body#product .product__accordion .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cercasa-pdp-line);
}

body#product .product__accordion > .accordion-item:last-child {
  border-bottom: 0;
}

body#product .product__accordion .accordion-button {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
}

body#product .product__accordion .accordion-button:not(.collapsed) {
  color: #7A9A7E;
  box-shadow: none;
}

body#product .product__accordion .accordion-button::after {
  background-size: 1rem;
}

body#product .product__description,
body#product .product__accordion .accordion-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #4e5450;
}

body#product .product__description h1,
body#product .product__description h2,
body#product .product__description h3,
body#product .product__description h4,
body#product .product__description .h1,
body#product .product__description .h2,
body#product .product__description .h3,
body#product .product__description .h4 {
  margin: 1.2em 0 0.4em;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--cercasa-pdp-text, #1a1a1a);
}

body#product .product__description h1:first-child,
body#product .product__description h2:first-child,
body#product .product__description h3:first-child,
body#product .product__description h4:first-child {
  margin-top: 0.15em;
}

body#product .details__list {
  margin: 0.1rem 0 0.25rem;
  padding: 0.2rem 0;
  list-style: none;
  background: var(--cercasa-pdp-bg-soft, #f5f5f5);
  border-radius: 0;
  overflow: hidden;
}

body#product .details__item {
  display: grid;
  grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1.1rem;
  padding: 0.7rem 1.05rem;
  border-bottom: 1px solid #e8eae7;
  font-size: 0.88rem;
}

body#product .details__item:last-child {
  border-bottom: 0;
}

body#product .details__title {
  font-weight: 600;
  color: var(--cercasa-pdp-text);
}

body#product .details__right,
body#product .details__right a {
  color: var(--cercasa-pdp-muted);
  text-decoration: none;
}

body#product .details__right a:hover {
  color: #111;
  text-decoration: underline;
}

body#product .details__manufacturer-logo {
  display: block;
  max-height: 2.1rem;
  width: auto;
  max-width: 8rem;
  object-fit: contain;
  object-position: left center;
}

body#product .product__attachments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

body#product .product__attachments[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body#product .product__attachments[data-count="3"],
body#product .product__attachments[data-count="4"],
body#product .product__attachments[data-count="5"],
body#product .product__attachments[data-count="6"],
body#product .product__attachments[data-count="7"],
body#product .product__attachments[data-count="8"],
body#product .product__attachments[data-count="9"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body#product .attachment {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--cercasa-pdp-line);
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
}

body#product .attachment__name {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--cercasa-pdp-text);
}

body#product .attachment__description {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  color: var(--cercasa-pdp-muted);
}

body#product .attachment__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  color: #111;
  text-decoration: none;
}

/* Reassurance */
body#product .cercasa-product__reassurance {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--cercasa-pdp-line);
  border-radius: 0;
  background: #fff;
  font-size: 0.88rem;
  color: var(--cercasa-pdp-muted);
}

body#product .cercasa-product__reassurance img {
  max-width: 2rem;
  height: auto;
}

body#product .cercasa-product__reassurance .block-reassurance-item,
body#product .cercasa-product__reassurance li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

body#product .cercasa-product__reassurance .block-reassurance-item:last-child,
body#product .cercasa-product__reassurance li:last-child {
  margin-bottom: 0;
}

/* ——— Opinie (REMI) under accordion ——— */
body#product .cercasa-product__comments,
body#product .cercasa-product__reviews {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

body#product .cercasa-product__comments:empty,
body#product .cercasa-product__reviews:empty {
  display: none;
  margin: 0;
  padding: 0;
}

body#product .cercasa-product__buybox .remi-rev-product-stars,
body#product .cercasa-product__title.product__name + .remi-rev-product-stars {
  margin: 0.8rem 0 0.85rem;
}

body#product .cercasa-product__brand + .remi-rev-product-stars {
  margin-top: 0.4rem;
  margin-bottom: 0.85rem;
}

/* Tło opinii jest w modules/cercasareviews/views/css/reviews.css */
body#product .cercasa-product__reviews .remi-rev-section {
  width: 100%;
  max-width: none;
}

body#product .cercasa-faq-pdp.accordion {
  --bs-accordion-border-color: var(--cercasa-pdp-line);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-color: var(--cercasa-pdp-text);
  --bs-accordion-active-color: #111;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 0.85rem;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0 0 0.95rem;
}

body#product .cercasa-faq-pdp .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cercasa-pdp-line);
}

body#product .cercasa-faq-pdp .accordion-item:last-child {
  border-bottom: 0;
}

body#product .cercasa-faq-pdp .accordion-button {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
}

body#product .cercasa-faq-pdp .accordion-button:not(.collapsed) {
  color: #111;
  box-shadow: none;
}

body#product .cercasa-faq-pdp .accordion-button::after {
  background-size: 1rem;
}

body#product .cercasa-faq-pdp__answer {
  color: #4e5450;
}

/* ——— Accessories / footer hooks ——— */
body#product .cercasa-product__accessories {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 2.25rem;
  padding-inline: var(--cercasa-pdp-gutter);
  box-sizing: border-box;
}

/*
  „Ostatnio przeglądane” + produkty z tej samej kategorii:
  pas #FCFBF9 + karuzela pozioma jak Polecane (home).
*/
body#product .cercasa-product__footer-hooks {
  --cercasa-rail-gutter: var(--cercasa-pdp-gutter, clamp(1.25rem, 3vw, 3rem));
  --cercasa-rail-gap: 0.85rem;
  position: relative;
  left: auto;
  right: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-block: 1.85rem 2.15rem;
  padding-inline: 0;
  background-color: #fcfbf9;
  box-shadow: none;
  box-sizing: border-box;
}

body#product .ps-viewedproduct,
body#product .ps-categoryproducts,
body#product .cercasa-product-rail {
  display: block;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding: 0 var(--cercasa-pdp-gutter) 1.5rem;
  background: transparent !important;
  box-sizing: border-box;
}

body#product .ps-viewedproduct:last-child,
body#product .ps-categoryproducts:last-child,
body#product .cercasa-product-rail:last-child {
  padding-bottom: 0;
}

body#product .ps-viewedproduct .module-products,
body#product .ps-categoryproducts .module-products,
body#product .cercasa-product-rail .module-products,
body#product .ps-viewedproduct .module-products.container,
body#product .ps-categoryproducts .module-products.container,
body#product .cercasa-product-rail .module-products.container {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

body#product .cercasa-product-rail__viewport,
body#product .ps-viewedproduct .module-products__list,
body#product .ps-categoryproducts .module-products__list {
  width: 100%;
  max-width: none;
  overflow: hidden;
}

/* Track — flex + poziomy scroll (jak .cercasa-featured__track) */
body#product .products.cercasa-products.cercasa-products--rail,
body#product.layout-full-width .products.cercasa-products.cercasa-products--rail {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--cercasa-rail-gap, 0.85rem) !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 0.25rem !important;
  list-style: none;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
}

body#product .products.cercasa-products.cercasa-products--rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Desktop: 6 kart w rzędzie */
body#product .products.cercasa-products.cercasa-products--rail > .cercasa-product-card,
body#product .products.cercasa-products.cercasa-products--rail > .product-miniature {
  flex: 0 0 calc((100% - 5 * var(--cercasa-rail-gap, 0.85rem)) / 6) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  scroll-snap-align: start;
}

body#product .cercasa-product-rail__controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.05rem;
  min-height: 2.75rem;
}

body#product .cercasa-product-rail:not(.is-scrollable) .cercasa-product-rail__controls {
  opacity: 0.45;
}

body#product .cercasa-product-rail__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  min-height: 2.75rem;
}

body#product .cercasa-product-rail__dot {
  display: block;
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  appearance: none;
  cursor: pointer;
  background: #c8ccd2;
  border: 0;
  border-radius: 999px !important;
  transition:
    width 0.2s ease,
    background-color 0.2s ease;
}

body#product .cercasa-product-rail__dot.is-active {
  width: 2.15rem;
  background: #4a4f57;
}

@media (max-width: 767.98px), (hover: none), (pointer: coarse) {
  body#product .cercasa-product-rail__dot {
    transition: background-color 0.15s ease;
  }

  body#product .cercasa-product-rail__dot.is-active {
    width: 0.7rem;
  }
}

body#product .cercasa-product-rail__arrows {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

body#product .cercasa-product-rail__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  cursor: pointer;
  color: #2a2d33;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

body#product .cercasa-product-rail__arrow span {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border-right: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transition: transform 0.2s ease;
}

body#product .cercasa-product-rail__arrow--prev span {
  margin-left: 0.15rem;
  transform: rotate(-135deg);
}

body#product .cercasa-product-rail__arrow--next span {
  margin-right: 0.15rem;
  transform: rotate(45deg);
}

body#product .cercasa-product-rail__arrow:hover,
body#product .cercasa-product-rail__arrow:focus-visible {
  background: rgba(255, 255, 255, 0.45);
}

body#product .cercasa-product-rail__arrow--prev:hover:not(:disabled) span,
body#product .cercasa-product-rail__arrow--prev:focus-visible:not(:disabled) span {
  transform: rotate(-135deg) translate(0.12rem, -0.12rem);
}

body#product .cercasa-product-rail__arrow--next:hover:not(:disabled) span,
body#product .cercasa-product-rail__arrow--next:focus-visible:not(:disabled) span {
  transform: rotate(45deg) translate(0.12rem, -0.12rem);
}

body#product .cercasa-product-rail__arrow:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

body#product .cercasa-product-rail__arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

body#product .cercasa-product__accessories .section-title,
body#product .cercasa-product__footer-hooks .section-title,
body#product .ps-viewedproduct .section-title,
body#product .ps-categoryproducts .section-title,
body#product .cercasa-product-rail .section-title,
body#product .cercasa-product__accessories .h2,
body#product .cercasa-product__footer-hooks h2,
body#product .cercasa-product__footer-hooks h3,
body#product .ps-viewedproduct h2,
body#product .ps-categoryproducts h2,
body#product .cercasa-product-rail h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cercasa-pdp-text);
}

@media (max-width: 1199.98px) {
  body#product .products.cercasa-products.cercasa-products--rail > .cercasa-product-card,
  body#product .products.cercasa-products.cercasa-products--rail > .product-miniature {
    flex-basis: calc((100% - 3 * var(--cercasa-rail-gap, 0.85rem)) / 4) !important;
  }
}

@media (max-width: 991.98px) {
  body#product .products.cercasa-products.cercasa-products--rail > .cercasa-product-card,
  body#product .products.cercasa-products.cercasa-products--rail > .product-miniature {
    flex-basis: calc((100% - 2 * var(--cercasa-rail-gap, 0.85rem)) / 3) !important;
  }
}

@media (max-width: 767.98px) {
  body#product .products.cercasa-products.cercasa-products--rail > .cercasa-product-card,
  body#product .products.cercasa-products.cercasa-products--rail > .product-miniature {
    flex-basis: calc((100% - var(--cercasa-rail-gap, 0.85rem)) / 2) !important;
  }
}

@media (max-width: 479.98px) {
  body#product .products.cercasa-products.cercasa-products--rail > .cercasa-product-card,
  body#product .products.cercasa-products.cercasa-products--rail > .product-miniature {
    flex-basis: 72% !important;
    min-width: 11.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#product .products.cercasa-products.cercasa-products--rail {
    scroll-behavior: auto;
  }

  body#product .cercasa-product-rail__dot,
  body#product .cercasa-product-rail__arrow,
  body#product .cercasa-product-rail__arrow span {
    transition: none;
  }
}

/* Product comments module */
body#product #product-comments-list-header,
body#product .product-comments-list-header {
  margin: 0 0 1rem;
}

body#product #product-comments-list,
body#product .product-comment-list-item {
  border-color: var(--cercasa-pdp-line);
  font-size: 0.9rem;
}

body#product #post-product-comment-modal .modal-content {
  border-radius: 0;
  border-color: var(--cercasa-pdp-line);
}

/* ——— Responsive ——— */
@media (max-width: 991.98px) {
  body#product .cercasa-product__top.product__container,
  body#product .cercasa-product__bottom {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body#product .cercasa-product__buybox {
    position: static;
  }

  body#product .cercasa-product__reassurance {
    order: -1;
  }

  body#product .cercasa-pdp-gallery__layout {
    gap: 0.6rem;
  }

  body#product .cercasa-pdp-gallery__layout--with-thumbs {
    grid-template-columns: 6rem minmax(0, 1fr);
  }

  body#product .cercasa-pdp-gallery__thumb,
  body#product .product__thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
  }

  body#product .cercasa-pdp-gallery__stage,
  body#product .product__carousel,
  body#product .product__no-image {
    border-radius: 0;
  }
}

@media (max-width: 767.98px) {
  body#product .cercasa-product__top.product__container {
    gap: 0.35rem;
  }

  body#product .product__attachments[data-count="3"],
  body#product .product__attachments[data-count="4"],
  body#product .product__attachments[data-count="5"],
  body#product .product__attachments[data-count="6"],
  body#product .product__attachments[data-count="7"],
  body#product .product__attachments[data-count="8"],
  body#product .product__attachments[data-count="9"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  body#product .cercasa-product-promo {
    flex-direction: column;
    flex-wrap: wrap;
  }

  body#product .cercasa-product-promo__row {
    width: 100%;
    flex: 1 1 auto;
  }

  body#product .cercasa-product {
    padding-block: 1.25rem 2rem;
    overflow-x: visible;
  }

  body#product .cercasa-product__title.product__name {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body#product .product__variants,
  body#product .product-variant,
  body#product form#add-to-cart-or-refresh {
    min-width: 0;
    max-width: 100%;
  }

  body#product .product__variants .form-select,
  body#product .cercasa-pdp-variant__select {
    width: 100%;
    max-width: 100%;
  }

  /* Warianty: pełna szerokość jak przyciski */
  body#product .cercasa-pdp-variant__chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  body#product .cercasa-pdp-variant__chip-label {
    min-height: 2.85rem;
    font-size: 0.92rem;
  }

  body#product .product-variant__colors {
    gap: 0.65rem;
  }

  body#product .product-variant__color .input-color__label,
  body#product .product-variant__color .color {
    width: 2.6rem;
    height: 2.6rem;
  }

  /* Ilość: kompaktowy stepper; ATC na pełną szerokość */
  body#product .product__actions-qty-add.product-quantity {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  body#product .product__quantity,
  body#product .quantity-button,
  body#product .js-quantity-button {
    flex: 0 0 auto;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
  }

  body#product .product__quantity .input-group,
  body#product .js-quantity-button .input-group,
  body#product .quantity-button__group {
    display: grid !important;
    grid-template-columns: 2.75rem 3.5rem 2.75rem;
    width: 9rem !important;
    max-width: 9rem;
    flex-wrap: nowrap;
  }

  body#product .product__quantity .form-control,
  body#product .js-quantity-wanted,
  body#product .quantity-button__group .form-control {
    flex: none;
    width: 100% !important;
  }

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

  body#product .product__add-to-cart-button {
    min-height: 3.05rem;
    border-radius: 0;
    font-size: 1rem;
  }

  body#product .product__wishlist .wishlist-button-add,
  body#product .cercasa-product__wishlist .wishlist-button-add {
    width: 3.05rem !important;
    min-width: 3.05rem !important;
    height: 3.05rem !important;
    border-radius: 0 !important;
  }

  /* Mobile: miniatury pod zdjęciem, poziomy scroll */
  body#product .cercasa-pdp-gallery__layout {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  body#product .cercasa-pdp-gallery__thumbs {
    order: 2;
  }

  body#product .cercasa-pdp-gallery__stage {
    order: 1;
  }

  body#product .cercasa-pdp-gallery__thumbs-list,
  body#product .product__thumbnails-list {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body#product .cercasa-pdp-gallery__thumbs-list::-webkit-scrollbar {
    display: none;
  }

  body#product .cercasa-pdp-gallery__thumb,
  body#product .product__thumbnail {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
    aspect-ratio: 1 / 1;
    border-radius: 0;
  }

  body#product .details__item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.65rem 0.9rem;
  }

  body#product .product__attachments[data-count="2"],
  body#product .product__attachments[data-count="3"],
  body#product .product__attachments[data-count="4"],
  body#product .product__attachments[data-count="5"],
  body#product .product__attachments[data-count="6"],
  body#product .product__attachments[data-count="7"],
  body#product .product__attachments[data-count="8"],
  body#product .product__attachments[data-count="9"] {
    grid-template-columns: 1fr;
  }
}
