/* =========================================================================
 * Woo Product Page Layout
 * Restyles the WooCommerce single product page into a 3-column layout.
 * Everything is scoped to body.wppl-single so it stays out of the way
 * elsewhere and out-specifies the active theme.
 * ====================================================================== */

body.wppl-single {
	--wppl-accent: #2271b1;
	--wppl-accent-dark: #1d6097;
	--wppl-ink: #1f2933;
	--wppl-muted: #667085;
	--wppl-line: #e4e7ec;
	--wppl-green: #1a8a4b;
	--wppl-panel: #f7f8fa;
	--wppl-radius: 8px;
}

/* ---- Container width + reset some theme padding ---- */
body.wppl-single .woocommerce,
body.wppl-single div.product {
	color: var(--wppl-ink);
}

/* ---- Breadcrumb ---- */
body.wppl-single .woocommerce-breadcrumb {
	font-size: 13px;
	color: var(--wppl-muted);
	margin: 0 0 22px;
}
body.wppl-single .woocommerce-breadcrumb a {
	color: var(--wppl-muted);
	text-decoration: none;
}
body.wppl-single .woocommerce-breadcrumb a:hover {
	color: var(--wppl-accent);
}

/* =========================================================================
 * Top grid: gallery | summary  (summary splits again into details | buybox)
 * ====================================================================== */
/* The plugin wraps the gallery + summary in .wppl-top (see wppl_open_top).
   Gridding our own wrapper — rather than the theme's div.product — keeps the
   3-column row intact even when a theme nests the gallery in extra markup. */
body.wppl-single .wppl-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	grid-column-gap: 40px;
	column-gap: 40px;
	align-items: start;
	position: relative;
	clear: both;
}

/* Everything in the wrapper sits in the left (gallery) column on row 1 by
   default; the summary is the only thing pulled into the right column. The
   gallery may be wrapped by the theme, so we match it loosely. */
body.wppl-single .wppl-top > * {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

body.wppl-single .wppl-top > .summary,
body.wppl-single .wppl-top > .entry-summary {
	grid-column: 2;
	grid-row: 1;
	padding: 0 !important;
}

/* Sale flash pinned to the top-left of the gallery side. */
body.wppl-single .wppl-top > .onsale,
body.wppl-single div.product .onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	width: auto !important;
	background: var(--wppl-accent);
	border-radius: 999px;
	min-height: 0;
	min-width: 0;
	padding: 4px 12px;
	line-height: 1.6;
}

/* ---- Gallery thumbnails row + zoom magnifier ---- */
body.wppl-single .woocommerce-product-gallery {
	position: relative;
	border: 1px solid var(--wppl-line);
	border-radius: var(--wppl-radius);
	padding: 14px;
	background: #fff;
}
body.wppl-single .woocommerce-product-gallery .flex-viewport {
	border-radius: 6px;
	overflow: hidden;
}
body.wppl-single .woocommerce-product-gallery__trigger {
	z-index: 6;
}
body.wppl-single .flex-control-thumbs {
	display: flex !important;
	gap: 10px;
	margin: 12px 0 0 !important;
	padding: 0;
	list-style: none;
}
body.wppl-single .flex-control-thumbs li {
	flex: 0 0 auto;
	width: 18% !important;
	margin: 0 !important;
}
body.wppl-single .flex-control-thumbs img {
	border: 1px solid var(--wppl-line);
	border-radius: 6px;
	opacity: 0.75;
	transition: opacity 0.15s, border-color 0.15s;
}
body.wppl-single .flex-control-thumbs img.flex-active,
body.wppl-single .flex-control-thumbs img:hover {
	opacity: 1;
	border-color: var(--wppl-accent);
}

/* =========================================================================
 * Summary -> details | buybox
 * ====================================================================== */
body.wppl-single .summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 270px;
	grid-column-gap: 32px;
	column-gap: 32px;
	align-items: start;
}
body.wppl-single .wppl-details {
	grid-column: 1;
	min-width: 0;
}
body.wppl-single .wppl-buybox {
	grid-column: 2;
}

/* ---- Title ----
   !important + div.product specificity so a theme's heading styles (Divi
   sizes H1 much larger) can't override the mockup's size. */
body.wppl-single div.product .wppl-details .product_title,
body.wppl-single div.product .wppl-details h1.product_title {
	font-size: 30px !important;
	line-height: 1.2 !important;
	margin: 0 0 4px !important;
	font-weight: 700 !important;
	color: var(--wppl-ink) !important;
}

/* ---- Rating ---- */
body.wppl-single .woocommerce-product-rating {
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}
body.wppl-single .woocommerce-product-rating .star-rating {
	color: var(--wppl-green) !important;
	margin: 0;
}
/* Filled stars (the overlay) — force green over the theme's default. */
body.wppl-single .woocommerce-product-rating .star-rating span,
body.wppl-single .woocommerce-product-rating .star-rating span::before {
	color: var(--wppl-green) !important;
}
body.wppl-single .woocommerce-product-rating .woocommerce-review-link,
body.wppl-single .woocommerce-product-rating .woocommerce-review-link:hover {
	color: var(--wppl-green) !important;
	text-decoration: none;
}
body.wppl-single .woocommerce-product-rating .woocommerce-review-link:hover {
	text-decoration: underline;
}

/* ---- Price (under rating + in buybox) ----
   Forced so Divi's larger/darker price styling can't win. */
body.wppl-single div.product .wppl-details > .price,
body.wppl-single div.product .wppl-details > .price .woocommerce-Price-amount,
body.wppl-single div.product .wppl-buybox-price,
body.wppl-single div.product .wppl-buybox-price .woocommerce-Price-amount {
	color: var(--wppl-accent) !important;
	font-size: 26px !important;
	font-weight: 700 !important;
	margin: 0 0 16px;
}
body.wppl-single div.product .wppl-buybox-price .woocommerce-Price-amount,
body.wppl-single div.product .wppl-details > .price .woocommerce-Price-amount {
	margin: 0 !important;
}
body.wppl-single .wppl-details > .price del {
	color: var(--wppl-muted);
	font-weight: 400;
	font-size: 18px;
	opacity: 0.8;
}
body.wppl-single .wppl-details > .price ins {
	text-decoration: none;
}

/* ---- Short description ---- */
body.wppl-single .woocommerce-product-details__short-description {
	font-size: 15px;
	line-height: 1.6;
	color: #475467;
	margin: 0 0 18px;
}
/* Any bullet list inside the short description renders flat (the feature
   list below handles the checkmark version). */
body.wppl-single .woocommerce-product-details__short-description ul {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

/* ---- Feature checklist ---- */
body.wppl-single .wppl-features {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	gap: 9px;
}
body.wppl-single .wppl-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	line-height: 1.45;
	color: #344054;
	margin: 0;
}
body.wppl-single .wppl-features .wppl-check {
	flex: 0 0 auto;
	margin-top: 1px;
	fill: var(--wppl-green);
}

/* ---- Stock status ---- */
body.wppl-single .wppl-stock {
	font-weight: 600;
	font-size: 14px;
	margin: 16px 0 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}
body.wppl-single .wppl-stock.in-stock,
body.wppl-single .wppl-stock.available-on-backorder {
	color: var(--wppl-green);
}
body.wppl-single .wppl-stock.out-of-stock {
	color: #c0392b;
}
body.wppl-single .wppl-stock::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* ---- Product meta (SKU / categories) ---- */
body.wppl-single .product_meta {
	font-size: 13px;
	color: var(--wppl-muted);
	border-top: 1px solid var(--wppl-line);
	padding-top: 14px;
	margin-top: 6px;
}
body.wppl-single .product_meta > span {
	display: block;
	margin-bottom: 6px;
}
body.wppl-single .product_meta a {
	color: var(--wppl-accent);
	text-decoration: none;
}
body.wppl-single .product_meta a:hover {
	text-decoration: underline;
}

/* =========================================================================
 * Buy box (right purchase panel)
 * ====================================================================== */
body.wppl-single .wppl-buybox {
	background: var(--wppl-panel);
	border: 1px solid var(--wppl-line);
	border-radius: 10px;
	padding: 22px 20px;
}
body.wppl-single .wppl-buybox-price {
	margin-bottom: 18px;
}
body.wppl-single .wppl-buybox .cart {
	margin: 0 0 12px !important;
	display: block;
}

/* Quantity label + stepper.
   The selectors are deliberately verbose (html body.wppl-single div.product
   .wppl-buybox ...) to out-specify Divi's own quantity styling, which
   otherwise stretches the box and collapses/hides the number field. Works for
   both simple and variable products (.woocommerce-variation-add-to-cart). */
html body.wppl-single div.product .wppl-buybox form.cart .quantity,
html body.wppl-single div.product .wppl-buybox .woocommerce-variation-add-to-cart .quantity,
html body.wppl-single div.product .wppl-buybox .quantity {
	display: inline-flex !important;
	align-items: stretch !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: 1px solid #cfd4dc !important;
	border-radius: 6px !important;
	overflow: hidden !important;
	background: #fff !important;
	float: none !important;
	vertical-align: top;
}
html body.wppl-single div.product .wppl-buybox .quantity .wppl-qty-btn {
	flex: 0 0 auto !important;
	width: 34px !important;
	height: 40px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	font-size: 16px !important;
	line-height: 40px !important;
	color: var(--wppl-ink) !important;
	cursor: pointer !important;
	box-shadow: none !important;
}
html body.wppl-single div.product .wppl-buybox .quantity .wppl-qty-btn:hover {
	background: #eef1f5 !important;
}
html body.wppl-single div.product .wppl-buybox .quantity input.qty {
	flex: 0 0 auto !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 48px !important;
	min-width: 48px !important;
	max-width: 48px !important;
	height: 40px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-left: 1px solid #e4e7ec !important;
	border-right: 1px solid #e4e7ec !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-size: 15px !important;
	line-height: 40px !important;
	color: var(--wppl-ink) !important;
	background: #fff !important;
	-moz-appearance: textfield;
	box-shadow: none !important;
	clip: auto !important;
	position: static !important;
}
html body.wppl-single div.product .wppl-buybox .quantity input.qty::-webkit-outer-spin-button,
html body.wppl-single div.product .wppl-buybox .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
html body.wppl-single div.product .wppl-buybox .wppl-qty-label {
	display: block !important;
	font-size: 13px;
	font-weight: 600;
	color: var(--wppl-muted);
	margin: 0 0 6px;
}

/* Add to cart button */
body.wppl-single .wppl-buybox .single_add_to_cart_button,
body.wppl-single .wppl-buybox button.single_add_to_cart_button {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--wppl-accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px !important;
	padding: 14px 18px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s;
}
body.wppl-single .wppl-buybox .single_add_to_cart_button:hover {
	background: var(--wppl-accent-dark) !important;
}

/* Wishlist button (outline) */
body.wppl-single .wppl-wishlist,
body.wppl-single .wppl-wishlist-wrap .yith-wcwl-add-to-wishlist {
	margin-top: 10px;
}
body.wppl-single .wppl-wishlist {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #fff;
	color: var(--wppl-ink);
	border: 1px solid #cfd4dc;
	border-radius: 6px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}
body.wppl-single .wppl-wishlist svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}
body.wppl-single .wppl-wishlist:hover,
body.wppl-single .wppl-wishlist.is-active {
	color: var(--wppl-accent);
	border-color: var(--wppl-accent);
}
body.wppl-single .wppl-wishlist.is-active svg {
	fill: var(--wppl-accent);
	stroke: var(--wppl-accent);
}

/* Trust badges */
body.wppl-single .wppl-trust {
	list-style: none;
	margin: 20px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--wppl-line);
	display: grid;
	gap: 16px;
}
body.wppl-single .wppl-trust li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}
body.wppl-single .wppl-trust-icon {
	color: var(--wppl-accent);
	flex: 0 0 auto;
	line-height: 0;
	margin-top: 2px;
}
body.wppl-single .wppl-trust-copy {
	display: flex;
	flex-direction: column;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--wppl-muted);
}
body.wppl-single .wppl-trust-copy strong {
	color: var(--wppl-ink);
	font-size: 13.5px;
}

/* =========================================================================
 * Tabs (horizontal underline)
 * ====================================================================== */
body.wppl-single .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin: 0 0 24px !important;
	padding: 0 0 0 !important;
	border-bottom: 1px solid var(--wppl-line);
	list-style: none;
}
body.wppl-single .woocommerce-tabs ul.tabs::before,
body.wppl-single .woocommerce-tabs ul.tabs::after,
body.wppl-single .woocommerce-tabs ul.tabs li::before,
body.wppl-single .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}
body.wppl-single .woocommerce-tabs ul.tabs li {
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.wppl-single .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0 0 14px !important;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wppl-muted) !important;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
body.wppl-single .woocommerce-tabs ul.tabs li.active a,
body.wppl-single .woocommerce-tabs ul.tabs li a:hover {
	color: var(--wppl-accent) !important;
	border-bottom-color: var(--wppl-accent);
}
body.wppl-single .woocommerce-tabs .panel {
	margin: 0 !important;
	padding: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #475467;
}
body.wppl-single .woocommerce-tabs .panel h2 {
	font-size: 22px;
	color: var(--wppl-ink);
	margin: 0 0 14px;
}

/* =========================================================================
 * Related products: "You may also like"
 * ====================================================================== */
body.wppl-single .related.products,
body.wppl-single .upsells.products {
	margin-top: 56px;
	padding-bottom: 64px;
	clear: both;
}
body.wppl-single .related.products > h2,
body.wppl-single .upsells.products > h2 {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	color: var(--wppl-ink);
	margin: 0 0 36px;
	position: relative;
	padding-bottom: 14px;
}
body.wppl-single .related.products > h2::after,
body.wppl-single .upsells.products > h2::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: var(--wppl-accent);
}

body.wppl-single .related.products ul.products,
body.wppl-single .upsells.products ul.products {
	display: grid;
	grid-template-columns: repeat(var(--wppl-related-cols, 5), 1fr);
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.wppl-single .related.products ul.products li.product,
body.wppl-single .upsells.products ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	text-align: center;
	background: #fff;
	border: 1px solid var(--wppl-line);
	border-radius: var(--wppl-radius);
	padding: 16px 14px 18px;
	transition: box-shadow 0.15s, transform 0.15s;
}
body.wppl-single .related.products ul.products li.product:hover,
body.wppl-single .upsells.products ul.products li.product:hover {
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
	transform: translateY(-2px);
}
body.wppl-single .related.products ul.products li.product img,
body.wppl-single .upsells.products ul.products li.product img {
	margin: 0 0 12px;
	border-radius: 6px;
}
body.wppl-single .related.products ul.products li.product .woocommerce-loop-product__title,
body.wppl-single .upsells.products ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--wppl-ink);
	padding: 0;
	margin: 0 0 6px;
	min-height: 2.6em;
}
body.wppl-single .related.products ul.products li.product .price,
body.wppl-single .upsells.products ul.products li.product .price {
	color: var(--wppl-accent);
	font-weight: 700;
	font-size: 16px;
	display: block;
	margin: 0 0 12px;
}
body.wppl-single .related.products ul.products li.product .button,
body.wppl-single .upsells.products ul.products li.product .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var(--wppl-accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px !important;
	padding: 10px 14px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 !important;
}
body.wppl-single .related.products ul.products li.product .button:hover,
body.wppl-single .upsells.products ul.products li.product .button:hover {
	background: var(--wppl-accent-dark) !important;
}
body.wppl-single .related.products ul.products li.product .added_to_cart {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	color: var(--wppl-accent);
}

/* The wishlist heart on loop items comes from the Woo Category Layout plugin
   (.wcl-wishlist). Its own styles only load on shop/category pages, so on the
   product page's related row it renders as an unstyled black blob. Tidy it
   into a clean outline-heart icon button here. */
body.wppl-single .related.products .wcl-wishlist,
body.wppl-single .upsells.products .wcl-wishlist {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 6px auto 0;
	padding: 0;
	border: 1px solid var(--wppl-line);
	border-radius: 50%;
	background: #fff;
	color: var(--wppl-muted);
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}
body.wppl-single .related.products .wcl-wishlist svg,
body.wppl-single .upsells.products .wcl-wishlist svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}
body.wppl-single .related.products .wcl-wishlist:hover,
body.wppl-single .related.products .wcl-wishlist.is-active,
body.wppl-single .upsells.products .wcl-wishlist:hover,
body.wppl-single .upsells.products .wcl-wishlist.is-active {
	color: var(--wppl-accent);
	border-color: var(--wppl-accent);
}
body.wppl-single .related.products .wcl-wishlist.is-active svg,
body.wppl-single .upsells.products .wcl-wishlist.is-active svg {
	fill: var(--wppl-accent);
	stroke: var(--wppl-accent);
}

/* =========================================================================
 * Hide the sidebar on product pages (full-width content).
 * Added only when the "Hide the sidebar" setting is on (wppl-no-sidebar).
 * Scoped per-theme so we only ever touch the product page.
 * ====================================================================== */
/* Divi */
body.wppl-no-sidebar #sidebar {
	display: none !important;
}
body.wppl-no-sidebar #main-content #left-area {
	width: 100% !important;
	padding: 0 !important;
	float: none !important;
}
/* Storefront / common WP themes */
body.wppl-no-sidebar.woocommerce #secondary,
body.wppl-no-sidebar .widget-area.shop-sidebar,
body.wppl-no-sidebar aside.woocommerce-sidebar,
body.wppl-no-sidebar #secondary.widget-area {
	display: none !important;
}
body.wppl-no-sidebar #primary,
body.wppl-no-sidebar .content-area {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin-right: 0 !important;
}

/* =========================================================================
 * Responsive
 * ====================================================================== */
@media (max-width: 1100px) {
	body.wppl-single .summary {
		grid-template-columns: minmax(0, 1fr) 240px;
		grid-column-gap: 24px;
		column-gap: 24px;
	}
	body.wppl-single .related.products ul.products,
	body.wppl-single .upsells.products ul.products {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 900px) {
	body.wppl-single .wppl-top {
		grid-template-columns: 1fr;
		grid-row-gap: 32px;
		row-gap: 32px;
	}
	body.wppl-single .wppl-top > * {
		grid-column: 1;
		grid-row: auto;
	}
	body.wppl-single .wppl-top > .summary,
	body.wppl-single .wppl-top > .entry-summary {
		grid-column: 1;
		grid-row: auto;
	}
	body.wppl-single .summary {
		grid-template-columns: 1fr;
		grid-row-gap: 24px;
		row-gap: 24px;
	}
	body.wppl-single .wppl-details,
	body.wppl-single .wppl-buybox {
		grid-column: 1;
	}
}

@media (max-width: 680px) {
	body.wppl-single .related.products ul.products,
	body.wppl-single .upsells.products ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
	body.wppl-single .wppl-details .product_title {
		font-size: 24px;
	}
}
