/* Conversion Pro — product page (module 5) */

/* Gallery corrections (confirmed against the live stickme.in product
   gallery): strict 1:1 square main image, no boxed/rounded corners — a
   deliberate exception to the 4:5 ratio used for grid cards elsewhere
   (category/homepage/cross-sell — see product-card.css), scoped only to
   the product detail page's own gallery. Thumbnails get the same square
   treatment for visual consistency with the main image above them. */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery img {
	border-radius: 0 !important;
	box-shadow: none !important;
	border: none !important;
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.flex-control-thumbs li img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0 !important;
}

/* Title sized down from the reference's oversized default. */
.product_title.entry-title {
	font-size: 22px !important;
	line-height: 1.3;
}

/* "Pairs well with" cross-sell carousel — reuses the exact shared card
   component + horizontal-scroll-row wrapper already built for the
   category grid and homepage sections (product-card.css / homepage.css),
   one component per the standing "not rebuilt per section" rule, not a
   fourth copy of the same card styling. */
.cvp-pairs-well-with {
	margin-top: 24px;
	border-top: 1px solid #eee;
}

.cvp-visualizer-buttons {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.cvp-visualizer-btn {
	flex: 1;
	background: #fff;
	border: 1px solid #D85A30;
	color: #D85A30;
	padding: 10px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

.cvp-recent-purchases {
	font-size: 13px;
	color: #712B13;
}

.cvp-campaign-banner {
	display: block;
	margin-bottom: 12px;
}
.cvp-campaign-banner img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
}

.cvp-visualizer-popup {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100010;
	align-items: center;
	justify-content: center;
}
.cvp-visualizer-popup.is-open {
	display: flex;
}
.cvp-visualizer-popup__panel {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	width: 380px;
	max-width: 90vw;
	position: relative;
}
.cvp-visualizer-popup__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
}

.cvp-size-diagram__wall {
	width: 100%;
	height: 80px;
	border: 2px dashed #ccc;
	margin: 12px 0;
	position: relative;
	display: flex;
	align-items: flex-end;
}
.cvp-size-diagram__sticker {
	height: 100%;
	background: #D85A30;
	opacity: 0.6;
	transition: width 0.15s ease;
}

#cvp-waitlist-contact {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin: 12px 0;
	box-sizing: border-box;
}
#cvp-waitlist-submit {
	width: 100%;
	background: #D85A30;
	color: #fff;
	border: none;
	padding: 10px;
	border-radius: 4px;
	cursor: pointer;
}

/* Responsive: bottom sheet on mobile (confirmed) */
@media ( max-width: 480px ) {
	.cvp-visualizer-popup {
		align-items: flex-end;
	}
	.cvp-visualizer-popup__panel {
		width: 100%;
		border-radius: 12px 12px 0 0;
	}
}
