/* DT Stripe Shop – Frontend. Farben und Schriften erbt alles vom Theme (currentColor, Theme-Buttons). */

.dtss-product-main {
	padding-block: clamp(2rem, 6vw, 4.5rem);
}

.dtss-product-columns {
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: flex-start;
}

.dtss-product-summary {
	position: sticky;
	top: 2rem;
}

.dtss-product-title {
	margin-block: 0 0.25rem;
}

.dtss-product-description {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* Galerie */
.dtss-gallery__main {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: color-mix(in srgb, currentColor 5%, transparent);
}

.dtss-gallery__main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dtss-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.dtss-gallery__thumbs button {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	cursor: pointer;
}

.dtss-gallery__thumbs button[aria-current="true"] {
	border-color: currentColor;
}

.dtss-gallery__thumbs button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.dtss-gallery__thumbs img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Kaufbox */
.dtss-subtitle {
	margin: 0 0 1.5rem;
	font-size: 1.125rem;
	opacity: 0.8;
}

.dtss-price {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 600;
	line-height: 1.1;
}

.dtss-price__meta,
.dtss-price__base,
.dtss-price__shipping,
.dtss-delivery {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	opacity: 0.8;
}

.dtss-price__meta a {
	color: inherit;
}

.dtss-delivery {
	margin-top: 1rem;
}

.dtss-stock-low {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.dtss-buy__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.dtss-qty {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.875rem;
}

.dtss-qty select {
	min-width: 5rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.dtss-buy__button-wrap {
	margin: 0;
}

.dtss-buy__button {
	min-height: 2.75rem;
	cursor: pointer;
}

.dtss-buy__secure {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	opacity: 0.7;
}

.dtss-soldout {
	margin: 1.5rem 0 0;
	font-weight: 600;
}

.dtss-notice {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid #e0b45a;
	border-radius: 8px;
	background: #fff6e5;
	color: #3d2c00;
	font-size: 0.9375rem;
}

.dtss-notice--info {
	border-color: #9dbfe8;
	background: #eef5fd;
	color: #0f2c4d;
}

/* Honeypot unsichtbar, aber nicht display:none (manche Bots ignorieren das). */
.dtss-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Produktinformationen */
.dtss-info {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.dtss-info__title {
	margin-bottom: 1rem;
}

.dtss-info__item {
	border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.dtss-info__item:last-child {
	border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.dtss-info__item summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.dtss-info__item summary::-webkit-details-marker {
	display: none;
}

.dtss-info__item summary::after {
	content: "+";
	font-weight: 400;
	font-size: 1.25em;
	line-height: 1;
}

.dtss-info__item[open] summary::after {
	content: "–";
}

.dtss-info__body {
	padding-bottom: 1.25rem;
}

.dtss-info__body p {
	margin: 0;
}

.dtss-nutrition {
	width: 100%;
	max-width: 32rem;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.dtss-nutrition caption {
	margin-bottom: 0.5rem;
	text-align: left;
	font-size: 0.875rem;
	opacity: 0.8;
}

.dtss-nutrition th,
.dtss-nutrition td {
	padding: 0.45rem 0.25rem;
	border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
	font-weight: 400;
	text-align: left;
}

.dtss-nutrition td {
	text-align: right;
	white-space: nowrap;
}

.dtss-nutrition .is-sub th {
	padding-left: 1rem;
}

.dtss-details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1.5rem;
	margin: 0;
}

.dtss-details dt {
	font-weight: 600;
}

.dtss-details dd {
	margin: 0;
}

/* Produktliste */
.dtss-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.dtss-card__link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	color: inherit;
	text-decoration: none;
}

.dtss-card__image {
	display: block;
	margin-bottom: 0.75rem;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
}

.dtss-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.dtss-card__link:hover .dtss-card__image img {
	transform: scale(1.03);
}

.dtss-card__title {
	font-size: 1.125rem;
	font-weight: 600;
}

.dtss-card__subtitle,
.dtss-card__base {
	font-size: 0.875rem;
	opacity: 0.75;
}

.dtss-card__price {
	margin-top: 0.25rem;
	font-weight: 600;
}

/* Danke-Seite */
.dtss-summary {
	width: 100%;
	max-width: 32rem;
	margin: 1rem 0 1.5rem;
	border-collapse: collapse;
}

.dtss-summary th,
.dtss-summary td {
	padding: 0.5rem 0;
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	font-weight: 400;
	text-align: left;
}

.dtss-summary td {
	text-align: right;
	white-space: nowrap;
}

.dtss-summary .is-total th,
.dtss-summary .is-total td {
	font-weight: 700;
}

/* Widerrufsformular */
.dtss-withdrawal {
	max-width: 40rem;
	margin-top: 1.5rem;
}

.dtss-withdrawal__form {
	display: grid;
	gap: 1rem;
}

.dtss-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin: 0;
}

.dtss-field label {
	font-weight: 600;
}

.dtss-field input,
.dtss-field textarea {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	box-sizing: border-box;
}

.dtss-field input:focus-visible,
.dtss-field textarea:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.dtss-field__hint {
	margin: 0;
	font-size: 0.8125rem;
	opacity: 0.75;
}

.dtss-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.dtss-withdrawal__submit {
	margin: 0.5rem 0 0;
}

.dtss-withdrawal__submit button {
	min-height: 2.75rem;
	cursor: pointer;
}

@media (max-width: 600px) {
	.dtss-field-row {
		grid-template-columns: 1fr;
	}
}

/* Klassische Themes */
.dtss-classic {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

@media (min-width: 782px) {
	.dtss-classic {
		grid-template-columns: 55fr 45fr;
	}
}

@media (max-width: 781px) {
	.dtss-product-summary {
		position: static;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dtss-card__image img {
		transition: none;
	}
}
