/* Hide native WooCommerce variation selects once enhanced with swatches */
.woocommerce div.product .variations select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.renes-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Variations table: stack the label above the swatches instead of a two-column layout */
.woocommerce div.product .variations,
.woocommerce div.product .variations tbody,
.woocommerce div.product .variations tr {
	display: block !important;
	width: 100%;
}
.woocommerce div.product .variations tr {
	margin-bottom: 24px;
}
.woocommerce div.product .variations th.label,
.woocommerce div.product .variations td.value {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	border: none !important;
}
.woocommerce div.product .variations th.label {
	padding-bottom: 10px !important;
	font-family: "Inter Display", sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	opacity: 0.6;
	font-weight: 400;
	text-align: left;
}
.woocommerce div.product .variations td.value select {
	min-width: 0 !important;
}
/* Color row shows a swatch + the selected color's name instead of a "Color" label */
.woocommerce div.product .variations tr.renes-color-row th.label {
	display: none !important;
}
.renes-swatches-line {
	display: flex;
	align-items: center;
	gap: 12px;
}
.renes-color-name {
	font-family: "Inter Display", sans-serif;
	font-size: 16px;
	color: #000;
}

/* Quantity label */
.renes-qty-label {
	font-family: "Inter Display", sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	opacity: 0.6;
	margin: 0 0 10px;
}

/* Color swatches: plain squares, no border */
.renes-swatch--color {
	width: 24px !important;
	height: 24px !important;
	min-width: 0 !important;
	border-radius: 0 !important;
	border: none !important;
	padding: 0 !important;
	cursor: pointer;
	box-shadow: none !important;
	flex: 0 0 auto !important;
}
.renes-swatch--color.is-selected {
	border: none !important;
	box-shadow: none !important;
}
.renes-swatch--color.is-disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Size swatches: bordered pill/box buttons */
.renes-swatch--text {
	flex: 1 1 0;
	min-width: 56px;
	padding: 16px 12px !important;
	border: 1px solid rgba(0, 0, 0, 0.2) !important;
	border-radius: 0 !important;
	background: #fff !important;
	font-family: "Inter Display", sans-serif !important;
	font-size: 14px !important;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.5) !important;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.renes-swatch--text:hover {
	border-color: rgba(0, 0, 0, 0.5) !important;
}
.renes-swatch--text.is-selected {
	border: 1.5px solid #000 !important;
	color: #000 !important;
}
.renes-swatch--text.is-disabled {
	opacity: 0.3;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* Quantity + Add to cart: both full width, stacked.
   Simple products lay qty+button directly in form.cart; variable products
   nest them one level deeper in .woocommerce-variation-add-to-cart. */
.rp-atc .cart.variations_form,
.rp-atc form.cart,
.rp-atc .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	gap: 14px !important;
	width: 100%;
}
.rp-atc .quantity {
	width: 100%;
	margin: 0 !important;
}
.rp-atc button.single_add_to_cart_button {
	width: 100% !important;
	margin: 0 !important;
	flex: none !important;
}

.renes-qty-wrap {
	display: flex !important;
	align-items: center;
	width: 100% !important;
	border: 1px solid rgba(0, 0, 0, 0.2);
}
.renes-qty-wrap .qty {
	border: none !important;
	flex: 1 1 auto !important;
	width: auto !important;
	text-align: center;
	font-family: "Inter Display", sans-serif;
	font-size: 14px;
}
.renes-qty-btn {
	background: none !important;
	border: none !important;
	width: 40px !important;
	height: 44px !important;
	min-width: 0 !important;
	padding: 0 !important;
	font-size: 16px !important;
	line-height: 1;
	cursor: pointer;
	color: #000 !important;
}
.renes-qty-btn:hover {
	background: rgba(0, 0, 0, 0.05);
}

/* Custom mosaic product gallery */
.renes-gallery {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}
.renes-gallery__main {
	position: relative;
	width: 100%;
}
.renes-gallery__main img {
	width: 100%;
	height: auto;
	aspect-ratio: 701 / 701;
	object-fit: cover;
	display: block;
}
.renes-gallery__zoom {
	position: absolute !important;
	top: 16px !important;
	left: 16px !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 0 !important;
	border-radius: 999px !important;
	background: #fff !important;
	border: 1px solid #f0f0f0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
}
.renes-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}
.renes-gallery__thumb {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: none !important;
	cursor: pointer;
	line-height: 0;
	opacity: 1;
	transition: opacity 0.15s ease;
}
.renes-gallery__thumb img {
	width: 100%;
	height: 100%;
	aspect-ratio: 345 / 345;
	object-fit: cover;
	display: block;
}
.renes-gallery__thumb.is-active {
	opacity: 0.6;
}

.renes-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	cursor: zoom-out;
	padding: 40px;
}
.renes-lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Reviews overview (rating breakdown) */
.renes-reviews-overview__label {
	font-family: "Inter Display", sans-serif;
	font-weight: 500;
	font-size: 14px;
	color: #0d0c22;
	margin: 0 0 16px;
}
.renes-reviews-overview__score {
	font-family: "Inter Display", sans-serif;
	font-weight: 700;
	font-size: 40px;
	color: #000;
	margin-bottom: 8px;
}
.renes-reviews-overview__stars {
	margin-bottom: 8px;
}
.renes-reviews-overview__count {
	font-family: "Inter Display", sans-serif;
	font-size: 14px;
	color: #858585;
	margin: 0 0 24px;
}
.renes-reviews-overview__bar-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
	font-family: "Inter Display", sans-serif;
	font-size: 14px;
	color: #0d0c22;
}
.renes-reviews-overview__bar-label {
	flex: 0 0 56px;
}
.renes-reviews-overview__bar-track {
	flex: 1 1 auto;
	height: 6px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.05);
	overflow: hidden;
}
.renes-reviews-overview__bar-fill {
	display: block;
	height: 100%;
	background: #c6ff00;
	border-radius: 8px;
}
.renes-reviews-overview__bar-count {
	flex: 0 0 24px;
	text-align: right;
	color: #858585;
}

.rp-reviews-list .commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rp-reviews-list .comment_container {
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-family: "Inter Display", sans-serif;
}
.rp-reviews-list .star-rating {
	margin-bottom: 8px;
}
.rp-reviews-list #review_form_wrapper {
	margin-top: 24px;
	font-family: "Inter Display", sans-serif;
}
.rp-reviews-list #respond textarea {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.2);
	padding: 12px;
}
.rp-reviews-list #respond .form-submit input {
	background: #000;
	color: #fff;
	border: none;
	padding: 14px 28px;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	font-size: 14px;
	cursor: pointer;
}
