/* ===== CPGT Product Template 1 — Editorial style =====
   Nearly every rule below carries !important. This is deliberate: on
   this site's theme, plain <button>, price, and heading colors were
   bleeding through from the theme's own defaults (the exact same issue
   we hit with the wishlist button in the shop grid) — !important is
   the reliable fix for that class of problem. */

/* Any ancestor with overflow "hidden"/"auto"/"scroll" silently breaks
   position:sticky (most commonly overflow-x:hidden on <body>, a very
   common theme pattern to hide unwanted horizontal scrollbars) — the
   sticky element just sits static instead, no matter how it's styled.
   "clip" avoids that: it doesn't turn body/html into a scroll container
   the way "hidden" does, so sticky keeps working, but it still clips
   the horizontal overflow the .cpgt-pp full-bleed width:100vw trick
   below creates (100vw includes the scrollbar's own width, so it's
   always slightly wider than the visible viewport) — so this page
   doesn't get a spurious horizontal scrollbar the way plain "visible"
   would. Scoped to pages actually using this template (via the body
   class added in CPGT_Product_Frontend), so it doesn't change
   behaviour anywhere else on the site. */
body.cpgt-pp-template-1 {
	overflow-x: clip !important;
}
html:has(body.cpgt-pp-template-1) {
	overflow-x: clip !important;
}

.cpgt-pp {
	/* Breaks fully out of whatever width constraint the theme's own
	   header/content wrapper applies (a parent container with its own
	   max-width) — the same technique already proven to work for the
	   shop-grid slider's full-width mode. Just removing max-width here
	   isn't enough on its own if an ancestor element is still capping
	   the available width. */
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: 0 40px 60px;
	box-sizing: border-box;
}
.cpgt-pp * { box-sizing: border-box; }

.cpgt-pp-breadcrumb {
	font-size: 12px;
	color: #777;
	margin: 18px 0 10px;
}
.cpgt-pp-breadcrumb a { color: #777; text-decoration: none; }
.cpgt-pp-breadcrumb a:hover { text-decoration: underline; }

/* ---------- Layout: gallery + sticky summary ---------- */
.cpgt-pp {
	overflow: visible !important;
}
.cpgt-pp-layout {
	display: flex !important;
	align-items: flex-start !important;
	gap: 56px;
	margin-top: 10px;
	overflow: visible !important;
}

.cpgt-pp-gallery {
	flex: 1 1 58%;
	min-width: 0;
	position: relative;
}
.cpgt-pp-gallery-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}
.cpgt-pp-gallery-item {
	display: block;
	overflow: hidden;
	background: #f4f2ee;
	cursor: zoom-in;
}
.cpgt-pp-gallery-item img {
	width: 100% !important;
	height: auto !important;
	display: block !important;
	max-width: 100% !important;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.cpgt-pp-gallery-item:hover img {
	transform: scale(1.03);
}

/* Wishlist heart, floating over the top-right of the gallery. */
.cpgt-pp-gallery-wishlist.cpgt-wishlist-btn {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	z-index: 6 !important;
}

/* "1 / 9" page counter — hidden on desktop (the 2-column grid needs no
   counter), shown on mobile once the gallery becomes a single-image
   swipeable strip (see the max-width:900px block near the end). */
.cpgt-pp-gallery-counter {
	display: none;
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 6;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	padding: 4px 11px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 3px;
}

/* Click-to-zoom lightbox (assets/js/product-template-1.js) */
.cpgt-pp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
}
.cpgt-pp-lightbox.is-open { display: flex; }
.cpgt-pp-lightbox img {
	max-width: 90vw;
	max-height: 88vh;
	display: block;
	object-fit: contain;
}
.cpgt-pp-lightbox-close,
.cpgt-pp-lightbox-prev,
.cpgt-pp-lightbox-next {
	/* Buttons keep native OS/browser "appearance" and the theme's own
	   default <button> padding (often asymmetric, e.g. more left/right
	   than top/bottom) unless both are explicitly turned off — without
	   this, the padding gets added on top of the fixed width/height
	   below and stretches the circle into an oval. Same fix already
	   applied to the slider arrows in _base.css. */
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	position: absolute;
	background: rgba(255, 255, 255, 0.12) !important;
	border: none !important;
	color: #fff !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	border-radius: 50% !important;
	line-height: 1 !important;
}
.cpgt-pp-lightbox-close {
	top: 20px;
	right: 20px;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	max-width: 40px !important;
	max-height: 40px !important;
	font-size: 20px !important;
}
.cpgt-pp-lightbox-prev,
.cpgt-pp-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	max-width: 48px !important;
	max-height: 48px !important;
	font-size: 22px !important;
}
.cpgt-pp-lightbox-prev { left: 20px; }
.cpgt-pp-lightbox-next { right: 20px; }
.cpgt-pp-lightbox-close:hover,
.cpgt-pp-lightbox-prev:hover,
.cpgt-pp-lightbox-next:hover { background: rgba(255, 255, 255, 0.25) !important; }

.cpgt-pp-summary {
	flex: 1 1 38%;
	min-width: 300px;
	position: sticky !important;
	top: 24px !important;
	align-self: flex-start !important;
}

.cpgt-pp-eyebrow {
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #777 !important;
	margin: 0 0 8px !important;
	background: none !important;
}
.cpgt-pp-title {
	font-size: 26px !important;
	font-weight: 600 !important;
	line-height: 1.25;
	margin: 0 0 10px !important;
	color: #111 !important;
	background: none !important;
}
.cpgt-pp-fit-badge {
	display: inline-block;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.03em;
	color: #444 !important;
	background: #f2f2f2 !important;
	border-radius: 3px;
	padding: 4px 10px !important;
	margin: 0 0 12px !important;
}
.cpgt-pp-rating { margin-bottom: 10px; }
.cpgt-pp-rating .star-rating { font-size: 14px; color: #f5a623 !important; }

.cpgt-pp-price {
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #111 !important;
	margin: 0 0 18px !important;
	background: none !important;
}
.cpgt-pp-price,
.cpgt-pp-price * {
	color: #111 !important;
}
.cpgt-pp-price del { color: #aaa !important; font-weight: 400 !important; font-size: 0.75em; margin-right: 8px; }
.cpgt-pp-price ins { text-decoration: none !important; }

.cpgt-pp-highlights {
	margin: 0 0 22px !important;
	padding-left: 18px !important;
	font-size: 14px !important;
	line-height: 1.7;
	color: #333 !important;
	list-style: disc !important;
}
.cpgt-pp-highlights li { margin-bottom: 2px; color: #333 !important; }

/* ---------- Add-to-cart form: variations as chips/swatches ---------- */
.cpgt-pp-cart-form { margin-bottom: 8px; }
.cpgt-pp-cart-form .product_meta { display: none !important; } /* SKU/cats shown in our own accordion instead */

.cpgt-pp-cart-form table.variations,
.cpgt-pp-cart-form table.variations tbody,
.cpgt-pp-cart-form table.variations tr {
	display: block !important;
	width: 100% !important;
	background: none !important;
	border: none !important;
}
.cpgt-pp-cart-form table.variations th,
.cpgt-pp-cart-form table.variations td {
	display: block !important;
	padding: 0 !important;
	width: 100% !important;
	background: none !important;
	border: none !important;
	text-align: left !important;
}
.cpgt-pp-cart-form table.variations label {
	display: block !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 !important;
	color: #222 !important;
	background: none !important;
}
/* Hide the native <select> visually but keep it in the accessibility/DOM
   tree and functional — our JS drives it from the chip/swatch buttons. */
.cpgt-pp-cart-form table.variations select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}
.cpgt-pp-cart-form .reset_variations {
	display: inline-block;
	font-size: 12px !important;
	color: #777 !important;
	text-decoration: underline;
	margin-top: 4px;
	background: none !important;
}

.cpgt-pp-chip-row {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
}
.cpgt-pp-chip {
	min-width: 44px;
	height: 44px;
	padding: 0 12px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border: 1px solid #ccc !important;
	background: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #222 !important;
	cursor: pointer;
	position: relative;
	transition: border-color 0.15s ease;
	border-radius: 0 !important;
}
.cpgt-pp-chip:hover { border-color: #111 !important; }
.cpgt-pp-chip.is-selected { border-color: #111 !important; border-width: 2px !important; }
.cpgt-pp-chip.is-disabled {
	color: #bbb !important;
	border-color: #eee !important;
	cursor: not-allowed;
	background: repeating-linear-gradient(135deg, #fff, #fff 4px, #f2f2f2 4px, #f2f2f2 5px) !important;
}
.cpgt-pp-chip-stock {
	position: absolute;
	bottom: -18px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 10px;
	color: #b8860b !important;
	white-space: nowrap;
}

.cpgt-pp-swatch-row {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
}
.cpgt-pp-swatch {
	width: 34px;
	height: 34px;
	border-radius: 50% !important;
	border: 2px solid transparent !important;
	box-shadow: 0 0 0 1px #ddd;
	cursor: pointer;
	background-size: cover;
	background-position: center;
}
.cpgt-pp-swatch.is-selected { border-color: #111 !important; }
.cpgt-pp-swatch.is-disabled { opacity: 0.3; cursor: not-allowed; }

.cpgt-pp-cart-form .quantity {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	margin-right: 12px;
}
/* WooCommerce already prints a "Quantity" <label>, but only as a
   screen-reader-text (visually hidden) one — un-hide it and style it
   to match the "Size" label above the variation chips. */
.cpgt-pp-cart-form .quantity label {
	position: static !important;
	clip: auto !important;
	clip-path: none !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	display: block !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 !important;
	padding: 0 !important;
	color: #222 !important;
	background: none !important;
}
.cpgt-pp-cart-form .quantity .qty {
	width: 64px !important;
	height: 46px !important;
	text-align: center !important;
	border: 1px solid #ccc !important;
	font-size: 14px !important;
	background: #fff !important;
	color: #111 !important;
	border-radius: 0 !important;
}
.cpgt-pp-cart-form .single_add_to_cart_button,
.cpgt-pp-cart-form button[type="submit"] {
	background: #111 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 14px 28px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	width: 100% !important;
	margin-top: 10px !important;
	box-shadow: none !important;
}
.cpgt-pp-cart-form .single_add_to_cart_button:hover,
.cpgt-pp-cart-form button[type="submit"]:hover { background: #333 !important; }
.cpgt-pp-cart-form .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cpgt-pp-cart-form .woocommerce-variation-availability { width: 100%; font-size: 13px; color: #b23b3b !important; }

/* The price shown once a size/variation is picked lives in a separate
   element WooCommerce swaps in (.woocommerce-variation-price), not inside
   .cpgt-pp-price — style it to match: sale price black, strike-through
   price smaller and light grey. */
.cpgt-pp-cart-form .woocommerce-variation-price,
.cpgt-pp-cart-form .woocommerce-variation-price * {
	color: #111 !important;
}
.cpgt-pp-cart-form .woocommerce-variation-price del {
	color: #aaa !important;
	font-weight: 400 !important;
	font-size: 0.75em;
	margin-right: 8px;
}
.cpgt-pp-cart-form .woocommerce-variation-price ins {
	text-decoration: none !important;
}
/* .woocommerce-variation-price is a plain <p> — its default browser
   margin (plus its .single_variation_wrap/.woocommerce-variation
   wrappers, also unstyled) is what shows up as a big empty gap below
   the "Clear" link once a size is picked. Collapse those and use one
   deliberate 20px gap instead. */
.cpgt-pp-cart-form .single_variation_wrap,
.cpgt-pp-cart-form .woocommerce-variation {
	margin: 0 !important;
}
.cpgt-pp-cart-form .woocommerce-variation-price {
	margin: 0 0 10px !important;
}
.cpgt-pp-cart-form .woocommerce-variation-description {
	margin: 0 0 12px !important;
}
.cpgt-pp-cart-form .woocommerce-variation-description:empty {
	display: none !important;
}

/* ---------- Accordions: plain uppercase text + thin divider + chevron,
   matching a clean editorial reference rather than solid button boxes. ---------- */
.cpgt-pp-accordions { margin-top: 26px; border-top: 1px solid #e5e5e5; }
.cpgt-pp-accordion { border-bottom: 1px solid #e5e5e5; }
.cpgt-pp-accordion-toggle {
	display: block !important;
	width: 100% !important;
	text-align: left !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 16px 28px 16px 0 !important;
	margin: 0 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	color: #111 !important;
	cursor: pointer !important;
	position: relative !important;
	font-family: inherit !important;
	line-height: 1.4 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}
.cpgt-pp-accordion-toggle::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 1.5px solid #333;
	border-bottom: 1.5px solid #333;
	transform: translateY(-65%) rotate(45deg);
	transition: transform 0.2s ease;
}
.cpgt-pp-accordion.is-open .cpgt-pp-accordion-toggle::after {
	transform: translateY(-35%) rotate(-135deg);
}
.cpgt-pp-accordion-panel {
	display: none;
	padding: 0 28px 20px 0;
	font-size: 13px !important;
	line-height: 1.7;
	color: #444 !important;
}
.cpgt-pp-accordion-panel * { color: #444 !important; }
.cpgt-pp-accordion.is-open .cpgt-pp-accordion-panel { display: block; }
.cpgt-pp-sku { color: #888 !important; font-size: 12px !important; margin-top: 10px; }

.cpgt-pp-care-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.cpgt-pp-care-icon {
	font-size: 11px !important;
	color: #444 !important;
	background: #f2f2f2 !important;
	border-radius: 3px;
	padding: 5px 9px !important;
}

.cpgt-pp-faq { margin-bottom: 14px; }
.cpgt-pp-faq-q { font-weight: 700 !important; color: #111 !important; margin: 0 0 4px !important; }
.cpgt-pp-faq-a { margin: 0 !important; color: #555 !important; }

/* Sharing (woocommerce_share hook output, if a theme adds one) */
.cpgt-pp-summary .entry-meta,
.cpgt-pp-summary .posted_in,
.cpgt-pp-summary .tagged_as { font-size: 12px; color: #888 !important; margin-top: 16px; }

/* ---------- Related products / reviews (full width, breaks out of the two-column layout) ---------- */
.cpgt-pp-related,
.cpgt-pp-reviews {
	margin-top: 64px;
	padding-top: 36px;
	border-top: 1px solid #e5e5e5;
}
.cpgt-pp-section-title,
.cpgt-pp-related h2,
.cpgt-pp-reviews .woocommerce-Reviews-title {
	font-size: 22px !important;
	font-weight: 600 !important;
	margin: 0 0 28px !important;
	color: #111 !important;
	background: none !important;
}

/* ----- Review list: each review as its own card, avatar + content side by side ----- */
.cpgt-pp-reviews .woocommerce-noreviews {
	font-size: 14px;
	color: #777 !important;
	margin-bottom: 28px !important;
	background: none !important;
}
/* ----- Review list: a horizontal card slider — 6 cards per view on
   desktop, 3 on tablet, 1 (with a peek) on mobile — instead of a
   vertical stack, matching the same slider treatment used elsewhere
   in this plugin. Arrows are added by JS (see product-template-1.js);
   the swipe/scroll itself works from this CSS alone. */
.cpgt-pp-reviews-slider-wrap { position: relative; }
.cpgt-pp-reviews .commentlist {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 40px !important;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory !important;
	gap: 16px !important;
	padding-bottom: 8px !important;
	scrollbar-width: none;
}
.cpgt-pp-reviews .commentlist::-webkit-scrollbar { display: none; height: 0; }
.cpgt-pp-reviews .commentlist li.review {
	border: none !important;
	padding: 0 !important;
	/* --cpgt-review-cols is set by JS to min(actual review count, 6) so a
	   page with only 1-2 reviews doesn't leave a big empty gap sized for
	   6 — it falls back to 6 if JS hasn't run for some reason. */
	flex: 0 0 calc((100% - (min(var(--cpgt-review-cols, 6), 6) - 1) * 16px) / min(var(--cpgt-review-cols, 6), 6)) !important;
	scroll-snap-align: start;
}
@media (max-width: 1024px) {
	.cpgt-pp-reviews .commentlist li.review {
		flex: 0 0 calc((100% - (min(var(--cpgt-review-cols, 3), 3) - 1) * 16px) / min(var(--cpgt-review-cols, 3), 3)) !important;
	}
}
@media (max-width: 600px) {
	.cpgt-pp-reviews .commentlist li.review {
		flex: 0 0 88% !important;
	}
}
.cpgt-pp-reviews-arrow {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 5 !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	box-sizing: border-box !important;
	border-radius: 50% !important;
	background: #fff !important;
	background-image: none !important;
	border: 1px solid #e2e2e2 !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
	cursor: pointer !important;
	font-size: 18px !important;
	line-height: 1 !important;
	color: #222 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	font-family: inherit !important;
}
.cpgt-pp-reviews-arrow:hover { background: #111 !important; color: #fff !important; }
.cpgt-pp-reviews-prev { left: -16px !important; }
.cpgt-pp-reviews-next { right: -16px !important; }
@media (max-width: 600px) {
	.cpgt-pp-reviews-arrow { display: none !important; }
}

/* ----- Individual review card: vertical/compact instead of a wide row,
   since it now sits in a narrow slider slot rather than a full-width
   stack. Uses "display: contents" on .comment-text to flatten it out of
   the box model — this lets us grid-place the avatar, author, date,
   stars, and description as if they were all direct siblings, matching
   the reference layout exactly regardless of WooCommerce's original
   nesting (avatar + author/date normally end up nested two levels
   apart). It also sidesteps a persistent theme conflict where the
   avatar was being forced out of normal flow and escaping the card. ----- */
.cpgt-pp-reviews .comment_container {
	display: grid !important;
	grid-template-columns: 40px 1fr !important;
	grid-template-areas:
		"avatar author"
		"avatar date"
		"stars stars"
		"text text" !important;
	column-gap: 12px !important;
	row-gap: 3px !important;
	background: #fff !important;
	border: 1px solid #eee !important;
	border-radius: 10px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
	padding: 18px 18px 20px !important;
	height: auto !important;
	box-sizing: border-box !important;
	position: relative !important;
	overflow: hidden !important;
	align-items: start !important;
}
.cpgt-pp-reviews .comment-text {
	display: contents !important;
}
.cpgt-pp-reviews .comment_container > img.avatar {
	grid-area: avatar !important;
	width: 40px !important;
	height: 40px !important;
	max-width: 40px !important;
	max-height: 40px !important;
	border-radius: 50% !important;
	margin: 0 !important;
	position: static !important;
	float: none !important;
	top: auto !important;
	left: auto !important;
	inset: auto !important;
	display: block !important;
}
.cpgt-pp-reviews .comment-text .star-rating {
	grid-area: stars !important;
	font-size: 13px !important;
	margin: 4px 0 2px !important;
	color: #f5a623 !important;
	position: relative !important;
	width: 5.4em !important;
}
/* That inner <span> does double duty in WooCommerce's own CSS: it holds
   the hidden "Rated X out of 5" text AND carries the ::before pseudo-
   element that renders the gold filled-in stars (clipped to the rating
   percentage). An earlier, more aggressive clip-based hide here
   accidentally clipped the gold stars along with the text — this parent
   having position:relative is what correctly hides just the text while
   leaving WooCommerce's own star-fill rendering intact, so nothing
   further is needed on the span itself. */
.cpgt-pp-reviews p.meta {
	grid-area: date !important;
	margin: 0 !important;
	font-size: 13px !important;
}
.cpgt-pp-reviews .woocommerce-review__author {
	grid-area: author !important;
	font-weight: 700 !important;
	color: #111 !important;
	font-size: 14px !important;
	align-self: end !important;
}
.cpgt-pp-reviews .woocommerce-review__dash { display: none !important; }
.cpgt-pp-reviews .woocommerce-review__published-date {
	display: block !important;
	color: #999 !important;
	font-size: 11px !important;
}
.cpgt-pp-reviews .description {
	grid-area: text !important;
}
.cpgt-pp-reviews .description p {
	margin: 0 !important;
	color: #333 !important;
	font-size: 13px !important;
	line-height: 1.6 !important;
	/* Long single "words" with no spaces (like a test string of repeated
	   characters) have no natural break point and will otherwise just
	   overflow the card horizontally instead of wrapping — which also
	   means line-clamp never actually clamps it and no "Read more"
	   button gets added. Force a break so it wraps like normal text. */
	overflow-wrap: break-word !important;
	word-break: break-word !important;
	/* Clamp to 2 lines so every card in the row stays the same height
	   regardless of review length — expanded via the "Read more" toggle
	   added by JS when the text is actually long enough to be truncated.
	   max-height is a hard backup cap alongside line-clamp: with heavily
	   forced mid-word breaks (as in that repeated-character test text),
	   -webkit-line-clamp can render a line or two more than intended in
	   some browsers — the explicit max-height guarantees the visual
	   height regardless of that. */
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	max-height: 2.6em !important;
	overflow: hidden !important;
}
.cpgt-pp-reviews .comment_container.is-expanded {
	height: auto !important;
	overflow: visible !important;
}
.cpgt-pp-reviews .comment_container.is-expanded .description p {
	-webkit-line-clamp: unset !important;
	display: block !important;
	overflow: visible !important;
	max-height: none !important;
}
.cpgt-pp-reviews-readmore {
	display: inline-block !important;
	margin-top: 6px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #111 !important;
	text-decoration: underline !important;
	cursor: pointer !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	font-family: inherit !important;
}

/* ----- "Write a review" form: its own distinct card ----- */
.cpgt-pp-reviews #review_form_wrapper {
	max-width: 640px;
}
.cpgt-pp-reviews #review_form {
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 28px 26px;
}
.cpgt-pp-reviews #reply-title {
	font-size: 16px !important;
	font-weight: 600 !important;
	margin: 0 0 4px !important;
	background: none !important;
}
.cpgt-pp-reviews #reply-title small { font-size: 12px; margin-left: 8px; }
.cpgt-pp-reviews .comment-notes { font-size: 13px; color: #777; margin-bottom: 18px; }
.cpgt-pp-reviews .comment-form-rating { margin-bottom: 18px; }
.cpgt-pp-reviews .comment-form-rating label {
	display: block;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px !important;
	color: #222 !important;
}
.cpgt-pp-reviews p.stars a {
	font-size: 20px !important;
	width: 24px !important;
	height: 24px !important;
	line-height: 24px !important;
	color: #f5a623 !important;
	text-decoration: none !important;
}
.cpgt-pp-reviews .comment-form-comment { margin-bottom: 18px; }
.cpgt-pp-reviews .comment-form-comment label {
	display: block;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px !important;
	color: #222 !important;
}
.cpgt-pp-reviews .comment-form-comment textarea {
	width: 100% !important;
	min-height: 120px !important;
	border: 1px solid #ddd !important;
	border-radius: 4px !important;
	padding: 12px !important;
	font-size: 14px !important;
	font-family: inherit !important;
	resize: vertical;
	background: #fff !important;
	color: #111 !important;
}
.cpgt-pp-reviews .comment-form-comment textarea:focus {
	outline: none !important;
	border-color: #111 !important;
}
.cpgt-pp-reviews .form-submit input[type="submit"] {
	background: #111 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 4px !important;
	padding: 13px 26px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer !important;
	box-shadow: none !important;
}
.cpgt-pp-reviews .form-submit input[type="submit"]:hover { background: #333 !important; }

/* ---------- Mobile / tablet ---------- */
@media (max-width: 900px) {
	.cpgt-pp { padding: 0 18px 40px; }
	.cpgt-pp-layout {
		flex-direction: column;
		gap: 24px;
	}
	.cpgt-pp-gallery,
	.cpgt-pp-summary {
		flex-basis: 100%;
		width: 100%;
		min-width: 0;
	}
	/* Gallery/slider breaks out of the page's side padding so it runs
	   edge-to-edge, while everything else (breadcrumb, title, price,
	   accordions, etc.) keeps the normal padding. */
	.cpgt-pp-gallery {
		width: calc(100% + 36px) !important;
		margin-left: -18px !important;
		margin-right: -18px !important;
	}
	.cpgt-pp-summary {
		position: static !important;
	}
	.cpgt-pp-title { font-size: 21px !important; }

	/* Single-image-per-view swipeable strip (with a "1/N" counter) instead
	   of the desktop's 2-column grid, and — like the shop grid slider —
	   each image is slightly narrower than full width so a sliver of the
	   next one peeks at the edge as a visible cue to keep swiping. */
	.cpgt-pp-gallery-grid {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		scroll-snap-type: x mandatory !important;
		gap: 8px !important;
		scrollbar-width: none;
	}
	.cpgt-pp-gallery-grid::-webkit-scrollbar { display: none; height: 0; }
	.cpgt-pp-gallery-item {
		flex: 0 0 88% !important;
		scroll-snap-align: start;
	}
	.cpgt-pp-gallery-counter { display: block; }
}
@media (max-width: 480px) {
	.cpgt-pp-cart-form .single_add_to_cart_button { width: 100% !important; }
}
