/* ==========================================================================
   Single Product (PDP)
   Reference: onlinemangoes.pk product page (Woodmart 8.2.7)
   ========================================================================== */
body.single-product .wd-main-content {
	padding-block: 30px;
}

.wd-single-product-inner {
	max-width: 1222px;
	margin: 0 auto;
	padding: 0 15px;
}

.wd-single-product-bottom {
	max-width: 1222px;
	margin: 0 auto;
	padding: 0 15px;
}

.wd-single-product-outer {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.wd-single-product-images-wrap {
	flex: 0 0 50%;
	max-width: 50%;
	min-width: 0;
}

.wd-single-product-summary-wrap {
	flex: 0 0 50%;
	max-width: 50%;
	min-width: 0;
}

/* Kill WooCommerce's legacy float product layout — we use flex columns. */
.woocommerce div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce #content div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary,
.woocommerce #content div.product div.summary,
.woocommerce-page #content div.product div.summary {
	float: none !important;
	width: 100% !important;
	clear: none !important;
	margin-inline: 0 !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-page div.product p.price,
.woocommerce-page div.product span.price {
	color: #008000 !important;
	font-size: 24px !important;
}

/* ---------------------------------------------------------- gallery ----- */
.woocommerce-product-gallery {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
}

.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba( 0, 0, 0, 0.03 ) !important;
}

/* Thumbnail strip (built by WooCommerce flexslider). */
.woocommerce-product-gallery .flex-control-nav,
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat( 4, 1fr );
	gap: 12px;
	margin: 14px 0 0 !important;
	padding: 0 !important;
	list-style: none;
	overflow: visible;
}

.woocommerce-product-gallery .flex-control-thumbs li {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
}

.woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: 8px;
	opacity: 0.65;
	cursor: pointer;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: #008000;
}

/* "Click to enlarge" button (injected by main.js). */
.woocommerce-product-gallery .omp-gallery-enlarge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 0;
	border-radius: 6px;
	background: rgba( 255, 255, 255, 0.92 );
	color: #333;
	font-family: "Jost", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 0 5px rgba( 0, 0, 0, 0.08 );
	transition: color 0.2s ease;
}

.woocommerce-product-gallery .omp-gallery-enlarge:hover {
	color: #008000;
}

/* ---------------------------------------------------------- summary ----- */
.summary.entry-summary {
	font-family: "Jost", sans-serif;
	color: #333;
}

.summary-inner > * {
	margin-bottom: 20px;
}

.summary-inner > *:last-child {
	margin-bottom: 0;
}

.summary .wd-breadcrumbs,
.summary .woocommerce-breadcrumb {
	margin: 0 0 4px;
	font-family: "Jost", sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #767676;
}

.summary .woocommerce-breadcrumb a {
	color: #767676;
	text-decoration: none;
	transition: color 0.2s;
}

.summary .woocommerce-breadcrumb a:hover {
	color: #008000;
}

.summary .product_title {
	margin: 0;
	font-family: "Jost", sans-serif;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2;
	color: #333;
}

.summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.summary .woocommerce-product-rating .star-rating {
	margin: 0;
	color: #eabe12;
	font-size: 15px;
}

.summary .woocommerce-product-rating .star-rating::before {
	color: #d0d0d0;
}

.summary .woocommerce-review-link {
	color: #767676;
	font-size: 15px;
	text-decoration: none;
	transition: color 0.2s;
}

.summary .woocommerce-review-link:hover {
	color: #008000;
}

.summary .price {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #008000;
}

.summary .price del {
	margin-right: 8px;
	color: #767676;
	font-weight: 400;
	font-size: 90%;
}

.summary .price ins {
	text-decoration: none;
}

.summary .woocommerce-product-details__short-description {
	font-size: 15px;
	line-height: 1.7;
	color: #333;
}

.summary .woocommerce-product-details__short-description p {
	margin: 0 0 15px;
}

/* Feature list (ported from the reference custom CSS). */
.omp-feature-list {
	margin: 0 0 15px !important;
	padding: 0 !important;
	list-style: none !important;
}

.omp-feature-list li {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
	color: #333;
	font-size: 15px;
}

.omp-feature-list i {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 12px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	font-size: 0 !important;
	line-height: 0 !important;
}

.omp-box-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'%3E%3C/path%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'%3E%3C/polyline%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'%3E%3C/line%3E%3C/svg%3E");
}

.omp-leaf-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'%3E%3C/path%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'%3E%3C/path%3E%3C/svg%3E");
}

.omp-farm-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.omp-truck-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'%3E%3C/rect%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'%3E%3C/polygon%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'%3E%3C/circle%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'%3E%3C/circle%3E%3C/svg%3E");
}

.summary .cart {
	margin: 20px 0;
}

.summary .stock {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #b50808;
}

.summary .stock.in-stock {
	color: #008000;
}

.summary .product_meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 20px;
	font-size: 14px;
	color: #333;
}

.summary .product_meta > span {
	display: block;
}

.summary .product_meta .meta-label {
	margin-right: 4px;
	font-weight: 600;
	color: #111;
}

.summary .product_meta a {
	color: #008000;
	text-decoration: none;
}

.summary .product_meta a:hover {
	text-decoration: underline;
}

.summary .product_meta .meta-sep {
	display: inline-block;
	margin: 0 2px;
}

/* ---------------------------------------------------------- tabs -------- */
.woocommerce-tabs {
	margin-top: 50px;
}

.woocommerce-tabs .wc-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 30px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid #e0e0e0;
}

.woocommerce-tabs .wc-tabs li {
	margin: 0;
}

.woocommerce-tabs .wc-tabs li a {
	position: relative;
	display: inline-block;
	padding: 14px 0;
	color: #555;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
}

.woocommerce-tabs .wc-tabs li a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 0;
	height: 3px;
	background: #008000;
	transition: width 0.3s cubic-bezier( 0.19, 1, 0.22, 1 );
}

.woocommerce-tabs .wc-tabs li a:hover,
.woocommerce-tabs .wc-tabs li.active a {
	color: #111;
}

.woocommerce-tabs .wc-tabs li a:hover::after,
.woocommerce-tabs .wc-tabs li.active a::after {
	width: 100%;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
	padding: 10px 0 20px;
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
	display: none;
}

/* ---------------------------------------------------------- related ----- */
.related.products {
	margin-top: 60px;
}

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 991px) {
	.wd-single-product-outer {
		flex-direction: column;
	}
	.wd-single-product-images-wrap,
	.wd-single-product-summary-wrap {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

@media (max-width: 1024px) {
	.summary .product_title {
		font-size: 24px;
	}
}

@media (max-width: 768.98px) {
	.summary .product_title {
		font-size: 20px;
	}
	.woocommerce-tabs .wc-tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
	}
}
