/**
 * single-product.css – Produktdetailseite (P16)
 *
 * Design-Tokens:
 *   - Preis-Farbe: #2e0b06 (--rot-weine-4-color)
 *   - Warenkorb-Button: #f9b301 / Text #2e0b06 / Hover #d19221
 *   - Tab aktiv: #f4ede7 (--bg-warm) / inaktiv: weiss
 *   - Bewertungs-Button: #f9b301
 */

/* ── Breadcrumb (wie Kategorieseite) ── */


/* ── Produkt-Grid (2-Spalten) ── */
.lauffen-product-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	margin-bottom: 4rem;
}

/* ── Galerie ── */
.lauffen-product-gallery {
	/* WooCommerce Standard-Galerie-Stile ergaenzen */
}

.lauffen-product-gallery .woocommerce-product-gallery {
	position: relative;
}

.lauffen-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 10;
	background: var(--white-color, #fff);
	border: 1px solid var(--border-color, #d1d1d1);
	padding: 0.5rem;
	font-size: 1.4rem;
	color: var(--text, #333);
}

.lauffen-product-gallery .woocommerce-product-gallery__wrapper {
	border: 1px solid var(--border-color, #d1d1d1);
	background: var(--white-color, #fff);
}

.lauffen-product-gallery .flex-viewport {
	max-height: 700px;
}

.lauffen-product-gallery .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* Thumbnails */
.lauffen-product-gallery .flex-control-thumbs {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
}

.lauffen-product-gallery .flex-control-thumbs li {
	flex: 0 0 88px;
	cursor: pointer;
	border: 1px solid var(--border-color, #d1d1d1);
	transition: border-color 0.2s;
}

.lauffen-product-gallery .flex-control-thumbs li:hover,
.lauffen-product-gallery .flex-control-thumbs li img.flex-active {
	border-color: var(--black-color, #010101);
}

.lauffen-product-gallery .flex-control-thumbs img {
	width: 88px;
	height: 110px;
	object-fit: contain;
	display: block;
}

/* Mobile Dots */
@media (max-width: 767px) {
	.lauffen-product-gallery .flex-control-thumbs {
		justify-content: center;
	}
	.lauffen-product-gallery .flex-control-thumbs li {
		flex: 0 0 12px;
		width: 12px;
		height: 12px;
		border-radius: 50%;
		background: var(--border-color, #d1d1d1);
		border: none;
		overflow: hidden;
	}
	.lauffen-product-gallery .flex-control-thumbs li img {
		display: none;
	}
	.lauffen-product-gallery .flex-control-thumbs li img.flex-active + img,
	.lauffen-product-gallery .flex-control-thumbs li.flex-active {
		background: var(--black-color, #010101);
	}
}

/* ── Produktinfo ── */
.lauffen-product-info {
	padding-top: 1rem;
}

.lauffen-product-title {
	font-family: var(--font-heading, 'Prompt', sans-serif);
	font-size: 2.4rem;
	font-weight: 500;
	color: var(--black-color, #010101);
	margin: 0 0 1.5rem;
	line-height: 1.2;
}

/* TrustedShops Widget */
#ts_product_widget {
	min-height: 30px;
	margin-bottom: 1.5rem;
}

/* Bewertungsübersicht */
.lauffen-reviews-summary {
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.lauffen-reviews-summary .star-rating {
	color: var(--weissweine-2-color, #f9b301);
	font-size: 1.4rem;
	overflow: hidden;
	position: relative;
	width: 7em;
	height: 1.4em;
	line-height: 1.4;
	font-family: FontAwesome;
}

.lauffen-reviews-summary .star-rating::before {
	content: '\f005\f005\f005\f005\f005';
	color: var(--border-color, #d1d1d1);
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

.lauffen-reviews-summary .star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.lauffen-reviews-summary .star-rating span::before {
	content: '\f005\f005\f005\f005\f005';
	top: 0;
	left: 0;
	position: absolute;
	color: var(--weissweine-2-color, #f9b301);
}

.lauffen-reviews-summary .reviews-link {
	color: var(--orange, #b06526);
	font-size: 1.3rem;
	text-decoration: underline;
}

.lauffen-reviews-summary .no-reviews {
	font-size: 1.3rem;
	color: var(--secondary-text, #575757);
	font-style: italic;
}

/* ── Preis ── */
.lauffen-product-price {
	margin-bottom: 1.5rem;
}

.lauffen-product-price .price {
	font-family: var(--font-body, 'Prompt', sans-serif);
	font-size: 2.4rem;
	font-weight: 600;
	color: var(--rot-weine-4-color, #2e0b06);
	display: block;
	margin-bottom: 0.3rem;
}

.lauffen-product-price .price del {
	font-size: 1.6rem;
	color: var(--secondary-text, #575757);
	margin-right: 0.5rem;
}

.lauffen-product-price .price ins {
	text-decoration: none;
	font-weight: 700;
}

.lauffen-product-price .price-note {
	font-size: 1.2rem;
	color: var(--secondary-text, #575757);
}

/* ── Produkt-Meta (SKU + Verfügbarkeit) ── */
.lauffen-product-meta {
	margin-bottom: 2rem;
	font-size: 1.3rem;
	color: var(--secondary-text, #575757);
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.lauffen-product-meta .sku-wrapper {
	display: inline-flex;
	gap: 0.4rem;
}

.lauffen-product-meta .stock-status {
	font-weight: 500;
}

.lauffen-product-meta .stock-status.in-stock {
	color: #2e7d32;
}

.lauffen-product-meta .stock-status.out-of-stock {
	color: #c62828;
}

/* Germanized Grundpreis */
.lauffen-product-info .wc-gzd-additional-info {
	font-size: 1.3rem;
	color: var(--secondary-text, #575757);
	margin-bottom: 1rem;
}
.lauffen-product-unit-price .price-unit::before {
	content: "Grundpreis ";
}

/* ── Mengenauswahl + Warenkorb ── */
.lauffen-quantity-wrapper {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.lauffen-quantity-wrapper label {
	font-family: var(--font-heading, 'Prompt', sans-serif);
	font-size: 1.3rem;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--black-color, #010101);
}

.lauffen-quantity-wrapper .qty {
	width: 6rem;
	padding: 0.6rem;
	font-size: 1.4rem;
	border: 1px solid var(--border-color, #d1d1d1);
	text-align: center;
}

.single_add_to_cart_button {
	background-color: var(--weissweine-2-color, #f9b301) !important;
	color: var(--rot-weine-4-color, #2e0b06) !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 1.4rem 2rem !important;
	font-family: var(--font-heading, 'Prompt', sans-serif) !important;
	font-size: 1.6rem !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	cursor: pointer;
	transition: background-color 0.2s;
}

.single_add_to_cart_button:hover {
	background-color: var(--weissweine-1-color, #d19221) !important;
}

.single_add_to_cart_button:disabled {
	background-color: var(--border-color, #d1d1d1) !important;
	color: var(--secondary-text, #575757) !important;
	cursor: not-allowed;
}

/* ── Tabs ── */
.lauffen-product-tabs {
	margin-top: 2rem;
	border: 1px solid #ccc;
	background: #fff;
}

.lauffen-tabs-header {
	display: flex;
	border-bottom: 1px solid #ccc;
	background: #f4f4f4;
}

.lauffen-tab-btn {
	flex: 1;
	padding: 1.2rem 1.5rem;
	background: #f4f4f4;
	border: none;
	border-right: 1px solid #ccc;
	font-family: var(--font-heading, 'Prompt', sans-serif);
	font-size: 1.4rem;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--text, #333);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.lauffen-tab-btn:last-child {
	border-right: none;
}

.lauffen-tab-btn:hover {
	background: #eaeaea;
}

.lauffen-tab-btn.active {
	background: #fff;
	color: var(--black-color, #010101);
	border-bottom: 2px solid var(--weissweine-2-color, #f9b301);
}

.lauffen-tab-btn .counter {
	font-size: 1.2rem;
	color: var(--secondary-text, #575757);
	margin-left: 0.4rem;
}

.lauffen-tabs-content {
	padding: 2rem;
}

.lauffen-tab-panel {
	display: none;
}

.lauffen-tab-panel.active {
	display: block;
}

.lauffen-tab-panel p {
	font-size: 1.5rem;
	line-height: 1.6;
	color: var(--text, #333);
}

/* Attribut-Tabelle (Weitere Informationen) */
.lauffen-attributes-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.4rem;
}

.lauffen-attributes-table th,
.lauffen-attributes-table td {
	padding: 1rem;
	border-bottom: 1px solid var(--border-color, #d1d1d1);
	text-align: left;
}

.lauffen-attributes-table th {
	font-family: var(--font-heading, 'Prompt', sans-serif);
	font-weight: 500;
	width: 40%;
	color: var(--black-color, #010101);
	background: var(--bg-warm, #f4ede7);
}

.lauffen-attributes-table td {
	color: var(--text, #333);
}

/* ── Bewertungen / Reviews ── */
#reviews {
	font-size: 1.4rem;
}

#reviews .woocommerce-Reviews-title {
	font-family: var(--font-heading, 'Prompt', sans-serif);
	font-size: 1.8rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
}

#reviews .commentlist {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}

#reviews .commentlist li {
	border-bottom: 1px solid var(--border-color, #d1d1d1);
	padding: 1.5rem 0;
}

#reviews .commentlist .star-rating {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

#reviews .comment-text {
	margin-left: 0;
}

#reviews .meta {
	font-size: 1.2rem;
	color: var(--secondary-text, #575757);
	margin-bottom: 0.5rem;
}

/* Bewertungsformular */
#review_form_wrapper {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color, #d1d1d1);
}

#review_form_wrapper .comment-reply-title {
	font-family: var(--font-heading, 'Prompt', sans-serif);
	font-size: 1.6rem;
	font-weight: 500;
	margin-bottom: 1rem;
	display: block;
}

#review_form_wrapper label {
	font-family: var(--font-heading, 'Prompt', sans-serif);
	font-size: 1.3rem;
	font-weight: 500;
	display: block;
	margin-bottom: 0.4rem;
}

#review_form_wrapper input[type="text"],
#review_form_wrapper textarea {
	width: 100%;
	padding: 0.8rem;
	font-size: 1.4rem;
	border: 1px solid var(--border-color, #d1d1d1);
	margin-bottom: 1rem;
}

/* 5-Sterne Rating im Formular */
#review_form_wrapper .comment-form-rating {
	margin-bottom: 1.5rem;
}

#review_form_wrapper .stars {
	font-size: 1.8rem;
	color: var(--border-color, #d1d1d1);
	cursor: pointer;
}

#review_form_wrapper .stars a {
	color: var(--weissweine-2-color, #f9b301);
	text-decoration: none;
	margin-right: 0.2rem;
}

#review_form_wrapper .stars a:hover,
#review_form_wrapper .stars a.active {
	color: var(--weissweine-2-color, #f9b301);
}

#review_form_wrapper .submit {
	background-color: var(--weissweine-2-color, #f9b301);
	color: var(--rot-weine-4-color, #2e0b06);
	border: none;
	border-radius: 0;
	padding: 1rem 1.5rem;
	font-family: var(--font-heading, 'Prompt', sans-serif);
	font-size: 1.4rem;
	font-weight: 500;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s;
}

#review_form_wrapper .submit:hover {
	background-color: var(--weissweine-1-color, #d19221);
}

/* ── Responsive ── */
@media (max-width: 991px) {
	.lauffen-product-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.lauffen-product-gallery {
		max-width: 500px;
		margin: 0 auto;
	}
}

@media (max-width: 767px) {
	/* Tabs als Accordion auf Mobile */
	.lauffen-tabs-header {
		flex-direction: column;
		border-bottom: none;
	}

	.lauffen-tab-btn {
		border-right: none;
		border-bottom: 1px solid var(--border-color, #d1d1d1);
		text-align: left;
		position: relative;
	}

	.lauffen-tab-btn::after {
		content: '+';
		position: absolute;
		right: 1.5rem;
		top: 50%;
		transform: translateY(-50%);
		font-size: 1.8rem;
		color: var(--secondary-text, #575757);
	}

	.lauffen-tab-btn.active::after {
		content: '−';
	}

	.lauffen-tabs-content {
		padding: 1.5rem;
	}

	.lauffen-tab-panel {
		display: none;
		padding: 1rem 0;
	}

	.lauffen-tab-panel.active {
		display: block;
	}

	.lauffen-product-title {
		font-size: 2rem;
	}

	.lauffen-product-price .price {
		font-size: 2rem;
	}
}

@media (max-width: 480px) {
	.lauffen-product-grid {
		gap: 1rem;
	}

	.lauffen-product-title {
		font-size: 1.8rem;
	}

	.single_add_to_cart_button {
		width: 100%;
	}
}
