/* =========================================================================
   Product Display — Single Product Page
   ========================================================================= */

.wsp-pdp {
	max-width: 1100px;
	margin: 0 auto;
}

/* ---- Breadcrumbs ---- */

/* ---- Nav row: back link + breadcrumbs ---- */

.wsp-pdp__nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--wsp-space-lg, 24px);
}

.wsp-pdp__back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--wsp-color-text-muted, #6e6e73);
	text-decoration: none;
	transition: color 150ms ease;
}

.wsp-pdp__back-link:hover {
	color: var(--wsp-color-accent, #0071e3);
}

.wsp-pdp__breadcrumbs {
	font-size: 13px;
	color: var(--wsp-color-text-muted, #6e6e73);
}

.wsp-pdp__breadcrumbs a {
	color: var(--wsp-color-text-muted, #6e6e73);
	text-decoration: none;
}

.wsp-pdp__breadcrumbs a:hover {
	color: var(--wsp-color-accent, #0071e3);
}

/* ---- Two-column layout ---- */

.wsp-pdp__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wsp-space-2xl, 48px);
	align-items: start;
	margin-bottom: var(--wsp-space-2xl, 48px);
}

/* =========================================================================
   Gallery
   ========================================================================= */

.wsp-pdp-gallery {
	position: relative;
}

.wsp-pdp-gallery__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 12px;
	background: #dc2626;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	border-radius: var(--wsp-radius-full, 9999px);
}

.wsp-pdp-gallery__main {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--wsp-radius-lg, 16px);
	overflow: hidden;
	background: var(--wsp-color-bg-alt, #f5f5f7);
	margin-bottom: var(--wsp-space-md, 16px);
}

/*
 * `contain` (not `cover`): the muted-grey gallery box stays at a fixed 4:3
 * aspect ratio so the layout is consistent across products, but the product
 * image itself shows in full — never cropped. Tall product photos get a
 * letterbox of muted background on the sides; wide ones get it top/bottom.
 * (Pre-2.18.3 used `cover`, which cropped the bottom of tall product bags.)
 */
.wsp-pdp-gallery__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: opacity 200ms ease;
}

.wsp-pdp-gallery__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.wsp-pdp-gallery__image--placeholder::after {
	content: "";
	width: 64px;
	height: 64px;
	background: var(--wsp-color-border, #d2d2d7);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
	opacity: 0.3;
}

.wsp-pdp-gallery__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.wsp-pdp-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.wsp-pdp-gallery__thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: var(--wsp-radius-sm, 6px);
	overflow: hidden;
	border: 2px solid transparent;
	background: var(--wsp-color-bg-alt, #f5f5f7);
	cursor: pointer;
	padding: 0;
	transition: border-color 150ms ease;
}

.wsp-pdp-gallery__thumb:hover {
	border-color: var(--wsp-color-border, #d2d2d7);
}

.wsp-pdp-gallery__thumb.is-active {
	border-color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-gallery__thumb:focus-visible {
	outline: 2px solid var(--wsp-color-accent, #0071e3);
	outline-offset: 2px;
}

.wsp-pdp-gallery__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* =========================================================================
   Star rating (duplicated from shop_display for product pages)
   ========================================================================= */

.wsp-stars {
	position: relative;
	display: inline-block;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 2px;
}

.wsp-stars__bg {
	color: var(--wsp-color-border, #d2d2d7);
}

.wsp-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	width: var(--wsp-rating, 0%);
	color: #f59e0b;
}

/* =========================================================================
   Info column
   ========================================================================= */

.wsp-pdp-info {
	display: flex;
	flex-direction: column;
	gap: var(--wsp-space-md, 16px);
}

.wsp-pdp-info__title {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--wsp-color-text, #1d1d1f);
	margin: 0;
}

.wsp-pdp-info__rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wsp-pdp-info__rating-link {
	font-size: 13px;
	color: var(--wsp-color-accent, #0071e3);
	text-decoration: none;
}

.wsp-pdp-info__rating-link:hover {
	text-decoration: underline;
}

.wsp-pdp-info__price {
	font-size: var(--wsp-font-size-lg, 24px);
	font-weight: 500;
	color: var(--wsp-color-text, #1d1d1f);
	padding-bottom: var(--wsp-space-md, 16px);
	border-bottom: 1px solid var(--wsp-color-border-light, #e8e8ed);
}

.wsp-pdp-info__price del {
	color: var(--wsp-color-text-muted, #6e6e73);
	font-weight: 400;
	margin-right: 8px;
}

.wsp-pdp-info__price ins {
	text-decoration: none;
}

.wsp-pdp-info__desc {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wsp-color-text-muted, #6e6e73);
}

.wsp-pdp-info__desc p:last-child {
	margin-bottom: 0;
}

.wsp-pdp-info__oos {
	padding: 12px 16px;
	background: var(--wsp-color-bg-alt, #f5f5f7);
	color: var(--wsp-color-text-muted, #6e6e73);
	border-radius: var(--wsp-radius-md, 10px);
	font-size: 14px;
	margin: 0;
}

/* ---- WC add-to-cart form (native, styled to match our design) ---- */

/* SIMPLE products: WC's add-to-cart/simple.php renders <form class="cart">
   containing only <div class="quantity"> + the submit button. We want the
   qty selector and the button side-by-side (compact) — not stacked. */
.wsp-pdp-info__cart-form .cart {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wsp-space-md, 12px);
}

/* VARIABLE products: WC's variable.php renders <form class="variations_form">
   containing the variations table, single_variation_wrap, and the inner
   .woocommerce-variation-add-to-cart with qty + button. Keep the OUTER
   form vertical so variations stack above the cart row. */
.wsp-pdp-info__cart-form .variations_form {
	display: flex;
	flex-direction: column;
	gap: var(--wsp-space-md, 16px);
}

/* Suppress any third-party-injected stock indicator inside the cart form.
   Our wsp-pdp-info__stock indicator above the form is the canonical
   "in stock / out of stock" affordance — duplicating it inside the form
   creates the "In stock... In stock... 1 ... Add to cart" stack reported
   on the live site (caused by a third-party plugin hooking into
   woocommerce_before_add_to_cart_form / woocommerce_single_product_summary
   to render <p class="stock in-stock">). Hide every <p class="stock">
   regardless of nesting depth, then restore for variable products' native
   .woocommerce-variation-availability — that one we want to keep, since it
   shows variation-specific availability after the user picks a combo. */
.wsp-pdp-info__cart-form p.stock,
.wsp-pdp-info__cart-form > .stock {
	display: none;
}

.wsp-pdp-info__cart-form .woocommerce-variation-availability p.stock,
.wsp-pdp-info__cart-form .woocommerce-variation-availability .stock {
	display: revert;
}

.wsp-pdp-info__cart-form .variations {
	width: 100%;
	border: none;
}

.wsp-pdp-info__cart-form .variations td {
	display: block;
	padding: 0;
}

.wsp-pdp-info__cart-form .variations td.label {
	padding-bottom: 6px;
}

.wsp-pdp-info__cart-form .variations td.label label,
.wsp-pdp-info__cart-form .variations th.label,
.wsp-pdp-info__cart-form .variations th label,
.wsp-pdp-info__cart-form .variations label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: left;
}

/* Make WC variation table stack vertically */
.wsp-pdp-info__cart-form .variations tr {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: var(--wsp-space-sm, 8px);
}

.wsp-pdp-info__cart-form .variations td.value,
.wsp-pdp-info__cart-form .variations td {
	padding: 0;
	text-align: left;
}

/* Wrap the form in a muted card */
.wsp-pdp-info__cart-form {
	padding: var(--wsp-space-lg, 24px);
	background: var(--wsp-color-bg-alt, #f5f5f7);
	border-radius: var(--wsp-radius-md, 10px);
}

.wsp-pdp-info__cart-form .variations_form {
	display: flex;
	flex-direction: column;
	gap: var(--wsp-space-md, 16px);
}

/* Collapse WC's default spacing inside the variation wrap */
.wsp-pdp-info__cart-form .single_variation_wrap {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.wsp-pdp-info__cart-form .single_variation {
	min-height: 0;
}

/* Remove WC's default margin on the variation price wrapper */
.wsp-pdp-info__cart-form .woocommerce-variation-price,
.wsp-pdp-info__cart-form .woocommerce-variation-availability {
	margin: 0;
	padding: 0;
}

.wsp-pdp-info__cart-form .variations select {
	width: 100%;
	padding: 12px 40px 12px 16px;
	border: 1px solid var(--wsp-color-border, #d2d2d7);
	border-radius: var(--wsp-radius-full, 9999px);
	background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 14px center/12px no-repeat;
	font-size: 14px;
	color: var(--wsp-color-text, #1d1d1f);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: border-color 150ms ease;
}

.wsp-pdp-info__cart-form .variations select:focus {
	outline: none;
	border-color: var(--wsp-color-accent, #0071e3);
}

.wsp-pdp-info__cart-form .reset_variations {
	font-size: 12px;
	color: var(--wsp-color-text-muted, #6e6e73);
	text-decoration: none;
	display: inline-block;
}

.wsp-pdp-info__cart-form .reset_variations:hover {
	color: var(--wsp-color-accent, #0071e3);
}

/* Variation price display */
.wsp-pdp-info__cart-form .single_variation .woocommerce-variation-price,
.wsp-pdp-info__cart-form .single_variation .woocommerce-variation-price .price,
.wsp-pdp-info__cart-form .single_variation .woocommerce-variation-price .amount {
	font-size: var(--wsp-font-size-lg, 24px);
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f) !important;
	margin-bottom: var(--wsp-space-sm, 8px);
}

.wsp-pdp-info__cart-form .single_variation .woocommerce-variation-availability p {
	font-size: 13px;
	margin: 4px 0 8px;
}

.wsp-pdp-info__cart-form .single_variation .woocommerce-variation-availability .stock.in-stock {
	color: var(--wsp-color-success, #34c759);
	font-weight: 500;
}

.wsp-pdp-info__cart-form .single_variation .woocommerce-variation-availability .stock.out-of-stock {
	color: var(--wsp-color-error, #ff3b30);
	font-weight: 500;
}

/* Quantity input */
.wsp-pdp-info__cart-form .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--wsp-color-border, #d2d2d7);
	border-radius: var(--wsp-radius-full, 9999px);
	overflow: hidden;
	background: #ffffff;
}

.wsp-pdp-info__cart-form .quantity .qty {
	width: 48px;
	height: 40px;
	border: none;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	color: var(--wsp-color-text, #1d1d1f);
	background: transparent;
	-moz-appearance: textfield;
	padding: 0;
}

.wsp-pdp-info__cart-form .quantity .qty::-webkit-inner-spin-button,
.wsp-pdp-info__cart-form .quantity .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* +/- buttons inside the .quantity pill (rendered via PHP hooks on
   woocommerce_before/after_quantity_input_field). The native HTML5 number
   spinners are hidden above; these are the explicit controls users see. */
.wsp-pdp-info__cart-form .wsp-qty-btn {
	width: 32px;
	height: 40px;
	border: none;
	background: transparent;
	color: var(--wsp-color-text, #1d1d1f);
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: color 150ms ease, background 150ms ease;
	flex-shrink: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wsp-pdp-info__cart-form .wsp-qty-btn:hover {
	color: var(--wsp-color-accent, #0071e3);
	background: var(--wsp-color-bg-alt, #f5f5f7);
}

.wsp-pdp-info__cart-form .wsp-qty-btn:disabled {
	color: var(--wsp-color-border, #d2d2d7);
	cursor: not-allowed;
	background: transparent;
}

.wsp-pdp-info__cart-form .wsp-qty-btn:focus-visible {
	outline: 2px solid var(--wsp-color-accent, #0071e3);
	outline-offset: -2px;
}

/* Variations button row — qty + add-to-cart side by side */
.wsp-pdp-info__cart-form .woocommerce-variation-add-to-cart {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--wsp-space-md, 16px);
	margin-top: var(--wsp-space-sm, 8px);
}

/* Add to cart button */
.wsp-pdp-info__cart-form .single_add_to_cart_button,
.wsp-pdp-info__cart-form .button {
	flex: 1 1 auto;
	padding: 14px 24px;
	background: var(--wsp-color-text, #1d1d1f) !important;
	color: #ffffff !important;
	border: none;
	border-radius: var(--wsp-radius-full, 9999px);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background 150ms ease, transform 100ms ease;
	min-height: 48px;
	text-align: center;
}

.wsp-pdp-info__cart-form .single_add_to_cart_button:hover,
.wsp-pdp-info__cart-form .button:hover {
	background: var(--wsp-color-accent, #0071e3) !important;
	transform: translateY(-1px);
}

.wsp-pdp-info__cart-form .single_add_to_cart_button.disabled,
.wsp-pdp-info__cart-form .single_add_to_cart_button:disabled,
.wsp-pdp-info__cart-form .button.disabled,
.wsp-pdp-info__cart-form .button:disabled {
	background: var(--wsp-color-border, #d2d2d7) !important;
	color: var(--wsp-color-text-muted, #6e6e73) !important;
	cursor: not-allowed;
	transform: none;
}

/* Simple product form — qty + button side by side */
.wsp-pdp-info__cart-form .cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wsp-space-md, 16px);
}

/* ---- Meta ---- */

.wsp-pdp-info__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 12px;
	color: var(--wsp-color-text-light, #86868b);
}

.wsp-pdp-info__meta a {
	color: var(--wsp-color-text-muted, #6e6e73);
	text-decoration: none;
}

.wsp-pdp-info__meta a:hover {
	color: var(--wsp-color-accent, #0071e3);
}

/* =========================================================================
   Tabs
   ========================================================================= */

.wsp-pdp-tabs {
	margin-bottom: var(--wsp-space-2xl, 48px);
}

.wsp-pdp-tabs__nav {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--wsp-color-border-light, #e8e8ed);
	margin-bottom: var(--wsp-space-xl, 32px);
}

.wsp-pdp-tabs__tab {
	padding: 12px 20px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-size: 14px;
	font-weight: 500;
	color: var(--wsp-color-text-muted, #6e6e73);
	cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease;
	margin-bottom: -1px;
}

.wsp-pdp-tabs__tab:hover {
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-tabs__tab.is-active {
	color: var(--wsp-color-text, #1d1d1f);
	border-bottom-color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-tabs__tab:focus-visible {
	outline: 2px solid var(--wsp-color-accent, #0071e3);
	outline-offset: -2px;
}

.wsp-pdp-tabs__panel {
	display: none;
	font-size: 15px;
	line-height: 1.7;
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-tabs__panel.is-active {
	display: block;
}

.wsp-pdp-tabs__panel h2 {
	font-size: var(--wsp-font-size-lg, 24px);
	font-weight: 600;
	margin: 0 0 var(--wsp-space-md, 16px);
}

/* ---- Additional Information: styled as clean pill cards ---- */

.wsp-pdp-tabs__panel .woocommerce-product-attributes {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 8px;
}

.wsp-pdp-tabs__panel .woocommerce-product-attributes tr {
	background: var(--wsp-color-bg-alt, #f5f5f7);
	border-radius: var(--wsp-radius-sm, 6px);
}

.wsp-pdp-tabs__panel .woocommerce-product-attributes th {
	font-size: 13px;
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 12px 16px;
	border-radius: var(--wsp-radius-sm, 6px) 0 0 var(--wsp-radius-sm, 6px);
	width: 120px;
	vertical-align: middle;
	border: none;
}

.wsp-pdp-tabs__panel .woocommerce-product-attributes td {
	font-size: 14px;
	color: var(--wsp-color-text, #1d1d1f);
	padding: 12px 16px;
	border-radius: 0 var(--wsp-radius-sm, 6px) var(--wsp-radius-sm, 6px) 0;
	vertical-align: middle;
	border: none;
}

.wsp-pdp-tabs__panel .woocommerce-product-attributes td p {
	margin: 0;
}

/* Hide the redundant "Additional information" H2 inside the panel
   since the tab button already labels the section */
.wsp-pdp-tabs__panel .woocommerce-product-attributes + h2,
.wsp-pdp-tabs__panel > h2:first-child {
	display: none;
}

/* Also catch H2 that precedes the attributes table in any tab panel */
.wsp-pdp-tabs__panel > h2:only-of-type {
	display: none;
}

/* WC reviews styles within our tab */
.wsp-pdp-tabs__panel .woocommerce-Reviews {
	max-width: 100%;
}

.wsp-pdp-tabs__panel #comments {
	margin-bottom: var(--wsp-space-xl, 32px);
}

.wsp-pdp-tabs__panel .comment-form {
	max-width: 600px;
}

.wsp-pdp-tabs__panel .comment-form input[type="text"],
.wsp-pdp-tabs__panel .comment-form input[type="email"],
.wsp-pdp-tabs__panel .comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--wsp-color-border, #d2d2d7);
	border-radius: var(--wsp-radius-sm, 6px);
	font-size: 14px;
}

.wsp-pdp-tabs__panel .comment-form .submit {
	padding: 10px 24px;
	background: var(--wsp-color-text, #1d1d1f);
	color: #ffffff;
	border: none;
	border-radius: var(--wsp-radius-full, 9999px);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

/* =========================================================================
   Related products
   ========================================================================= */

.wsp-pdp__section-heading {
	font-size: var(--wsp-font-size-lg, 24px);
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f);
	margin: 0 0 var(--wsp-space-lg, 24px);
}

.wsp-pdp__related {
	margin-bottom: var(--wsp-space-2xl, 48px);
	padding-top: var(--wsp-space-xl, 32px);
	border-top: 1px solid var(--wsp-color-border-light, #e8e8ed);
}

.wsp-pdp__related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wsp-space-lg, 24px);
}

.wsp-pdp__related-card {
	text-decoration: none;
	color: var(--wsp-color-text, #1d1d1f);
	transition: transform 150ms ease;
}

.wsp-pdp__related-card:hover {
	transform: translateY(-2px);
}

.wsp-pdp__related-image {
	aspect-ratio: 1 / 1;
	border-radius: var(--wsp-radius-md, 10px);
	overflow: hidden;
	background: var(--wsp-color-bg-alt, #f5f5f7);
	margin-bottom: 8px;
}

.wsp-pdp__related-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wsp-pdp__related-name {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 2px;
}

.wsp-pdp__related-price {
	font-size: 13px;
	color: var(--wsp-color-text-muted, #6e6e73);
}

.wsp-pdp__related-empty {
	text-align: center;
	padding: var(--wsp-space-xl, 32px);
	background: var(--wsp-color-bg-alt, #f5f5f7);
	border-radius: var(--wsp-radius-md, 10px);
}

.wsp-pdp__related-empty p {
	font-size: 15px;
	color: var(--wsp-color-text-muted, #6e6e73);
	margin: 0 0 var(--wsp-space-md, 16px);
}

.wsp-pdp__related-browse {
	display: inline-block;
	padding: 10px 24px;
	background: var(--wsp-color-text, #1d1d1f);
	color: #ffffff;
	border-radius: var(--wsp-radius-full, 9999px);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background 150ms ease;
}

.wsp-pdp__related-browse:hover {
	background: var(--wsp-color-accent, #0071e3);
}

/* =========================================================================
   Recently viewed (on product page)
   ========================================================================= */

.wsp-pdp + .wsp-rv {
	max-width: 1100px;
	margin: 0 auto var(--wsp-space-2xl, 48px);
	padding-top: var(--wsp-space-xl, 32px);
	border-top: 1px solid var(--wsp-color-border-light, #e8e8ed);
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 768px) {
	.wsp-pdp__top {
		grid-template-columns: 1fr;
		gap: var(--wsp-space-lg, 24px);
	}

	.wsp-pdp__related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.wsp-pdp-tabs__nav {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.wsp-pdp-tabs__nav::-webkit-scrollbar {
		display: none;
	}
}

@media (max-width: 480px) {
	.wsp-pdp__related-grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--wsp-space-md, 16px);
	}
}

/* =========================================================================
   Reviews section
   ========================================================================= */

.wsp-pdp-reviews {
	margin-bottom: var(--wsp-space-2xl, 48px);
	padding-top: var(--wsp-space-xl, 32px);
	border-top: 1px solid var(--wsp-color-border-light, #e8e8ed);
}

.wsp-pdp-reviews__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--wsp-space-xl, 32px);
	margin-bottom: var(--wsp-space-xl, 32px);
}

/* ---- Summary: avg rating + breakdown bars ---- */

.wsp-pdp-reviews__summary {
	flex: 1 1 auto;
}

.wsp-pdp-reviews__avg {
	display: flex;
	align-items: center;
	gap: var(--wsp-space-md, 16px);
	margin-bottom: var(--wsp-space-lg, 24px);
}

.wsp-pdp-reviews__avg-number {
	font-size: 48px;
	font-weight: 600;
	line-height: 1;
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-reviews__avg-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wsp-pdp-reviews__avg-count {
	font-size: 13px;
	color: var(--wsp-color-text-muted, #6e6e73);
}

.wsp-pdp-reviews__bars {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 300px;
}

.wsp-pdp-reviews__bar-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wsp-pdp-reviews__bar-label {
	font-size: 12px;
	color: var(--wsp-color-text-muted, #6e6e73);
	width: 32px;
	text-align: right;
	flex-shrink: 0;
}

.wsp-pdp-reviews__bar-track {
	flex: 1 1 auto;
	height: 8px;
	background: var(--wsp-color-bg-alt, #f5f5f7);
	border-radius: 4px;
	overflow: hidden;
}

.wsp-pdp-reviews__bar-fill {
	height: 100%;
	background: #f59e0b;
	border-radius: 4px;
	transition: width 300ms ease;
}

.wsp-pdp-reviews__bar-count {
	font-size: 12px;
	color: var(--wsp-color-text-light, #86868b);
	width: 20px;
	flex-shrink: 0;
}

.wsp-pdp-reviews__empty {
	font-size: 15px;
	color: var(--wsp-color-text-muted, #6e6e73);
	margin: 0;
}

/* ---- Write a Review button ---- */

.wsp-pdp-reviews__write {
	flex-shrink: 0;
}

.wsp-pdp-reviews__write-btn {
	padding: 12px 24px;
	background: var(--wsp-color-text, #1d1d1f);
	color: #ffffff;
	border: none;
	border-radius: var(--wsp-radius-full, 9999px);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 150ms ease;
}

.wsp-pdp-reviews__write-btn:hover {
	background: var(--wsp-color-accent, #0071e3);
}

/* ---- Filter + Sort controls ---- */

.wsp-pdp-reviews__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wsp-space-md, 16px);
	margin-bottom: var(--wsp-space-lg, 24px);
	flex-wrap: wrap;
}

.wsp-pdp-reviews__filter-pills {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.wsp-pdp-reviews__filter-pill {
	padding: 6px 14px;
	border: 1px solid var(--wsp-color-border, #d2d2d7);
	border-radius: var(--wsp-radius-full, 9999px);
	background: transparent;
	font-size: 12px;
	font-weight: 500;
	color: var(--wsp-color-text, #1d1d1f);
	cursor: pointer;
	transition: background 150ms ease, border-color 150ms ease;
}

.wsp-pdp-reviews__filter-pill:hover {
	background: var(--wsp-color-bg-alt, #f5f5f7);
}

.wsp-pdp-reviews__filter-pill.is-active {
	background: var(--wsp-color-text, #1d1d1f);
	color: #ffffff;
	border-color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-reviews__sort-select {
	padding: 8px 32px 8px 14px;
	border: 1px solid var(--wsp-color-border, #d2d2d7);
	border-radius: var(--wsp-radius-full, 9999px);
	background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 10px center/12px no-repeat;
	font-size: 12px;
	color: var(--wsp-color-text, #1d1d1f);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}

.wsp-pdp-reviews__sort-select:focus {
	outline: none;
	border-color: var(--wsp-color-accent, #0071e3);
}

/* ---- Review cards ---- */

.wsp-pdp-reviews__list {
	display: flex;
	flex-direction: column;
	gap: var(--wsp-space-lg, 24px);
	margin-bottom: var(--wsp-space-xl, 32px);
}

.wsp-pdp-reviews__card {
	padding: var(--wsp-space-lg, 24px);
	background: var(--wsp-color-bg-alt, #f5f5f7);
	border-radius: var(--wsp-radius-md, 10px);
}

.wsp-pdp-reviews__card-header {
	display: flex;
	align-items: center;
	gap: var(--wsp-space-sm, 8px);
	margin-bottom: var(--wsp-space-sm, 8px);
}

.wsp-pdp-reviews__avatar {
	flex-shrink: 0;
}

.wsp-pdp-reviews__avatar-img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.wsp-pdp-reviews__card-meta {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wsp-pdp-reviews__card-author {
	font-size: 14px;
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-reviews__verified {
	font-size: 11px;
	color: var(--wsp-color-success, #34c759);
	font-weight: 500;
}

.wsp-pdp-reviews__card-date {
	font-size: 12px;
	color: var(--wsp-color-text-light, #86868b);
	flex-shrink: 0;
}

.wsp-pdp-reviews__card-rating {
	margin-bottom: var(--wsp-space-sm, 8px);
}

.wsp-pdp-reviews__card-text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--wsp-color-text, #1d1d1f);
}

/* ---- Review form ---- */

.wsp-pdp-reviews__form-wrap {
	padding: var(--wsp-space-xl, 32px);
	background: var(--wsp-color-bg-alt, #f5f5f7);
	border-radius: var(--wsp-radius-md, 10px);
}

.wsp-pdp-reviews__form-title {
	font-size: var(--wsp-font-size-lg, 24px);
	font-weight: 600;
	margin: 0 0 var(--wsp-space-lg, 24px);
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-reviews__rating-select {
	margin-bottom: var(--wsp-space-lg, 24px);
}

.wsp-pdp-reviews__rating-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-reviews__stars-select {
	display: flex;
	gap: 4px;
}

.wsp-pdp-reviews__star-btn {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: var(--wsp-color-border, #d2d2d7);
	padding: 2px;
	line-height: 1;
	transition: color 100ms ease, transform 100ms ease;
}

.wsp-pdp-reviews__star-btn:hover {
	color: #f59e0b;
	transform: scale(1.15);
}

.wsp-pdp-reviews__star-btn.is-selected {
	color: #f59e0b;
}

.wsp-pdp-reviews__star-btn:focus-visible {
	outline: 2px solid var(--wsp-color-accent, #0071e3);
	outline-offset: 2px;
}

.wsp-pdp-reviews__form-wrap .comment-reply-title {
	font-size: var(--wsp-font-size-lg, 24px);
	font-weight: 600;
	margin: 0 0 var(--wsp-space-lg, 24px);
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-reviews__form-wrap .comment-form-rating {
	margin-bottom: var(--wsp-space-md, 16px);
}

.wsp-pdp-reviews__form-wrap .comment-form-rating label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-reviews__form-wrap .stars a {
	font-size: 24px;
	text-decoration: none;
	color: var(--wsp-color-border, #d2d2d7);
}

.wsp-pdp-reviews__form-wrap .stars a:hover,
.wsp-pdp-reviews__form-wrap .stars a.active {
	color: #f59e0b;
}

.wsp-pdp-reviews__form-wrap .comment-form p {
	margin: 0 0 var(--wsp-space-md, 16px);
}

.wsp-pdp-reviews__form-wrap .comment-form label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 6px;
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-reviews__form-wrap .comment-form input[type="text"],
.wsp-pdp-reviews__form-wrap .comment-form input[type="email"],
.wsp-pdp-reviews__form-wrap .comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--wsp-color-border, #d2d2d7);
	border-radius: var(--wsp-radius-sm, 6px);
	font-size: 14px;
	color: var(--wsp-color-text, #1d1d1f);
	background: #ffffff;
	transition: border-color 150ms ease;
}

.wsp-pdp-reviews__form-wrap .comment-form input:focus,
.wsp-pdp-reviews__form-wrap .comment-form textarea:focus {
	outline: none;
	border-color: var(--wsp-color-accent, #0071e3);
}

.wsp-pdp-reviews__form-wrap .comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

.wsp-pdp-reviews__form-wrap .comment-form .submit,
.wsp-pdp-reviews__form-wrap .comment-form input[type="submit"] {
	padding: 12px 28px;
	background: var(--wsp-color-text, #1d1d1f);
	color: #ffffff;
	border: none;
	border-radius: var(--wsp-radius-full, 9999px);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 150ms ease;
}

.wsp-pdp-reviews__form-wrap .comment-form .submit:hover,
.wsp-pdp-reviews__form-wrap .comment-form input[type="submit"]:hover {
	background: var(--wsp-color-accent, #0071e3);
}

@media (max-width: 768px) {
	.wsp-pdp-reviews__top {
		flex-direction: column;
	}

	.wsp-pdp-reviews__bars {
		max-width: 100%;
	}
}

/* =========================================================================
   Image lightbox
   ========================================================================= */

.wsp-pdp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1300;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.85);
	cursor: zoom-out;
}

.wsp-pdp-lightbox.is-open {
	display: flex;
}

.wsp-pdp-lightbox__img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: var(--wsp-radius-md, 10px);
	cursor: default;
}

.wsp-pdp-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #ffffff;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 150ms ease;
}

.wsp-pdp-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
	.wsp-pdp-lightbox__close {
		top: 12px;
		right: 12px;
		width: 44px;
		height: 44px;
	}
}

/* =========================================================================
   Stock status indicator
   ========================================================================= */

.wsp-pdp-info__stock {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
}

.wsp-pdp-info__stock-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.wsp-pdp-info__stock--in {
	color: var(--wsp-color-success, #34c759);
}

.wsp-pdp-info__stock--in .wsp-pdp-info__stock-dot {
	background: var(--wsp-color-success, #34c759);
}

.wsp-pdp-info__stock--oos {
	color: var(--wsp-color-error, #ff3b30);
}

.wsp-pdp-info__stock--oos .wsp-pdp-info__stock-dot {
	background: var(--wsp-color-error, #ff3b30);
}

/* =========================================================================
   Share links
   ========================================================================= */

.wsp-pdp-info__share {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: var(--wsp-space-sm, 8px);
}

.wsp-pdp-info__share-label {
	font-size: 12px;
	color: var(--wsp-color-text-light, #86868b);
}

.wsp-pdp-info__share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--wsp-color-border-light, #e8e8ed);
	background: transparent;
	color: var(--wsp-color-text-muted, #6e6e73);
	cursor: pointer;
	text-decoration: none;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.wsp-pdp-info__share-btn:hover {
	background: var(--wsp-color-bg-alt, #f5f5f7);
	color: var(--wsp-color-text, #1d1d1f);
	border-color: var(--wsp-color-border, #d2d2d7);
}

.wsp-pdp-info__share-btn.is-copied {
	background: var(--wsp-color-success, #34c759);
	color: #ffffff;
	border-color: var(--wsp-color-success, #34c759);
}

.wsp-pdp-info__share-btn:focus-visible {
	outline: 2px solid var(--wsp-color-accent, #0071e3);
	outline-offset: 2px;
}

/* =========================================================================
   Gallery zoom on hover
   ========================================================================= */

.wsp-pdp-gallery__main {
	cursor: zoom-in;
}

.wsp-pdp-gallery__image {
	transition: transform 200ms ease;
}

/* =========================================================================
   Sticky mobile add-to-cart bar
   ========================================================================= */

.wsp-pdp-sticky {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1050;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: var(--wsp-space-md, 16px);
	padding: 12px var(--wsp-space-lg, 24px);
	background: #ffffff;
	border-top: 1px solid var(--wsp-color-border-light, #e8e8ed);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.wsp-pdp-sticky__price {
	font-size: 16px;
	font-weight: 600;
	color: var(--wsp-color-text, #1d1d1f);
}

.wsp-pdp-sticky__btn {
	padding: 12px 28px;
	background: var(--wsp-color-text, #1d1d1f);
	color: #ffffff;
	border: none;
	border-radius: var(--wsp-radius-full, 9999px);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 150ms ease;
}

.wsp-pdp-sticky__btn:hover {
	background: var(--wsp-color-accent, #0071e3);
}

/* =========================================================================
   Add-to-cart button states
   ========================================================================= */

.wsp-pdp-info__cart-form .single_add_to_cart_button.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.wsp-pdp-info__cart-form .single_add_to_cart_button.is-added {
	background: var(--wsp-color-success, #34c759) !important;
}

/* =========================================================================
   Mobile: accordion tabs + sticky bar
   ========================================================================= */

@media (max-width: 768px) {
	/* Show sticky bar on mobile */
	.wsp-pdp-sticky:not([hidden]) {
		display: flex;
	}

	/* Accordion tabs on mobile */
	.wsp-pdp-tabs__nav {
		flex-direction: column;
		border-bottom: none;
		gap: 0;
	}

	.wsp-pdp-tabs__tab {
		width: 100%;
		text-align: left;
		padding: 14px 0;
		border-bottom: 1px solid var(--wsp-color-border-light, #e8e8ed);
		border-left: none;
		position: relative;
	}

	.wsp-pdp-tabs__tab::after {
		content: "+";
		position: absolute;
		right: 0;
		font-size: 18px;
		color: var(--wsp-color-text-muted, #6e6e73);
		transition: transform 200ms ease;
	}

	.wsp-pdp-tabs__tab.is-active::after {
		content: "−";
	}

	.wsp-pdp-tabs__tab.is-active {
		border-bottom-color: var(--wsp-color-border-light, #e8e8ed);
	}

	.wsp-pdp__nav-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	/* Add bottom padding for sticky bar */
	.wsp-pdp {
		padding-bottom: 80px;
	}
}

/* =========================================================================
   Reduced motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
	.wsp-pdp-gallery__image,
	.wsp-pdp-gallery__thumb,
	.wsp-pdp__related-card {
		transition: none;
	}
}

/* =========================================================================
   Hide WC defaults we don't use
   ========================================================================= */

.single-product .product > .summary,
.single-product .product > .woocommerce-product-gallery {
	display: none !important;
}
