.product-page {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 16px;
}

.product-gallery {
	flex: 1;
	min-width: 320px;
}

.main-image {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.thumbs img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	cursor: pointer;
	border: 1px solid #ccc;
}

.product-details {
	flex: 1;
	min-width: 300px;
}

.product-details h1 {
	font-size: 1.6rem;
	margin-bottom: 8px;
}

.product-price {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 10px;
}

.divider-line {
	height: 1px;
	background-color: #ccc;
	margin: 16px 0;
}

.desc {
	line-height: 1.5;
	color: #333;
}

.details-list {
	margin: 1rem 0;
	padding-left: 1.2rem;
}

.size-picker {
	display: flex;
	gap: 16px;
	margin: 20px 0;
}

.size-picker div {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.size-picker button {
	width: 40px;
	height: 40px;
	border: 1px solid #aaa;
	background: #fff;
	cursor: pointer;
	font-weight: bold;
}

.size-picker button.selected {
	border: 2px solid #000;
	background: #f0f0f0;
}

.accordion {
	border-top: 1px solid #ddd;
	margin-top: 1rem;
}

.accordion-item {
	border-bottom: 1px solid #ddd;
}

.accordion-header {
	padding: 12px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.accordion-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	padding: 0 12px;
	font-size: 0.95rem;
}

.accordion-item.active .accordion-body {
	max-height: 400px;
	padding: 12px;
}

.accordion-header::after {
	content: "+";
	font-weight: normal;
}

.accordion-item.active .accordion-header::after {
	content: "-";
}

.product-bottom {
	margin-top: 20px;
}

.pack-preview {
	width: 100%;
	margin-bottom: 20px;
	object-fit: cover;
}

.add-to-cart {
	width: 100%;
	padding: 12px;
	background-color: #336d87;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.2s ease;
}

.add-to-cart:hover {
	background-color: #264d64;
}

.sku {
	margin-top: 12px;
	font-size: 0.9rem;
	color: #555;
}

.related-wrapper {
	max-width: 1200px;
	margin: 60px auto;
	padding: 0 16px;
	position: relative;
}

.related-wrapper h2 {
	font-size: 1.4rem;
	margin-bottom: 16px;
}

.related-slider {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-behavior: smooth;
}

.related-card {
	min-width: 280px;
	flex: 0 0 auto;
	text-align: center;
}

.related-card img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.related-card .name {
	font-size: 1rem;
	margin-top: 10px;
}

.related-card .price {
	color: #444;
	font-weight: bold;
	margin-top: 4px;
}

.scroll-next {
	position: absolute;
	right: 0;
	top: 35px;
	background: #fff;
	border: 1px solid #ccc;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 1.5rem;
}

/* === [DOPISANE] Related – obraz 1:1, max 300px, cover === */

/* Jeśli masz tylko <img> w .related-card (bez wrappera) */
.related-card img {
  width: 100%;
  max-width: 300px;   /* nie większe niż 300px */
  aspect-ratio: 1 / 1;/* kwadrat */
  height: auto;       /* wysokość z aspect-ratio */
  object-fit: cover;  /* przytnij do kwadratu */
  display: block;
  margin: 0 auto;     /* wyśrodkuj w karcie */
}

/* Opcjonalnie: jeśli użyjesz wrappera na obraz (działa równolegle, nie koliduje) */
.related-img-wrap {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee;
  margin: 0 auto;     /* środek */
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Delikatne dopięcie karty, aby obraz nie rozpychał więcej niż trzeba */
.related-card {
  align-items: center;
}
.product-quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.product-quantity-selector button {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 4px;
}

.product-quantity-selector input {
  width: 60px;
  height: 36px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}


