/**
 * Single Product Page — Design System v4
 *
 * Matches Figma "Product Page" layout:
 *   Gallery · Product Info · Rating+Meta Row · Price+Savings · Buy Box
 *   Micro-Actions · Trust Row · Store Card · Tabs · More from Store
 *
 * Palette: indigo (#4f46e5) · page bg (#f2f3f8) · card (#ffffff)
 */

/* ─────────────────────────────────────────────────────────────────
 *  DESIGN TOKENS
 * ───────────────────────────────────────────────────────────────── */
.erm-product-page {
	--erm-accent:       #4f46e5;
	--erm-accent-d:     #4338ca;
	--erm-accent-faint: #eef2ff;
	--erm-accent-ring:  rgba(99, 102, 241, .15);
	--erm-ok:           #059669;
	--erm-warn:         #d97706;
	--erm-err:          #dc2626;

	--erm-t1:  #0f172a;
	--erm-t2:  #334155;
	--erm-t3:  #64748b;
	--erm-t4:  #94a3b8;

	--erm-border:  #e2e8f0;
	--erm-surface: #f8fafc;
	--erm-white:   #ffffff;

	--erm-r2xl: 1.5rem;
	--erm-rxl:  1rem;
	--erm-rlg:  .75rem;
	--erm-rmd:  .5rem;
	--erm-rpill: 9999px;

	--erm-shadow: 0 1px 4px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
	--erm-border-card: 1px solid rgba(0,0,0,.055);
}

/* ─────────────────────────────────────────────────────────────────
 *  PAGE CHROME
 * ───────────────────────────────────────────────────────────────── */
.single-product .site-main,
.single-product .content-area,
.single-product #primary,
.single-product #content {
	background: #f2f3f8;
}

/* Kadence breadcrumb row above product content (removed for this design). */
.single-product .product-title.product-above {
	display: none !important;
}

.erm-product-page {
	max-width: 1280px;
	margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────
 *  HERO CARD
 * ───────────────────────────────────────────────────────────────── */
.erm-hero {
	background: var(--erm-white);
	border-radius: var(--erm-r2xl);
	box-shadow: var(--erm-shadow);
	border: var(--erm-border-card);
	padding: clamp(1.25rem, 4vw, 2.5rem);
	margin-bottom: 1rem;
}

.erm-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 900px) {
	.erm-hero__grid {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
		align-items: flex-start;
	}
	/* Keep gallery column from growing with content; viewport has its own max-height */
	.erm-hero__gallery {
		min-height: 0;
	}
}

@media (min-width: 1200px) {
	.erm-hero__grid {
		grid-template-columns: 1.15fr 1fr;
		gap: 3.5rem;
	}
}

/* ─────────────────────────────────────────────────────────────────
 *  GALLERY COLUMN
 * ───────────────────────────────────────────────────────────────── */
.erm-hero__gallery {
	display: flex;
	flex-direction: column;
	gap: .625rem;
	min-width: 0;
}

/* Outer wrapper — position context for overlaid controls */
.erm-gallery-wrap {
	position: relative;
}

/* WC sets opacity:0 then JS sets it to 1 after Flexslider init.
   Keep opacity untouched; WC controls it after init. */
.erm-gallery-wrap .woocommerce-product-gallery {
	width: 100%;
}

/* Keep slide wrapper neutral; Flexslider relies on this element's sizing logic. */
.erm-gallery-wrap .woocommerce-product-gallery__wrapper {
	margin: 0;
	padding: 0;
}

/* Main image viewport — fills remaining space.
   Flexslider sets overflow:hidden and height via JS; we add min-height as safety.
   On desktop, cap height so gallery never dominates and summary stays above the fold. */
.erm-gallery-wrap .flex-viewport {
	min-width: 0;
	min-height: 320px;
	border-radius: var(--erm-rxl);
	background: var(--erm-surface);
	overflow: hidden;
}

@media (min-width: 900px) {
	.erm-gallery-wrap .flex-viewport {
		min-height: clamp(380px, 52vh, 560px);
		max-height: min(76vh, 680px);
	}
	.erm-gallery-wrap .woocommerce-product-gallery__image img {
		max-height: min(76vh, 680px);
	}
}

/* Slide images — height: auto lets Flexslider measure correctly */
.erm-gallery-wrap .woocommerce-product-gallery__image a {
	display: block;
	overflow: hidden;
	background: var(--erm-surface);
	border-radius: var(--erm-rxl);
}

.erm-gallery-wrap .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform .5s ease;
}

.erm-gallery-wrap .woocommerce-product-gallery__image a:hover img {
	transform: scale(1.04);
}

/* Thumbnail strip — horizontal, below main image */
.erm-gallery-wrap ol.flex-control-thumbs {
	display: flex !important;
	flex-direction: row;
	gap: .5rem;
	width: 100%;
	margin: .625rem 0 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.erm-gallery-wrap ol.flex-control-thumbs::-webkit-scrollbar { display: none; }

.erm-gallery-wrap ol.flex-control-thumbs li {
	margin: 0;
	padding: 0;
	width: 72px;
	flex: 0 0 72px;
}

.erm-gallery-wrap ol.flex-control-thumbs li img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--erm-rlg);
	border: 2px solid var(--erm-border);
	opacity: .72;
	transition: opacity .15s, border-color .15s, box-shadow .15s;
	cursor: pointer;
}

.erm-gallery-wrap ol.flex-control-thumbs li img:hover { opacity: 1; border-color: var(--erm-accent); }

.erm-gallery-wrap ol.flex-control-thumbs li img.flex-active {
	opacity: 1;
	border-color: var(--erm-accent);
	box-shadow: 0 0 0 3px var(--erm-accent-ring);
}

/* Mobile/tablet (< 900px): keep thumbs compact */
@media (max-width: 899px) {
	.erm-gallery-wrap ol.flex-control-thumbs {
		overflow-x: auto;
	}

	.erm-gallery-wrap ol.flex-control-thumbs li,
	.erm-gallery-wrap ol.flex-control-thumbs li img {
		width: 58px;
		height: 58px;
	}
}

/* Hide the default WC gallery zoom trigger — we use our own buttons */
.erm-gallery-wrap .woocommerce-product-gallery__trigger { display: none !important; }

/* Sale flash */
.erm-gallery-wrap span.onsale {
	z-index: 2;
	top: .75rem;
	left: .75rem;
	border-radius: var(--erm-rlg);
	font-size: .75rem;
	font-weight: 700;
	padding: .25rem .625rem;
	background: var(--erm-accent);
	color: #fff;
	min-height: auto;
	line-height: 1.5;
}

/* ── Gallery action buttons (overlaid top-right of image) ── */
.erm-gallery-controls {
	position: absolute;
	top: .75rem;
	right: .75rem;
	display: flex;
	gap: .375rem;
	z-index: 5;
}

.erm-gallery-btn {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--erm-rpill);
	background: rgba(255, 255, 255, .9);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(0, 0, 0, .08);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #334155 !important;   /* explicit: override any theme button color reset */
	transition: background .15s, color .15s, box-shadow .15s;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
	padding: 0;
	line-height: 1;
}

/* Force SVG strokes to use the button text color — don't rely on currentColor alone */
.erm-gallery-btn svg {
	display: block;
	width: 15px;
	height: 15px;
	stroke: #334155;
	fill: none;
	flex-shrink: 0;
}

.erm-gallery-btn:hover {
	background: var(--erm-white);
	color: var(--erm-accent) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
}

.erm-gallery-btn:hover svg {
	stroke: var(--erm-accent);
}

/* ── Save button below gallery ── */
.erm-gallery-save {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	padding: .4375rem .875rem;
	border: 1px solid var(--erm-border);
	border-radius: var(--erm-rpill);
	background: transparent;
	font-size: .8125rem;
	font-weight: 500;
	color: var(--erm-t3);
	cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
	align-self: flex-start;
}

.erm-gallery-save:hover,
.erm-gallery-save[aria-pressed="true"] {
	border-color: #f43f5e;
	color: #f43f5e;
	background: #fff1f2;
}

.erm-gallery-save[aria-pressed="true"] svg { fill: #f43f5e; }

/* ─────────────────────────────────────────────────────────────────
 *  SUMMARY COLUMN
 * ───────────────────────────────────────────────────────────────── */
.erm-hero__summary {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Strip all WC margins so we control spacing explicitly */
.erm-hero__summary > * { margin: 0; }

/* ── A: Status badges ── */
.erm-badges {
	display: flex;
	align-items: center;
	gap: .375rem;
	flex-wrap: wrap;
	margin-bottom: .75rem;
}

.erm-badge {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	padding: .2rem .65rem;
	border-radius: var(--erm-rpill);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.6;
}

.erm-badge--ok   { background: #dcfce7; color: #15803d; }
.erm-badge--warn { background: #fef9c3; color: #92400e; }
.erm-badge--out  { background: #fee2e2; color: #991b1b; }
.erm-badge--sale { background: var(--erm-accent-faint); color: var(--erm-accent); }

/* Green pulsing dot inside the "In Stock" badge */
.erm-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #15803d;
	flex-shrink: 0;
	animation: erm-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes erm-dot-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: .4; }
}

/* Delivery / marketing badges */
.erm-dbadge {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .03em;
	padding: .2rem .625rem;
	border-radius: var(--erm-rpill);
	display: inline-flex;
	align-items: center;
	gap: .3rem;
}
.erm-dbadge--bestseller { background: #fff7ed; color: #c2410c; }
.erm-dbadge--ships      { background: #fffbeb; color: #92400e; }
.erm-dbadge--free       { background: #f0fdf4; color: #15803d; }
.erm-dbadge--pickup     { background: #eff6ff; color: #1d4ed8; }
.erm-dbadge--generic    { background: var(--erm-surface); color: var(--erm-t2); border: 1px solid var(--erm-border); }

/* ── B: Title ── */
.erm-hero__summary .product_title {
	font-size: clamp(1.625rem, 2.5vw, 2.125rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.025em;
	color: var(--erm-t1);
	margin-bottom: .625rem;
}

/* ── C: Rating + meta row ── */
.erm-rating-row {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
	margin-bottom: 0;
}

/* Star rating element (direct child of row, not inside .woocommerce-product-rating) */
.erm-rating-row > .star-rating {
	font-size: .875rem;
	color: #f59e0b;
	flex-shrink: 0;
}

/* Numeric average (e.g. "4.8") */
.erm-rating-num {
	font-size: .875rem;
	font-weight: 700;
	color: var(--erm-t1);
	flex-shrink: 0;
}

/* Review count link ("(2,847 reviews)") */
.erm-rating-row .woocommerce-review-link {
	font-size: .8125rem;
	color: var(--erm-t3);
	text-decoration: none;
	flex-shrink: 0;
}

.erm-rating-row .woocommerce-review-link:hover { color: var(--erm-accent); }

/* Also keep legacy selector for compatibility */
.erm-rating-row .woocommerce-product-rating {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	flex-shrink: 0;
}
.erm-rating-row .star-rating { font-size: .875rem; color: #f59e0b; }

.erm-rmeta-div {
	font-size: .75rem;
	color: var(--erm-border);
	flex-shrink: 0;
	line-height: 1;
}

.erm-rmeta-sep  { color: var(--erm-t4); font-size: .5rem; flex-shrink: 0; }

.erm-rmeta-item {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	font-size: .8125rem;
	color: var(--erm-t3);
	white-space: nowrap;
}

.erm-rmeta-key { color: var(--erm-t4); font-weight: 500; }
.erm-rmeta-val { color: var(--erm-t2); font-weight: 600; }

.erm-rmeta-link {
	color: var(--erm-accent);
	font-weight: 600;
	text-decoration: none;
}

.erm-rmeta-link:hover { text-decoration: underline; }

/* ── D: Price band ── */
.erm-price-band {
	border-top: 1px solid var(--erm-border);
	border-bottom: 1px solid var(--erm-border);
	padding: 1.125rem 0;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.erm-hero__summary .price {
	display: flex;
	align-items: baseline;
	gap: .75rem;
	flex-wrap: wrap;
	line-height: 1;
}

/* Current / sale price */
.erm-hero__summary .price > .woocommerce-Price-amount,
.erm-hero__summary .price ins .woocommerce-Price-amount {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: var(--erm-t1);
	letter-spacing: -.04em;
	font-feature-settings: 'tnum';
	text-decoration: none;
}

.erm-hero__summary .price ins .woocommerce-Price-amount {
	color: #b91c1c;
}

/* Old/regular price */
.erm-hero__summary .price del {
	display: inline-flex;
	align-items: baseline;
}

.erm-hero__summary .price del .woocommerce-Price-amount {
	font-size: 1.125rem;
	font-weight: 400;
	color: var(--erm-t4);
	letter-spacing: -.02em;
}

/* Inline sale percentage — de-emphasized so sale price stays primary */
.erm-price-pct {
	display: inline;
	font-size: .75rem;
	font-weight: 400;
	color: var(--erm-t4);
	letter-spacing: .02em;
	vertical-align: baseline;
}

/* Savings line */
.erm-savings {
	display: flex;
	align-items: center;
	gap: .375rem;
	font-size: .875rem;
	color: #d97706;
	margin-top: .625rem;
	font-weight: 500;
}

.erm-savings svg { flex-shrink: 0; }
.erm-savings strong { font-weight: 700; }

/* ── E: Short description ── */
.erm-s-desc { margin-bottom: 1.125rem; }

/* ── G: Stock count line (below ATC button) ── */
.erm-stock-line {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .8125rem;
	font-weight: 600;
	padding: .5rem 0 .125rem;
	margin-bottom: .25rem;
}

.erm-stock-line svg { flex-shrink: 0; }

.erm-stock-line--ok   { color: var(--erm-ok); }
.erm-stock-line--low  { color: var(--erm-warn); }
.erm-stock-line--out  { color: var(--erm-err); }

.erm-hero__summary .woocommerce-product-details__short-description {
	font-size: .9375rem;
	color: var(--erm-t2);
	line-height: 1.7;
}

.erm-hero__summary .woocommerce-product-details__short-description p { margin: 0; }

/* ─────────────────────────────────────────────────────────────────
 *  BUY BOX
 * ───────────────────────────────────────────────────────────────── */
.erm-s-buybox {
	background: var(--erm-surface);
	border: 1px solid var(--erm-border);
	border-radius: var(--erm-rxl);
	padding: 1.125rem;
	margin-bottom: .625rem;
}

/* Stock text inside buybox */
.erm-s-buybox .stock {
	font-size: .875rem;
	font-weight: 600;
	color: var(--erm-ok);
	margin-bottom: .875rem;
	display: flex;
	align-items: center;
	gap: .375rem;
}

.erm-s-buybox .stock::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--erm-ok);
	flex-shrink: 0;
}

.erm-s-buybox .stock.out-of-stock { color: var(--erm-err); }
.erm-s-buybox .stock.out-of-stock::before { background: var(--erm-err); }

/* ── Variation table ── */
.erm-s-buybox .variations {
	border: none;
	margin: 0 0 .875rem;
	padding: 0;
	width: 100%;
}

.erm-s-buybox .variations tr {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-bottom: .875rem;
}

.erm-s-buybox .variations tr:last-child { margin-bottom: 0; }

.erm-s-buybox .variations td.label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0;
}

.erm-s-buybox .variations td.label label {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--erm-t3);
}

/* Selected value displayed next to label (injected by JS for color attrs) */
.erm-swatch-val {
	font-size: .75rem;
	font-weight: 600;
	color: var(--erm-accent);
	background: var(--erm-accent-faint);
	border: 1px solid #c7d2fe;
	border-radius: var(--erm-rpill);
	padding: .15rem .55rem;
	line-height: 1.4;
}

.erm-s-buybox .variations td.value { padding: 0; }

/* Hidden native select (JS replaces with swatches) */
.erm-s-buybox .variations td.value select.erm-select-hidden {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}

/* Fallback: style native select if JS hasn't run */
.erm-s-buybox .variations td.value select:not(.erm-select-hidden) {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .75rem center;
	background-color: var(--erm-white);
	padding: .625rem 2.25rem .625rem .875rem;
	border: 1px solid var(--erm-border);
	border-radius: var(--erm-rlg);
	font-size: .875rem;
	color: var(--erm-t1);
	width: 100%;
	transition: border-color .15s, box-shadow .15s;
	cursor: pointer;
}

.erm-s-buybox .variations td.value select:not(.erm-select-hidden):focus {
	outline: none;
	border-color: var(--erm-accent);
	box-shadow: 0 0 0 3px var(--erm-accent-ring);
}

.erm-s-buybox .reset_variations {
	display: inline-block;
	font-size: .75rem;
	color: var(--erm-t4);
	text-decoration: none;
	margin-top: .25rem;
	transition: color .15s;
}

.erm-s-buybox .reset_variations:hover { color: var(--erm-accent); }

/* Variation availability/price update area */
.erm-s-buybox .woocommerce-variation-description p {
	font-size: .8125rem;
	color: var(--erm-t3);
	margin: .375rem 0 0;
}

.erm-s-buybox .woocommerce-variation-price {
	display: none; /* we render price in the price band above; keep hidden */
}

/* ── COLOR SWATCHES ── */
.erm-swatches {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.erm-swatches--color { gap: .5rem; }
.erm-swatches--pill  { gap: .5rem; }

/* Color chips (dot + label) so selected value is obvious */
.erm-swatch--color-chip {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .35rem .65rem;
	border: 1.5px solid var(--erm-border);
	border-radius: var(--erm-rpill);
	background: var(--erm-white);
	font-size: .8125rem;
	font-weight: 600;
	color: var(--erm-t2);
	cursor: pointer;
	outline: none;
	transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
	flex-shrink: 0;
}

.erm-swatch--color-chip:hover {
	border-color: var(--erm-accent);
	color: var(--erm-t1);
	background: var(--erm-accent-faint);
}

.erm-swatch--color-chip.erm-active {
	border-color: var(--erm-accent);
	color: var(--erm-accent);
	background: var(--erm-accent-faint);
	box-shadow: 0 0 0 2px var(--erm-accent-ring);
}

.erm-swatch--color-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--sw-color, #e5e7eb);
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, .25);
	flex-shrink: 0;
}

.erm-swatch--color-name {
	line-height: 1.2;
	white-space: nowrap;
}

/* Pill swatch (connectivity, size, etc.) */
.erm-swatch--pill {
	padding: .375rem .875rem;
	border: 1.5px solid var(--erm-border);
	border-radius: var(--erm-rpill);
	background: var(--erm-white);
	font-size: .875rem;
	font-weight: 500;
	color: var(--erm-t2);
	cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
	line-height: 1.4;
	outline: none;
}

.erm-swatch--pill:hover {
	border-color: var(--erm-t2);
	color: var(--erm-t1);
}

.erm-swatch--pill.erm-active {
	border-color: var(--erm-t1);
	background: var(--erm-t1);
	color: var(--erm-white);
}

/* ── Qty + ATC + Buy Now row ── */
.erm-s-buybox form.cart,
.erm-s-buybox .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: stretch;
	gap: .5rem;
	flex-wrap: wrap;
	margin-top: .875rem;
}

/* Qty wrapper */
.erm-s-buybox .quantity {
	display: flex;
	align-items: center;
	background: var(--erm-white);
	border: 1px solid var(--erm-border);
	border-radius: var(--erm-rlg);
	overflow: hidden;
	flex-shrink: 0;
	height: 3rem;
}

/* +/− buttons (injected by JS) */
.erm-qty-btn {
	width: 2.375rem;
	height: 100%;
	border: none;
	background: transparent;
	color: var(--erm-t3);
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, color .15s;
	flex-shrink: 0;
}

.erm-qty-btn:hover:not(:disabled) {
	background: var(--erm-accent-faint);
	color: var(--erm-accent);
}

.erm-qty-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Qty input */
.erm-s-buybox .quantity .qty {
	width: 2.25rem;
	text-align: center;
	border: none;
	background: transparent;
	font-size: .9375rem;
	font-weight: 700;
	color: var(--erm-t1);
	font-feature-settings: 'tnum';
	padding: 0;
	-moz-appearance: textfield;
}

.erm-s-buybox .quantity .qty::-webkit-inner-spin-button,
.erm-s-buybox .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Add to cart button */
.erm-s-buybox .single_add_to_cart_button {
	flex: 1;
	min-width: 0;
	height: 3rem;
	padding: 0 1.25rem;
	border-radius: var(--erm-rlg) !important;
	background: var(--erm-accent) !important;
	color: #fff !important;
	font-size: .9375rem !important;
	font-weight: 600 !important;
	letter-spacing: -.01em !important;
	border: none !important;
	box-shadow: 0 2px 8px rgba(79, 70, 229, .3) !important;
	transition: background .2s, box-shadow .2s, transform .1s !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	text-decoration: none;
	white-space: nowrap;
}

.erm-s-buybox .single_add_to_cart_button::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
	flex-shrink: 0;
}

.erm-s-buybox .single_add_to_cart_button:hover {
	background: var(--erm-accent-d) !important;
	box-shadow: 0 4px 16px rgba(79, 70, 229, .35) !important;
	transform: translateY(-1px);
}

.erm-s-buybox .single_add_to_cart_button:active { transform: translateY(0); }

/* Buy Now button */
.erm-buy-now-btn {
	height: 3rem;
	padding: 0 1.125rem;
	border: 1.5px solid var(--erm-border);
	border-radius: var(--erm-rlg);
	background: var(--erm-white);
	color: var(--erm-t1);
	font-size: .9375rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: border-color .2s, color .2s, background .2s;
}

.erm-buy-now-btn:hover {
	border-color: var(--erm-accent);
	color: var(--erm-accent);
	background: var(--erm-accent-faint);
}

.erm-contact-vendor-wrap {
	margin-bottom: 0.55rem;
}

.erm-contact-vendor-btn {
	width: 100%;
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	border: 1.5px solid var(--erm-border);
	border-radius: var(--erm-rlg);
	background: var(--erm-white);
	color: var(--erm-t1);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	transition: border-color .2s, color .2s, background .2s;
}

.erm-contact-vendor-btn:hover,
.erm-contact-vendor-btn:focus-visible {
	border-color: var(--erm-accent);
	color: var(--erm-accent);
	background: var(--erm-accent-faint);
}

.erm-contact-vendor-btn--secondary {
	margin-top: 0.5rem;
	background: var(--erm-accent-faint);
	border-color: rgba(37, 99, 235, 0.35);
}

.erm-intl-product-callout {
	margin: 0.65rem 0 0.35rem;
	padding: 0.75rem 1rem;
	border-radius: var(--erm-rlg);
	border: 1px solid rgba(37, 99, 235, 0.18);
	background: #f8fafc;
}

.erm-intl-product-callout__message {
	font-size: 0.8125rem;
	line-height: 1.5;
	font-weight: 600;
	color: var(--erm-t1);
	margin: 0 0 0.5rem;
}

.erm-intl-product-callout__cta {
	width: 100%;
	margin-top: 0.15rem;
}

@media (max-width: 899px) {
	.erm-s-buybox form.cart,
	.erm-s-buybox .woocommerce-variation-add-to-cart {
		flex-direction: column;
		align-items: stretch;
	}
	.erm-s-buybox .quantity { width: 100%; justify-content: center; }
	.erm-s-buybox .single_add_to_cart_button,
	.erm-buy-now-btn { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────────
 *  MICRO-ACTIONS ROW
 * ───────────────────────────────────────────────────────────────── */
.erm-micro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: .875rem;
	flex-wrap: wrap;
}

.erm-micro__left { display: flex; align-items: center; gap: .5rem; }

.erm-micro-btn {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	padding: .375rem .75rem;
	border: 1px solid var(--erm-border);
	border-radius: var(--erm-rpill);
	background: transparent;
	font-size: .8125rem;
	font-weight: 500;
	color: var(--erm-t3);
	cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
}

.erm-micro-btn:hover {
	border-color: var(--erm-accent);
	color: var(--erm-accent);
	background: var(--erm-accent-faint);
}

/* Stock urgency ("Only 12 left in stock") */
.erm-urgency {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--erm-err);
}

.erm-urgency__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--erm-err);
	animation: erm-pulse 2s ease-in-out infinite;
	flex-shrink: 0;
}

@keyframes erm-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .6; transform: scale(.85); }
}

/* ─────────────────────────────────────────────────────────────────
 *  TRUST CARDS ROW
 * ───────────────────────────────────────────────────────────────── */
.erm-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr));
	gap: .5rem;
	margin-bottom: .875rem;
}

@media (max-width: 899px) {
	.erm-trust-card > div { min-width: 0; }
}

.erm-trust-card {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	padding: .75rem;
	background: var(--erm-surface);
	border: 1px solid var(--erm-border);
	border-radius: var(--erm-rxl);
}

.erm-trust-icon {
	color: var(--erm-accent);
	flex-shrink: 0;
	margin-top: .1rem;
}

.erm-trust-title {
	font-size: .75rem;
	font-weight: 700;
	color: var(--erm-t1);
	margin: 0 0 .1rem;
	line-height: 1.3;
}

.erm-trust-sub {
	font-size: .6875rem;
	color: var(--erm-t4);
	margin: 0;
	line-height: 1.3;
}

/* ─────────────────────────────────────────────────────────────────
 *  STORE CARD
 * ───────────────────────────────────────────────────────────────── */
.erm-store-card {
	display: flex;
	align-items: center;
	gap: .875rem;
	padding: .875rem 1rem;
	background: var(--erm-white);
	border: 1px solid var(--erm-border);
	border-left: 3px solid var(--erm-accent);
	border-radius: var(--erm-rxl);
	margin-bottom: 0;
}

.erm-store-card__logo {
	width: 3rem;
	height: 3rem;
	border-radius: var(--erm-rlg);
	background: linear-gradient(135deg, #818cf8, var(--erm-accent));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.erm-store-card__logo img { width: 100%; height: 100%; object-fit: cover; }

.erm-store-card__initials {
	font-size: .875rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.02em;
}

.erm-store-card__body { flex: 1; min-width: 0; }

.erm-store-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
}

.erm-store-card__info { flex: 1; min-width: 0; }

.erm-store-card__name {
	font-size: .9375rem;
	font-weight: 700;
	color: var(--erm-t1);
	margin: 0 0 .2rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.erm-store-card__meta {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
	margin-bottom: .25rem;
}

.erm-store-card__rating {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--erm-t2);
}

.erm-store-card__rating svg { color: #f59e0b; }
.erm-store-card__rating--empty svg { color: var(--erm-t4); }
.erm-store-card__rating--empty > span:first-of-type { color: var(--erm-t4); }
.erm-store-card__rcount { color: var(--erm-t4); font-weight: 400; }
.erm-store-card__dot { color: var(--erm-border); font-size: .625rem; }

.erm-store-card__location {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
	font-size: .8125rem;
	color: var(--erm-t3);
}

.erm-store-card__stats {
	display: flex;
	align-items: center;
	gap: .375rem;
	font-size: .75rem;
	color: var(--erm-t4);
	flex-wrap: wrap;
}

.erm-store-card__verified {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
	color: var(--erm-ok);
	font-weight: 600;
}

.erm-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.erm-store-card__cta {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .4rem .875rem;
	border: 1px solid var(--erm-border);
	border-radius: var(--erm-rpill);
	background: var(--erm-white);
	font-size: .8125rem;
	font-weight: 600;
	color: var(--erm-t2);
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: border-color .15s, color .15s, background .15s;
}

.erm-store-card__cta:hover {
	border-color: var(--erm-accent);
	color: var(--erm-accent);
	background: var(--erm-accent-faint);
}

/* ─────────────────────────────────────────────────────────────────
 *  PRODUCT META (SKU · categories)
 * ───────────────────────────────────────────────────────────────── */
.erm-hero__summary .product_meta {
	font-size: .75rem;
	color: var(--erm-t4);
	margin-top: .75rem;
	padding-top: .75rem;
	border-top: 1px solid var(--erm-border);
}

.erm-hero__summary .product_meta > span { display: block; margin-bottom: .2rem; }

.erm-hero__summary .product_meta a { color: var(--erm-accent); text-decoration: none; }
.erm-hero__summary .product_meta a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────────
 *  CATEGORY STRIP
 * ───────────────────────────────────────────────────────────────── */
.erm-cat-strip {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
	padding: .875rem clamp(1.25rem, 4vw, 2rem);
	background: var(--erm-white);
	border-radius: var(--erm-rxl);
	border: var(--erm-border-card);
	margin-bottom: 1rem;
}

.erm-cat-strip__label {
	font-size: .6875rem;
	font-weight: 700;
	color: var(--erm-t4);
	text-transform: uppercase;
	letter-spacing: .07em;
	white-space: nowrap;
	flex-shrink: 0;
}

.erm-cat-strip__pill {
	display: inline-flex;
	align-items: center;
	font-size: .8125rem;
	font-weight: 500;
	color: var(--erm-t2);
	background: var(--erm-surface);
	border: 1px solid var(--erm-border);
	padding: .25rem .75rem;
	border-radius: var(--erm-rpill);
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}

.erm-cat-strip__pill:hover {
	background: var(--erm-accent-faint);
	border-color: #a5b4fc;
	color: var(--erm-accent);
}

/* ─────────────────────────────────────────────────────────────────
 *  TABS
 * ───────────────────────────────────────────────────────────────── */
.erm-product-page .woocommerce-tabs {
	background: var(--erm-white);
	border-radius: var(--erm-r2xl);
	box-shadow: var(--erm-shadow);
	border: var(--erm-border-card);
	overflow: hidden;
	margin-bottom: 1rem;
}

.erm-product-page .woocommerce-tabs ul.tabs {
	display: flex;
	margin: 0;
	padding: 0 clamp(1.5rem, 4vw, 2.5rem);
	list-style: none;
	background: var(--erm-surface);
	border-bottom: 1px solid var(--erm-border);
	overflow-x: auto;
	scrollbar-width: none;
	gap: 0;
}

.erm-product-page .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }

/* Obliterate WC tab decorations unconditionally */
.erm-product-page .woocommerce-tabs ul.tabs::before,
.erm-product-page .woocommerce-tabs ul.tabs::after,
.erm-product-page .woocommerce-tabs ul.tabs li,
.erm-product-page .woocommerce-tabs ul.tabs li::before,
.erm-product-page .woocommerce-tabs ul.tabs li::after {
	border: none !important;
	border-radius: 0 !important;
	background: none !important;
	content: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.erm-product-page .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: .9375rem 1.125rem;
	font-size: .875rem;
	font-weight: 500;
	color: var(--erm-t3);
	text-decoration: none;
	border-bottom: 2.5px solid transparent;
	margin-bottom: -1px;
	white-space: nowrap;
	transition: color .15s, border-color .15s;
	background: none !important;
}

.erm-product-page .woocommerce-tabs ul.tabs li a:hover { color: var(--erm-t1); }

.erm-product-page .woocommerce-tabs ul.tabs li.active a {
	color: var(--erm-accent) !important;
	border-bottom-color: var(--erm-accent) !important;
	font-weight: 600 !important;
}

/* Tab content panel — !important to override Kadence/WC theme styles */
.erm-product-page .woocommerce-tabs .panel {
	padding: 1.5rem clamp(1.5rem, 4vw, 2.5rem) 2rem !important;
	margin: 0 !important;
}

.erm-product-page .woocommerce-tabs .panel h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--erm-t1);
	letter-spacing: -.02em;
	margin: 0 0 1rem;
}

.erm-product-page .woocommerce-tabs .panel h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--erm-t1);
	margin: 1.5rem 0 .875rem;
}

.erm-product-page .woocommerce-tabs .panel p,
.erm-product-page .woocommerce-tabs .panel li {
	font-size: .9375rem;
	color: var(--erm-t2);
	line-height: 1.75;
}

/* Mobile/tablet (< 900px): keep all tabs reachable (including Reviews). */
@media (max-width: 899px) {
	.erm-product-page .woocommerce-tabs {
		/* Parent hidden overflow can clip wrapped tab rows on mobile/tablet. */
		overflow: visible;
	}

	.erm-product-page .woocommerce-tabs ul.tabs {
		padding-left: .75rem;
		padding-right: .75rem;
		display: flex;
		flex-wrap: wrap;
		overflow: visible;
		row-gap: 0;
	}

	.erm-product-page .woocommerce-tabs ul.tabs li {
		/* Force each tab visible; wrap to next line when needed. */
		flex: 1 1 44% !important;
		float: none !important;
		min-width: 9.25rem;
	}

	.erm-product-page .woocommerce-tabs ul.tabs li a {
		padding: .75rem .5rem;
		font-size: .8rem;
		white-space: normal;
		line-height: 1.25;
		text-align: center;
	}

	.erm-product-page .woocommerce-tabs .panel {
		padding: 1.25rem 1rem 1.5rem !important;
	}

	/* Prevent right-edge clipping in mobile summary blocks. */
	.erm-hero__summary,
	.erm-s-buybox,
	.erm-store-card,
	.erm-store-card__body,
	.erm-store-card__info {
		min-width: 0;
	}

	.erm-store-card__top {
		flex-wrap: wrap;
	}

	.erm-store-card__cta {
		width: 100%;
		justify-content: center;
	}
}

/* Specs / attributes table */
.erm-product-page .shop_attributes {
	border-collapse: collapse;
	width: 100%;
}

.erm-product-page .shop_attributes th,
.erm-product-page .shop_attributes td {
	font-size: .875rem;
	padding: .625rem .875rem;
	border: 1px solid var(--erm-border);
	text-align: left;
}

.erm-product-page .shop_attributes th {
	width: 30%;
	background: var(--erm-surface);
	font-weight: 600;
	color: var(--erm-t2);
}

/* Review form */
.erm-product-page #review_form input[type="text"],
.erm-product-page #review_form input[type="email"],
.erm-product-page #review_form textarea {
	border: 1px solid var(--erm-border);
	border-radius: var(--erm-rlg);
	padding: .625rem .875rem;
	font-size: .875rem;
	width: 100%;
	transition: border-color .15s, box-shadow .15s;
}

.erm-product-page #review_form input:focus,
.erm-product-page #review_form textarea:focus {
	outline: none;
	border-color: var(--erm-accent);
	box-shadow: 0 0 0 3px var(--erm-accent-ring);
}

.erm-product-page #review_form .submit {
	background: var(--erm-accent);
	color: #fff;
	border: none;
	border-radius: var(--erm-rlg);
	padding: .625rem 1.5rem;
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}

.erm-product-page #review_form .submit:hover { background: var(--erm-accent-d); }

/* ─────────────────────────────────────────────────────────────────
 *  MORE FROM STORE
 * ───────────────────────────────────────────────────────────────── */
.erm-more-store {
	background: var(--erm-white);
	border-radius: var(--erm-r2xl);
	box-shadow: var(--erm-shadow);
	border: var(--erm-border-card);
	padding: clamp(1.25rem, 4vw, 2.5rem);
	margin-bottom: 1rem;
}

.erm-more-store__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.erm-more-store__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--erm-t1);
	margin: 0 0 .25rem;
	letter-spacing: -.02em;
}

.erm-more-store__sub { font-size: .875rem; color: var(--erm-t4); margin: 0; }

.erm-more-store__link-desktop {
	display: none;
	align-items: center;
	gap: .375rem;
	font-size: .875rem;
	font-weight: 600;
	color: var(--erm-accent);
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color .15s;
}

@media (min-width: 640px) { .erm-more-store__link-desktop { display: flex; } }
.erm-more-store__link-desktop:hover { color: var(--erm-accent-d); }

/* Product card grid */
.erm-more-store__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (min-width: 640px) {
	.erm-more-store__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Product card */
.erm-pcard {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--erm-border);
	border-radius: var(--erm-rxl);
	overflow: hidden;
	background: var(--erm-white);
	transition: box-shadow .25s, transform .25s;
}

.erm-pcard:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
}

.erm-pcard__img-wrap {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--erm-surface);
	overflow: hidden;
	position: relative;
}

.erm-pcard__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.erm-pcard:hover .erm-pcard__img-wrap img { transform: scale(1.06); }

.erm-pcard__badge {
	position: absolute;
	top: .625rem;
	left: .625rem;
	font-size: .625rem;
	font-weight: 800;
	letter-spacing: .04em;
	padding: .2rem .5rem;
	border-radius: var(--erm-rpill);
	line-height: 1.5;
}

.erm-pcard__badge--sale { background: #fef2f2; color: #b91c1c; }

.erm-pcard__body {
	display: flex;
	flex-direction: column;
	padding: .875rem;
	flex: 1;
	gap: .25rem;
}

.erm-pcard__cat {
	font-size: .6875rem;
	font-weight: 700;
	color: var(--erm-t4);
	text-transform: uppercase;
	letter-spacing: .06em;
	margin: 0;
}

.erm-pcard__name {
	font-size: .875rem;
	font-weight: 600;
	color: var(--erm-t1);
	line-height: 1.3;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.erm-pcard__name a { color: inherit; text-decoration: none; }
.erm-pcard__name a:hover { color: var(--erm-accent); }

.erm-pcard__rating {
	display: flex;
	align-items: center;
	gap: .25rem;
	font-size: .75rem;
	color: var(--erm-t3);
}

.erm-pcard__star { color: #f59e0b; }
.erm-pcard__rcount { color: var(--erm-t4); }

/* Price row: current · strikethrough · discount % */
.erm-pcard__priceline {
	display: flex;
	align-items: baseline;
	gap: .375rem;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: .375rem;
}

.erm-pcard__price-cur {
	font-size: 1rem;
	font-weight: 800;
	color: var(--erm-t1);
	letter-spacing: -.02em;
	font-feature-settings: 'tnum';
}

/* Sale price in red */
.erm-pcard__priceline:has(.erm-pcard__price-was) .erm-pcard__price-cur {
	color: #b91c1c;
}

/* Regular price when no sale — same size/weight as sale price */
.erm-pcard__priceline:not(:has(.erm-pcard__price-was)) .erm-pcard__price-cur {
	font-size: 1.125rem;
	font-weight: 700;
}

.erm-pcard__price-was {
	font-size: .75rem;
	color: var(--erm-t4);
	text-decoration: line-through;
	font-weight: 400;
}

.erm-pcard__price-pct {
	font-size: .6875rem;
	font-weight: 400;
	color: var(--erm-t4);
}

/* ATC button in cards */
.erm-pcard__atc {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: .375rem !important;
	width: 100% !important;
	padding: .5rem !important;
	border-radius: var(--erm-rlg) !important;
	font-size: .8125rem !important;
	font-weight: 600 !important;
	background: var(--erm-surface) !important;
	color: var(--erm-t1) !important;
	border: 1px solid var(--erm-border) !important;
	text-decoration: none !important;
	transition: background .2s, color .2s, border-color .2s !important;
	cursor: pointer;
	margin-top: .625rem;
}

.erm-pcard__atc:hover {
	background: var(--erm-accent) !important;
	color: #fff !important;
	border-color: var(--erm-accent) !important;
}

/* "View all" mobile link */
.erm-more-store__link-mobile {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	margin-top: 1.25rem;
	padding: .8125rem;
	border: 1px solid var(--erm-border);
	border-radius: var(--erm-rlg);
	font-size: .875rem;
	font-weight: 600;
	color: var(--erm-t2);
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}

@media (min-width: 640px) { .erm-more-store__link-mobile { display: none; } }

.erm-more-store__link-mobile:hover {
	background: var(--erm-surface);
	border-color: var(--erm-accent);
	color: var(--erm-accent);
}

/* ─────────────────────────────────────────────────────────────────
 *  SHARE TOAST
 * ───────────────────────────────────────────────────────────────── */
.erm-share-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%) translateY(1rem);
	background: var(--erm-t1);
	color: #fff;
	font-size: .875rem;
	font-weight: 500;
	padding: .625rem 1.25rem;
	border-radius: var(--erm-rpill);
	opacity: 0;
	transition: opacity .2s, transform .2s;
	z-index: 9999;
	pointer-events: none;
}

.erm-share-toast--show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────────────────────────
 *  WC NOTICES
 * ───────────────────────────────────────────────────────────────── */
.erm-product-page .woocommerce-message,
.erm-product-page .woocommerce-info,
.erm-product-page .woocommerce-error {
	border-radius: var(--erm-rlg);
	font-size: .9rem;
}

/* ═════════════════════════════════════════════════════════════════
 *  TAB PANELS — Description / Shipping / Policies / Reviews
 *  Figma-faithful implementations
 * ═════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
 *  1. DESCRIPTION TAB
 * ───────────────────────────────────────────────────────────────── */

.erm-tab-desc {
	padding: 1.5rem 0 1rem;
}

.erm-tab-desc__heading {
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: var(--erm-t1) !important;
	margin: 0 0 1rem !important;
	letter-spacing: -.01em;
}

.erm-tab-desc__body {
	color: var(--erm-t2);
	font-size: .9375rem;
	line-height: 1.7;
}

.erm-tab-desc__body p { margin: 0 0 1em; }
.erm-tab-desc__body p:last-child { margin-bottom: 0; }

.erm-tab-desc__empty {
	color: var(--erm-t4);
	font-size: .9375rem;
}

/* Key Features */
.erm-tab-desc__features {
	margin-top: 2rem;
}

.erm-tab-desc__features-heading {
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: var(--erm-t1) !important;
	margin: 0 0 1rem !important;
}

.erm-features-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .625rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 600px) {
	.erm-features-grid { grid-template-columns: 1fr; }
}

.erm-feature-item {
	display: flex;
	align-items: flex-start;
	gap: .625rem;
	background: #f8f9fc;
	border-radius: .625rem;
	padding: .625rem .875rem;
	font-size: .875rem;
	color: var(--erm-t2);
	line-height: 1.45;
}

.erm-feature-check {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ede9fe;
	color: var(--erm-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: -.1rem;
}

.erm-feature-check svg {
	stroke: var(--erm-accent);
	fill: none;
}

/* ─────────────────────────────────────────────────────────────────
 *  2. SHIPPING TAB
 * ───────────────────────────────────────────────────────────────── */

.erm-tab-shipping {
	padding: 1.5rem 0 1rem;
}

.erm-tab-shipping__heading {
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: var(--erm-t1) !important;
	margin: 0 0 1.5rem !important;
}

/* 2-column grid of method cards */
.erm-shipping-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

@media (max-width: 540px) {
	.erm-shipping-grid { grid-template-columns: 1fr; }
}

.erm-shipping-method {
	display: flex;
	gap: .875rem;
	align-items: flex-start;
	background: #f8f9fc;
	border: 1.5px solid #f1f1f7;
	border-radius: var(--erm-rlg);
	padding: 1.125rem 1.25rem;
	transition: border-color .15s;
}

.erm-shipping-method:hover {
	border-color: var(--erm-border);
}

/* Featured (Most popular) card gets accent tint */
.erm-shipping-method--featured {
	background: #ede9fe;
	border-color: #c4b5fd;
}

.erm-shipping-method__icon {
	font-size: 1.75rem;
	line-height: 1;
	flex-shrink: 0;
	margin-top: .1rem;
}

.erm-shipping-method__info {
	flex: 1;
	min-width: 0;
}

.erm-shipping-method__name {
	font-size: .9375rem;
	font-weight: 700;
	color: var(--erm-t1);
	margin: 0 0 .25rem;
}

.erm-shipping-method__sub {
	font-size: .8125rem;
	color: var(--erm-t3);
	margin: 0 0 .15rem;
}

.erm-shipping-method__note {
	font-size: .8125rem;
	color: var(--erm-t4);
	margin: 0 0 .5rem;
}

.erm-shipping-method__price {
	font-size: .9375rem;
	font-weight: 700;
	color: var(--erm-t1);
	margin: .5rem 0 0;
}

.erm-shipping-method__price--accent {
	color: var(--erm-accent);
}

/* No methods fallback */
.erm-tab-shipping__no-methods {
	color: var(--erm-t3);
	font-size: .9rem;
	margin: 0 0 1.5rem;
}

/* International shipping inquiry (checkout still CY/GR only) */
.erm-intl-shipping-callout {
	margin: 0 0 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: var(--erm-rlg);
	border: 1px solid rgba(37, 99, 235, 0.2);
	background: #f8fafc;
}

.erm-intl-shipping-callout__message {
	font-size: .875rem;
	line-height: 1.55;
	font-weight: 600;
	color: var(--erm-t1);
	margin: 0 0 .65rem;
}

.erm-intl-shipping-callout__cta {
	display: inline-flex;
	margin-top: .25rem;
}

/* Important note card (yellow) */
.erm-shipping-note {
	display: flex;
	gap: .875rem;
	align-items: flex-start;
	background: #fffbeb;
	border: 1.5px solid #fde68a;
	border-radius: var(--erm-rlg);
	padding: 1.125rem 1.25rem;
}

.erm-shipping-note__icon {
	font-size: 1.25rem;
	line-height: 1;
	flex-shrink: 0;
	margin-top: .1rem;
}

.erm-shipping-note__body {
	flex: 1;
	font-size: .875rem;
	color: #92400e;
	line-height: 1.6;
}

/* Title line — block; inline <strong> inside the body paragraph stays inline */
.erm-shipping-note__body .erm-shipping-note__title {
	font-weight: 700;
	margin: 0 0 .3rem;
	color: #78350f;
}

.erm-shipping-note__body strong { font-weight: 700; /* keep inline */ }

.erm-shipping-note__body p { margin: 0; }

/* ─────────────────────────────────────────────────────────────────
 *  3. REVIEWS TAB
 * ───────────────────────────────────────────────────────────────── */

.erm-tab-reviews {
	padding: 1.5rem 0 1rem;
}

/* Summary + distribution row */
.erm-rev-summary-row {
	display: flex;
	gap: 2.5rem;
	align-items: flex-start;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

/* Left: summary box */
.erm-rev-summary-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .5rem;
	background: #f8f9fc;
	border-radius: var(--erm-rxl);
	padding: 1.5rem 1.75rem;
	min-width: 180px;
	flex-shrink: 0;
}

.erm-rev-summary-avg {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
	color: var(--erm-t1);
	letter-spacing: -.03em;
}

.erm-sum-stars {
	display: flex;
	gap: 2px;
}

.erm-sum-star {
	display: block;
}

.erm-rev-summary-count {
	font-size: .8125rem;
	color: var(--erm-t3);
	line-height: 1;
}

.erm-rev-write-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--erm-accent);
	color: #fff !important;
	font-size: .875rem;
	font-weight: 600;
	padding: .6rem 1.25rem;
	border-radius: var(--erm-rpill);
	text-decoration: none !important;
	margin-top: .25rem;
	transition: opacity .15s;
}

.erm-rev-write-btn:hover { opacity: .88; }

/* Right: distribution bars */
.erm-rev-dist {
	flex: 1;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	justify-content: center;
}

.erm-rev-dist__row {
	display: flex;
	align-items: center;
	gap: .625rem;
}

.erm-rev-dist__label {
	display: flex;
	align-items: center;
	gap: .25rem;
	font-size: .8125rem;
	color: var(--erm-t2);
	width: 28px;
	flex-shrink: 0;
}

.erm-rev-dist__bar-wrap {
	flex: 1;
	background: #e5e7eb;
	border-radius: 99px;
	height: 8px;
	overflow: hidden;
}

.erm-rev-dist__bar {
	height: 100%;
	background: #f59e0b;
	border-radius: 99px;
	transition: width .4s ease;
}

.erm-rev-dist__count {
	font-size: .8125rem;
	color: var(--erm-t3);
	width: 20px;
	text-align: right;
	flex-shrink: 0;
}

/* Filter pills */
.erm-rev-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
}

.erm-rfilter {
	display: inline-flex;
	align-items: center;
	background: transparent;
	border: 1.5px solid var(--erm-border);
	border-radius: var(--erm-rpill);
	font-size: .8125rem;
	font-weight: 500;
	color: var(--erm-t2);
	padding: .4rem .875rem;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
	white-space: nowrap;
}

.erm-rfilter:hover {
	border-color: var(--erm-accent);
	color: var(--erm-accent);
	background: #ede9fe;
}

.erm-rfilter--active {
	background: var(--erm-accent);
	border-color: var(--erm-accent);
	color: #fff;
}

.erm-rfilter--active:hover {
	background: var(--erm-accent);
	color: #fff;
}

/* Review list */
.erm-rev-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Single review card */
.erm-rev-card {
	padding: 1.5rem 0;
	border-bottom: 1px solid #f1f1f7;
}

.erm-rev-card:last-child { border-bottom: 0; }

.erm-rev-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .625rem;
}

.erm-rev-card__left {
	display: flex;
	align-items: center;
	gap: .75rem;
}

/* Coloured avatar circle */
.erm-rev-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .9375rem;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
	letter-spacing: -.02em;
}

.erm-rev-card__meta {
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

.erm-rev-card__author {
	font-size: .9375rem;
	font-weight: 600;
	color: var(--erm-t1);
}

.erm-rev-verified {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-size: .75rem;
	font-weight: 500;
	color: #16a34a;
}

.erm-rev-verified svg {
	stroke: #16a34a;
}

.erm-rev-card__date {
	font-size: .8125rem;
	color: var(--erm-t4);
	white-space: nowrap;
}

/* Stars */
.erm-rev-stars {
	display: flex;
	gap: 2px;
	margin-bottom: .5rem;
}

.erm-rev-star {
	color: #e5e7eb;
}

.erm-rev-star--on {
	color: #f59e0b;
}

/* Review title */
.erm-rev-card__title {
	font-size: .9375rem;
	font-weight: 700;
	color: var(--erm-t1);
	margin: 0 0 .375rem;
}

/* Review body */
.erm-rev-card__body {
	font-size: .875rem;
	color: var(--erm-t2);
	line-height: 1.65;
}

.erm-rev-card__body p { margin: 0 0 .5em; }
.erm-rev-card__body p:last-child { margin-bottom: 0; }

/* Actions row */
.erm-rev-card__actions {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-top: .875rem;
}

.erm-rev-helpful,
.erm-rev-report {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	background: none;
	border: none;
	font-size: .8125rem;
	color: var(--erm-t3);
	cursor: pointer;
	padding: 0;
	transition: color .15s;
}

.erm-rev-helpful:hover { color: var(--erm-t1); }
.erm-rev-helpful svg { stroke: currentColor; }

.erm-rev-report:hover { color: #ef4444; }

/* No reviews state */
.erm-rev-empty {
	color: var(--erm-t3);
	font-size: .9rem;
	margin: 0 0 1.5rem;
}

/* WC form wrapper — hide duplicate list/title WC renders again */
.erm-wc-review-form-wrapper .woocommerce-Reviews-title,
.erm-wc-review-form-wrapper ol.commentlist,
.erm-wc-review-form-wrapper .woocommerce-noreviews {
	display: none !important;
}

.erm-wc-review-form-wrapper #review_form_wrapper {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid #f1f1f7;
}


/* ─────────────────────────────────────────────────────────────────
 *  4. POLICIES TAB
 * ───────────────────────────────────────────────────────────────── */

.erm-tab-policies {
	padding: 1.5rem 0 1rem;
}

.erm-tab-policies__heading {
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: var(--erm-t1) !important;
	margin: 0 0 1.5rem !important;
}

/* Empty state */
.erm-policy-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: .75rem;
	padding: 2.5rem 1rem;
	color: var(--erm-t3);
}

.erm-policy-empty svg {
	opacity: .35;
	stroke: var(--erm-t3);
}

.erm-policy-empty p {
	font-size: .9rem;
	max-width: 36ch;
	margin: 0;
}

.erm-policy-empty strong { color: var(--erm-t2); }

/* Policy section block */
.erm-policy-section {
	margin-bottom: 2rem;
}

.erm-policy-section:last-child { margin-bottom: 0; }

.erm-policy-section__title {
	display: flex !important;
	align-items: center;
	gap: .5rem;
	font-size: .9375rem !important;
	font-weight: 700 !important;
	color: var(--erm-t1) !important;
	margin: 0 0 1rem !important;
}

.erm-policy-section__title svg {
	stroke: var(--erm-accent);
	flex-shrink: 0;
}

.erm-policy-section__lead {
	font-size: .8125rem;
	color: var(--erm-t2);
	line-height: 1.5;
	margin: 0 0 1rem;
}

.erm-policy-body {
	font-size: .875rem;
	color: var(--erm-t2);
	line-height: 1.7;
	background: #f8f9fc;
	border-radius: var(--erm-rlg);
	padding: 1.125rem 1.25rem;
}

.erm-policy-body p { margin: 0 0 .75em; }
.erm-policy-body p:last-child { margin-bottom: 0; }

/* FAQ accordion */
.erm-faq-list {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.erm-faq-item {
	background: #f8f9fc;
	border: 1.5px solid #f1f1f7;
	border-radius: var(--erm-rlg);
	overflow: hidden;
	transition: border-color .15s;
}

.erm-faq-item[open] {
	border-color: #c4b5fd;
}

.erm-faq-item__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .875rem 1.125rem;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--erm-t1);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

/* Remove default marker */
.erm-faq-item__q::-webkit-details-marker { display: none; }
.erm-faq-item__q::marker { display: none; }

.erm-faq-item__q:hover { color: var(--erm-accent); }

.erm-faq-item__chevron {
	flex-shrink: 0;
	stroke: var(--erm-t3);
	transition: transform .2s ease;
}

.erm-faq-item[open] .erm-faq-item__chevron {
	transform: rotate(180deg);
	stroke: var(--erm-accent);
}

.erm-faq-item__a {
	padding: 0 1.125rem 1rem;
	font-size: .875rem;
	color: var(--erm-t2);
	line-height: 1.65;
	border-top: 1px solid #f1f1f7;
	padding-top: .75rem;
}

.erm-faq-item__a p { margin: 0 0 .5em; }
.erm-faq-item__a p:last-child { margin-bottom: 0; }

