/* ============================================================
   LuxeEur WooCommerce Single Product — layout & style overrides
   ============================================================ */

/* ---- Page section spacing ---- */
.section-main-product .section__wrapper {
	padding-top: 3rem;
	padding-bottom: 4rem;
}

/* ---- Gallery: horizontal slider with scroll snap ---- */
.luxe-gallery-item {
	display: block;
	width: 100%;
	flex: 0 0 100%;
	scroll-snap-align: start;
}

/* ---- Gallery main image container ---- */
.product-media-list {
	display: flex;
	flex-direction: row;
	width: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
}
.product-media-list::-webkit-scrollbar {
	display: none; /* Safari/Chrome */
}
.product-media-item {
	width: 100%;
}
.product-media-container.ratio {
	border-radius: var(--medium-radius, 0.5rem);
	overflow: hidden;
	background: rgba(var(--color-foreground, 36,40,51), 0.02);
}
.product-media-container.ratio::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	padding-bottom: var(--ratio-percent, 100%);
}
.product-media {
	display: block;
	position: relative;
	overflow: hidden;
}
.product-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ---- Thumbnails ---- */
.slider-thumbnails-container {
	margin-top: 1rem;
}
.thumbnail-list {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	gap: 0.5rem;
	padding: 0 0 0.5rem;
	margin: 0;
	list-style: none;
	scrollbar-width: none;
}
.thumbnail-list::-webkit-scrollbar {
	display: none;
}
.thumbnail-list-item {
	width: 5rem;
	flex: 0 0 auto;
	scroll-snap-align: start;
}
.thumbnail-media {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: var(--small-radius, 4px);
	--border-opacity: 0.04;
	position: relative;
}
.thumbnail-media::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 2px rgba(var(--color-foreground, 36,40,51), var(--border-opacity));
	border-radius: var(--small-radius, 4px);
	pointer-events: none;
	z-index: 1;
	transition: box-shadow 0.2s ease;
}
.thumbnail-media:hover { --border-opacity: 0.2; }
.thumbnail-media[aria-current="true"] { --border-opacity: 1; }
.thumbnail-media img {
	display: block;
	width: 100%;
	height: 5rem;
	object-fit: cover;
	border-radius: var(--small-radius, 4px);
}

/* ---- Slider Buttons ---- */
.thumbnail-slider {
	display: flex;
	align-items: center;
	gap: 1rem;
	position: relative;
}
.thumbnail-slider .slider-container {
	flex: 1;
	overflow: hidden;
}
.slider-buttons {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}
.slider-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	background: transparent;
	color: rgb(var(--color-foreground, 36,40,51));
	cursor: pointer;
	padding: 0;
	transition: opacity 0.2s ease;
}
.slider-button:hover {
	opacity: 0.6;
}
.slider-button .icon {
	width: 1.2rem;
	height: 1.2rem;
}
.slider-button--prev .icon {
	transform: rotate(90deg);
}
.slider-button--next .icon {
	transform: rotate(-90deg);
}

/* ---- Rating row ---- */
.luxe-product-rating {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}
.luxe-product-rating .star-rating {
	font-size: 1rem;
	color: #f5a623;
}
.luxe-rating-count {
	font-size: 0.875rem;
}

/* ---- Breadcrumb ---- */
.product-breadcrumb {
	font-size: 0.875rem;
	opacity: 0.75;
}
.breadcrumb-current {
	opacity: 0.6;
}

/* ---- Price ---- */
.section-main-product .woocommerce-Price-amount {
	font-size: 1.25rem;
	font-weight: var(--font-body-weight-bold, 700);
}
.section-main-product .price {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	line-height: normal;
}
.section-main-product .price del {
	opacity: 0.5;
	font-size: 1rem;
	font-weight: 400;
}
.section-main-product .price ins {
	text-decoration: none;
	font-weight: var(--font-body-weight-bold, 700);
}

/* ---- SKU ---- */
.product-sku {
	opacity: 0.6;
	font-size: 0.875rem;
}

/* ---- Add to Cart form wrapper ---- */
.luxe-atc-wrapper form.cart {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
}

/* Quantity selector row */
.luxe-atc-wrapper .quantity {
	display: inline-flex;
	align-items: stretch;
	border: 2px solid rgba(var(--color-foreground, 36,40,51), 0.15);
	border-radius: var(--small-radius, 4px);
	overflow: hidden;
}
.luxe-atc-wrapper .quantity input[type="number"] {
	width: 4.5rem;
	text-align: center;
	border: none;
	font-size: 1rem;
	font-family: var(--font-body-family, Helvetica, Arial, sans-serif);
	background: transparent;
	color: inherit;
	-moz-appearance: textfield;
}
.luxe-atc-wrapper .quantity input[type="number"]::-webkit-inner-spin-button,
.luxe-atc-wrapper .quantity input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
}
.luxe-atc-wrapper .quantity .qty-btn {
	background: none;
	border: none;
	padding: 0 1rem;
	font-size: 1.4rem;
	cursor: pointer;
	color: inherit;
	line-height: 1;
	transition: background 0.15s ease;
}
.luxe-atc-wrapper .quantity .qty-btn:hover {
	background: rgba(var(--color-foreground, 36,40,51), 0.06);
}

.luxe-atc-wrapper .single_add_to_cart_button:hover,
.luxe-atc-wrapper .button[type="submit"]:hover {
	opacity: 0.84;
	color: rgb(var(--color-button-text, 255,255,255));
}
.luxe-atc-wrapper .single_add_to_cart_button.loading { opacity: 0.6; cursor: wait; }
.luxe-atc-wrapper .single_add_to_cart_button.added  { opacity: 0.85; }

/* Variation form (variable products) */
.luxe-atc-wrapper .variations_form .variations {
	width: 100%;
	border: none;
	border-spacing: 0;
	border-collapse: collapse;
}
.luxe-atc-wrapper .variations_form .variations tr {
	display: block;
	margin-bottom: 1.25rem;
}
.luxe-atc-wrapper .variations_form .variations td.label,
.luxe-atc-wrapper .variations_form .variations th.label {
	display: block;
	font-weight: var(--font-body-weight-bold, 700);
	margin-bottom: 0.4rem;
	padding: 0;
}
.luxe-atc-wrapper .variations_form .variations td.value {
	display: block;
	padding: 0;
}
.luxe-atc-wrapper .variations_form .variations td.value select {
	padding: 0.6rem 1rem;
	border-radius: var(--small-radius, 4px);
	border: 2px solid rgba(var(--color-foreground, 36,40,51), 0.15);
	background: transparent;
	font-size: 0.875rem;
	font-family: inherit;
	color: inherit;
	min-width: 12rem;
	max-width: 100%;
	cursor: pointer;
}
.luxe-atc-wrapper .variations_form .variations td.value select:focus {
	outline: 2px solid rgba(var(--color-foreground, 36,40,51), 0.6);
	outline-offset: 2px;
}
.luxe-atc-wrapper .reset_variations {
	display: inline-block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	opacity: 0.6;
}
.luxe-atc-wrapper .woocommerce-variation-availability p {
	font-size: 0.875rem;
	font-weight: var(--font-body-weight-bold, 700);
	margin: 0 0 0.5rem;
}

/* Stock status */
.luxe-atc-wrapper .stock {
	font-size: 0.875rem;
	font-weight: var(--font-body-weight-bold, 700);
}
.luxe-atc-wrapper .in-stock   { color: rgb(var(--color-success, 12,183,113)); }
.luxe-atc-wrapper .out-of-stock { color: rgb(var(--color-error, 255,0,0)); }

/* ---- Payment icons ---- */
.product-payment-security .payment-icons {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.payment-icon {
	width: 2.6rem;
	height: auto;
	border-radius: 4px;
}

/* ---- Product icon list (trust badges & promo) ---- */
.product-icon-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.875rem 1rem;
	background: rgba(var(--color-foreground, 36,40,51), 0.03);
	border-radius: var(--small-radius, 4px);
}
.product-icon-text {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 0.875rem;
}
.product-icon-text .icon {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
}
.product-icon-text:hover .icon {
	animation: scaleIn 0.3s cubic-bezier(0, 0, 0.3, 1);
}
@keyframes scaleIn {
	from { transform: scale(0.8); opacity: 0.5; }
	to   { transform: scale(1);   opacity: 1; }
}

/* ---- Tab panel ---- */
.product-container-bottom {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(var(--color-foreground, 36,40,51), 0.1);
}
.product-tab-panel .tab-panel-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}
.product-tab-panel .tab-panel-tabs .tab {
	flex: 0 0 auto;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: var(--font-body-weight-bold, 700);
	font-family: var(--font-body-family, inherit);
	background: rgba(var(--color-foreground, 36,40,51), 0.04);
	color: inherit;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.product-tab-panel .tab-panel-tabs .tab:hover {
	background: rgba(var(--color-foreground, 36,40,51), 0.08);
}
.product-tab-panel .tab-panel-tabs .tab[aria-selected="true"] {
	background: rgb(var(--color-foreground, 36,40,51));
	color: rgb(var(--color-background, 255,255,255));
}
.product-tab-panel .tab-panel-panels .panel {
	min-height: 8rem;
}
.product-tab-panel .tab-panel-panels .panel[hidden] {
	display: none;
}
.product-tab-panel .tab-panel-panels .panel.rte h3 {
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
}
.product-tab-panel .tab-panel-panels .panel.rte ul {
	padding-left: 1.5rem;
}
.product-tab-panel .tab-panel-panels .panel.rte ul li {
	margin-bottom: 0.4rem;
}

/* ---- Related products section ---- */
.luxe-product-related .section__wrapper {
	padding-top: 2rem;
	padding-bottom: 4rem;
}
.luxe-product-related .luxe-archive-section-header {
	margin-bottom: 2rem;
}

/* ---- WooCommerce notices ---- */
.woocommerce-notices-wrapper {
	padding: 0 0 1rem;
}
.section-main-product .woocommerce-message,
.section-main-product .woocommerce-error,
.section-main-product .woocommerce-info {
	padding: 1rem;
	border-radius: var(--small-radius, 4px);
	margin-bottom: 1rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (min-width: 750px) {
	.section-main-product .section__wrapper {
		padding-top: 4rem;
	}
	.thumbnail-list-item {
		width: 5rem;
	}
}

@media screen and (max-width: 749px) {
	.luxe-atc-wrapper .single_add_to_cart_button,
	.luxe-atc-wrapper .button[type="submit"] {
		width: 100%;
		min-width: 0;
	}
	.product-container-bottom {
		margin-top: 2rem;
	}
	.product-tab-panel .tab-panel-tabs .tab {
		padding: 0.625rem 1rem;
	}
}
