/**
 * Single product page — Amazon-style layout for Blocksy child theme.
 */

/* PDP — inherit site font from Blocksy / --benmartin-sans */
body.benmartin-product,
body.bm-amazon-layout.single-product {
	background: var(--benmartin-white) !important;
}

body.benmartin-product :where(h1, h2, h3, h4) {
	font-family: inherit;
	font-weight: 600;
}

body.benmartin-product .hero-section .ct-breadcrumbs,
body.benmartin-product .woocommerce-breadcrumb {
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--benmartin-muted);
	margin: 0 0 20px !important;
}

body.benmartin-product .hero-section .ct-breadcrumbs a,
body.benmartin-product .woocommerce-breadcrumb a {
	color: var(--benmartin-muted);
	text-decoration: none;
}

/*
 * Product shell uses Blocksy is-width-constrained (same rail as hero breadcrumbs).
 * Nested product-entry-wrapper also carries is-width-constrained from Blocksy — fill
 * the shell instead of creating a second centered box.
 */
body.benmartin-product .benmartin-product-shell.is-width-constrained .product-entry-wrapper.is-width-constrained {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

body.benmartin-product .product-entry-wrapper > .woocommerce-product-gallery,
body.benmartin-product .product-entry-wrapper > [class*="product-gallery"],
body.benmartin-product .product-entry-wrapper .rtwpvg-images,
body.benmartin-product .product-entry-wrapper .ct-product-gallery-container {
	margin-inline-start: 0;
	padding-inline-start: 0;
}

body.benmartin-product main .ct-container,
body.benmartin-product main [class*="ct-container"] {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
	padding-top: 20px;
}

.hero-section[data-type=type-1] {
	margin-bottom: 0;
}

.single-product .bm-product-title-slot:empty {
	display: none;
}

/*
 * Gallery is a sibling of .summary (see bm_pdp_flush_gallery_before_summary).
 * Use Blocksy-compatible flex row: gallery left, buy box right.
 */
@media (min-width: 992px) {
	body.benmartin-product .product-entry-wrapper {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: flex-start !important;
		gap: 40px;
	}

	body.benmartin-product .product-entry-wrapper > .woocommerce-product-gallery,
	body.benmartin-product .product-entry-wrapper > [class*="product-gallery"] {
		flex: 0 0 54% !important;
		width: 54% !important;
		max-width: 54% !important;
		min-width: 0 !important;
	}

	body.benmartin-product .product-entry-wrapper > .summary.entry-summary {
		flex: 1 1 0 !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
		margin-inline-start: 0 !important;
		padding: 0 !important;
		display: block !important;
	}
}

@media (max-width: 991px) {
	body.benmartin-product .product-entry-wrapper {
		display: flex !important;
		flex-direction: column !important;
		gap: 0 !important;
	}

	body.benmartin-product .product-entry-wrapper > .woocommerce-product-gallery,
	body.benmartin-product .product-entry-wrapper > [class*="product-gallery"],
	body.benmartin-product .product-entry-wrapper > .summary.entry-summary {
		width: 100% !important;
		max-width: 100% !important;
		flex: none !important;
	}
}

/* Gallery images */
body.benmartin-product .woocommerce-product-gallery__image img,
body.benmartin-product .ct-media-container img,
body.benmartin-product .flexy-pills img {
	object-fit: contain !important;
	object-position: center !important;
	background: #fff;
}

body.benmartin-product .flexy-pills .ct-media-container,
body.benmartin-product .flexy-pills img {
	border: 1px solid transparent;
	border-radius: 2px;
}

body.benmartin-product .flexy-pills .active .ct-media-container,
body.benmartin-product .flexy-pills .active img {
	border-color: var(--benmartin-black) !important;
}

/* Variable form layout */
body.benmartin-product .entry-summary form.cart.bm-variations-form-split,
body.benmartin-product .entry-summary form.variations_form.bm-variations-form-split {
	display: block !important;
	width: 100% !important;
	border-bottom: none !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

body.benmartin-product .bm-variations-form-row,
body.benmartin-product .summary.entry-summary:not(:has(.bm-variations-form-split)) {
	display: block !important;
	width: 100%;
}

body.benmartin-product .bm-variations-form-row > .bm-product-center,
body.benmartin-product .summary.entry-summary > .bm-product-center,
body.benmartin-product .bm-product-center {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.benmartin-product .bm-variations-form-row > .bm-product-buybox,
body.benmartin-product .summary.entry-summary > .bm-product-buybox,
body.benmartin-product .bm-product-center > .bm-product-buybox,
body.benmartin-product .benmartin-pdp-actions {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 8px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

/* Title & meta — left-aligned buy column, compact spacing */
body.benmartin-product .summary.entry-summary,
body.benmartin-product .bm-product-center,
body.benmartin-product .bm-variations-form-split {
	text-align: left !important;
}

body.benmartin-product h1.product_title.entry-title {
    font-size: clamp(18px, 2.2vw, 24px) !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
    color: var(--benmartin-black);
    text-align: left !important;
}

body.benmartin-product .benmartin-pdp-details__title {
	font-size: clamp(20px, 1.9vw, 22px);
	font-weight: 500;
	line-height: 1.25;
	margin: 0 0 8px;
	color: var(--benmartin-black);
}

/* Hide in-stock quantity on PDP; keep out-of-stock notices */
body.benmartin-product .stock.in-stock,
body.benmartin-product .stock.available-on-backorder,
body.benmartin-product .woocommerce-variation-availability,
body.benmartin-product .wvs-stock-left-info,
body.benmartin-product .ct-product-stock-scarcity,
body.benmartin-product .benmartin-pdp-stock {
	display: none !important;
}

body.benmartin-product .benmartin-pdp-rating {
	margin: 0 0 8px !important;
}

body.benmartin-product .benmartin-pdp-rating .star-rating {
	font-size: 14px;
}

body.benmartin-product .product-entry-wrapper .entry-summary {
	margin-inline: 0 !important;
}

body.benmartin-product .woocommerce-product-gallery .flexy-container,
body.benmartin-product .woocommerce-product-gallery [data-flexy] {
	width: 100% !important;
	max-width: 100% !important;
}

body.benmartin-product .bm-pdp-meta {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--benmartin-muted);
}

.rtwpvg-thumbnail-image.swiper-slide {
    border: 1px solid #a8a8a8;
    border-radius: 5px;
    padding: 8px;
}

.rtwpvg-thumbnail-image.swiper-slide.swiper-slide-thumb-active {
	border-color: #000;
}

.rtwpvg-images.rtwpvg-has-product-thumbnail .rtwpvg-grid-layout .rtwpvg-thumbnail-wrapper .rtwpvg-thumbnail-slider .rtwpvg-thumbnail-image, .rtwpvg-images.rtwpvg-has-product-thumbnail .rtwpvg-wrapper .rtwpvg-thumbnail-wrapper .rtwpvg-thumbnail-slider .rtwpvg-thumbnail-image {
	opacity: 1 !important;
}

.swiper-vertical>.swiper-wrapper {
    max-width: 90px;
}

/* Price */
body.benmartin-product .benmartin-pdp-price,
body.benmartin-product .bm-center-price {
	margin: 0 0 14px !important;
}

body.benmartin-product .benmartin-pdp-price .price,
body.benmartin-product .bm-center-price .price {
	font-size: 28px !important;
	font-weight: 700 !important;
	color: var(--benmartin-black) !important;
	margin: 0 !important;
	line-height: 1.15 !important;
}

body.benmartin-product .benmartin-pdp-price .price del,
body.benmartin-product .bm-center-price .price del {
	font-size: 16px;
	font-weight: 400;
	opacity: 0.65;
}

body.benmartin-product .benmartin-pdp-tax-note {
	margin: 4px 0 0 !important;
	font-size: 12px;
	color: var(--benmartin-muted);
}

.benmartin-pdp-value-props {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	margin: 14px 0 18px !important;
}

.benmartin-pdp-value-props__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 0;
	padding: 12px 8px;
	border: 1px solid var(--benmartin-line);
	border-radius: 6px;
	box-sizing: border-box;
	text-align: center;
}

.benmartin-pdp-value-props__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--benmartin-black);
	flex-shrink: 0;
}

.benmartin-pdp-value-props__icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

.benmartin-pdp-value-props__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--benmartin-black);
}

/* Short description */
body.benmartin-product .woocommerce-product-details__short-description {
	font-size: 14px;
	line-height: 1.6;
	color: var(--benmartin-ink);
	margin: 0 0 18px !important;
}

/* Variations */
body.benmartin-product .bm-variation-row {
	margin: 0 0 18px !important;
}

body.benmartin-product .bm-variation-row .label {
	display: flex;
	gap: 6px;
	align-items: baseline;
	margin-bottom: 10px;
}

body.benmartin-product .bm-variation-row .label label {
	font-size: 13px !important;
	font-weight: 700 !important;
	margin: 0 !important;
}

body.benmartin-product .woo-selected-variation-item-name {
	font-size: 13px;
	font-weight: 500;
}

body.benmartin-product .woo-variation-swatches .image-variable-items-wrapper,
body.benmartin-product .button-variable-items-wrapper {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
}

body.benmartin-product .woo-variation-swatches .image-variable-item {
	width: 48px !important;
	height: 60px !important;
	border-radius: 2px !important;
	border: 1px solid var(--benmartin-line) !important;
	box-shadow: none !important;
	overflow: hidden;
	padding: 0 !important;
	background: transparent !important;
}

body.benmartin-product .woo-variation-swatches .image-variable-item.selected,
body.benmartin-product .woo-variation-swatches .image-variable-item:hover {
	border-color: var(--benmartin-black) !important;
	box-shadow: 0 0 0 1px var(--benmartin-black) !important;
}

body.benmartin-product .button-variable-item {
    min-width: 44px !important;
    height: 32px !important;
    padding: 0 10px !important;
    border: 1px solid var(--benmartin-line) !important;
    border-radius: 6px !important;
    background: var(--benmartin-white) !important;
    color: var(--benmartin-black) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.woo-variation-swatches .variable-items-wrapper .variable-item.image-variable-item:not(.radio-variable-item), body.single-product .variable-item.image-variable-item .variable-item-contents {
	width: 60px !important;
	height: 80px !important;
}

body.benmartin-product .button-variable-item.selected,
body.benmartin-product .button-variable-item:hover {
	border-color: var(--benmartin-black) !important;
	box-shadow: 0 0 0 1px var(--benmartin-black) !important;
}

body.benmartin-product .bm-product-center .bm-variations-size {
	margin: 0 0 8px;
	padding-bottom: 0;
}

/* Keep size choices above the mobile bottom bar so taps reach the buttons. */
@media (max-width: 999.98px) {
	body.single-product.bm-has-mobile-sticky-nav .bm-variation-row,
	body.single-product.bm-has-mobile-sticky-nav .bm-size-chart-link-wrap,
	body.single-product.bm-has-mobile-sticky-nav .bm-product-buybox {
		position: relative;
		z-index: 100000;
	}
}

.bm-size-chart-link-wrap {
	margin: 0 0 16px;
	padding: 0 0 14px;
}

.bm-size-chart-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--benmartin-ink);
	text-decoration: none;
}

.bm-size-chart-link:hover {
	color: var(--benmartin-black);
	text-decoration: none;
}

.bm-size-chart-link__icon {
	display: block;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

/* Buy box actions — qty left, ATC right (override Blocksy ct-cart-actions 100% width) */
body.benmartin-product .benmartin-pdp-actions .cart,
body.benmartin-product .bm-product-buybox .ct-cart-actions,
body.benmartin-product .bm-product-buybox .single_variation_wrap .woocommerce-variation-add-to-cart,
body.benmartin-product .single_variation_wrap .woocommerce-variation-add-to-cart,
body.benmartin-product form.cart:not(.variations_form),
body.benmartin-product form.variations_form .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 10px 12px !important;
	width: 100% !important;
	margin: 0 !important;
}

body.benmartin-product .bm-product-buybox .ct-cart-actions > *,
body.benmartin-product .woocommerce-variation-add-to-cart > * {
	width: auto !important;
	max-width: none !important;
}

body.benmartin-product .bm-product-buybox .ct-cart-actions > .quantity,
body.benmartin-product .woocommerce-variation-add-to-cart > .quantity,
body.benmartin-product form.cart:not(.variations_form) > .quantity {
	order: 1 !important;
	flex: 0 0 auto !important;
	width: auto !important;
	float: none !important;
	clear: none !important;
}

body.benmartin-product .bm-product-buybox .ct-cart-actions > .single_add_to_cart_button,
body.benmartin-product .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
body.benmartin-product form.cart:not(.variations_form) > .single_add_to_cart_button {
	order: 2 !important;
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 140px !important;
	float: none !important;
	clear: none !important;
}

body.benmartin-product .bm-product-buybox .ct-cart-actions > .benmartin-buy-now,
body.benmartin-product .woocommerce-variation-add-to-cart > .benmartin-buy-now,
body.benmartin-product form.cart:not(.variations_form) > .benmartin-buy-now {
	order: 3 !important;
	flex: 0 0 100% !important;
	width: 100% !important;
}

/* Quantity stepper */
body.benmartin-product .bm-qty-label {
	display: none !important;
}

body.benmartin-product .bm-product-buybox .quantity,
body.benmartin-product .quantity.bm-qty-stepper {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	width: auto !important;
	flex: 0 0 auto !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--benmartin-black) !important;
	background: var(--benmartin-white) !important;
	gap: 0 !important;
	order: 1 !important;
}

body.benmartin-product .bm-qty-stepper__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	min-width: 40px !important;
	flex: 0 0 40px !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #0a0a0a !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	box-shadow: none !important;
}

body.benmartin-product .bm-qty-stepper__minus {
	border-right: 1px solid var(--benmartin-line) !important;
}

body.benmartin-product .bm-qty-stepper__plus {
	border-left: 1px solid var(--benmartin-line) !important;
}

body.benmartin-product .bm-qty-stepper__input,
body.benmartin-product .quantity.bm-qty-stepper input.qty {
	flex: 0 0 48px !important;
	width: 48px !important;
	min-width: 48px !important;
	max-width: 48px !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	background: var(--benmartin-white) !important;
	-moz-appearance: textfield;
}

body.benmartin-product .bm-qty-stepper__input::-webkit-outer-spin-button,
body.benmartin-product .bm-qty-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* CTA buttons */
body.benmartin-product .bm-product-buybox .single_add_to_cart_button,
body.benmartin-product .single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 1 1 auto !important;
	min-width: 140px !important;
	min-height: 48px !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border-radius: 0 !important;
	background: var(--benmartin-btn-bg) !important;
	border: 1px solid var(--benmartin-btn-bg) !important;
	color: var(--benmartin-btn-text) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
	cursor: pointer;
	float: none !important;
	order: 2 !important;
}

body.benmartin-product .bm-product-buybox .single_add_to_cart_button:hover,
body.benmartin-product .single_add_to_cart_button:hover {
	background: var(--benmartin-btn-bg-hover) !important;
	border-color: var(--benmartin-btn-bg-hover) !important;
	color: var(--benmartin-btn-text) !important;
	opacity: 1 !important;
}

body.benmartin-product .benmartin-buy-now {
	display: block !important;
	flex: 0 0 100% !important;
	width: 100% !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 14px 16px !important;
	border-radius: 0 !important;
	background: var(--benmartin-white) !important;
	border: 1px solid var(--benmartin-black) !important;
	color: var(--benmartin-black) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
	cursor: pointer;
	order: 3 !important;
}

.rtwpvg-thumbnail-prev-arrow {
    max-width: 90px;
}

body.benmartin-product .benmartin-buy-now:hover {
	background: var(--benmartin-surface) !important;
}

body.benmartin-product .benmartin-pdp-wishlist,
body.benmartin-product .bm-buybox-wishlist {
	margin-top: 10px;
	text-align: left;
}

body.benmartin-product .bm-wishlist-button,
body.benmartin-product .benmartin-pdp-wishlist a,
body.benmartin-product .yith-wcwl-add-to-wishlist a {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--benmartin-ink) !important;
	text-decoration: none !important;
}

body.benmartin-product .woocommerce-variation-price {
	display: none !important;
}

/* Below-fold sections */
.benmartin-pdp-below {
	display: block;
	width: 100%;
	clear: both;
}

/* Product details accordion */
.benmartin-pdp-details {
    margin: 15px 0 36px;
}

.benmartin-pdp-details__accordion {
	border-top: 1px solid var(--benmartin-line);
}

.benmartin-pdp-details__panel {
	border-bottom: 1px solid var(--benmartin-line);
}

.benmartin-pdp-details__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--benmartin-black);
}

.benmartin-pdp-details__toggle:hover {
	color: var(--benmartin-ink);
}

.benmartin-pdp-details__toggle-label {
	flex: 1;
	padding-right: 12px;
}

.benmartin-pdp-details__chevron {
	flex-shrink: 0;
	color: var(--benmartin-black);
	transition: transform 0.2s ease;
}

.benmartin-pdp-details__panel.is-open .benmartin-pdp-details__chevron {
	transform: rotate(180deg);
}

.benmartin-pdp-details__content {
	padding: 0 0 18px;
}

.benmartin-pdp-details__content[hidden] {
	display: none !important;
}

.benmartin-pdp-spec-table__row {
	display: grid;
	grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
	gap: 16px 24px;
	padding: 10px 0;
	border-top: 1px solid var(--benmartin-line);
}

.benmartin-pdp-spec-table__row:first-child {
	border-top: 0;
	padding-top: 0;
}

.benmartin-pdp-spec-table__label,
.benmartin-pdp-spec-table__value {
	font-size: 14px;
	line-height: 1.5;
	color: var(--benmartin-ink);
}

.benmartin-pdp-spec-table__label {
	font-weight: 600;
	color: var(--benmartin-black);
}

.benmartin-pdp-spec-table__value {
	word-break: break-word;
}

.benmartin-pdp-about__list {
	margin: 0;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--benmartin-ink);
}

.benmartin-pdp-about__list li {
	margin-bottom: 8px;
}

.benmartin-pdp-about__list li:last-child {
	margin-bottom: 0;
}

.benmartin-pdp-about__content {
	font-size: 14px;
	line-height: 1.75;
	color: var(--benmartin-ink);
}

.benmartin-pdp-about__content p:last-child {
	margin-bottom: 0;
}

/* Tabs */
.benmartin-pdp-tabs {
    margin: 45px 0 0;
    width: 100%;
}

.benmartin-pdp-tabs__nav {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0 28px;
	border-bottom: 1px solid var(--benmartin-line) !important;
	margin: 0 0 28px !important;
	padding: 0 !important;
}

.benmartin-pdp-tabs__tab {
	appearance: none;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--benmartin-muted) !important;
	padding: 0 0 14px !important;
	margin: 0 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	cursor: pointer;
	box-shadow: none !important;
	position: relative;
}

.benmartin-pdp-tabs__tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: transparent;
}

.benmartin-pdp-tabs__tab:hover {
	color: var(--benmartin-black) !important;
}

.benmartin-pdp-tabs__tab.is-active {
	color: var(--benmartin-black) !important;
}

.benmartin-pdp-tabs__tab.is-active::after {
	background: var(--benmartin-black);
}

.benmartin-pdp-tabs__panel[hidden] {
	display: none !important;
}

.benmartin-pdp-details-heading {
	font-size: clamp(16px, 1.6vw, 20px);
	font-weight: 600;
	margin: 0 0 14px;
}

.benmartin-pdp-highlights {
	margin: 0 0 28px;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--benmartin-ink);
}

.benmartin-pdp-description {
	font-size: 14px;
	line-height: 1.75;
	color: var(--benmartin-ink);
	margin-bottom: 24px;
}

.benmartin-pdp-description p {
	margin: 0 0 1em;
}

.benmartin-pdp-description .bm-aplus-content {
	margin: 28px 0 0;
}

.benmartin-pdp-description .bm-aplus-content__image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 16px;
}

.benmartin-pdp-description .bm-aplus-content__image:last-child {
	margin-bottom: 0;
}

.benmartin-pdp-quickinfo__line {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.5;
}

.benmartin-pdp-attr-stack__item {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.45;
}

.benmartin-pdp-attr-stack__item strong {
	display: block;
	margin-bottom: 2px;
}

.benmartin-pdp-sizeguide__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.benmartin-pdp-sizeguide__table th,
.benmartin-pdp-sizeguide__table td {
	border: 1px solid var(--benmartin-line);
	padding: 10px 12px;
	text-align: center;
}

.benmartin-pdp-sizeguide__table th {
	background: var(--benmartin-surface);
	font-weight: 700;
}

.benmartin-pdp-shipping ul {
	margin: 0 0 20px;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.7;
}

/* Reviews tab */
.benmartin-pdp-reviews {
	margin: 0;
	padding: 0;
}

.benmartin-pdp-reviews .woocommerce-Reviews-title,
.benmartin-pdp-reviews #reviews #comments h2 {
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 20px;
}

body.benmartin-product .benmartin-pdp-reviews .woocommerce-Reviews,
body.benmartin-product #customerReviews .woocommerce-Reviews {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 32px;
}

body.benmartin-product .benmartin-pdp-reviews #review_form #respond .form-submit input,
body.benmartin-product #review_form #respond .form-submit input {
	background: var(--benmartin-btn-bg) !important;
	border: 0 !important;
	color: var(--benmartin-btn-text) !important;
	border-radius: 0 !important;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 700;
	min-height: 44px;
	padding: 0 22px;
}

body.benmartin-product .benmartin-pdp-reviews #review_form #respond .form-submit input:hover,
body.benmartin-product #review_form #respond .form-submit input:hover {
	background: var(--benmartin-btn-bg-hover) !important;
	color: var(--benmartin-btn-text) !important;
	opacity: 1 !important;
}

/* Legacy standalone reviews section (if ever re-enabled) */
body.benmartin-product #customerReviews:not(.benmartin-pdp-reviews),
body.benmartin-product .bm-section-reviews {
	margin: 36px 0;
	padding-top: 28px;
	border-top: 1px solid var(--benmartin-line);
	width: 100%;
	clear: both;
}

body.benmartin-product #customerReviews:not(.benmartin-pdp-reviews) h2,
body.benmartin-product .bm-section-title {
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 20px;
}

/* Related products — inherit shell is-width-constrained rail */
body.benmartin-product .benmartin-product-shell .related.products {
	width: 100%;
}

body.benmartin-product section.related.products {
	display: block !important;
	width: 100% !important;
	margin: 40px 0 0 !important;
	padding: 36px 0 8px !important;
	border-top: 1px solid var(--benmartin-line) !important;
	clear: both !important;
}

body.benmartin-product .related.products > h2 {
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	margin: 0 0 22px !important;
}

body.benmartin-product .related.products ul.products li.product .woocommerce-loop-product__title,
body.benmartin-product .related.products ul.products li.product h2.woocommerce-loop-product__title,
body.benmartin-product .related.products ul.products li.product .woocommerce-loop-product__title a,
body.benmartin-product .related.products ul.products li.product a.woocommerce-loop-product__link {
	font-family: var(--benmartin-sans) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	margin: 0 0 4px !important;
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 3 !important;
	line-clamp: 3 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: normal !important;
	word-break: break-word;
	max-height: calc(1.35em * 3);
	min-height: calc(1.35em * 3);
}

body.benmartin-product .related.products ul.products li.product .woocommerce-loop-product__title a,
body.benmartin-product .related.products ul.products li.product a.woocommerce-loop-product__link {
	min-height: 0;
	margin: 0 !important;
}

body.benmartin-product .related.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 24px 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.benmartin-product .related.products ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

/* Responsive — value props / related only */
@media (max-width: 991px) {
	body.bm-title-above-gallery .product-entry-wrapper > .bm-product-title-slot:not(:empty) {
		order: -2;
	}

	body.bm-title-above-gallery .product-entry-wrapper > .woocommerce-product-gallery,
	body.bm-title-above-gallery .product-entry-wrapper > [class*="product-gallery"] {
		order: -1;
	}

	body.benmartin-product .related.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.benmartin-product .benmartin-pdp-reviews .woocommerce-Reviews,
	body.benmartin-product #customerReviews .woocommerce-Reviews {
		grid-template-columns: 1fr !important;
	}

	.benmartin-pdp-spec-table__row {
		grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
		gap: 12px 16px;
	}
}

@media (max-width: 768px) {
	body.bm-title-above-gallery .product-entry-wrapper {
		flex-wrap: wrap !important;
	}

	body.benmartin-product .woocommerce-product-gallery,
	body.benmartin-product .flexy-pills {
		max-width: 100% !important;
		overflow: hidden;
	}

	.benmartin-pdp-tabs {
		margin: 15px 0 0;
	}
}

@media (max-width: 720px) {
	body.benmartin-product .related.products ul.products {
		grid-template-columns: 1fr !important;
	}

	body.benmartin-product .related.products ul.products li.product .woocommerce-loop-product__title,
	body.benmartin-product .related.products ul.products li.product h2.woocommerce-loop-product__title {
		font-size: 13px !important;
	}

	.benmartin-pdp-spec-table__row {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 12px 0;
	}
}

@media (max-width: 576px) {
    .benmartin-pdp-value-props {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	.woocommerce-product-gallery {
		margin-bottom: 0;
	}
	.benmartin-pdp-tabs__tab {
		padding: 0 0 6px !important;
		width: 100%;
		text-align: left;
		margin-bottom: 20px !important;
	}
}