/* =============================================
   Single Product — wyłącznie pozycjonowanie
   ============================================= */

.cyber-single-product {
  padding: 40px 0;
}

/* ── Górna sekcja — zdjęcia + info ──────────── */

.cyber-product-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 60px;
}

/* ── Galeria — lewa 50% ─────────────────────── */

.cyber-product-gallery {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Główne zdjęcie */
.cyber-product-main-img {
  flex: 1;
  min-width: 0;
}

.cyber-product-main-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Miniatury — pionowo po prawej stronie głównego zdjęcia */
.cyber-product-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.cyber-product-thumb {
  width: 150px;
  height: 150px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.cyber-product-thumb--active {
  border-color: #333;
}

.cyber-product-thumb img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* ── Info — prawa 50% ───────────────────────── */

.cyber-product-info {
  flex: 1;
  min-width: 0;
}

/* Breadcrumb */
.cyber-product-info .woocommerce-breadcrumb {
  margin-bottom: 16px;
}

/* Tytuł */
.cyber-product-title {
  margin: 0 0 12px;
}

/* SKU */
.cyber-product-sku {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

/* Krótki opis */
.cyber-product-short-desc {
  margin-bottom: 20px;
}

/* Cena */
.cyber-product-price {
  margin-bottom: 12px;
}

/* Stan magazynowy */
.cyber-product-stock {
  margin-bottom: 20px;
}

/* Formularz dodania do koszyka */
.cyber-product-add-to-cart {
  margin-bottom: 20px;
}

/* Ilość + przycisk w jednej linii */
.cyber-product-add-to-cart .quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}

.cyber-product-add-to-cart .quantity input {
  width: 60px;
  text-align: center;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.cyber-product-add-to-cart .single_add_to_cart_button {
  display: inline-block;
  vertical-align: middle;
}

/* ── Tabelka opisu ──────────────────────────── */

.cyber-product-tabs {
  margin-bottom: 60px;
}

/* ── Polecane produkty ──────────────────────── */

.cyber-product-crosssell {
  margin-top: 0;
}

.cyber-product-crosssell .cyber-crosssell {
  margin-top: 0;
}

/* ── Responsywność ──────────────────────────── */

@media (max-width: 900px) {
  .cyber-product-top {
    flex-direction: column;
  }

  .cyber-product-gallery {
    width: 100%;
  }

  .cyber-product-info {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .cyber-product-gallery {
    flex-direction: column-reverse;
  }

  .cyber-product-thumbnails {
    flex-direction: row;
  }

  .cyber-product-thumb,
  .cyber-product-thumb img {
    width: 80px;
    height: 80px;
  }
}
