/* ===================================================
   STRONA PRODUKTU — układ 3-kolumnowy
   =================================================== */

/* Wyrównanie kolumn w jednym wierszu */
.product-container-wrapper {
  align-items: flex-start;
}

/* Form zajmuje pozostałe 9 kolumn (6 + 3) obok obrazka */
.product-description-form {
  display: contents;
}

/* --- Lewa kolumna: obraz --- */
.image-product-showcase-wrapper {
  padding-right: 20px;
}

/* --- Środkowa kolumna: info --- */
.product-column-info {
  padding-right: 24px;
}

/* Tytuł produktu */
.product-column-info .h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Lista cech (Part Number, Type, Size, ...) */
.product-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.product-features-list li {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.product-feature-title {
  font-weight: 700;
  white-space: nowrap;
}

.product-feature-value {
  font-weight: 400;
}

/* Wiersz: selektor ilości + przycisk koszyka */
.product-qty-cart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 4px;
}

/* Selektor ilości — trzy elementy w jednym wierszu */
.product-quantity .qty {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 2px;
  overflow: hidden;
}

.qty-btn {
  background: #fff;
  border: none;
  width: 32px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  color: #333;
}

.qty-btn:hover {
  background: #f0f0f0;
}

#quantity_wanted {
  width: 44px;
  height: 38px;
  border: none;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  text-align: center;
  font-size: 1rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

#quantity_wanted::-webkit-outer-spin-button,
#quantity_wanted::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Przycisk "Dodaj do koszyka" */
.product-qty-cart-row .add-to-cart {
  background: #111;
  border-color: #111;
  color: #fff;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 2px;
  white-space: nowrap;
}

.product-qty-cart-row .add-to-cart:hover {
  background: #333;
  border-color: #333;
}

/* Label "Ilość" pod selektorem */
.product-qty-label {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 8px;
}

/* Dostępność */
.showcase-product-availability {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.product-availability-title {
  font-weight: 600;
  margin-right: 4px;
}

/* --- Prawa kolumna: pytanie + ostrzeżenia --- */
.product-column-sidebar {
  padding-top: 16%;
}

.product-sidebar-inner {
  font-size: 0.82rem;
  color: #555;
}

.ask-questions-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.ask-questions-link a {
  color: #e05000;
  font-weight: 600;
  text-decoration: none;
}

.ask-questions-link a:hover {
  text-decoration: underline;
}

.question-icon::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid #e05000;
  border-radius: 50%;
  color: #e05000;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-warnings {
  line-height: 1.5;
}

.product-warnings-title {
  font-weight: 600;
  margin: 0 0 2px 0;
  color: #333;
}

.product-warnings p {
  margin: 0 0 2px 0;
  font-size:10px;
}

/* Responsywność — na mobile układ pionowy */
@media (max-width: 767px) {
  .product-description-form {
    display: block;
  }

  .product-column-info,
  .product-column-sidebar {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-right: 15px;
  }

  .product-column-sidebar {
    margin-top: 20px;
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
  }
}

/* ===================================================
   5 produktów w wierszu na stronach kategorii */
@media (min-width: 992px) {
  .col-lg-bf5 {
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Naprawa pustej lewej kolumny — body ma klasę layout-left-column (z bazy PS)
   ale template kategori używa layout-full-width (bez #left-column w DOM).
   ps_facetedsearch/front.css zawęża #content-wrapper dla body.layout-left-column,
   dlatego wymuszamy 100% szerokość gdy #left-column nie istnieje. */
body.layout-left-column #content-wrapper.col-xs-12 {
  -ms-flex: 0 0 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  padding-left: 15px !important;
}
