/**
 * SAC single product — editorial / gallery-forward PDP.
 * Custom gallery (hero + thumb rail + lightbox) replaces Woo flexslider.
 */

:root {
	--pdp-bg: #f6f1ea;
	--pdp-bg-2: #ece5d9;
	--pdp-dark: #1c1a17;
	--pdp-muted: #5c574f;
	--pdp-muted-soft: #8a847a;
	--pdp-accent: #c45b28;
	--pdp-accent-hover: #a84920;
	--pdp-accent-soft: rgba(196, 91, 40, 0.1);
	--pdp-border: #e0d8cc;
	--pdp-border-soft: rgba(224, 216, 204, 0.6);
	--pdp-teal: #1a5f5f;
	--pdp-gold: #b8956a;
	--pdp-surface: #fdfbf7;
	--pdp-glass: rgba(253, 251, 247, 0.78);
	--pdp-font-heading: "Roboto Slab", serif;
	--pdp-font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--pdp-radius: 20px;
	--pdp-radius-sm: 12px;
	--pdp-radius-xs: 8px;
	--pdp-max: min(1320px, 96vw);
	--pdp-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--pdp-shadow-soft: 0 4px 24px rgba(28, 26, 23, 0.06);
	--pdp-shadow-lift: 0 20px 50px rgba(28, 26, 23, 0.12);
}

/* ============================================================ */
/*  Page shell                                                  */
/* ============================================================ */
.sac-product-modern-page.woocommerce .sac-shop-main--pdp {
	background: var(--pdp-bg);
	background-image:
		radial-gradient(ellipse 110% 60% at 10% 0%, rgba(26, 95, 95, 0.08) 0%, transparent 55%),
		radial-gradient(ellipse 80% 50% at 90% 10%, rgba(196, 91, 40, 0.06) 0%, transparent 55%),
		linear-gradient(180deg, var(--pdp-bg) 0%, var(--pdp-bg-2) 100%);
	/* Top padding clears the fixed ArtisanConnect header (80px mobile / 96px desktop). */
	padding: 112px 0 96px;
	position: relative;
	overflow-x: clip;
}

@media (min-width: 1024px) {
	.sac-product-modern-page.woocommerce .sac-shop-main--pdp {
		padding-top: 128px;
	}
}

/* The <main> wrapper we inject in woocommerce.php — has no styles of its own,
   the gradient/padding lives on .sac-shop-main--pdp inside it. */
.sac-product-modern-page .sac-pdp-shell {
	display: block;
}

/* Mirror Bootstrap's .container widths so the PDP aligns horizontally with
   the header, footer, and every other page on the site. (The markup uses
   its own .sac-pdp-container class rather than .container, so we redeclare
   the breakpoint widths here.) */
.sac-product-modern-page.woocommerce .sac-pdp-container {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

@media (min-width: 576px) {
	.sac-product-modern-page.woocommerce .sac-pdp-container {
		max-width: 540px;
	}
}
@media (min-width: 768px) {
	.sac-product-modern-page.woocommerce .sac-pdp-container {
		max-width: 720px;
	}
}
@media (min-width: 992px) {
	.sac-product-modern-page.woocommerce .sac-pdp-container {
		max-width: 960px;
	}
}
@media (min-width: 1200px) {
	.sac-product-modern-page.woocommerce .sac-pdp-container {
		max-width: 1140px;
	}
}

/* Breadcrumb */
.sac-product-modern-page .sac-pdp__breadcrumb.woocommerce-breadcrumb {
	margin: 0 0 32px;
	padding: 0;
	font-size: 0.8125rem;
	font-family: var(--pdp-font-body);
	color: var(--pdp-muted-soft);
	letter-spacing: 0.02em;
}
.sac-product-modern-page .sac-pdp__breadcrumb a {
	color: var(--pdp-muted);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.25s var(--pdp-ease);
}
.sac-product-modern-page .sac-pdp__breadcrumb a:hover {
	color: var(--pdp-accent);
}

/* ============================================================ */
/*  Standard product grid                                       */
/* ============================================================ */
.sac-product-modern-page .sac-pdp--standard {
	margin: 0;
	border: none;
	box-shadow: none;
	background: transparent;
	position: relative;
	z-index: 1;
}

.sac-product-modern-page .sac-pdp__surface {
	position: absolute;
	inset: -10% -6% auto -6%;
	height: min(600px, 55vh);
	background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(184, 149, 106, 0.13) 0%, transparent 72%);
	pointer-events: none;
	z-index: 0;
}

.sac-product-modern-page .sac-pdp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.9fr);
	gap: clamp(32px, 4vw, 64px);
	align-items: start;
	position: relative;
	z-index: 1;
}

@media (max-width: 991px) {
	.sac-product-modern-page .sac-pdp__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* ============================================================ */
/*  Custom gallery                                              */
/* ============================================================ */
.sac-product-modern-page .sac-pdp__gallery-col {
	position: relative;
	min-width: 0;
}

.sac-gallery {
	position: relative;
}

.sac-gallery__stage {
	position: relative;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

.sac-gallery__hero {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	position: relative;
}

.sac-gallery__hero-img {
	display: block;
	max-width: 100%;
	max-height: min(62vh, 640px);
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity 0.35s var(--pdp-ease), transform 0.5s var(--pdp-ease);
	filter: drop-shadow(0 18px 32px rgba(28, 26, 23, 0.16)) drop-shadow(0 4px 8px rgba(28, 26, 23, 0.08));
}

@media (min-width: 1200px) {
	.sac-gallery__hero-img {
		max-height: min(68vh, 720px);
	}
}

.sac-gallery__hero:hover .sac-gallery__hero-img {
	transform: scale(1.02);
}

.sac-gallery__hero-img.is-loading {
	opacity: 0.3;
}

/* Zoom glyph in corner — appears on hover */
.sac-gallery__zoom {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(28, 26, 23, 0.72);
	color: #fff;
	border-radius: 999px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.25s var(--pdp-ease), transform 0.25s var(--pdp-ease);
	pointer-events: none;
}

.sac-gallery__hero:hover .sac-gallery__zoom,
.sac-gallery__hero:focus-visible .sac-gallery__zoom {
	opacity: 1;
	transform: translateY(0);
}

/* Prev/next nav on hero */
.sac-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	border: 1px solid var(--pdp-border);
	background: rgba(255, 253, 249, 0.92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: var(--pdp-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.25s var(--pdp-ease), background 0.25s var(--pdp-ease), transform 0.2s var(--pdp-ease);
	box-shadow: 0 6px 16px rgba(28, 26, 23, 0.1);
}

.sac-gallery__stage:hover .sac-gallery__nav,
.sac-gallery__nav:focus-visible {
	opacity: 1;
}

.sac-gallery__nav:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.05);
}

.sac-gallery__nav--prev { left: 0; }
.sac-gallery__nav--next { right: 0; }

@media (max-width: 767px) {
	.sac-gallery__nav { opacity: 1; width: 40px; height: 40px; }
}

/* Counter chip */
.sac-gallery__counter {
	position: absolute;
	bottom: 8px;
	right: 0;
	z-index: 3;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(28, 26, 23, 0.7);
	color: #fff;
	font-family: var(--pdp-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* Sale badge (from woocommerce_show_product_sale_flash) */
.sac-product-modern-page .sac-pdp__gallery-col span.onsale {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 4;
	min-height: 0;
	min-width: 0;
	padding: 8px 14px;
	border-radius: 999px;
	font-family: var(--pdp-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--pdp-accent);
	color: #fff;
	line-height: 1.2;
	box-shadow: 0 6px 16px rgba(196, 91, 40, 0.32);
}

/* Thumb rail */
.sac-gallery__thumbs {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.sac-gallery__thumbs::-webkit-scrollbar { height: 4px; }
.sac-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--pdp-border); border-radius: 4px; }

.sac-gallery__thumbs li {
	margin: 0;
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.sac-gallery__thumb {
	display: block;
	width: 76px;
	height: 76px;
	padding: 0;
	margin: 0;
	border: 2px solid transparent;
	border-radius: var(--pdp-radius-sm);
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.25s var(--pdp-ease), transform 0.2s var(--pdp-ease), box-shadow 0.25s var(--pdp-ease);
	opacity: 0.75;
}

.sac-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sac-gallery__thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(28, 26, 23, 0.1);
}

.sac-gallery__thumb.is-active {
	opacity: 1;
	border-color: var(--pdp-accent);
	box-shadow: 0 6px 16px rgba(196, 91, 40, 0.22);
}

.sac-gallery__thumb:focus-visible {
	outline: 2px solid var(--pdp-accent);
	outline-offset: 2px;
}

@media (min-width: 768px) {
	.sac-gallery__thumb { width: 88px; height: 88px; }
}

/* Caption under gallery */
.sac-gallery__caption {
	margin: 16px 4px 0;
	font-family: var(--pdp-font-body);
	font-size: 0.875rem;
	font-style: italic;
	color: var(--pdp-muted);
	line-height: 1.5;
}

/* ============================================================ */
/*  Lightbox                                                    */
/* ============================================================ */
html.sac-lightbox-open { overflow: hidden; }

.sac-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: sacLbFade 0.2s ease-out;
}

@keyframes sacLbFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.sac-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 14, 12, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: zoom-out;
}

.sac-lightbox__figure {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 92vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.sac-lightbox__img {
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transition: opacity 0.3s var(--pdp-ease);
}

.sac-lightbox__img.is-loading {
	opacity: 0.3;
}

.sac-lightbox__caption {
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--pdp-font-body);
	font-size: 0.9375rem;
	font-style: italic;
	text-align: center;
	max-width: 60ch;
	line-height: 1.5;
}

.sac-lightbox__close,
.sac-lightbox__nav {
	position: absolute;
	z-index: 2;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.25s var(--pdp-ease), transform 0.2s var(--pdp-ease), border-color 0.25s var(--pdp-ease);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.sac-lightbox__close { top: 24px; right: 24px; }
.sac-lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.sac-lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

.sac-lightbox__close:hover,
.sac-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.4);
}

.sac-lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.08); }
.sac-lightbox__nav--next:hover { transform: translateY(-50%) scale(1.08); }

.sac-lightbox__counter {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--pdp-font-body);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
}

@media (max-width: 767px) {
	.sac-lightbox__close { top: 14px; right: 14px; width: 40px; height: 40px; }
	.sac-lightbox__nav--prev { left: 10px; }
	.sac-lightbox__nav--next { right: 10px; }
	.sac-lightbox__nav { width: 40px; height: 40px; }
}

/* ============================================================ */
/*  Details column                                              */
/* ============================================================ */
@media (min-width: 992px) {
	.sac-product-modern-page .sac-pdp__detail-col {
		position: sticky;
		top: 24px;
		align-self: start;
	}
}

.sac-product-modern-page .sac-pdp__detail-inner {
	padding: clamp(22px, 2.8vw, 34px);
	border-radius: var(--pdp-radius);
	background: var(--pdp-glass);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--pdp-border-soft);
	box-shadow: var(--pdp-shadow-soft);
	position: relative;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--pdp-muted);
}

.sac-product-modern-page .sac-pdp__detail-inner::after {
	content: "";
	position: absolute;
	top: 0;
	left: 28px;
	right: 28px;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(184, 149, 106, 0.55), transparent);
	pointer-events: none;
}

/* Kicker row */
.sac-product-modern-page .sac-pdp__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin-bottom: 14px;
}

.sac-product-modern-page .sac-pdp__eyebrow {
	font-family: var(--pdp-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pdp-teal);
	margin: 0;
	display: inline-block;
}

.sac-product-modern-page .sac-pdp__eyebrow--link {
	text-decoration: none;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(26, 95, 95, 0.09);
	border: 1px solid rgba(26, 95, 95, 0.18);
	transition: background 0.25s var(--pdp-ease), color 0.25s var(--pdp-ease), transform 0.2s var(--pdp-ease);
}

.sac-product-modern-page .sac-pdp__eyebrow--link:hover {
	background: rgba(26, 95, 95, 0.16);
	color: #134747;
	transform: translateY(-1px);
}

.sac-product-modern-page .sac-pdp__fine-pill {
	font-family: var(--pdp-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pdp-muted);
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(28, 26, 23, 0.05);
	border: 1px solid var(--pdp-border);
}

/* Title */
.sac-product-modern-page .sac-pdp__title {
	font-family: "Roboto Slab", serif;
	font-size: clamp(2.1rem, 4vw, 3rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--pdp-dark);
	margin: 0 0 12px;
	text-wrap: balance;
}

/* Byline */
.sac-product-modern-page .sac-pdp__byline {
	font-family: var(--pdp-font-body);
	font-size: 1.125rem;
	line-height: 1.5;
	margin: 0 0 22px;
	color: var(--pdp-muted);
}

.sac-product-modern-page .sac-pdp__byline-label {
	font-weight: 400;
	color: var(--pdp-muted-soft);
	margin-right: 4px;
	font-style: italic;
}

.sac-product-modern-page .sac-pdp__byline-link {
	color: var(--pdp-dark);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(28, 26, 23, 0.2);
	transition: border-color 0.25s var(--pdp-ease), color 0.25s var(--pdp-ease);
}

.sac-product-modern-page .sac-pdp__byline-link:hover {
	border-bottom-color: var(--pdp-accent);
	color: var(--pdp-accent);
}

/* Specs — plaque style, stacked key/value rows */
.sac-product-modern-page .sac-pdp__meta {
	margin: 0 0 26px;
	padding: 18px 0 20px;
	border-top: 1px solid var(--pdp-border-soft);
	border-bottom: 1px solid var(--pdp-border-soft);
	display: grid;
	gap: 12px;
}

.sac-product-modern-page .sac-pdp__spec {
	display: grid;
	grid-template-columns: 130px 1fr;
	align-items: baseline;
	gap: 14px;
	font-family: var(--pdp-font-body);
	font-size: 1.0625rem;
	line-height: 1.45;
	color: var(--pdp-dark);
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
}

.sac-product-modern-page .sac-pdp__spec-label {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pdp-muted-soft);
	margin: 0;
}

.sac-product-modern-page .sac-pdp__spec-value {
	color: var(--pdp-dark);
	font-weight: 500;
}

/* Summary (price + excerpt + add to cart) */
.sac-product-modern-page .sac-pdp__summary-block {
	padding: 0;
	margin: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	float: none !important;
	width: 100% !important;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.sac-product-modern-page .sac-pdp__summary-block.summary.entry-summary {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Put the stock pill AFTER the cart form regardless of DOM order */
.sac-product-modern-page .sac-pdp__summary-block > .price { order: 1; }
.sac-product-modern-page .sac-pdp__summary-block > .woocommerce-product-details__short-description { order: 2; }
.sac-product-modern-page .sac-pdp__summary-block > form.cart { order: 3; }
.sac-product-modern-page .sac-pdp__summary-block > .stock { order: 4; }
.sac-product-modern-page .sac-pdp__summary-block > .woocommerce-variation-add-to-cart { order: 3; }

.sac-product-modern-page .sac-pdp__summary-block .price,
.sac-product-modern-page .sac-pdp__summary-block p.price,
.sac-product-modern-page .sac-pdp__summary-block span.price {
	font-family: var(--pdp-font-heading) !important;
	font-size: clamp(2rem, 3.2vw, 2.5rem) !important;
	font-weight: 600 !important;
	color: var(--pdp-dark) !important;
	margin: 0 0 18px !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	line-height: 1.15 !important;
	text-align: left !important;
	display: block !important;
}

.sac-product-modern-page .sac-pdp__summary-block .price .woocommerce-Price-amount,
.sac-product-modern-page .sac-pdp__summary-block .price span.amount,
.sac-product-modern-page .sac-pdp__summary-block .price-display span.amount {
	font-family: var(--pdp-font-heading) !important;
	font-size: 1em !important;
	font-weight: 600 !important;
	color: var(--pdp-dark) !important;
}

.sac-product-modern-page .sac-pdp__summary-block .price .woocommerce-Price-currencySymbol {
	color: var(--pdp-gold) !important;
	margin-right: 2px;
	font-weight: 500 !important;
}

.sac-product-modern-page .sac-pdp__summary-block .price ins {
	text-decoration: none;
	background: transparent;
}

.sac-product-modern-page .sac-pdp__summary-block .price del {
	font-size: 0.6em !important;
	color: var(--pdp-muted-soft) !important;
	opacity: 0.9;
	margin-right: 10px;
}

.sac-product-modern-page .sac-pdp__summary-block .woocommerce-product-details__short-description {
	font-family: var(--pdp-font-body);
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--pdp-muted);
	margin-bottom: 28px;
}

.sac-product-modern-page .sac-pdp__summary-block .woocommerce-product-details__short-description p {
	margin-bottom: 12px;
}

.sac-product-modern-page .sac-pdp__summary-block .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

/* Cart form — shared control height so qty + button line up perfectly */
.sac-product-modern-page .sac-pdp__summary-block form.cart {
	--pdp-control-h: 56px;
	margin: 10px 0 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 12px;
	text-align: left !important;
	float: none !important;
	width: 100% !important;
}

.sac-product-modern-page .sac-pdp__summary-block form.cart::before,
.sac-product-modern-page .sac-pdp__summary-block form.cart::after {
	display: none !important;
	content: none !important;
}

.sac-product-modern-page .sac-pdp__summary-block .quantity {
	margin: 0;
	display: flex;
	align-items: stretch;
}

.sac-product-modern-page .sac-pdp__summary-block .quantity input.qty {
	width: 5rem;
	height: var(--pdp-control-h);
	padding: 0 12px;
	border: 1px solid var(--pdp-border);
	border-radius: var(--pdp-radius-sm);
	font-family: var(--pdp-font-body);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1;
	background: #fff;
	color: var(--pdp-dark);
	text-align: center;
	box-sizing: border-box;
	-moz-appearance: textfield;
	transition: border-color 0.2s var(--pdp-ease), box-shadow 0.2s var(--pdp-ease);
}

.sac-product-modern-page .sac-pdp__summary-block .quantity input.qty:focus {
	outline: none;
	border-color: var(--pdp-teal);
	box-shadow: 0 0 0 3px rgba(26, 95, 95, 0.15);
}

.sac-product-modern-page .sac-pdp__summary-block .quantity input.qty::-webkit-outer-spin-button,
.sac-product-modern-page .sac-pdp__summary-block .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sac-product-modern-page .sac-pdp__summary-block button.single_add_to_cart_button,
.sac-product-modern-page .sac-pdp__summary-block .single_add_to_cart_button.button,
.sac-product-modern-page .sac-pdp__summary-block button.button.alt,
.sac-product-modern-page .sac-pdp__summary-block input.button.alt {
	flex: 1 1 auto;
	min-width: 220px;
	max-width: 360px;
	height: var(--pdp-control-h);
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-family: var(--pdp-font-body) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 32px !important;
	border-radius: 999px !important;
	background: var(--pdp-dark) !important;
	background-color: var(--pdp-dark) !important;
	color: #fff !important;
	border: none !important;
	float: none !important;
	box-sizing: border-box !important;
	box-shadow: 0 8px 20px rgba(28, 26, 23, 0.22);
	transition: background 0.25s var(--pdp-ease), transform 0.2s var(--pdp-ease), box-shadow 0.25s var(--pdp-ease) !important;
}

.sac-product-modern-page .sac-pdp__summary-block button.single_add_to_cart_button:hover,
.sac-product-modern-page .sac-pdp__summary-block .single_add_to_cart_button.button:hover {
	background: var(--pdp-accent) !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(196, 91, 40, 0.35) !important;
	color: #fff !important;
}

.sac-product-modern-page .sac-pdp__summary-block .stock {
	font-family: var(--pdp-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin: 16px 0 0 !important;
	padding: 9px 16px;
	border-radius: 999px;
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	width: auto !important;
	float: none !important;
	text-align: left !important;
}

.sac-product-modern-page .sac-pdp__summary-block .stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}

.sac-product-modern-page .sac-pdp__summary-block .stock.in-stock {
	color: var(--pdp-teal);
	background: rgba(26, 95, 95, 0.08);
}

.sac-product-modern-page .sac-pdp__summary-block .stock.out-of-stock {
	color: var(--pdp-accent-hover);
	background: rgba(168, 73, 32, 0.08);
}

.sac-product-modern-page .sac-pdp__summary-block table.variations {
	flex: 0 0 100%;
	width: 100%;
	margin-bottom: 18px;
	font-size: 1rem;
}

.sac-product-modern-page .sac-pdp__summary-block table.variations tr,
.sac-product-modern-page .sac-pdp__summary-block table.variations th,
.sac-product-modern-page .sac-pdp__summary-block table.variations td {
	display: block;
	width: 100%;
	padding: 8px 0;
	text-align: left;
	vertical-align: top;
}

.sac-product-modern-page .sac-pdp__summary-block table.variations td {
	padding-top: 0;
}

.sac-product-modern-page .sac-pdp__summary-block table.variations label {
	display: block;
	font-family: var(--pdp-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pdp-muted-soft);
}

.sac-product-modern-page .sac-pdp__summary-block table.variations select {
	display: block;
	width: min(100%, 420px);
	height: 48px;
	padding: 0 14px;
	border-radius: var(--pdp-radius-sm);
	border: 1px solid var(--pdp-border);
	font-family: var(--pdp-font-body);
	font-size: 1rem;
	color: var(--pdp-dark);
	background: #fff;
}

/* ============================================================ */
/*  Description card (above Other works)                        */
/* ============================================================ */
.sac-product-modern-page .sac-pdp__description {
	margin-top: 64px;
}

.sac-product-modern-page .sac-pdp__description-card {
	position: relative;
	background: var(--pdp-surface);
	border: 1px solid var(--pdp-border);
	border-radius: var(--pdp-radius);
	box-shadow: var(--pdp-shadow-soft);
	padding: clamp(28px, 3.5vw, 56px) clamp(24px, 3.5vw, 64px);
	overflow: hidden;
}

.sac-product-modern-page .sac-pdp__description-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--pdp-teal), var(--pdp-gold), var(--pdp-accent));
}

.sac-product-modern-page .sac-pdp__description-head {
	margin: 0 0 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--pdp-border-soft);
}

.sac-product-modern-page .sac-pdp__description-eyebrow {
	display: inline-block;
	font-family: var(--pdp-font-body);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--pdp-teal);
	margin: 0 0 12px;
}

.sac-product-modern-page .sac-pdp__description-heading {
	font-family: var(--pdp-font-heading);
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--pdp-dark);
	margin: 0;
}

.sac-product-modern-page .sac-pdp__description-body {
	font-family: var(--pdp-font-body);
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--pdp-muted);
}

.sac-product-modern-page .sac-pdp__description-body > *:first-child {
	margin-top: 0;
}

.sac-product-modern-page .sac-pdp__description-body > *:last-child {
	margin-bottom: 0;
}

.sac-product-modern-page .sac-pdp__description-body p {
	margin: 0 0 1.1em;
}

.sac-product-modern-page .sac-pdp__description-body h2,
.sac-product-modern-page .sac-pdp__description-body h3,
.sac-product-modern-page .sac-pdp__description-body h4 {
	font-family: var(--pdp-font-heading);
	color: var(--pdp-dark);
	margin: 1.5em 0 0.5em;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.sac-product-modern-page .sac-pdp__description-body h2 { font-size: 1.5rem; font-weight: 600; }
.sac-product-modern-page .sac-pdp__description-body h3 { font-size: 1.25rem; font-weight: 600; }
.sac-product-modern-page .sac-pdp__description-body h4 { font-size: 1.0625rem; font-weight: 600; }

.sac-product-modern-page .sac-pdp__description-body a {
	color: var(--pdp-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.sac-product-modern-page .sac-pdp__description-body a:hover {
	color: var(--pdp-accent-hover);
}

.sac-product-modern-page .sac-pdp__description-body blockquote {
	margin: 1.4em 0;
	padding: 18px 24px;
	border-left: 3px solid var(--pdp-gold);
	background: rgba(184, 149, 106, 0.08);
	border-radius: 0 var(--pdp-radius-sm) var(--pdp-radius-sm) 0;
	font-family: var(--pdp-font-heading);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--pdp-dark);
	line-height: 1.5;
}

.sac-product-modern-page .sac-pdp__description-body ul,
.sac-product-modern-page .sac-pdp__description-body ol {
	margin: 0 0 1.2em;
	padding-left: 1.35em;
}

.sac-product-modern-page .sac-pdp__description-body li {
	margin-bottom: 0.5em;
}

.sac-product-modern-page .sac-pdp__description-body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--pdp-radius-sm);
	margin: 1em 0;
}

@media (max-width: 640px) {
	.sac-product-modern-page .sac-pdp__description {
		margin-top: 48px;
	}
	.sac-product-modern-page .sac-pdp__description-body {
		font-size: 1.0625rem;
		line-height: 1.7;
	}
}

/* ============================================================ */
/*  Other works by this artist                                  */
/* ============================================================ */
.sac-product-modern-page .sac-pdp__other-works {
	margin-top: 72px;
	padding-top: 48px;
	border-top: 1px solid var(--pdp-border);
	position: relative;
}

.sac-product-modern-page .sac-pdp__other-works-head {
	margin: 0 0 36px;
}

.sac-product-modern-page .sac-pdp__other-works-eyebrow {
	display: inline-block;
	font-family: var(--pdp-font-body);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--pdp-accent);
	margin: 0 0 12px;
}

.sac-product-modern-page .sac-pdp__other-works-title {
	font-family: var(--pdp-font-heading);
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	font-weight: 600;
	color: var(--pdp-dark);
	margin: 0;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.sac-product-modern-page .sac-pdp__other-works-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sac-product-modern-page .sac-pdp__other-works-item {
	margin: 0;
}

.sac-product-modern-page .sac-pdp__other-works-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: var(--pdp-radius);
	overflow: hidden;
	background: var(--pdp-surface);
	border: 1px solid var(--pdp-border);
	box-shadow: 0 4px 14px rgba(28, 26, 23, 0.06);
	transition: box-shadow 0.35s var(--pdp-ease), transform 0.35s var(--pdp-ease), border-color 0.35s var(--pdp-ease);
	height: 100%;
	position: relative;
	isolation: isolate;
}

.sac-product-modern-page .sac-pdp__other-works-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--pdp-teal), var(--pdp-gold), var(--pdp-accent));
	opacity: 0;
	transform: scaleX(0.4);
	transform-origin: left center;
	transition: opacity 0.35s var(--pdp-ease), transform 0.45s var(--pdp-ease);
	z-index: 3;
}

.sac-product-modern-page .sac-pdp__other-works-link:hover {
	box-shadow: var(--pdp-shadow-lift);
	transform: translateY(-6px);
	border-color: rgba(184, 149, 106, 0.5);
}

.sac-product-modern-page .sac-pdp__other-works-link:hover::before {
	opacity: 1;
	transform: scaleX(1);
}

.sac-product-modern-page .sac-pdp__other-works-media {
	display: block;
	aspect-ratio: 4 / 5;
	background: linear-gradient(180deg, #f3efe8 0%, #ebe5da 100%);
	overflow: hidden;
	position: relative;
}

.sac-product-modern-page .sac-pdp__other-works-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s var(--pdp-ease), filter 0.4s var(--pdp-ease);
}

.sac-product-modern-page .sac-pdp__other-works-link:hover .sac-pdp__other-works-media img {
	transform: scale(1.06);
	filter: brightness(0.96);
}

/* Medium chip on the image */
.sac-product-modern-page .sac-pdp__other-works-tag {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	font-family: var(--pdp-font-body);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pdp-dark);
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(253, 251, 247, 0.92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 2px 8px rgba(28, 26, 23, 0.12);
	max-width: calc(100% - 28px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* "View piece" overlay */
.sac-product-modern-page .sac-pdp__other-works-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 16px;
	background: linear-gradient(180deg, transparent 55%, rgba(28, 26, 23, 0.55) 100%);
	opacity: 0;
	transition: opacity 0.35s var(--pdp-ease);
	z-index: 2;
	pointer-events: none;
}

.sac-product-modern-page .sac-pdp__other-works-link:hover .sac-pdp__other-works-overlay {
	opacity: 1;
}

.sac-product-modern-page .sac-pdp__other-works-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--pdp-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(28, 26, 23, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transform: translateY(8px);
	transition: transform 0.35s var(--pdp-ease);
}

.sac-product-modern-page .sac-pdp__other-works-cta svg {
	transition: transform 0.3s var(--pdp-ease);
}

.sac-product-modern-page .sac-pdp__other-works-link:hover .sac-pdp__other-works-cta {
	transform: translateY(0);
}

.sac-product-modern-page .sac-pdp__other-works-link:hover .sac-pdp__other-works-cta svg {
	transform: translateX(3px);
}

/* Text body */
.sac-product-modern-page .sac-pdp__other-works-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 22px;
	flex: 1 1 auto;
}

.sac-product-modern-page .sac-pdp__other-works-caption {
	display: block;
	font-family: var(--pdp-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--pdp-dark);
	letter-spacing: -0.01em;
	margin: 0;
	padding: 0;
	transition: color 0.25s var(--pdp-ease);
}

.sac-product-modern-page .sac-pdp__other-works-link:hover .sac-pdp__other-works-caption {
	color: var(--pdp-accent);
}

.sac-product-modern-page .sac-pdp__other-works-price {
	display: block;
	font-family: var(--pdp-font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--pdp-muted);
	margin-top: auto;
}

.sac-product-modern-page .sac-pdp__other-works-price .woocommerce-Price-amount,
.sac-product-modern-page .sac-pdp__other-works-price span.amount {
	color: var(--pdp-dark) !important;
	font-size: 1em !important;
	font-weight: 600 !important;
}

.sac-product-modern-page .sac-pdp__other-works-price .woocommerce-Price-currencySymbol {
	color: var(--pdp-gold) !important;
	margin-right: 1px;
}

.sac-product-modern-page .sac-pdp__other-works-price del {
	color: var(--pdp-muted-soft);
	margin-right: 8px;
	opacity: 0.8;
}

.sac-product-modern-page .sac-pdp__other-works-price ins {
	text-decoration: none;
	background: transparent;
}

@media (max-width: 640px) {
	.sac-product-modern-page .sac-pdp__other-works-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 20px;
	}
	.sac-product-modern-page .sac-pdp__other-works-body {
		padding: 16px 18px 18px;
	}
	.sac-product-modern-page .sac-pdp__other-works-caption {
		font-size: 1.125rem;
	}
}

/* ============================================================ */
/*  Product tabs                                                */
/* ============================================================ */
.sac-product-modern-page .sac-pdp__below {
	margin-top: 56px;
	clear: both;
}

.sac-product-modern-page .sac-pdp__below .woocommerce-tabs {
	font-family: var(--pdp-font-body);
	background: var(--pdp-surface);
	border: 1px solid var(--pdp-border);
	border-radius: var(--pdp-radius);
	overflow: hidden;
	box-shadow: var(--pdp-shadow-soft);
}

.sac-product-modern-page .sac-pdp__below .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 !important;
	padding: 14px 14px 12px !important;
	list-style: none !important;
	border-bottom: 1px solid var(--pdp-border);
	background: rgba(246, 241, 234, 0.5);
}

.sac-product-modern-page .sac-pdp__below .woocommerce-tabs ul.tabs::before {
	display: none !important;
}

.sac-product-modern-page .sac-pdp__below .woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}

.sac-product-modern-page .sac-pdp__below .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 11px 20px !important;
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	color: var(--pdp-muted) !important;
	text-decoration: none !important;
	border-radius: 999px !important;
	border: 1px solid transparent !important;
	transition: color 0.25s var(--pdp-ease), background 0.25s var(--pdp-ease), border-color 0.25s var(--pdp-ease), box-shadow 0.25s var(--pdp-ease);
}

.sac-product-modern-page .sac-pdp__below .woocommerce-tabs ul.tabs li.active a,
.sac-product-modern-page .sac-pdp__below .woocommerce-tabs ul.tabs li a:hover {
	color: var(--pdp-dark) !important;
	background: #fff !important;
	border-color: var(--pdp-border) !important;
	box-shadow: 0 3px 10px rgba(28, 26, 23, 0.06);
}

.sac-product-modern-page .sac-pdp__below .woocommerce-Tabs-panel {
	padding: clamp(22px, 3vw, 36px) !important;
	margin: 0 !important;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--pdp-muted);
}

.sac-product-modern-page .sac-pdp__below .woocommerce-Tabs-panel p {
	margin-bottom: 1em;
}

.sac-product-modern-page .sac-pdp__below .woocommerce-Tabs-panel h2 {
	font-family: var(--pdp-font-heading);
	font-size: 1.625rem;
	font-weight: 600;
	color: var(--pdp-dark);
	margin-top: 0;
	letter-spacing: -0.01em;
}

/* Testimonials */
.sac-product-modern-page .sac-pdp__below .woocommerce-Tabs-panel .card {
	border: 1px solid var(--pdp-border) !important;
	border-radius: var(--pdp-radius-sm) !important;
	overflow: hidden;
	box-shadow: 0 3px 12px rgba(28, 26, 23, 0.05);
	background: #fff !important;
}

.sac-product-modern-page .sac-pdp__below .woocommerce-Tabs-panel .card .card-title {
	font-family: var(--pdp-font-heading);
	color: var(--pdp-dark);
}

.sac-product-modern-page .sac-pdp__below .woocommerce-Tabs-panel .card-footer {
	background: rgba(246, 241, 234, 0.6) !important;
	border-top: 1px solid var(--pdp-border) !important;
	font-family: var(--pdp-font-body);
}

/* Hide any leftover Woo related products block */
.sac-product-modern-page .sac-pdp__below .related.products {
	display: none;
}

/* ============================================================ */
/*  Artist bio — LAST section                                   */
/* ============================================================ */
.sac-product-modern-page .sac-pdp__bios {
	margin-top: 72px;
	padding: 48px clamp(24px, 3vw, 48px);
	background: var(--pdp-surface);
	border: 1px solid var(--pdp-border);
	border-radius: var(--pdp-radius);
	box-shadow: var(--pdp-shadow-soft);
	position: relative;
	overflow: hidden;
}

.sac-product-modern-page .sac-pdp__bios::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--pdp-teal), var(--pdp-gold), var(--pdp-accent));
}

.sac-product-modern-page .sac-pdp__bios-head {
	margin-bottom: 32px;
	text-align: center;
}

.sac-product-modern-page .sac-pdp__bios-eyebrow {
	font-family: var(--pdp-font-body);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--pdp-gold);
	display: block;
	margin-bottom: 12px;
}

.sac-product-modern-page .sac-pdp__bios-heading {
	font-family: var(--pdp-font-heading);
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	font-weight: 600;
	line-height: 1.1;
	color: var(--pdp-dark);
	margin: 0;
	letter-spacing: -0.02em;
}

.sac-product-modern-page .sac-pdp__bios-list {
	display: grid;
	gap: 24px;
	max-width: 820px;
	margin: 0 auto;
}

.sac-product-modern-page .sac-pdp__bio-card {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.sac-product-modern-page .sac-pdp__bio-card .person_bio {
	margin: 0;
}

.sac-product-modern-page .sac-pdp__bio-card .person_bio .image img {
	width: 120px !important;
	height: 120px !important;
	object-fit: cover;
	box-shadow: 0 6px 18px rgba(28, 26, 23, 0.12);
	border: 3px solid #fff;
}

.sac-product-modern-page .sac-pdp__bio-card .person_bio h5 {
	font-family: var(--pdp-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--pdp-dark);
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}

.sac-product-modern-page .sac-pdp__bio-card .person_bio a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s var(--pdp-ease);
}

.sac-product-modern-page .sac-pdp__bio-card .person_bio a:hover h5 {
	color: var(--pdp-accent);
}

.sac-product-modern-page .sac-pdp__bio-card .person_bio .bio {
	font-family: var(--pdp-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--pdp-muted);
}

.sac-product-modern-page .sac-pdp__bio-card .person_bio .bio p:last-child {
	margin-bottom: 0;
}

/* ============================================================ */
/*  Sedona widgets (cross-sells)                                */
/* ============================================================ */
.sac-product-modern-page .sedona-widget {
	margin-top: 56px;
	padding: 40px 0 0;
	border-top: 1px solid var(--pdp-border);
	font-family: var(--pdp-font-body);
}

.sac-product-modern-page .sedona-widget h4 {
	font-family: var(--pdp-font-heading);
	font-size: 1.5rem;
	margin-bottom: 24px;
	color: var(--pdp-dark);
}

/* ============================================================ */
/*  Workshop / Class PDP — information-forward layout           */
/* ============================================================ */
.sac-product-modern-page .sac-pdp--workshop {
	--pdp-font-heading: "Roboto Slab", serif;
	position: relative;
	z-index: 1;
	margin: 0;
}

/* Alert banner (expired class) */
.sac-product-modern-page .sac-workshop__alert {
	margin: 0 0 28px;
	padding: 14px 20px;
	background: #fff5ec;
	border: 1px solid rgba(196, 91, 40, 0.3);
	border-left: 4px solid var(--pdp-accent);
	border-radius: var(--pdp-radius-sm);
	color: #6f3315;
	font-family: var(--pdp-font-body);
	font-size: 0.95rem;
}

/* ---------- Section rhythm ----------
   All top-level workshop sections get consistent breathing room. Applied
   as padding (instead of margin) on .sac-pdp--workshop > children so the
   space can't margin-collapse and can't be zeroed by a plugin's
   `section { margin: 0 }` rule. Using highly-specific selectors + !important
   as a belt-and-suspenders safeguard. */
body.sac-product-modern-page .sac-pdp.sac-pdp--workshop > .sac-workshop__hero,
body.sac-product-modern-page .sac-pdp.sac-pdp--workshop > .sac-workshop__layout,
body.sac-product-modern-page .sac-pdp.sac-pdp--workshop > .sac-workshop__tabs-section {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: clamp(56px, 6vw, 88px) !important;
	padding-bottom: 0 !important;
}
body.sac-product-modern-page .sac-pdp.sac-pdp--workshop > .sac-workshop__hero {
	padding-top: 0 !important;
}
/* "More with this instructor" opens a fresh content block, so it gets a
   larger top gap than the sections above it, plus a top border for visual
   separation. */
body.sac-product-modern-page .sac-pdp.sac-pdp--workshop > .sac-workshop__related {
	margin-top: clamp(72px, 8vw, 120px) !important;
	margin-bottom: 0 !important;
	padding-top: clamp(32px, 4vw, 56px) !important;
	padding-bottom: 0 !important;
	border-top: 1px solid var(--pdp-border);
}
body.sac-product-modern-page .sac-pdp.sac-pdp--workshop > .sac-workshop__alert {
	margin: 0 0 clamp(24px, 3vw, 36px) 0 !important;
}
/* Bottom breathing room under the whole PDP so the last section doesn't
   crash into the footer / related-products border. */
body.sac-product-modern-page .sac-pdp.sac-pdp--workshop {
	padding-bottom: clamp(40px, 5vw, 72px);
}

/* ---------- Hero ---------- */
.sac-product-modern-page .sac-workshop__hero {
	margin: 0;
	padding-bottom: clamp(24px, 3vw, 32px);
	border-bottom: 1px solid var(--pdp-border);
	position: relative;
}

.sac-product-modern-page .sac-workshop__eyebrow {
	display: inline-block;
	font-family: var(--pdp-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pdp-teal);
	text-decoration: none;
	padding: 6px 14px;
	background: rgba(26, 95, 95, 0.08);
	border-radius: 999px;
	transition: background 0.25s var(--pdp-ease), color 0.25s var(--pdp-ease);
}
.sac-product-modern-page .sac-workshop__eyebrow:hover {
	background: rgba(26, 95, 95, 0.16);
	color: var(--pdp-teal);
}

.sac-product-modern-page .sac-workshop__title {
	font-family: "Roboto Slab", serif;
	font-size: clamp(2rem, 4.4vw, 3rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--pdp-dark);
	margin: 16px 0 10px;
}

.sac-product-modern-page .sac-workshop__byline {
	font-family: var(--pdp-font-body);
	font-size: 1rem;
	color: var(--pdp-muted);
	margin: 0 0 24px;
}
.sac-product-modern-page .sac-workshop__byline-label {
	color: var(--pdp-muted-soft);
	margin-right: 6px;
}
.sac-product-modern-page .sac-workshop__byline a {
	color: var(--pdp-dark);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s var(--pdp-ease), color 0.25s var(--pdp-ease);
}
.sac-product-modern-page .sac-workshop__byline a:hover {
	color: var(--pdp-accent);
	border-bottom-color: var(--pdp-accent);
}

/* Key facts strip — dates / location / tuition */
.sac-product-modern-page .sac-workshop__facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.sac-product-modern-page .sac-workshop__fact {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	background: var(--pdp-surface);
	border: 1px solid var(--pdp-border);
	border-radius: var(--pdp-radius-sm);
	box-shadow: var(--pdp-shadow-soft);
	font-family: var(--pdp-font-body);
}
.sac-product-modern-page .sac-workshop__fact-icon {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(26, 95, 95, 0.1);
	color: var(--pdp-teal);
}
.sac-product-modern-page .sac-workshop__fact-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sac-product-modern-page .sac-workshop__fact-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pdp-muted-soft);
}
.sac-product-modern-page .sac-workshop__fact-value {
	font-size: 1rem;
	font-weight: 600;
	color: var(--pdp-dark);
	line-height: 1.3;
	word-wrap: break-word;
}
.sac-product-modern-page .sac-workshop__fact-value .woocommerce-Price-amount {
	font-family: var(--pdp-font-heading);
	font-size: 1.25rem;
}

/* ---------- Main layout: full-width workshop content ---------- */
.sac-product-modern-page .sac-workshop__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin: 0;
}

@media (max-width: 991px) {
	.sac-product-modern-page .sac-workshop__layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.sac-product-modern-page .sac-workshop__gallery-col {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Media sub-grid: overview first, supporting gallery second. The overview
   gets 70% of the width and the image slider gets 30%. Collapses to a
   single column under 900px. */
.sac-product-modern-page .sac-workshop__media {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(240px, 3fr);
	gap: clamp(28px, 3.5vw, 56px);
	align-items: start;
}
.sac-product-modern-page .sac-workshop__media--no-gallery {
	grid-template-columns: minmax(0, 1fr);
}
.sac-product-modern-page .sac-workshop__media .sac-workshop__gallery {
	order: 2;
}
.sac-product-modern-page .sac-workshop__media .sac-workshop__overview {
	order: 1;
	min-width: 0;
	width: 100%;
	max-width: none;
	flex: 1 1 auto;
}
/* When the overview sits beside the gallery, drop its heading's top margin
   so it aligns with the top of the image frame. */
.sac-product-modern-page .sac-workshop__media .sac-workshop__section-head {
	margin-top: 0;
}

@media (max-width: 900px) {
	.sac-product-modern-page .sac-workshop__media {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

.sac-product-modern-page .sac-workshop__sidebar-col {
	display: none;
}

.sac-product-modern-page .sac-workshop__sidebar {
	background: var(--pdp-surface);
	border: 1px solid var(--pdp-border);
	border-radius: var(--pdp-radius);
	padding: clamp(22px, 3vw, 30px);
	box-shadow: var(--pdp-shadow-lift);
	position: relative;
	overflow: hidden;
}
.sac-product-modern-page .sac-workshop__sidebar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--pdp-teal), var(--pdp-accent));
}
@media (min-width: 992px) {
	.sac-product-modern-page .sac-workshop__sidebar {
		position: sticky;
		top: 112px;
	}
}

/* Gallery size tuned smaller for workshops (info-first, not image-first).
   Use a fixed-aspect stage that clips the hero image, so tall portrait
   photos don't push the thumbnail rail around / overlap each other. */
.sac-product-modern-page .sac-workshop__gallery .sac-gallery__stage {
	aspect-ratio: 4 / 3;
	width: 100%;
	border-radius: var(--pdp-radius);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--pdp-border);
	box-shadow: var(--pdp-shadow-soft);
}
.sac-product-modern-page .sac-workshop__gallery .sac-gallery__hero {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.sac-product-modern-page .sac-workshop__gallery .sac-gallery__hero-img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center center;
	filter: none;
}
.sac-product-modern-page .sac-workshop__gallery .sac-gallery__hero:hover .sac-gallery__hero-img {
	transform: none;
}
.sac-product-modern-page .sac-workshop__gallery .sac-gallery__thumbs {
	margin-top: 14px;
}
.sac-product-modern-page .sac-workshop__gallery .sac-gallery__caption {
	margin-top: 10px;
}

@media (max-width: 767px) {
	.sac-product-modern-page .sac-workshop__gallery .sac-gallery__stage {
		aspect-ratio: 3 / 2;
		max-height: 360px;
	}
}

/* ---------- Enroll panel ---------- */
.sac-product-modern-page .sac-workshop__enroll {
	padding-bottom: 24px;
	border-bottom: 1px solid var(--pdp-border);
	margin-bottom: 24px;
}
.sac-product-modern-page .sac-workshop__enroll-eyebrow {
	display: block;
	font-family: var(--pdp-font-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pdp-muted-soft);
	margin-bottom: 6px;
}
.sac-product-modern-page .sac-workshop__enroll-price {
	font-family: var(--pdp-font-heading);
	font-size: 2.25rem;
	font-weight: 600;
	color: var(--pdp-dark);
	line-height: 1.1;
	margin-bottom: 18px;
}
.sac-product-modern-page .sac-workshop__enroll-price .woocommerce-Price-amount {
	font-family: inherit;
}
.sac-product-modern-page .sac-workshop__enroll-cta {
	font-family: var(--pdp-font-body);
}
.sac-product-modern-page .sac-workshop__enroll-cta form.cart {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}
.sac-product-modern-page .sac-workshop__enroll-cta .quantity {
	display: none !important; /* most classes are sold-individually */
}
.sac-product-modern-page .sac-workshop__enroll-cta button.single_add_to_cart_button,
.sac-product-modern-page .sac-workshop__enroll-cta .add-to-cart .button,
.sac-product-modern-page .sac-workshop__enroll-cta .woocommerce_waitlist {
	display: block;
	width: 100%;
	border-radius: 999px !important;
	font-family: var(--pdp-font-body) !important;
	font-weight: 700 !important;
	font-size: 0.9rem !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 14px 24px !important;
	background: var(--pdp-dark) !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer;
	transition: background 0.25s var(--pdp-ease), transform 0.25s var(--pdp-ease);
}
.sac-product-modern-page .sac-workshop__enroll-cta button.single_add_to_cart_button:hover,
.sac-product-modern-page .sac-workshop__enroll-cta .add-to-cart .button:hover,
.sac-product-modern-page .sac-workshop__enroll-cta .woocommerce_waitlist:hover {
	background: var(--pdp-accent) !important;
	transform: translateY(-1px);
}
.sac-product-modern-page .sac-workshop__enroll-cta .wcwl_elements {
	margin-top: 16px;
	font-family: var(--pdp-font-body);
}
.sac-product-modern-page .sac-workshop__enroll-cta .wcwl_intro p {
	margin: 0 0 10px;
	font-size: 0.9rem;
	color: var(--pdp-muted);
}
.sac-product-modern-page .sac-workshop__enroll-cta .wcwl_email {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--pdp-border);
	border-radius: 999px;
	background: #fff;
	font-size: 0.95rem;
	margin-bottom: 10px;
	font-family: var(--pdp-font-body);
}
.sac-product-modern-page .sac-workshop__enroll-cta .wcwl_email:focus {
	outline: none;
	border-color: var(--pdp-teal);
	box-shadow: 0 0 0 3px rgba(26, 95, 95, 0.15);
}
.sac-product-modern-page .sac-workshop__unavailable {
	margin: 0;
	padding: 14px 18px;
	background: rgba(196, 91, 40, 0.08);
	border-radius: var(--pdp-radius-sm);
	color: var(--pdp-accent-hover);
	font-family: var(--pdp-font-body);
	font-weight: 600;
	text-align: center;
}

/* ---------- Class details in sidebar ---------- */
.sac-product-modern-page .sac-workshop__details-heading {
	font-family: var(--pdp-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--pdp-dark);
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}
.sac-product-modern-page .sac-workshop__details-list {
	margin: 0;
	font-family: var(--pdp-font-body);
}
.sac-product-modern-page .sac-workshop__details-row {
	display: grid;
	grid-template-columns: minmax(90px, 0.5fr) minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--pdp-border);
	align-items: baseline;
}
.sac-product-modern-page .sac-workshop__details-row:last-child {
	border-bottom: none;
}
.sac-product-modern-page .sac-workshop__details-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pdp-teal);
	margin: 0;
}
.sac-product-modern-page .sac-workshop__details-value {
	margin: 0;
	font-size: 0.95rem;
	color: var(--pdp-dark);
	line-height: 1.45;
	word-wrap: break-word;
}

.sac-product-modern-page .sac-workshop__extra {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--pdp-border);
	font-family: var(--pdp-font-body);
	font-size: 0.95rem;
	color: var(--pdp-muted);
	line-height: 1.55;
}
.sac-product-modern-page .sac-workshop__extra p:last-child {
	margin-bottom: 0;
}

.sac-product-modern-page .sac-workshop__widgets {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--pdp-border);
	font-family: var(--pdp-font-body);
}

/* ---------- Section headers (shared) ---------- */
.sac-product-modern-page .sac-workshop__section-head {
	margin-bottom: 24px;
}
.sac-product-modern-page .sac-workshop__section-eyebrow {
	display: block;
	font-family: var(--pdp-font-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pdp-teal);
	margin-bottom: 8px;
}
.sac-product-modern-page .sac-workshop__section-heading {
	font-family: var(--pdp-font-heading);
	font-size: clamp(1.6rem, 2.6vw, 2rem);
	font-weight: 600;
	color: var(--pdp-dark);
	margin: 0;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

/* ---------- Overview (description) block ---------- */
.sac-product-modern-page .sac-workshop__overview {
	width: 100%;
	max-width: none;
	min-width: 0;
}
.sac-product-modern-page .sac-workshop__register-simple {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 24px;
	padding: 10px 18px;
	border: 1px solid rgba(196, 91, 40, 0.32);
	border-radius: 999px;
	background: rgba(196, 91, 40, 0.08);
	color: var(--pdp-accent);
	font-family: var(--pdp-font-body);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.25s var(--pdp-ease), color 0.25s var(--pdp-ease), transform 0.25s var(--pdp-ease);
}
.sac-product-modern-page .sac-workshop__register-simple:hover,
.sac-product-modern-page .sac-workshop__register-simple:focus {
	background: var(--pdp-accent);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}
.sac-product-modern-page .sac-workshop__fact .sac-workshop__register-simple {
	align-self: flex-start;
	margin: 8px 0 0;
	padding: 8px 14px;
	font-size: 0.74rem;
}
.sac-product-modern-page .sac-workshop__register {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(18px, 3vw, 32px);
	align-items: center;
	margin: 0 0 28px;
	padding: clamp(20px, 3vw, 28px);
	padding-bottom: clamp(46px, 5vw, 58px);
	background: var(--pdp-dark);
	color: #fff;
	border-radius: var(--pdp-radius);
	box-shadow: var(--pdp-shadow-lift);
	position: relative;
}
.sac-product-modern-page .sac-workshop__register--bottom {
	margin: 32px 0 0;
}
.sac-product-modern-page .sac-workshop__register-eyebrow {
	display: block;
	font-family: var(--pdp-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: 6px;
}
.sac-product-modern-page .sac-workshop__register-heading {
	font-family: "Roboto Slab", serif;
	font-size: clamp(1.35rem, 2.2vw, 1.9rem);
	line-height: 1.15;
	color: #fff;
	margin: 0 0 6px;
}
.sac-product-modern-page .sac-workshop__register-price {
	font-family: var(--pdp-font-heading);
	font-size: clamp(1.4rem, 2vw, 1.85rem);
	font-weight: 600;
	line-height: 1.1;
	color: #fff;
}
.sac-product-modern-page .sac-workshop__register-price .woocommerce-Price-amount {
	font-family: inherit;
}
.sac-product-modern-page .sac-workshop__register-action {
	min-width: min(280px, 100%);
}
.sac-product-modern-page .sac-workshop__register-action form.cart {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}
.sac-product-modern-page .sac-workshop__register-action .quantity {
	display: none !important;
}
.sac-product-modern-page .sac-workshop__register-action button.single_add_to_cart_button,
.sac-product-modern-page .sac-workshop__register-action .single_add_to_cart_button.button,
.sac-product-modern-page .sac-workshop__register-action .add-to-cart .button,
.sac-product-modern-page .sac-workshop__register-action .woocommerce_waitlist {
	display: block;
	width: 100%;
	border-radius: 999px !important;
	font-family: var(--pdp-font-body) !important;
	font-weight: 800 !important;
	font-size: 0.92rem !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 15px 26px !important;
	background: var(--pdp-accent) !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
	transition: background 0.25s var(--pdp-ease), transform 0.25s var(--pdp-ease);
}
.sac-product-modern-page .sac-workshop__register-action button.single_add_to_cart_button:hover,
.sac-product-modern-page .sac-workshop__register-action .single_add_to_cart_button.button:hover,
.sac-product-modern-page .sac-workshop__register-action .add-to-cart .button:hover,
.sac-product-modern-page .sac-workshop__register-action .woocommerce_waitlist:hover {
	background: var(--pdp-accent-hover) !important;
	transform: translateY(-1px);
}
.sac-product-modern-page .sac-workshop__register-action .wcwl_elements {
	font-family: var(--pdp-font-body);
}
.sac-product-modern-page .sac-workshop__register-action .wcwl_intro p,
.sac-product-modern-page .sac-workshop__register-action .sac-workshop__unavailable {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-family: var(--pdp-font-body);
}
.sac-product-modern-page .sac-workshop__register .stock {
	position: absolute;
	right: clamp(20px, 3vw, 28px);
	bottom: 16px;
	margin: 0;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.82);
	font-family: var(--pdp-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}
.sac-product-modern-page .sac-workshop__register .stock.in-stock {
	color: #d9f7df;
}
.sac-product-modern-page .sac-workshop__register .stock.out-of-stock {
	color: #ffd8cf;
}
@media (max-width: 767px) {
	.sac-product-modern-page .sac-workshop__register {
		grid-template-columns: 1fr;
	}
}
.sac-product-modern-page .sac-workshop__overview-body {
	width: 100%;
	max-width: none;
	font-family: var(--pdp-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--pdp-dark);
}
.sac-product-modern-page .sac-workshop__overview-body > *:first-child {
	margin-top: 0;
}
.sac-product-modern-page .sac-workshop__overview-body > *:last-child {
	margin-bottom: 0;
}
.sac-product-modern-page .sac-workshop__overview-body p {
	margin: 0 0 1em;
	max-width: none;
}
.sac-product-modern-page .sac-workshop__overview-body strong {
	color: var(--pdp-dark);
}
.sac-product-modern-page .sac-workshop__overview-body ul,
.sac-product-modern-page .sac-workshop__overview-body ol {
	padding-left: 1.25em;
	margin: 0 0 1em;
}
.sac-product-modern-page .sac-workshop__overview-body li {
	margin-bottom: 0.4em;
	line-height: 1.6;
}
.sac-product-modern-page .sac-workshop__overview-body li:last-child {
	margin-bottom: 0;
}
.sac-product-modern-page .sac-workshop__overview-body a {
	color: var(--pdp-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sac-product-modern-page .sac-workshop__overview-body h2,
.sac-product-modern-page .sac-workshop__overview-body h3,
.sac-product-modern-page .sac-workshop__overview-body h4 {
	font-family: var(--pdp-font-heading);
	color: var(--pdp-dark);
	letter-spacing: -0.01em;
	margin: 1.4em 0 0.6em;
}

/* ---------- Instructor block ---------- */
.sac-product-modern-page .sac-workshop__instructor {
	margin: 0;
}
.sac-product-modern-page .sac-workshop__instructor-list {
	display: grid;
	gap: 20px;
}
.sac-product-modern-page .sac-workshop__instructor-card {
	background: var(--pdp-surface);
	border: 1px solid var(--pdp-border);
	border-radius: var(--pdp-radius);
	padding: clamp(20px, 3vw, 28px);
	box-shadow: var(--pdp-shadow-soft);
}
.sac-product-modern-page .sac-workshop__instructor-card .person_bio.short {
	margin: 0;
	width: 100%;
}
.sac-product-modern-page .sac-workshop__instructor-card .person_bio .row {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}
.sac-product-modern-page .sac-workshop__instructor-card .person_bio .image {
	flex: 0 0 auto;
	padding: 0;
	max-width: 120px;
}
.sac-product-modern-page .sac-workshop__instructor-card .person_bio .image img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 4px 16px rgba(28, 26, 23, 0.12);
}
.sac-product-modern-page .sac-workshop__instructor-card .person_bio .bio {
	flex: 1 1 260px;
	padding: 0;
	font-family: var(--pdp-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--pdp-muted);
}
.sac-product-modern-page .sac-workshop__instructor-card .person_bio .bio a {
	text-decoration: none;
}
.sac-product-modern-page .sac-workshop__instructor-card .person_bio .bio h5 {
	font-family: var(--pdp-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--pdp-dark);
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}

/* ---------- Tabs section (Materials, Cancellation, Testimonials, etc.) ---------- */
.sac-product-modern-page .sac-workshop__tabs-section {
	margin: 0;
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs {
	background: var(--pdp-surface);
	border: 1px solid var(--pdp-border);
	border-radius: var(--pdp-radius);
	box-shadow: var(--pdp-shadow-soft);
	overflow: hidden;
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border-bottom: 1px solid var(--pdp-border);
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs ul.tabs::before,
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs ul.tabs::after {
	display: none;
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs ul.tabs li {
	position: relative;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	font-family: var(--pdp-font-body);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 18px 24px;
	color: var(--pdp-muted);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color 0.25s var(--pdp-ease), border-color 0.25s var(--pdp-ease), background 0.25s var(--pdp-ease);
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs ul.tabs li a:hover {
	color: var(--pdp-dark);
	background: rgba(184, 149, 106, 0.08);
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs ul.tabs li.active a {
	color: var(--pdp-dark);
	border-bottom-color: var(--pdp-accent);
	background: var(--pdp-surface);
}

/* Actual tab behavior: once JS wires up the switcher, hide all panels that
   aren't active. Until JS flips `.sac-tabs-ready`, panels stay visible
   (progressive enhancement / no-JS fallback). */
.sac-product-modern-page .sac-workshop__tabs-section .sac-tabs-ready .wc-tab,
.sac-product-modern-page .sac-workshop__tabs-section .sac-tabs-ready .woocommerce-Tabs-panel {
	display: none;
}
.sac-product-modern-page .sac-workshop__tabs-section .sac-tabs-ready .wc-tab.is-active,
.sac-product-modern-page .sac-workshop__tabs-section .sac-tabs-ready .woocommerce-Tabs-panel.is-active {
	display: block;
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs .panel,
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs .wc-tab {
	padding: clamp(24px, 3vw, 36px);
	background: var(--pdp-surface);
	font-family: var(--pdp-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--pdp-dark);
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs .wc-tab h2,
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs .wc-tab h3,
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs .wc-tab h4,
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs .wc-tab h5 {
	font-family: var(--pdp-font-heading);
	color: var(--pdp-dark);
	letter-spacing: -0.01em;
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs .wc-tab h2 {
	font-size: 1.6rem;
	margin: 0 0 16px;
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs .wc-tab h4 {
	font-size: 1.2rem;
	margin: 20px 0 10px;
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs .wc-tab ul {
	padding-left: 1.25em;
}
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs .wc-tab ul li {
	margin-bottom: 0.35em;
}

.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs ul.tabs li[class*="materials"] a {
	background: rgba(196, 91, 40, 0.1);
	color: var(--pdp-accent);
	border-bottom-color: rgba(196, 91, 40, 0.35);
}

.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs ul.tabs li[class*="materials"].active a,
.sac-product-modern-page .sac-workshop__tabs-section .woocommerce-tabs ul.tabs li[class*="materials"] a:hover {
	background: rgba(196, 91, 40, 0.1);
	border-bottom-color: var(--pdp-accent);
	color: var(--pdp-accent-hover);
}

.sac-product-modern-page .sac-workshop__tabs-section #materialsList {
	position: relative;
	margin: 0 0 22px;
	padding: clamp(20px, 3vw, 30px);
	background: linear-gradient(135deg, rgba(196, 91, 40, 0.13), rgba(196, 91, 40, 0.06));
	border: 1px solid rgba(196, 91, 40, 0.32);
	border-left: 5px solid var(--pdp-accent);
	border-radius: var(--pdp-radius-sm);
	box-shadow: 0 12px 30px rgba(196, 91, 40, 0.1);
}

.sac-product-modern-page .sac-workshop__tabs-section #materialsList > *:first-child {
	margin-top: 0;
}

.sac-product-modern-page .sac-workshop__tabs-section #materialsList > *:last-child {
	margin-bottom: 0;
}

.sac-product-modern-page .sac-workshop__tabs-section #materialsList .materials-list {
	display: grid;
	gap: 12px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.sac-product-modern-page .sac-workshop__tabs-section #materialsList .materials-list li {
	margin: 0;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid rgba(196, 91, 40, 0.22);
	border-radius: var(--pdp-radius-xs);
	color: var(--pdp-dark);
}

.sac-product-modern-page .sac-workshop__tabs-section #materialsList .materials-list strong,
.sac-product-modern-page .sac-workshop__tabs-section #materialsList .materials-list a {
	color: var(--pdp-accent-hover);
}

/* Tab instructor bio (within Instructor tab) */
.sac-product-modern-page .sac-workshop__tabs-section .wc-tab .person_bio .row {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}
.sac-product-modern-page .sac-workshop__tabs-section .wc-tab .person_bio .name {
	flex: 1 1 100%;
	padding: 0;
}
.sac-product-modern-page .sac-workshop__tabs-section .wc-tab .person_bio .image {
	flex: 0 0 auto;
	padding: 0;
	max-width: 180px;
}
.sac-product-modern-page .sac-workshop__tabs-section .wc-tab .person_bio .image img {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 4px 16px rgba(28, 26, 23, 0.12);
}
.sac-product-modern-page .sac-workshop__tabs-section .wc-tab .person_bio .bio {
	flex: 1 1 260px;
	padding: 0;
	line-height: 1.65;
	color: var(--pdp-muted);
}

/* Testimonials rendered as .card blocks */
.sac-product-modern-page .sac-workshop__tabs-section .wc-tab .card {
	background: #fff;
	border: 1px solid var(--pdp-border);
	border-radius: var(--pdp-radius-sm);
	box-shadow: var(--pdp-shadow-soft);
	margin-bottom: 16px;
	overflow: hidden;
}
.sac-product-modern-page .sac-workshop__tabs-section .wc-tab .card-title {
	font-family: var(--pdp-font-heading);
	font-size: 1.15rem;
	color: var(--pdp-teal);
	margin: 0 0 8px;
}
.sac-product-modern-page .sac-workshop__tabs-section .wc-tab .card-text {
	color: var(--pdp-dark);
	font-style: italic;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}
.sac-product-modern-page .sac-workshop__tabs-section .wc-tab .card-block {
	padding: 20px 22px !important;
}
.sac-product-modern-page .sac-workshop__tabs-section .wc-tab .card-footer {
	background: var(--pdp-bg);
	border-top: 1px solid var(--pdp-border);
	padding: 10px 22px !important;
	color: var(--pdp-muted-soft);
	font-size: 0.8rem;
}

/* Print / Print-materials button */
.sac-product-modern-page .sac-workshop__tabs-section .print-materials {
	border-radius: 999px !important;
	background: var(--pdp-teal) !important;
	border: none !important;
	color: #fff !important;
	padding: 10px 18px !important;
	font-weight: 600;
}
.sac-product-modern-page .sac-workshop__tabs-section .print-materials:hover {
	background: var(--pdp-dark) !important;
}

/* ---------- Related / more with this instructor ---------- */
/* Mirrors .sac-pdp__other-works styling from the gallery PDP so workshop
   cards and gallery cards share a consistent visual language. */
.sac-product-modern-page .sac-workshop__related {
	margin: clamp(72px, 8vw, 120px) 0 0 !important;
	padding-top: clamp(32px, 4vw, 56px);
	border-top: 1px solid var(--pdp-border);
}

.sac-product-modern-page .sac-pdp__connected-group {
	margin-top: clamp(28px, 4vw, 44px);
}

.sac-product-modern-page .sac-pdp__connected-group + .sac-pdp__connected-group {
	margin-top: clamp(40px, 5vw, 64px);
	padding-top: clamp(28px, 4vw, 44px);
	border-top: 1px solid var(--pdp-border);
}

.sac-product-modern-page .sac-pdp__connected-group-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-family: var(--pdp-font-heading);
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--pdp-dark);
}

.sac-product-modern-page .sac-pdp__connected-group-title::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--pdp-accent);
	box-shadow: 0 0 0 5px rgba(196, 91, 40, 0.12);
}

.sac-product-modern-page .sac-pdp__connected-group--school .sac-pdp__connected-group-title::before {
	background: var(--pdp-teal);
	box-shadow: 0 0 0 5px rgba(26, 95, 95, 0.12);
}

.sac-product-modern-page .sac-workshop__classes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sac-product-modern-page .sac-workshop__class-card {
	margin: 0;
	list-style: none;
}

.sac-product-modern-page .sac-workshop__class-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: var(--pdp-radius);
	overflow: hidden;
	background: var(--pdp-surface);
	border: 1px solid var(--pdp-border);
	box-shadow: 0 4px 14px rgba(28, 26, 23, 0.06);
	transition: box-shadow 0.35s var(--pdp-ease), transform 0.35s var(--pdp-ease), border-color 0.35s var(--pdp-ease);
	height: 100%;
	position: relative;
	isolation: isolate;
}
.sac-product-modern-page .sac-workshop__class-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--pdp-teal), var(--pdp-gold), var(--pdp-accent));
	opacity: 0;
	transform: scaleX(0.4);
	transform-origin: left center;
	transition: opacity 0.35s var(--pdp-ease), transform 0.45s var(--pdp-ease);
	z-index: 3;
}
.sac-product-modern-page .sac-workshop__class-link:hover {
	box-shadow: var(--pdp-shadow-lift);
	transform: translateY(-6px);
	border-color: rgba(184, 149, 106, 0.5);
}
.sac-product-modern-page .sac-workshop__class-link:hover::before {
	opacity: 1;
	transform: scaleX(1);
}

.sac-product-modern-page .sac-workshop__class-media {
	display: block;
	aspect-ratio: 4 / 3;
	background: linear-gradient(180deg, #f3efe8 0%, #ebe5da 100%);
	overflow: hidden;
	position: relative;
}
.sac-product-modern-page .sac-workshop__class-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s var(--pdp-ease), filter 0.4s var(--pdp-ease);
}
.sac-product-modern-page .sac-workshop__class-link:hover .sac-workshop__class-media img {
	transform: scale(1.06);
	filter: brightness(0.96);
}

/* Category tag (top-left) */
.sac-product-modern-page .sac-workshop__class-tag {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	font-family: var(--pdp-font-body);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pdp-dark);
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(253, 251, 247, 0.92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 2px 8px rgba(28, 26, 23, 0.12);
	max-width: calc(100% - 28px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Sold out / Ended status badge (top-right) */
.sac-product-modern-page .sac-workshop__class-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	font-family: var(--pdp-font-body);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(28, 26, 23, 0.85);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 2px 8px rgba(28, 26, 23, 0.22);
}
.sac-product-modern-page .sac-workshop__class-card.is-unavailable .sac-workshop__class-media img {
	filter: grayscale(0.15) brightness(0.95);
}

/* Overlay & CTA */
.sac-product-modern-page .sac-workshop__class-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 16px;
	background: linear-gradient(180deg, transparent 55%, rgba(28, 26, 23, 0.55) 100%);
	opacity: 0;
	transition: opacity 0.35s var(--pdp-ease);
	z-index: 2;
	pointer-events: none;
}
.sac-product-modern-page .sac-workshop__class-link:hover .sac-workshop__class-overlay {
	opacity: 1;
}
.sac-product-modern-page .sac-workshop__class-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--pdp-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(28, 26, 23, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transform: translateY(8px);
	transition: transform 0.35s var(--pdp-ease);
}
.sac-product-modern-page .sac-workshop__class-cta svg {
	transition: transform 0.3s var(--pdp-ease);
}
.sac-product-modern-page .sac-workshop__class-link:hover .sac-workshop__class-cta {
	transform: translateY(0);
}
.sac-product-modern-page .sac-workshop__class-link:hover .sac-workshop__class-cta svg {
	transform: translateX(3px);
}

/* Body / text */
.sac-product-modern-page .sac-workshop__class-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 22px;
	flex: 1 1 auto;
}
.sac-product-modern-page .sac-workshop__class-title {
	display: block;
	font-family: var(--pdp-font-heading);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--pdp-dark);
	letter-spacing: -0.01em;
	margin: 0;
	padding: 0;
	transition: color 0.25s var(--pdp-ease);
}
.sac-product-modern-page .sac-workshop__class-link:hover .sac-workshop__class-title {
	color: var(--pdp-accent);
}
.sac-product-modern-page .sac-workshop__class-meta {
	display: block;
	font-family: var(--pdp-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--pdp-teal);
}
.sac-product-modern-page .sac-workshop__class-price {
	display: block;
	font-family: var(--pdp-font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--pdp-muted);
	margin-top: auto;
}
.sac-product-modern-page .sac-workshop__class-price .woocommerce-Price-amount,
.sac-product-modern-page .sac-workshop__class-price span.amount {
	color: var(--pdp-dark) !important;
	font-size: 1em !important;
	font-weight: 600 !important;
}
.sac-product-modern-page .sac-workshop__class-price .woocommerce-Price-currencySymbol {
	color: var(--pdp-gold) !important;
	margin-right: 1px;
}
.sac-product-modern-page .sac-workshop__class-price del {
	color: var(--pdp-muted-soft);
	margin-right: 8px;
	opacity: 0.8;
}
.sac-product-modern-page .sac-workshop__class-price ins {
	text-decoration: none;
	background: transparent;
}

@media (max-width: 640px) {
	.sac-product-modern-page .sac-workshop__classes-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 20px;
	}
	.sac-product-modern-page .sac-workshop__class-body {
		padding: 16px 18px 18px;
	}
	.sac-product-modern-page .sac-workshop__class-title {
		font-size: 1.1rem;
	}
}

/* Mobile enroll bar polish */
@media (max-width: 991px) {
	.sac-product-modern-page .sac-workshop__facts {
		grid-template-columns: 1fr;
	}
	.sac-product-modern-page .sac-workshop__fact {
		padding: 14px 16px;
	}
}

/* ============================================================ */
/*  WooCommerce notices                                         */
/* ============================================================ */
.sac-product-modern-page.woocommerce .woocommerce-message,
.sac-product-modern-page.woocommerce .woocommerce-info,
.sac-product-modern-page.woocommerce .woocommerce-error {
	font-family: var(--pdp-font-body);
	border-radius: var(--pdp-radius-sm);
	border-left-width: 4px;
}

/* ============================================================ */
/*  Print                                                       */
/* ============================================================ */
@media print {
	.sac-pdp__detail-col,
	.sac-pdp__below,
	.sac-pdp__other-works,
	.sac-pdp__bios,
	.sac-workshop__sidebar-col,
	.sac-workshop__related,
	.sac-gallery__nav,
	.sac-gallery__zoom,
	.sac-gallery__counter,
	.sac-gallery__thumbs {
		display: none !important;
	}
	.sac-product-modern-page .sac-workshop__layout {
		grid-template-columns: 1fr;
	}
}
