/* =========================================
   CEPW — Single Product Page Styles
   ========================================= */

/* Override WooCommerce default single product layout */
body.single-product .woocommerce div.product,
.cpg-single-product {
	display: grid !important;
	grid-template-columns: 55% 45% !important;
	gap: 48px !important;
	align-items: start !important;
	padding: 40px 0 !important;
	max-width: 1200px;
	margin: 0 auto;
}

@media (max-width: 900px) {
	body.single-product .woocommerce div.product,
	.cpg-single-product {
		grid-template-columns: 1fr !important;
		gap: 32px !important;
	}
}

/* ─── Left Column: Images ─── */
body.single-product .woocommerce div.product div.images,
.cpg-single-product .cpg-sp__images {
	width: 100% !important;
	float: none !important;
}

/* Main image */
body.single-product .woocommerce div.product div.images .woocommerce-product-gallery__image,
.cpg-sp__main-image-wrap {
	background: #f5f5f7;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

body.single-product .woocommerce-product-gallery__image img,
.cpg-sp__main-image {
	max-width: 80%;
	max-height: 80%;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	border-radius: 0;
}

/* Thumbnail strip */
body.single-product .woocommerce div.product div.images .flex-control-thumbs,
.cpg-sp__thumbs {
	display: flex !important;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	list-style: none !important;
	margin: 0;
	padding-left: 0 !important;
}

body.single-product .flex-control-thumbs li,
.cpg-sp__thumb-item {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
}

body.single-product .flex-control-thumbs li img,
.cpg-sp__thumb {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.2s;
}

body.single-product .flex-control-thumbs li img.flex-active,
.cpg-sp__thumb.active {
	border-color: #1a1a1a;
}

body.single-product .flex-control-thumbs li img:hover,
.cpg-sp__thumb:hover {
	border-color: #888;
}

/* ─── Right Column: Details ─── */
body.single-product .woocommerce div.product div.summary,
.cpg-single-product .cpg-sp__details {
	width: 100% !important;
	float: none !important;
	padding: 0 !important;
}

/* SKU above title */
body.single-product .woocommerce div.product .sku_wrapper,
.cpg-sp__sku {
	display: block;
	font-size: 12px !important;
	color: #999 !important;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	margin-bottom: 8px !important;
}

body.single-product .woocommerce div.product .sku_wrapper .sku,
.cpg-sp__sku-value {
	font-size: 12px;
	color: #999;
}

/* Product Title */
body.single-product .woocommerce div.product h1.product_title,
.cpg-sp__title {
	font-size: 28px !important;
	font-weight: 700 !important;
	color: #1a1a1a !important;
	line-height: 1.3 !important;
	margin: 0 0 24px 0 !important;
}

/* Short description / Features */
body.single-product .woocommerce div.product .woocommerce-product-details__short-description,
.cpg-sp__features {
	margin-bottom: 24px;
}

body.single-product .woocommerce-product-details__short-description ul,
body.single-product .woocommerce-product-details__short-description p,
.cpg-sp__features ul,
.cpg-sp__features p {
	font-size: 14px !important;
	line-height: 1.85 !important;
	color: #333 !important;
	margin: 0 0 6px 0 !important;
}

body.single-product .woocommerce-product-details__short-description ul,
.cpg-sp__features ul {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.single-product .woocommerce-product-details__short-description ul li,
.cpg-sp__features ul li {
	padding-left: 18px;
	position: relative;
	margin-bottom: 4px;
	font-size: 14px;
}

body.single-product .woocommerce-product-details__short-description ul li::before,
.cpg-sp__features ul li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #1a1a1a;
	font-weight: 700;
}

body.single-product .woocommerce-product-details__short-description ul li strong,
.cpg-sp__features ul li strong {
	font-weight: 700;
}

/* Price — hidden in this design style but keep accessible */
body.single-product .woocommerce div.product p.price,
.cpg-sp__price {
	font-size: 20px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 20px;
}

/* Color swatches / variations */
body.single-product .woocommerce div.product .variations,
.cpg-sp__variations {
	margin-bottom: 24px;
}

.cpg-sp__color-label {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	margin-right: 12px;
}

.cpg-sp__swatch {
	display: inline-block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.2s;
	vertical-align: middle;
}

.cpg-sp__swatch.active,
.cpg-sp__swatch:hover {
	border-color: #1a1a1a;
}

/* ─── Divider ─── */
.cpg-sp__divider,
body.single-product .cpg-divider {
	border: none;
	border-top: 1px solid #e8e8e8;
	margin: 24px 0;
}

/* ─── Contact Label ─── */
.cpg-sp__contact-label {
	font-size: 14px;
	color: #555;
	margin-bottom: 14px;
	font-weight: 400;
}

/* ─── CTA Buttons ─── */
.cpg-sp__cta-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}

.cpg-sp__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	border: none;
	border-radius: 10px;
	padding: 15px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.15s ease;
	box-sizing: border-box;
}

.cpg-sp__btn:hover {
	opacity: 0.9;
	transform: scale(1.01);
	text-decoration: none;
}

.cpg-sp__btn--whatsapp {
	background-color: #25d366;
	color: #ffffff !important;
}

.cpg-sp__btn--inquiry {
	background-color: #f5a623;
	color: #ffffff !important;
}

.cpg-sp__btn svg,
.cpg-sp__btn img {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ─── Social Icons ─── */
.cpg-sp__social {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 4px;
}

.cpg-sp__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid #ddd;
	color: #666;
	text-decoration: none;
	transition: border-color 0.2s, transform 0.15s, color 0.2s;
}

.cpg-sp__social-link:hover {
	border-color: #1a1a1a;
	color: #1a1a1a;
	transform: translateY(-2px);
}

.cpg-sp__social-link svg {
	width: 18px;
	height: 18px;
}

/* ─── Add to cart button override ─── */
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
	background-color: #1a1a1a !important;
	color: #fff !important;
	border-radius: 30px !important;
	border: none !important;
	padding: 14px 32px !important;
	font-weight: 600 !important;
	letter-spacing: 0.3px !important;
	transition: background 0.2s !important;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover {
	background-color: #333 !important;
}
