/* ============================================================================
   SINGLE PRODUCT — layout wg projektu (v1.5)
   ============================================================================ */

.single-product-custom {
	padding: 2.5rem 0 5rem;
}

.single-product__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
@media (min-width: 900px) {
	.single-product__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 4rem;
	}
}

/* ---- Galeria ---- */
.single-product__main-image {
	background: linear-gradient(180deg, #f7f6f3 0%, #ece9e1 100%);
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8%;
}
.single-product__main-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}
.single-product__thumbs {
	display: flex;
	gap: 0.625rem;
	margin-top: 0.875rem;
	flex-wrap: wrap;
}
.single-product__thumb {
	width: 72px;
	height: 72px;
	border: 2px solid hsl(var(--border));
	border-radius: var(--radius);
	overflow: hidden;
	cursor: pointer;
	background: linear-gradient(180deg, #f7f6f3 0%, #ece9e1 100%);
	padding: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color var(--transition-base);
}
.single-product__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.single-product__thumb:hover { border-color: hsl(var(--oak) / 0.5); }
.single-product__thumb.is-active { border-color: hsl(var(--oak)); }

/* ---- Info ---- */
.single-product__meta-top {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.875rem;
	flex-wrap: wrap;
}
.single-product__badge {
	padding: 0.3rem 0.75rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--radius);
	color: hsl(var(--background));
}
.single-product__badge--bestseller { background: hsl(var(--oak)); }
.single-product__badge--new { background: hsl(var(--ebony)); }
.single-product__badge--sale { background: #c0392b; }

.single-product__rating { display: inline-flex; align-items: center; gap: 0.15rem; }
.single-product__star { color: hsl(var(--border)); font-size: 1rem; }
.single-product__star.is-filled { color: hsl(var(--oak)); }
.single-product__rating-count {
	margin-left: 0.4rem;
	font-size: 0.8125rem;
	color: hsl(var(--muted-foreground));
}

.single-product__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.5rem;
	color: hsl(var(--foreground));
}
.single-product__cats {
	color: hsl(var(--muted-foreground));
	font-size: 0.9375rem;
	margin: 0 0 1.25rem;
}

.single-product__price {
	font-family: var(--font-mono);
	font-size: 1.75rem;
	font-weight: 600;
	color: hsl(var(--foreground));
	margin-bottom: 1.75rem;
}
.single-product__price del {
	font-size: 1.125rem;
	color: hsl(var(--muted-foreground));
	font-weight: 500;
	margin-left: 0.625rem;
}
.single-product__price ins { text-decoration: none; }

/* ---- Wariacje (swatche) ---- */
.single-product__section-label {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: hsl(var(--foreground));
	margin: 0 0 0.625rem;
}
.single-product__variations { margin-bottom: 1.5rem; }
.single-product__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}
.single-product__swatch {
	width: 64px;
	height: 64px;
	border: 2px solid hsl(var(--border));
	border-radius: var(--radius);
	overflow: hidden;
	cursor: pointer;
	background: linear-gradient(180deg, #f7f6f3 0%, #ece9e1 100%);
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color var(--transition-base), transform var(--transition-base);
}
.single-product__swatch img { max-width: 100%; max-height: 100%; object-fit: contain; }
.single-product__swatch:hover { border-color: hsl(var(--oak) / 0.55); transform: scale(1.05); }
.single-product__swatch.is-selected {
	border-color: hsl(var(--oak));
	box-shadow: 0 0 0 3px hsl(var(--oak) / 0.18);
}
.single-product__swatch-label { font-size: 0.6875rem; text-align: center; line-height: 1.2; }
.single-product__selected-variation {
	margin: 0.625rem 0 0;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	min-height: 1.2em;
}

/* ---- Buy row ---- */
.single-product__actions { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 1.75rem; }
.single-product__buy-row {
	display: flex;
	gap: 0.875rem;
	align-items: stretch;
}
.single-product__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	overflow: hidden;
	flex-shrink: 0;
}
.single-product__qty-btn {
	width: 42px;
	height: 100%;
	min-height: 52px;
	background: hsl(var(--background));
	border: none;
	font-size: 1.25rem;
	cursor: pointer;
	color: hsl(var(--foreground));
	transition: background var(--transition-base);
}
.single-product__qty-btn:hover { background: hsl(var(--muted)); }
.single-product__qty input {
	width: 52px;
	border: none;
	text-align: center;
	font-size: 1rem;
	font-weight: 600;
	-moz-appearance: textfield;
	appearance: textfield;
}
.single-product__qty input::-webkit-inner-spin-button,
.single-product__qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.single-product__add-btn { flex: 1; justify-content: center; }
.single-product__add-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.single-product__configure-btn { justify-content: center; }
.single-product__form-hint {
	font-size: 0.8125rem;
	color: hsl(var(--muted-foreground));
	margin: 0.375rem 0 0;
	min-height: 1.2em;
}
.btn--dark {
	background: hsl(var(--ebony));
	color: hsl(var(--background));
	border: 1px solid hsl(var(--ebony));
}
.btn--dark:hover { background: hsl(var(--ebony) / 0.9); }

/* ---- USP ---- */
.single-product__usp {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	padding: 1.25rem 0;
	border-top: 1px solid hsl(var(--border));
	border-bottom: 1px solid hsl(var(--border));
	margin-bottom: 1.5rem;
}
.single-product__usp-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 600;
	color: hsl(var(--foreground));
	line-height: 1.35;
}
.single-product__usp-item svg { color: hsl(var(--oak)); }
.single-product__usp-item small {
	font-weight: 400;
	color: hsl(var(--muted-foreground));
}

.single-product__excerpt {
	color: hsl(var(--muted-foreground));
	font-size: 0.9375rem;
	line-height: 1.65;
	margin-bottom: 1.5rem;
}

.single-product__share {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
	border: none;
	color: hsl(var(--muted-foreground));
	font-size: 0.875rem;
	cursor: pointer;
	padding: 0;
	transition: color var(--transition-base);
}
.single-product__share:hover { color: hsl(var(--oak)); }
.single-product__share-done { color: hsl(var(--oak)); font-weight: 600; }

/* ---- Opis ---- */
.single-product__description {
	margin-top: 3.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid hsl(var(--border));
	max-width: 48rem;
}
.single-product__description h2 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	margin: 0 0 1rem;
}
.single-product__description p {
	color: hsl(var(--muted-foreground));
	line-height: 1.7;
}
