/* Won't Walk – Produktseite */

.ww-main > * {
	margin-block: 0;
}

.ww-pdp {
	padding: 32px 0 80px;
}

.ww-pdp__inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ww-pdp__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: start;
	gap: 64px;
}

/* ---------------------------------------------------------------
   Galerie
   --------------------------------------------------------------- */
.ww-gallery {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 16px;
	position: sticky;
	top: 24px;
}

.ww-gallery:not(:has(.ww-gallery__thumbs)) {
	grid-template-columns: minmax(0, 1fr);
}

.ww-gallery {
	align-items: start;
}

/* Thumbnail-Spalte so hoch wie das Hauptbild (Höhe 0 + min-height 100 % der Grid-Zeile) */
.ww-gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-self: stretch;
	height: 0;
	min-height: 100%;
	overflow-y: auto;
	scrollbar-width: none;
}

.ww-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.ww-gallery__thumb {
	display: block;
	flex-shrink: 0;
	overflow: hidden;
	width: 96px;
	aspect-ratio: 4 / 5;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: var(--wp--preset--color--surface-2);
	opacity: .6;
	cursor: pointer;
	transition: border-color .2s ease, opacity .2s ease;
}

.ww-gallery__thumb:hover {
	opacity: 1;
}

.ww-gallery__thumb[aria-pressed="true"] {
	border-color: var(--wp--preset--color--white);
	opacity: 1;
}

.ww-gallery .ww-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ww-gallery__stage {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: var(--wp--preset--color--surface-2);
}

.ww-gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ww-gallery__track::-webkit-scrollbar {
	display: none;
}

.ww-gallery__slide {
	flex: 0 0 100%;
	aspect-ratio: 4 / 5;
	margin: 0;
	scroll-snap-align: start;
}

.ww-gallery .ww-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ww-gallery__badge {
	top: 16px;
	left: 16px;
}

.ww-gallery__counter {
	position: absolute;
	right: 16px;
	bottom: 16px;
	padding: 6px 10px;
	border-radius: 6px;
	background: rgba(2, 2, 2, .7);
	color: var(--wp--preset--color--white);
	font-size: 13px;
}

/* ---------------------------------------------------------------
   Kaufbereich
   --------------------------------------------------------------- */
.ww-buy {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ww-buy__head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ww-buy__head p,
.ww-buy__head h1 {
	margin: 0;
}

.ww-buy__title {
	font-size: clamp(38px, 3.9vw, 56px);
	font-style: italic;
	line-height: .95;
}

.ww-buy__block {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ww-buy__block > * {
	margin: 0 !important;
}

.ww-buy .ww-buy__price {
	margin-top: -14px !important;
	color: var(--wp--preset--color--white);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
}

.ww-buy__price del {
	color: var(--wp--preset--color--text-3);
	font-size: .6em;
	font-weight: 300;
}

.ww-buy__price ins {
	text-decoration: none;
}

.ww-buy .ww-buy__notice {
	margin-top: -16px !important;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--text-4);
	font-size: 13px;
}

.ww-buy__notice a {
	color: var(--wp--preset--color--text-3);
	text-underline-offset: 3px;
}

.ww-buy__chart-link {
	display: flex;
	justify-content: flex-end;
	margin-bottom: -44px !important;
}

.ww-buy__chart-link a {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--white);
	font-size: 14px;
	text-underline-offset: 4px;
}

.ww-buy .wc-block-add-to-cart-with-options {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ww-buy .wp-block-woocommerce-add-to-cart-with-options-variation-selector {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ww-attr {
	gap: 10px !important;
	margin: 0 !important;
}

.ww-buy .wc-block-product-filter-chips__item {
	min-height: 52px;
	font-size: 16px;
}

/* Menge + Button in einer Zeile */
.ww-buy__row {
	gap: 12px !important;
}

.ww-buy__row .wc-block-components-product-button {
	flex: 1 1 auto;
	margin: 0;
}

.ww-buy__row .wc-block-components-product-button .wc-block-components-product-button__button {
	flex: 1 1 100%;
	width: 100%;
	justify-content: center;
}

.wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-height: 56px;
	border: 1px solid var(--wp--preset--color--line-strong) !important;
	border-radius: 8px !important;
	background: transparent;
}

.wc-block-components-quantity-selector::after {
	display: none !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	width: 48px;
	min-width: 48px;
	height: 56px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--white);
	font-size: 22px;
	opacity: 1;
	cursor: pointer;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
	opacity: .35;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	width: 32px;
	min-width: 32px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--white);
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}

.wc-block-components-quantity-selector__input::-webkit-inner-spin-button,
.wc-block-components-quantity-selector__input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

/* Bestätigung */
.ww-added {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	background: rgba(0, 179, 166, .12);
	font-size: 15px;
}

.ww-added.is-visible {
	display: flex;
}

.ww-added a {
	color: var(--wp--preset--color--white);
	font-weight: 700;
	text-underline-offset: 4px;
	white-space: nowrap;
}

/* Vorteile */
.ww-buy__trust {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	color: var(--wp--preset--color--text-2);
	font-size: 15px;
	list-style: none;
}

.ww-buy__trust li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ww-buy__trust svg {
	flex-shrink: 0;
	color: var(--wp--preset--color--accent);
}

/* Akkordeon */
.ww-acc {
	border-top: 1px solid var(--wp--preset--color--line);
}

.ww-acc__item {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ww-acc__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	list-style: none;
	cursor: pointer;
}

.ww-acc__item summary::-webkit-details-marker {
	display: none;
}

.ww-acc__item summary h2 {
	margin: 0;
	color: var(--wp--preset--color--white);
	font-size: 16px;
	letter-spacing: .08em;
	line-height: 1.3;
	transition: color .2s ease;
}

.ww-acc__item summary:hover h2 {
	color: var(--wp--preset--color--accent-light);
}

.ww-acc__item summary::after {
	content: "+";
	color: var(--wp--preset--color--text-4);
	font-size: 22px;
}

.ww-acc__item[open] summary::after {
	content: "−";
	color: var(--wp--preset--color--accent);
}

.ww-acc__body {
	padding: 0 0 20px;
	font-size: 16px;
	line-height: 1.65;
}

.ww-acc__body > * {
	margin: 0 0 .8em;
}

.ww-acc__body a {
	color: var(--wp--preset--color--white);
	text-underline-offset: 3px;
}

.ww-size-table {
	overflow-x: auto;
}

.ww-size-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	text-align: center;
}

.ww-size-table thead th {
	padding: 10px 6px;
	color: var(--wp--preset--color--text-4);
	font-weight: 700;
}

.ww-size-table thead th:first-child,
.ww-size-table tbody th {
	text-align: left;
}

.ww-size-table tbody tr {
	border-top: 1px solid var(--wp--preset--color--line);
}

.ww-size-table tbody th {
	padding: 10px 6px;
	color: var(--wp--preset--color--text-2);
	font-weight: 400;
}

.ww-size-table td {
	padding: 10px 6px;
	color: var(--wp--preset--color--white);
	white-space: nowrap;
}

.ww-acc__body .ww-size-hint {
	margin-top: 10px;
	color: var(--wp--preset--color--text-4);
	font-size: 13px;
}

/* ---------------------------------------------------------------
   Haltung, Passt dazu, Kaufleiste
   --------------------------------------------------------------- */
.ww-pdp-story {
	padding: 0 0 80px;
}

.ww-pdp-story__card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px;
	padding: 32px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background-color: var(--wp--preset--color--surface-1);
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.ww-pdp-story__card:hover {
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}

.ww-pdp-story__card picture,
.ww-pdp-story__img {
	display: block;
	width: 160px;
	height: 160px;
	border-radius: 8px;
	object-fit: cover;
	object-position: 50% 30%;
}

.ww-pdp-story__text {
	display: flex;
	flex: 1 1 400px;
	flex-direction: column;
	gap: 10px;
}

.ww-pdp-story__label {
	color: var(--wp--preset--color--accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ww-pdp-story__title {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
}

.ww-pdp-story__hint {
	color: var(--wp--preset--color--text-2);
	font-size: 16px;
}

.ww-pdp-related {
	padding: 0 0 96px;
}

.ww-pdp-related__inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ww-pdp-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding-top: 48px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.ww-pdp-related__head h2 {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 44px);
	line-height: 1;
}

.ww-pdp-related__head .ww-tlink {
	font-size: 15px;
}

.ww-buybar {
	display: none;
}

@media (max-width: 1060px) {
	.ww-pdp__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.ww-gallery {
		position: static;
	}
}

@media (max-width: 760px) {
	.ww-pdp {
		padding: 12px 0 32px;
	}

	.ww-pdp__inner {
		gap: 12px;
	}

	.ww-pdp__grid {
		gap: 24px;
	}

	/* Galerie mit Seitenrand, wischbar, ohne Thumbnails */
	.ww-gallery {
		grid-template-columns: minmax(0, 1fr);
	}

	.ww-gallery__thumbs {
		display: none;
	}

	.ww-gallery__badge {
		top: 14px;
		left: 14px;
	}

	.ww-buy {
		gap: 22px;
	}

	.ww-buy .ww-buy__price {
		font-size: 26px;
	}

	.ww-buy .ww-buy__notice {
		font-size: 12px;
	}

	.ww-buy__trust {
		font-size: 14px;
	}

	.ww-acc__item summary {
		min-height: 56px;
	}

	.ww-acc__item summary h2 {
		font-size: 14px;
	}

	.ww-acc__body {
		font-size: 15px;
	}

	.ww-pdp-story {
		padding-bottom: 32px;
	}

	.ww-pdp-story__card {
		flex-wrap: nowrap;
		gap: 14px;
		padding: 16px;
	}

	.ww-pdp-story__card picture,
	.ww-pdp-story__img {
		width: 80px;
		height: 80px;
		border-radius: 6px;
	}

	.ww-pdp-story__text {
		flex: 1;
		gap: 4px;
	}

	.ww-pdp-story__label {
		font-size: 11px;
	}

	.ww-pdp-story__title {
		font-size: 16px;
		line-height: 1.25;
		text-transform: none;
	}

	.ww-pdp-story__hint {
		display: none;
	}

	/* Passt dazu: wischbare Reihe */
	.ww-pdp-related {
		padding-bottom: 40px;
	}

	.ww-pdp-related__inner {
		gap: 16px;
	}

	.ww-pdp-related__head {
		padding-top: 8px;
		border-top: 0;
	}

	.ww-pdp-related__head .ww-tlink {
		display: none;
	}

	.ww-pdp-related__grid {
		display: flex;
		gap: 12px;
		margin-inline: calc(-1 * var(--ww-gutter));
		padding-inline: var(--ww-gutter);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--ww-gutter);
		scrollbar-width: none;
	}

	.ww-pdp-related__grid .ww-card {
		flex: 0 0 160px;
		scroll-snap-align: start;
	}

	/* Feste Kaufleiste */
	.ww-buybar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--wp--preset--color--line-strong);
		background: rgba(2, 2, 2, .94);
	}

	.ww-buybar[hidden] {
		display: none;
	}

	.ww-buybar__info {
		display: flex;
		flex-direction: column;
		flex-shrink: 0;
		max-width: 45%;
	}

	.ww-buybar__price {
		color: var(--wp--preset--color--white);
		font-size: 18px;
		font-weight: 700;
	}

	.ww-buybar__variant {
		overflow: hidden;
		color: var(--wp--preset--color--text-3);
		font-size: 12px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.ww-buybar__btn {
		flex-grow: 1;
		min-height: 52px;
		padding-inline: 16px;
		border: 0;
		font-size: 14px;
		letter-spacing: .04em;
		white-space: nowrap;
		cursor: pointer;
	}

	/* Platz für die feste Kaufleiste, damit der Footer nicht verdeckt wird */
	body:has(.ww-buybar) .ww-footer {
		padding-bottom: 96px;
	}
}
