/* ============================================================================
   PELETTO — Product Blocks (nowy format karty produktu)
   ============================================================================ */

.peletto-blocks{
  margin: 0 0 56px;
  font-family: Montserrat, sans-serif;
  line-height: 1.7;
  color: #111827;
}

/* ============================================================================
   HERO
   ============================================================================ */
.pb-hero{
  background: #0f1115;
  border-left: 6px solid #e05100;
  padding: 32px 36px;
  margin-bottom: 32px;
}
.pb-hero__title{
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.pb-hero__lead{
  color: #d1d5db;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
  max-width: 880px;
}

/* ============================================================================
   SECTION (białe bloki)
   ============================================================================ */
.pb-section{
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 32px 36px;
  margin-bottom: 32px;
}
.pb-section__title{
  font-size: 24px;
  font-weight: 800;
  color: #0f1115;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 0 0 20px;
  border-left: 5px solid #e05100;
  padding-left: 15px;
}
.pb-section__title--light{
  color: #fff;
}
.pb-section__p{
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 14px;
}
.pb-section__p:last-of-type{
  margin-bottom: 0;
}
.pb-section__note{
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 14px;
}
.pb-section__lead{
  color: #9ca3af;
  font-size: 14.5px;
  margin: 0 0 8px;
  line-height: 1.6;
}

/* ============================================================================
   DARK SECTION
   ============================================================================ */
.pb-section--dark{
  background: #0f1115;
  border-color: #0f1115;
}
.pb-list{
  list-style: none;
  padding: 0;
  margin: 0;
}
.pb-list li{
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.6;
}
.pb-list li:last-child{
  margin-bottom: 0;
}
.pb-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 11px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11' fill='none'><path d='M1 5.5L5 9.5L13 1' stroke='%23e05100' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
}

/* ============================================================================
   MODYFIKACJE
   ============================================================================ */
.pb-mods__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.pb-mod-card{
  background: #1a1a1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pb-mod-card__img{
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pb-mod-card__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pb-mod-card__body{
  padding: 20px 22px 24px;
}
.pb-mod-card__title{
  color: #e05100;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: -.005em;
}
.pb-mod-card__desc{
  color: #d1d5db;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================================
   GIF / ANIMACJE
   ============================================================================ */
.pb-gifs__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.pb-gif{
  margin: 0;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.pb-gif__media{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.pb-gif__media img{
  width: 100%;
  height: auto;
  display: block;
}
.pb-gif__caption{
  padding: 12px 16px;
  font-size: 13px;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

/* ============================================================================
   RYSUNKI TECHNICZNE
   ============================================================================ */
.pb-drawings__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.pb-drawing{
  margin: 0;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.pb-drawing__link{
  display: block;
  padding: 16px;
  background: #fff;
  transition: background .15s;
}
.pb-drawing__link:hover{
  background: #fff7f2;
}
.pb-drawing__link img{
  width: 100%;
  height: auto;
  display: block;
}
.pb-drawing__caption{
  padding: 12px 16px;
  font-size: 13px;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

/* ============================================================================
   FAQ
   ============================================================================ */
.pb-faq{
  padding: 32px 36px;
}
.pb-faq__item{
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
}
.pb-faq__item:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}
.pb-faq__item[open] .pb-faq__q::after{
  transform: rotate(45deg);
}
.pb-faq__q{
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: #0f1115;
  line-height: 1.45;
  list-style: none;
  position: relative;
  padding-right: 32px;
  outline: none;
}
.pb-faq__q::-webkit-details-marker{
  display: none;
}
.pb-faq__q::after{
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  margin-top: -6px;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(#e05100, #e05100) center/100% 2px no-repeat,
    linear-gradient(#e05100, #e05100) center/2px 100% no-repeat;
  transition: transform .25s;
}
.pb-faq__q:hover{
  color: #e05100;
}
.pb-faq__a{
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #4b5563;
  padding-right: 32px;
}

/* ============================================================================
   ADAPTIVE
   ============================================================================ */
@media (max-width: 992px){
  .pb-hero__title{ font-size: 28px; }
  .pb-section__title{ font-size: 22px; }
}

@media (max-width: 768px){
  .pb-hero{
    padding: 24px 22px;
    border-left-width: 4px;
  }
  .pb-hero__title{ font-size: 24px; }
  .pb-hero__lead{ font-size: 15px; }

  .pb-section{
    padding: 24px 22px;
  }
  .pb-section__title{
    font-size: 20px;
    padding-left: 12px;
    border-left-width: 4px;
  }
  .pb-section__p{ font-size: 14.5px; }
  .pb-section__lead{ font-size: 13.5px; }

  .pb-list li{
    font-size: 14.5px;
    padding-left: 26px;
  }
  .pb-list li::before{
    width: 12px;
    height: 10px;
    top: 8px;
  }

  .pb-mods__grid,
  .pb-gifs__grid,
  .pb-drawings__grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pb-mod-card__img{ height: 240px; }
  .pb-mod-card__body{ padding: 18px 20px 22px; }
  .pb-mod-card__title{ font-size: 16px; }
  .pb-mod-card__desc{ font-size: 14px; }

  .pb-faq{ padding: 24px 22px; }
  .pb-faq__q{ font-size: 15px; }
  .pb-faq__a{
    font-size: 14px;
    padding-right: 24px;
  }
}

@media (max-width: 480px){
  .pb-hero{ padding: 20px 18px; }
  .pb-hero__title{ font-size: 20px; }

  .pb-section{ padding: 20px 18px; }
  .pb-section__title{
    font-size: 18px;
    margin-bottom: 14px;
  }

  .pb-mod-card__img{ height: 200px; }
  .pb-faq{ padding: 20px 18px; }
}

/* ==========================================================================
   PELETTO — wybór opcji (model numeryczny, cena na żywo)
   ========================================================================== */
.product-options{
  margin: 22px 0 18px;
}
.product-options__head{
  margin-bottom: 14px;
}
.product-options__title{
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #111;
}
.product-options__lead{
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}
.product-options__list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-option{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-option__label{
  font-size: 13px;
  font-weight: 700;
  color: #111;
}
.product-option__field{
  position: relative;
}
.peletto-opt-select{
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff 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='%23ff7a00' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.peletto-opt-select:hover,
.peletto-opt-select:focus{
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255,122,0,.12);
  outline: none;
}

/* ==========================================================================
   PELETTO — tabela „Parametry techniczne”
   Tabela siedzi wewnątrz .pb-section (biała karta motywu), bez własnej
   obwódki. Selektory celują w .peletto-specs__table*, bo generator zwraca
   sam <table> bez div-opakowania.
   ========================================================================== */
.peletto-specs__table{
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0;
}
.peletto-specs__table th,
.peletto-specs__table th:first-child{
  text-align: left;
  padding: 13px 18px;
  background: #0f1115;
  border: 0;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.peletto-specs__table td{
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  vertical-align: top;
}
.peletto-specs__table tbody tr:last-child td{ border-bottom: 0; }
.peletto-specs .peletto-specs__table tbody tr:nth-child(even) td{ background: #f9fafb; }
.peletto-specs .peletto-specs__table tbody tr:hover td{ background: #fff4ec; }
.peletto-specs__table tr.peletto-specs__group td{
  background: #e05100 !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12.5px;
  border-bottom: 0;
}


@media (max-width: 768px){
  .peletto-specs__table{ font-size: 14px; }
  .peletto-specs__table th,
  .peletto-specs__table td{ padding: 10px 12px; }
}

/* Ochrona list bloków przed globalnymi stylami .content ul li (kropki obok „gawków”) */
.peletto-blocks .pb-list,
.content .pb-list{
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}
.peletto-blocks .pb-list > li,
.content .pb-list > li{
  list-style: none !important;
}
.peletto-blocks .pb-list > li::marker,
.content .pb-list > li::marker{
  content: "";
}

/* ==========================================================================
   Strzałki slidera produktu (.product-slider__main / __thmb)
   ========================================================================== */
.product-slider__main,
.product-slider__thmb{
  position: relative;
}
.ps-nav__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0f1115;
  font-size: 28px;
  line-height: 1;
  padding: 0 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: background .2s, color .2s, box-shadow .2s, opacity .2s, transform .15s;
}
.ps-nav__btn--prev{ left: 12px; }
.ps-nav__btn--next{ right: 12px; }
.ps-nav__btn:hover{
  background: #e05100;
  color: #fff;
  box-shadow: 0 6px 20px rgba(224,81,0,.4);
}
.ps-nav__btn:active{
  transform: translateY(-50%) scale(.9);
}
.ps-nav__btn:disabled{
  opacity: .25;
  cursor: default;
  pointer-events: none;
}
.ps-nav__btn--thmb{
  width: 30px;
  height: 30px;
  font-size: 20px;
  padding: 0 0 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.ps-nav__btn--thmb.ps-nav__btn--prev{ left: 4px; }
.ps-nav__btn--thmb.ps-nav__btn--next{ right: 4px; }

@media (max-width: 641px){
  .ps-nav__btn{ width: 36px; height: 36px; font-size: 22px; }
  .ps-nav__btn--prev{ left: 6px; }
  .ps-nav__btn--next{ right: 6px; }
  .ps-nav__btn--thmb{ width: 26px; height: 26px; font-size: 17px; }
}

/* ==========================================================================
   Dodawanie do koszyka — stany przycisku
   ========================================================================== */
.single_add_to_cart_button{
  position: relative;
  overflow: hidden;
  transition: background .25s, box-shadow .25s, transform .15s, opacity .2s;
}
.single_add_to_cart_button:hover{
  transform: translateY(-1px);
}
.single_add_to_cart_button.is-loading{
  pointer-events: none;
  color: transparent;
}
.single_add_to_cart_button.is-loading::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pp-spin .65s linear infinite;
}
.single_add_to_cart_button.is-done{
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
}
@keyframes pp-spin{
  to{ transform: rotate(360deg); }
}

/* ==========================================================================
   Latanie obrazka do koszyka
   ========================================================================== */
.pp-fly{
  position: fixed;
  z-index: 99998;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #fff;
  pointer-events: none;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  transition: transform .6s cubic-bezier(.45,-.15,.75,.4), opacity .6s ease-in;
}

/* ==========================================================================
   Bounce ikony koszyka + licznika
   ========================================================================== */
.header__shopping-cart.is-bump{
  animation: pp-cart-bounce .55s cubic-bezier(.2,.9,.3,1.5);
}
@keyframes pp-cart-bounce{
  0%  { transform: scale(1); }
  35% { transform: scale(1.25); }
  60% { transform: scale(.92); }
  100%{ transform: scale(1); }
}
.header__shopping-cart .cart-contents-count.is-bump{
  animation: pp-count-pop .55s cubic-bezier(.2,.9,.3,1.5);
}
@keyframes pp-count-pop{
  0%  { transform: scale(1); }
  40% { transform: scale(1.6); }
  100%{ transform: scale(1); }
}

/* ==========================================================================
   Toast „Dodano do koszyka”
   ========================================================================== */
.pp-toast{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  max-width: calc(100vw - 48px);
  background: #0f1115;
  color: #fff;
  border-radius: 14px;
  padding: 14px 22px 14px 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  opacity: 0;
  transform: translateY(26px) scale(.95);
  transition: opacity .3s ease, transform .38s cubic-bezier(.2,.9,.3,1.25);
  pointer-events: none;
}
.pp-toast.is-visible{
  opacity: 1;
  transform: none;
  pointer-events: auto;
  cursor: pointer;
}
.pp-toast__icon{
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e05100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pp-icon-pop .45s cubic-bezier(.2,.9,.3,1.6);
}
.pp-toast--error .pp-toast__icon{
  background: #c62828;
}
@keyframes pp-icon-pop{
  0%  { transform: scale(0); }
  70% { transform: scale(1.15); }
  100%{ transform: scale(1); }
}
.pp-toast__body{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pp-toast__title{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.pp-toast__text{
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

@media (max-width: 577px){
  .pp-toast{
    right: 12px;
    left: 12px;
    bottom: 12px;
    min-width: 0;
    max-width: none;
  }
  .pp-toast__text{ max-width: none; }
}
