/* ==========================================================================
   Single Product Page
   ========================================================================== */

/* ---------- Global resets ---------- */

body.single-product {
	overflow-x: hidden;
}

body.single-product *,
body.single-product *::before,
body.single-product *::after {
	box-sizing: border-box;
}

body.single-product:not([class*=elementor-page-]) .site-main {
	max-width: 1200px !important;
	padding: 40px 20px !important;
	margin: 0 auto;
	overflow: hidden;
	width: 100% !important;
}

/* ---------- Hide empty elements ---------- */

body.single-product .woocommerce-breadcrumb,
body.single-product .price:empty,
body.single-product .woocommerce-product-rating {
	display: none;
}

/* ---------- Product Layout ---------- */

body.single-product div.product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: start;
	max-width: 100%;
}

/* ---------- Gallery ---------- */

body.single-product .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	min-width: 0;
}

body.single-product .woocommerce-product-gallery__wrapper {
	margin-bottom: 0;
}

body.single-product .woocommerce-product-gallery__image {
	overflow: hidden;
	border-radius: 12px;
}

body.single-product .woocommerce-product-gallery__image a img,
body.single-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

body.single-product .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 0 !important;
	overflow: hidden;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs,
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
	flex: 0 0 auto;
	width: 70px;
	height: 70px;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.2s;
}

body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img:hover,
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li img.flex-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	border-color: #F6821F;
}

/* ---------- Summary ---------- */

body.single-product .summary.entry-summary {
	width: 100% !important;
	float: none !important;
	padding: 0;
	min-width: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

body.single-product .product_title.entry-title {
	font-size: 28px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 20px 0;
	line-height: 1.3;
}

body.single-product .summary.entry-summary p,
body.single-product .summary.entry-summary div:not(.delar-single-category) {
	font-size: 14px;
	font-weight: 400;
	color: #374151;
}

body.single-product .woocommerce-product-details__short-description {
	margin-bottom: 24px;
}

/* ---------- Category Link ---------- */

.delar-single-category {
	margin-bottom: 24px;
}

.delar-single-category a {
	display: inline-block;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 500;
	color: #F6821F;
	background: rgba(246, 130, 31, 0.1);
	border-radius: 20px;
	text-decoration: none;
	transition: background 0.2s;
	margin-right: 6px;
}

.delar-single-category a:hover {
	background: rgba(246, 130, 31, 0.2);
}

/* ---------- Price ---------- */

body.single-product .summary.entry-summary .delar-single-price {
	margin: 0 0 24px 0;
	font-size: 28px;
	font-weight: 700;
	color: #F6821F;
	line-height: 1.2;
}

body.single-product .summary.entry-summary .delar-single-price del {
	display: inline-block;
	margin-right: 10px;
	color: #9ca3af;
	font-weight: 500;
	font-size: 16px;
	text-decoration: line-through;
}

body.single-product .summary.entry-summary .delar-single-price ins {
	text-decoration: none;
	background: transparent;
	color: #F6821F;
}

body.single-product .summary.entry-summary .delar-single-price .woocommerce-Price-amount {
	font-weight: 700;
}

/* ---------- WhatsApp Button ---------- */

.delar-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 36px;
	font-size: 16px;
	font-weight: 600;
	color: #fff !important;
	background: #25D366;
	border-radius: 10px;
	text-decoration: none !important;
	transition: background 0.2s, transform 0.15s;
	cursor: pointer;
	max-width: 100%;
	box-sizing: border-box;
}

.delar-whatsapp-btn:hover {
	background: #1fb855;
	transform: translateY(-2px);
}

.delar-whatsapp-btn:active {
	transform: translateY(0);
}

.delar-whatsapp-btn svg {
	flex-shrink: 0;
}

/* ---------- Related Products ---------- */

.delar-related-products {
	max-width: 1200px;
	margin: 50px auto 0;
	padding: 40px 20px 0;
	border-top: 1px solid #e5e7eb;
}

.delar-related-title {
	font-size: 22px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 24px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
	body.single-product:not([class*=elementor-page-]) .site-main {
		padding: 20px 15px !important;
	}

	body.single-product div.product {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	body.single-product .product_title.entry-title {
		font-size: 22px;
		margin: 0 0 16px 0;
	}

	body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li,
	body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
		width: 60px;
		height: 60px;
	}

	.delar-single-category {
		margin-bottom: 16px;
	}

	body.single-product .woocommerce-product-details__short-description {
		margin-bottom: 20px;
	}

	body.single-product .summary.entry-summary .delar-single-price {
		font-size: 22px;
		margin: 0 0 16px 0;
	}

	body.single-product .summary.entry-summary .delar-single-price del {
		font-size: 14px;
	}

	.delar-whatsapp-btn {
		width: 100%;
		justify-content: center;
		padding: 14px 20px;
		font-size: 15px;
	}

	.delar-related-products {
		margin-top: 28px;
		padding: 28px 15px 0;
	}

	.delar-related-title {
		font-size: 18px;
		margin: 0 0 16px 0;
	}

	.delar-related-products .delar-lista-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px;
	}
}

@media (max-width: 480px) {
	body.single-product .product_title.entry-title {
		font-size: 18px;
	}

	body.single-product .woocommerce-product-gallery ol.flex-control-thumbs li,
	body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
		width: 48px;
		height: 48px;
	}

	.delar-whatsapp-btn {
		font-size: 14px;
		padding: 12px 16px;
	}
}
