/*
 * Sosaras: gallery styles that theme.json cannot express.
 *
 * The idea: the site is a gallery wall. Paintings hang with a soft shadow,
 * each has a museum wall label, and sold originals get the red dot.
 */

:root {
	--sos-ease: var(--wp--custom--motion--ease, cubic-bezier(.2, .7, .2, 1));
	--sos-dur: var(--wp--custom--motion--duration, 420ms);
	--sos-hung: var(--wp--preset--shadow--hung);
	--sos-red: var(--wp--preset--color--red-dot);
	--sos-ink: var(--wp--preset--color--ink);
	--sos-graphite: var(--wp--preset--color--graphite);
	--sos-hairline: var(--wp--preset--color--hairline);
	--sos-wall: var(--wp--preset--color--wall);
	--sos-plinth: var(--wp--preset--color--plinth);
	--sos-paper: var(--wp--preset--color--paper);
	--sos-serif: var(--wp--preset--font-family--serif);
	--sos-sans: var(--wp--preset--font-family--sans);
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--sos-ink);
	outline-offset: 3px;
}

::selection { background: #E4DCCB; color: var(--sos-ink); }

h1, h2, h3, .wp-block-site-title { font-variation-settings: "opsz" 72; }
p, li { font-variation-settings: "opsz" 12; }

.wp-site-blocks > main, .wp-site-blocks > .wp-block-group { margin-block-start: 0; }

/* Visually hidden helper used by forms and icons */
.sos-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons rendered by theme blocks match core buttons */
.sos-button,
.wp-element-button,
.wp-block-button__link,
.woocommerce .button,
.wc-block-components-button:not(.is-link) {
	border-radius: 0 !important;
	transition: background-color var(--sos-dur) var(--sos-ease), color var(--sos-dur) var(--sos-ease), border-color var(--sos-dur) var(--sos-ease);
}

.sos-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 3rem;
	padding: .95rem 1.75rem;
	border: 1px solid var(--sos-ink);
	background: var(--sos-ink);
	color: var(--sos-wall);
	font: 500 var(--wp--preset--font-size--small)/1.2 var(--sos-sans);
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
}
.sos-button:hover { background: #3B3833; border-color: #3B3833; color: var(--sos-wall); }
.sos-button--outline { background: transparent; color: var(--sos-ink); }
.sos-button--outline:hover { background: var(--sos-ink); color: var(--sos-wall); }

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--sos-ink);
	color: var(--sos-wall);
}

/* ---------- Header ---------- */

.sos-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	/* Solid, no backdrop-filter: a filter would trap the full-screen mobile menu inside the header. */
	background: var(--sos-wall);
	border-bottom: 1px solid transparent;
	transition: border-color var(--sos-dur) var(--sos-ease);
}
.admin-bar .sos-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .sos-site-header { top: 0; } }
.sos-site-header.is-scrolled { border-bottom-color: var(--sos-hairline); }

.sos-header__inner { gap: 1.5rem; }
.sos-header .wp-block-site-title a { color: var(--sos-ink); }
.sos-header .wp-block-site-title { font-size: 1.75rem; font-variation-settings: "opsz" 72; letter-spacing: -.015em; }

.sos-nav .wp-block-navigation-item__content { padding-block: .35rem; position: relative; }
.sos-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: left;
	transition: transform var(--sos-dur) var(--sos-ease);
}
.sos-nav .wp-block-navigation-item__content:hover::after,
.sos-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }

.sos-header__tools { color: var(--sos-ink); }
.sos-header__tools .wc-block-mini-cart__button,
.sos-header__tools .wc-block-customer-account a,
.sos-search .wp-block-search__button {
	color: var(--sos-ink);
	background: transparent;
	border: 0;
	padding: .35rem;
	min-width: 2.5rem; min-height: 2.5rem;
	display: inline-flex; align-items: center; justify-content: center;
}
.sos-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.sos-search.wp-block-search__searchfield-hidden .wp-block-search__input { border: 0; }
.sos-search .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.sos-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	border: 0; border-bottom: 1px solid var(--sos-ink); background: transparent; border-radius: 0;
}
.wc-block-mini-cart__badge { background: var(--sos-ink) !important; color: var(--sos-wall) !important; font-size: .6875rem; }

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--sos-wall) !important;
	padding: 1.5rem clamp(1rem, 6vw, 3rem) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	padding-top: 4rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-family: var(--sos-serif);
	font-size: 2.25rem;
	line-height: 1.25;
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

@media (max-width: 781px) {
	.sos-header__inner { flex-wrap: nowrap !important; }
	.sos-header .sos-nav { order: 3; }
	.sos-header__tools { margin-left: auto; gap: .25rem !important; }
	.sos-header .wp-block-site-title { font-size: 1.5rem; }
}

/* ---------- Wall label and the red dot ---------- */

.sos-dot {
	display: inline-block;
	width: .62em;
	height: .62em;
	margin-right: .45em;
	border-radius: 50%;
	background: var(--sos-red);
	box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .25), 0 0 0 1px rgba(168, 35, 28, .15);
	vertical-align: .02em;
	flex: none;
}

.sos-label { font-family: var(--sos-sans); color: var(--sos-graphite); }
.sos-label p { margin: 0; }
.sos-label--card { font-size: var(--wp--preset--font-size--x-small); line-height: 1.45; margin-top: .3rem !important; }
.sos-label--card .sos-label__status { margin-top: .2rem; color: var(--sos-ink); }
.sos-label--single { font-size: var(--wp--preset--font-size--small); line-height: 1.55; margin-top: .75rem !important; }
.sos-label--single .sos-label__artist { color: var(--sos-ink); font-weight: 550; margin-bottom: .15rem; }
.sos-label--single .sos-label__status { margin-top: .35rem; color: var(--sos-ink); }
.sos-label__status { display: flex; align-items: center; }
.sos-label.is-sold .sos-label__status { color: var(--sos-red); }

/* ---------- Product cards: paintings hung at relative scale ---------- */

.sos-collection .wc-block-product-template,
.sos-grid {
	column-gap: clamp(1.25rem, 3vw, 3rem) !important;
	row-gap: clamp(2.5rem, 5vw, 4.5rem) !important;
}

.sos-grid .wc-block-product { display: flex; flex-direction: column; margin: 0; }
.sos-grid.wc-block-product-template { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 782px) {
	.sos-grid.columns-3, .sos-grid.columns-4, .sos-grid.columns-5 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 1100px) {
	.sos-grid.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	.sos-grid.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

/* The image box is a square patch of wall; the painting hangs centred inside it. */
.sos-grid .wc-block-components-product-image {
	position: relative;
	display: block !important;
	aspect-ratio: 1 / 1;
	width: 100%;
	margin: 0 0 1.1rem !important;
	background: transparent;
}
.sos-grid .wc-block-components-product-image > a {
	position: absolute;
	inset: 5%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sos-grid .wc-block-components-product-image img {
	display: block;
	width: calc(var(--sos-hang, 1) * 100%) !important;
	height: calc(var(--sos-hang, 1) * 100%) !important;
	max-width: none !important;
	object-fit: contain !important;
	/* drop-shadow follows the painting itself, not the letterboxed box */
	filter: drop-shadow(0 1px 1px rgba(37, 35, 32, .10)) drop-shadow(0 12px 14px rgba(37, 35, 32, .20));
	box-shadow: none !important;
	transition: transform var(--sos-dur) var(--sos-ease), filter var(--sos-dur) var(--sos-ease);
}
.sos-grid .wc-block-components-product-image__inner-container { display: none; }
@media (hover: hover) {
	.sos-grid .wc-block-product:hover .wc-block-components-product-image img {
		transform: translateY(-4px);
		filter: drop-shadow(0 1px 1px rgba(37, 35, 32, .10)) drop-shadow(0 20px 22px rgba(37, 35, 32, .26));
	}
}


.sos-card__caption { gap: 1rem; align-items: flex-start !important; margin-top: auto; }
.sos-card__text { min-width: 0; }
.sos-card__title {
	margin: 0 !important;
	font-family: var(--sos-serif) !important;
	font-style: italic;
	font-size: 1.25rem !important;
	line-height: 1.2 !important;
	font-weight: 400 !important;
}
.sos-card__title a { color: var(--sos-ink); text-decoration: none; }
.sos-card__title a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.sos-card__price { margin: 0 !important; font-size: var(--wp--preset--font-size--small) !important; white-space: nowrap; text-align: right; }
.sos-card__price del { color: var(--sos-graphite); }
.wc-block-product:has(.sos-label.is-sold) .sos-card__price { color: var(--sos-graphite); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- Section titles ---------- */

.sos-section-title { font-size: var(--wp--preset--font-size--x-large) !important; margin-bottom: 1.5rem !important; }

.sos-section-head {
	gap: 1rem 2rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.75rem) !important;
	align-items: flex-end !important;
}
.sos-section-head h2, .sos-section-head .sos-section-title { margin: 0 !important; }
.sos-section-head p { margin: 0; max-width: 38ch; color: var(--sos-graphite); }
.sos-link {
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: .15rem;
	white-space: nowrap;
}

/* ---------- Homepage: hero as a lit wall ---------- */

.sos-hero {
	position: relative;
	padding-block: clamp(2rem, 6vw, 6rem) clamp(3rem, 8vw, 8rem) !important;
	overflow: hidden;
}
.sos-hero__grid { align-items: center !important; gap: clamp(2rem, 6vw, 6rem) !important; }
.sos-hero__text { max-width: 34rem; }
.sos-hero__title {
	font-size: var(--wp--preset--font-size--display) !important;
	line-height: .98 !important;
	letter-spacing: -.035em !important;
	font-weight: 340 !important;
	font-variation-settings: "opsz" 72;
	margin: 0 0 1.5rem !important;
	text-wrap: balance;
}
.sos-hero__lede { font-size: var(--wp--preset--font-size--large); line-height: 1.45; color: var(--sos-graphite); max-width: 30ch; }

.sos-hero__art {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: clamp(1rem, 4vw, 3rem);
}
/* Gallery spotlight: a soft pool of light on the wall above the painting */
.sos-hero__art::before {
	content: "";
	position: absolute;
	inset: -18% -20% 10%;
	background: radial-gradient(ellipse 48% 52% at 50% 40%, rgba(255, 252, 244, .95), rgba(255, 252, 244, 0) 72%);
	pointer-events: none;
	z-index: 0;
}
.sos-hero__art .wp-block-image { position: relative; z-index: 1; margin: 0; }
.sos-hero__art .wp-block-image img { box-shadow: var(--sos-hung); max-height: 72vh; width: auto; }
.sos-hero__label {
	position: relative;
	z-index: 1;
	align-self: flex-end;
	margin-top: 1.5rem !important;
	padding-left: .9rem;
	border-left: 1px solid var(--sos-hairline);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	color: var(--sos-graphite);
}
.sos-hero__label p { margin: 0 !important; }
.sos-hero__label .sos-hero__label-title { font-family: var(--sos-serif); font-style: italic; font-size: 1.0625rem; color: var(--sos-ink); }
.sos-hero__label a { color: inherit; }

/* The one orchestrated moment: the hero painting is "hung" on load */
@media (prefers-reduced-motion: no-preference) {
	.sos-js .sos-hero__art .wp-block-image { animation: sos-hang 1100ms var(--sos-ease) both 120ms; }
	.sos-js .sos-hero__art::before { animation: sos-light 1600ms ease-out both; }
	.sos-js .sos-hero__text > * { animation: sos-rise 800ms var(--sos-ease) both; }
	.sos-js .sos-hero__text > *:nth-child(2) { animation-delay: 120ms; }
	.sos-js .sos-hero__text > *:nth-child(3) { animation-delay: 220ms; }
	.sos-js .sos-hero__label { animation: sos-rise 700ms var(--sos-ease) both 700ms; }
}
@keyframes sos-hang {
	from { opacity: 0; transform: translateY(-14px); }
	to { opacity: 1; transform: none; }
}
@keyframes sos-light { from { opacity: 0; } to { opacity: 1; } }
@keyframes sos-rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

/* Reveal used sparingly for large image sections */
@media (prefers-reduced-motion: no-preference) {
	.sos-js .sos-reveal { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--sos-ease), transform 900ms var(--sos-ease); }
	.sos-js .sos-reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Homepage: featured, an editorial hang ---------- */

@media (min-width: 900px) {
	.sos-featured .wc-block-product-template.sos-grid {
		display: grid !important;
		grid-template-columns: repeat(12, 1fr) !important;
		grid-auto-flow: dense;
		align-items: end;
	}
	.sos-featured .wc-block-product-template > li { width: auto !important; max-width: none !important; }
	.sos-featured .wc-block-product-template > li:nth-child(5n+1) { grid-column: span 7; }
	.sos-featured .wc-block-product-template > li:nth-child(5n+2) { grid-column: span 5; }
	.sos-featured .wc-block-product-template > li:nth-child(5n+3) { grid-column: span 4; }
	.sos-featured .wc-block-product-template > li:nth-child(5n+4) { grid-column: span 4; }
	.sos-featured .wc-block-product-template > li:nth-child(5n+5) { grid-column: span 4; }
	.sos-featured .wc-block-product-template > li:nth-child(5n+1) .wc-block-components-product-image { aspect-ratio: 5 / 4; }
	.sos-featured .wc-block-product-template > li:nth-child(5n+1) .sos-card__title { font-size: 1.625rem !important; }
}

/* ---------- Homepage: collections ---------- */

.sos-collections { gap: clamp(1.25rem, 2.4vw, 2rem) !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 900px) { .sos-collections { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.sos-collections .wp-block-group.sos-tile { position: relative; margin: 0; }
.sos-tile .wp-block-image { margin: 0 0 .85rem; overflow: hidden; background: var(--sos-plinth); aspect-ratio: 4 / 5; }
.sos-tile .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--sos-ease); }
.sos-tile h3 { font-size: 1.25rem !important; margin: 0 !important; font-weight: 400; }
.sos-tile h3 a { text-decoration: none; color: var(--sos-ink); }
.sos-tile h3 a::after { content: ""; position: absolute; inset: 0; } /* whole tile is the link */
.sos-tile p { margin: .2rem 0 0; color: var(--sos-graphite); font-size: var(--wp--preset--font-size--x-small); }
@media (hover: hover) {
	.sos-tile:hover .wp-block-image img { transform: scale(1.035); }
	.sos-tile:hover h3 a { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
}

/* ---------- Homepage: real spaces ---------- */

.sos-spaces { gap: clamp(1rem, 2.4vw, 2rem) !important; }
.sos-spaces .wp-block-image { margin: 0; }
.sos-spaces .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.sos-spaces figcaption { text-align: left; margin-top: .65rem; }
.sos-spaces__main .wp-block-image img { aspect-ratio: 16 / 10; }
.sos-spaces__side .wp-block-image img { aspect-ratio: 4 / 3; }

/* ---------- Homepage: artist story ---------- */

.sos-artist { align-items: center !important; }
.sos-artist .wp-block-image img { box-shadow: var(--sos-hung); }
.sos-artist__quote {
	font-family: var(--sos-serif);
	font-style: italic;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.3;
	margin: 0 0 1.5rem;
	text-wrap: pretty;
}

/* ---------- Newsletter band ---------- */

.sos-newsletter { border-top: 1px solid var(--sos-hairline); }
.sos-newsletter__grid { align-items: end !important; }

/* ---------- Shop ---------- */

.sos-breadcrumbs { color: var(--sos-graphite); margin-bottom: 1.25rem; }
.sos-breadcrumbs a { color: var(--sos-graphite); text-decoration: none; }
.sos-breadcrumbs a:hover { color: var(--sos-ink); text-decoration: underline; }

.sos-shop__head { gap: 1rem 3rem; margin-bottom: clamp(1.5rem, 4vw, 3rem) !important; padding-bottom: 1.5rem; border-bottom: 1px solid var(--sos-hairline); }
.sos-shop__title { margin: 0 !important; font-size: var(--wp--preset--font-size--xx-large) !important; }
.sos-shop__intro { max-width: 42ch; margin: 0 !important; font-size: var(--wp--preset--font-size--small); }
.sos-shop__intro p { margin: 0; }
.sos-shop__bar { margin-bottom: 1.5rem; align-items: center !important; color: var(--sos-graphite); }
.sos-shop__bar .woocommerce-result-count { margin: 0; }
.sos-shop__bar select,
.woocommerce-ordering select {
	font: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	padding: .55rem 2rem .55rem .75rem;
	border: 1px solid var(--sos-hairline);
	background: var(--sos-paper);
	border-radius: 0;
	color: var(--sos-ink);
}
.sos-shop__aside { position: relative; min-width: 0; }
.sos-shop__main { min-width: 0; }
.sos-filters, .sos-filters * { box-sizing: border-box; }
@media (min-width: 601px) {
	.sos-filters .wc-block-product-filters__overlay,
	.sos-filters .wc-block-product-filters__overlay-content { width: 100% !important; max-width: 100% !important; }
}
.sos-filters input[type="text"], .sos-filters input[type="number"] { max-width: 100%; min-width: 0; font: inherit; font-size: var(--wp--preset--font-size--x-small); padding: .35rem .5rem; border: 1px solid var(--sos-hairline); border-radius: 0; background: var(--sos-paper); }
.sos-filters .wc-block-product-filter-price-slider__content {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	grid-template-areas: "range range" "left right" !important;
	gap: .75rem .5rem !important;
}
.sos-filters .wc-block-product-filter-price-slider__range { grid-area: range; width: 100% !important; max-width: 100%; }
.sos-filters .wc-block-product-filter-price-slider__left { grid-area: left; min-width: 0; }
.sos-filters .wc-block-product-filter-price-slider__right { grid-area: right; min-width: 0; }
.sos-filters .wc-block-product-filter-price-slider__left input,
.sos-filters .wc-block-product-filter-price-slider__right input { width: 100% !important; }
@media (min-width: 782px) {
	.sos-shop__aside .sos-filters { position: sticky; top: calc(var(--wp--custom--header--height, 76px) + 1.5rem); }
}
.sos-filters { gap: 1.75rem !important; font-size: var(--wp--preset--font-size--small); }
.sos-filter__heading {
	font-family: var(--sos-sans) !important;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 600 !important;
	letter-spacing: .02em !important;
	margin: 0 0 .6rem !important;
	color: var(--sos-ink);
}
.sos-filters .wc-block-product-filter-checkbox-list__input-wrapper::before,
.sos-filters input[type="checkbox"] { border-radius: 0 !important; }
.sos-filters .wc-block-product-filter-checkbox-list__label { font-size: var(--wp--preset--font-size--small); }
.sos-filters .wc-block-product-filter-clear-button .wp-block-button__link { background: transparent; color: var(--sos-ink); padding: .4rem .9rem; font-size: var(--wp--preset--font-size--x-small); }
.sos-filters .wc-block-product-filter-removable-chips__item { border-radius: 0; background: var(--sos-paper); border-color: var(--sos-hairline); }
.sos-filters .wc-block-product-filter-price-slider { --wc-product-filter-price-slider: var(--sos-ink); }

@media (max-width: 781px) {
	.sos-shop__layout { gap: 0 !important; }
	.sos-shop__aside { flex-basis: auto !important; margin-bottom: 1rem; }
	.sos-card__caption { flex-direction: column; gap: .25rem; }
	.sos-card__price { text-align: left; }
	.sos-card__title { font-size: 1.0625rem !important; }
}

.wc-block-product-filters__open-overlay {
	border: 1px solid var(--sos-ink) !important;
	border-radius: 0 !important;
	padding: .6rem 1rem !important;
	font-size: var(--wp--preset--font-size--small) !important;
	background: transparent !important;
	color: var(--sos-ink) !important;
}
.sos-filters .wc-block-product-filters__overlay-content { background: var(--sos-wall); }

.sos-pagination { margin-top: clamp(2.5rem, 5vw, 4rem) !important; font-size: var(--wp--preset--font-size--small); gap: .5rem !important; }
.sos-pagination a, .sos-pagination .page-numbers { text-decoration: none; padding: .35rem .7rem; }
.sos-pagination .current { border-bottom: 1px solid var(--sos-ink); }

.sos-empty { padding-block: clamp(2rem, 6vw, 5rem); }

/* ---------- Single painting ---------- */

.sos-product__top { align-items: flex-start !important; }
.sos-product__media .wp-block-woocommerce-product-image-gallery { width: 100%; max-width: none !important; }
.sos-product__media .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; max-width: none !important; float: none !important; }

.sos-product__media .woocommerce-product-gallery__wrapper { margin: 0; }
.sos-product__media .woocommerce-product-gallery__image img {
	background: transparent;
	max-height: 78vh;
	width: auto !important;
	max-width: 100% !important;
	margin-inline: auto;
	box-shadow: var(--sos-hung) !important;
}
.sos-product__media .woocommerce-product-gallery__image > a { display: flex; justify-content: center; padding: .5rem 1.75rem 2.75rem; }
.sos-product__media .flex-control-thumbs {
	display: flex !important;
	gap: .75rem;
	margin: 1rem 0 0 !important;
	padding: 0 !important;
	list-style: none;
	justify-content: center;
}
.sos-product__media .flex-control-thumbs li { width: 72px !important; float: none !important; margin: 0 !important; }
.sos-product__media .flex-control-thumbs img { opacity: .55; transition: opacity var(--sos-dur) var(--sos-ease); aspect-ratio: 1; object-fit: cover; cursor: pointer; }
.sos-product__media .flex-control-thumbs img.flex-active,
.sos-product__media .flex-control-thumbs img:hover { opacity: 1; }
.sos-product__media .woocommerce-product-gallery__trigger {
	top: 1rem !important; right: 1rem !important;
	background: var(--sos-paper) !important;
	border-radius: 0 !important;
	width: 2.5rem !important; height: 2.5rem !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
	text-indent: -9999px;
}
.sos-product__media .woocommerce-product-gallery__trigger::before { border-color: var(--sos-ink) !important; }
.sos-product__media .woocommerce-product-gallery__trigger::after { background: var(--sos-ink) !important; }
.sos-product__media .zoomImg { box-shadow: none; }

@media (min-width: 782px) {
	.sos-product__summary { position: sticky; top: calc(var(--wp--custom--header--height, 76px) + 2rem); padding-top: clamp(1rem, 4vw, 3.5rem); }
}
.sos-product__title {
	font-style: italic;
	font-weight: 360 !important;
	font-size: var(--wp--preset--font-size--xx-large) !important;
	margin: 0 !important;
	text-wrap: balance;
}
.sos-product__price { margin-top: 1.5rem !important; font-size: var(--wp--preset--font-size--large) !important; }
.sos-product__excerpt { color: var(--sos-graphite); margin-top: 1rem !important; }
.sos-product__excerpt p { margin: 0; }
.sos-product__buy { margin-top: 1.75rem !important; display: flex; flex-direction: column; gap: .75rem; }
.sos-product__buy form.cart { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0 !important; padding: 0 !important; }
.sos-product__buy .quantity { display: none; } /* originals are one of one; editions use the cart for quantities */
.sos-product__buy .single_add_to_cart_button,
.sos-product__buy .sos-buy-now .sos-button { width: 100%; min-height: 3.25rem; font-size: var(--wp--preset--font-size--small); }
.sos-product__buy form.cart .single_add_to_cart_button { flex: 1 1 100%; margin: 0 !important; float: none !important; }
.sos-product__buy form.cart > * { margin: 0 !important; }
.sos-product__buy .stock { font-size: var(--wp--preset--font-size--x-small); color: var(--sos-graphite); margin: 0 0 .5rem; }
.sos-product__buy .stock.out-of-stock { display: none; }
.sos-buy-now { margin: 0; }

.sos-sold-note { padding: 1.25rem 0 0; border-top: 1px solid var(--sos-hairline); }
.sos-sold-note p { margin: 0 0 .9rem; color: var(--sos-graphite); }
.sos-sold-note .sos-sold-note__status { display: flex; align-items: center; color: var(--sos-red); font-weight: 550; }

.sos-notes { margin-top: 2rem !important; border-top: 1px solid var(--sos-hairline); }
.sos-notes__item { border-bottom: 1px solid var(--sos-hairline); }
.sos-notes__item summary {
	list-style: none;
	cursor: pointer;
	padding: 1rem 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.sos-notes__item summary::-webkit-details-marker { display: none; }
.sos-notes__item summary::after { content: "+"; font-weight: 300; font-size: 1.25rem; line-height: 1; transition: transform var(--sos-dur) var(--sos-ease); }
.sos-notes__item[open] summary::after { transform: rotate(45deg); }
.sos-notes__item p { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--small); color: var(--sos-graphite); }

.sos-share { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem !important; }
.sos-share__label { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: var(--sos-graphite); }
.sos-share ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.sos-share a,
.sos-share button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem;
	color: var(--sos-ink);
	background: transparent; border: 0; cursor: pointer; position: relative;
}
.sos-share a:hover, .sos-share button:hover { color: var(--sos-graphite); }
.sos-share__copied { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: .75rem; white-space: nowrap; color: var(--sos-graphite); }

.sos-product__about { padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--sos-hairline); }
.sos-product__about .wp-block-woocommerce-product-description { max-width: 62ch; }

.sos-specs dl { margin: 0; border-top: 1px solid var(--sos-hairline); }
.sos-specs__row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--sos-hairline); font-size: var(--wp--preset--font-size--small); }
.sos-specs dt { color: var(--sos-graphite); }
.sos-specs dd { margin: 0; }

.sos-story { margin: 2.5rem 0 0; padding: 0; }
.sos-story blockquote {
	margin: 0;
	font-family: var(--sos-serif);
	font-style: italic;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}
.sos-story blockquote p { margin: 0 0 .75rem; }
.sos-story figcaption { font-size: var(--wp--preset--font-size--x-small); color: var(--sos-graphite); }
.sos-story figcaption::before { content: ""; display: inline-block; width: 1.5rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: .6rem; }

/* See it in a room */
.sos-room { padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--sos-hairline); }
.sos-room__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.sos-room__title { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.sos-room__tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.sos-room__tabs button {
	font: 500 var(--wp--preset--font-size--x-small)/1 var(--sos-sans);
	padding: .65rem .95rem;
	border: 1px solid var(--sos-hairline);
	background: transparent;
	color: var(--sos-ink);
	cursor: pointer;
	border-radius: 0;
}
.sos-room__tabs button[aria-pressed="true"] { border-color: var(--sos-ink); background: var(--sos-ink); color: var(--sos-wall); }
.sos-room__stage { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sos-plinth); }
.sos-room__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sos-room__art {
	position: absolute;
	height: auto;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 8px 16px -6px rgba(0, 0, 0, .35);
	transition: left 600ms var(--sos-ease), top 600ms var(--sos-ease), width 600ms var(--sos-ease);
}
@media (prefers-reduced-motion: reduce) { .sos-room__art { transition: none; } }
.sos-room__note { margin: .85rem 0 0; font-size: var(--wp--preset--font-size--x-small); color: var(--sos-graphite); }

/* Reviews */
.sos-reviews .wp-block-woocommerce-product-reviews-title { font-family: var(--sos-serif); font-size: var(--wp--preset--font-size--x-large); font-weight: 380; }
.sos-reviews:has(.wp-block-woocommerce-product-review-template:empty) .wp-block-woocommerce-product-reviews-title { font-size: var(--wp--preset--font-size--large); }

/* ---------- Pages ---------- */

.sos-page__title { font-size: var(--wp--preset--font-size--xx-large) !important; margin-bottom: clamp(1.5rem, 3vw, 2.5rem) !important; }
.sos-page--policy .wp-block-post-content h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2.5rem; }
.sos-page--policy .wp-block-post-content { font-size: var(--wp--preset--font-size--medium); }

.sos-intro-split { gap: clamp(2rem, 5vw, 5rem) !important; align-items: flex-start !important; }

.sos-faq .wp-block-details { border-bottom: 1px solid var(--sos-hairline); padding-block: 1.1rem; }
.sos-faq .wp-block-details summary { font-family: var(--sos-serif); font-size: var(--wp--preset--font-size--large); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.sos-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.sos-faq .wp-block-details summary::after { content: "+"; font-family: var(--sos-sans); font-weight: 300; transition: transform var(--sos-dur) var(--sos-ease); }
.sos-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.sos-faq .wp-block-details > :not(summary) { color: var(--sos-graphite); max-width: 62ch; }

.sos-steps { counter-reset: sos-step; list-style: none; padding: 0; margin: 0; }
.sos-steps li { counter-increment: sos-step; position: relative; padding: 0 0 1.25rem 2.75rem; }
.sos-steps li::before {
	content: counter(sos-step);
	position: absolute; left: 0; top: .05rem;
	width: 1.8rem; height: 1.8rem;
	border: 1px solid var(--sos-ink); border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: .8125rem;
}

.sos-demo-flag {
	display: block;
	font-size: .75rem;
	padding: .25rem .6rem;
	border: 1px dashed var(--sos-graphite);
	color: var(--sos-graphite);
}

/* ---------- Forms ---------- */

.sos-form { width: 100%; }
.sos-form *, .sos-form *::before, .sos-form *::after { box-sizing: border-box; }
.sos-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.sos-form--newsletter .sos-form__fields { grid-template-columns: 1fr; }
.sos-field.is-wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .sos-form__fields { grid-template-columns: 1fr; } }
.sos-field label { display: block; font-size: var(--wp--preset--font-size--x-small); font-weight: 550; margin-bottom: .4rem; }
.sos-field__req { font-weight: 400; color: var(--sos-graphite); }
.sos-field__help { margin: .4rem 0 0; font-size: var(--wp--preset--font-size--x-small); color: var(--sos-graphite); }
.sos-form input[type="text"],
.sos-form input[type="email"],
.sos-form input[type="tel"],
.sos-form select,
.sos-form textarea {
	width: 100%;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	padding: .8rem .9rem;
	border: 1px solid var(--sos-hairline);
	border-radius: 0;
	background: var(--sos-paper);
	color: var(--sos-ink);
	transition: border-color var(--sos-dur) var(--sos-ease);
}
.sos-form input:hover, .sos-form select:hover, .sos-form textarea:hover { border-color: #B8AE9C; }
.sos-form input:focus, .sos-form select:focus, .sos-form textarea:focus { border-color: var(--sos-ink); outline: 1px solid var(--sos-ink); outline-offset: 0; }
.sos-form input[type="file"] { font-size: var(--wp--preset--font-size--small); }
.sos-form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.5rem; }
.sos-form--newsletter .sos-form__footer { flex-direction: column; align-items: stretch; }
.sos-check { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--wp--preset--font-size--x-small); color: var(--sos-graphite); max-width: 46ch; }
.sos-check input { margin-top: .2rem; width: 1rem; height: 1rem; accent-color: var(--sos-ink); flex: none; }
.sos-form__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sos-form__notice { padding: 1rem 1.1rem; margin: 0 0 1.5rem; border-left: 3px solid var(--sos-ink); background: var(--sos-paper); font-size: var(--wp--preset--font-size--small); }
.sos-form__notice.is-error { border-left-color: var(--sos-red); }
.sos-form__notice:focus { outline: none; }

/* ---------- Footer ---------- */

.sos-footer__heading {
	font-family: var(--sos-sans) !important;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 600 !important;
	margin: 0 0 1rem !important;
	letter-spacing: .02em !important;
}
.sos-footer__links { list-style: none; padding: 0; margin: 0; font-size: var(--wp--preset--font-size--small); }
.sos-footer__links li { margin: 0 0 .55rem; }
.sos-footer a { color: var(--sos-ink); text-decoration: none; }
.sos-footer a:hover { text-decoration: underline; text-underline-offset: .18em; }
.sos-footer .wp-block-site-title { font-size: 2.25rem; }
.sos-footer__legal a { margin-left: 1rem; color: var(--sos-graphite); }
.sos-contact { list-style: none; padding: 0; margin: 0; font-size: var(--wp--preset--font-size--small); }
.sos-contact li { margin: 0 0 .4rem; }
.sos-social { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 1.25rem 0 0 -.5rem; }
.sos-social a { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; color: var(--sos-ink); }
.sos-social.is-empty { font-size: var(--wp--preset--font-size--x-small); }

/* ---------- WooCommerce cart, checkout, account ---------- */

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-form .wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-radius: 0 !important;
	border-color: var(--sos-hairline) !important;
	background: var(--sos-paper) !important;
}
.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus { border-color: var(--sos-ink) !important; box-shadow: 0 0 0 1px var(--sos-ink) !important; }
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--sos-serif) !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
.wc-block-components-checkout-step__title { font-family: var(--sos-serif); font-size: var(--wp--preset--font-size--large) !important; font-weight: 400 !important; }
.wc-block-components-product-name { font-family: var(--sos-serif); font-style: italic; font-size: 1.125rem; text-decoration: none; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .3); }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-radius: 0 !important; }
.wc-block-components-panel, .wc-block-components-totals-wrapper { border-color: var(--sos-hairline) !important; }
.wc-block-components-quantity-selector { border-radius: 0 !important; }
.wc-block-components-sidebar-layout .wc-block-components-main { padding-right: clamp(0px, 4vw, 4rem); }

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; border-top: 1px solid var(--sos-hairline); }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--sos-hairline); }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: .8rem 0; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { font-weight: 600; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text {
	border: 1px solid var(--sos-hairline);
	border-radius: 0;
	padding: .75rem .85rem;
	background: var(--sos-paper);
	font: inherit;
}
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error,
.wc-block-components-notice-banner { border-radius: 0 !important; }
.woocommerce-form-track-order p.form-row { margin-bottom: 1rem; }
.woocommerce-form-track-order .button { background: var(--sos-ink); color: var(--sos-wall); padding: .9rem 1.6rem; border: 0; }

/* ---------- Mini cart drawer ---------- */

.wc-block-mini-cart__drawer .components-modal__content { background: var(--sos-wall); }
.wc-block-mini-cart__title { font-family: var(--sos-serif); font-weight: 400; }

/* ---------- Journal ---------- */

.sos-journal__list { gap: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem) !important; }
.sos-journal__title a { text-decoration: none; }
.sos-journal__image img { box-shadow: var(--sos-hung); }

/* ---------- Editor placeholders ---------- */

.sos-editor-placeholder {
	padding: .9rem 1rem;
	border: 1px dashed var(--sos-hairline);
	font: 400 .8125rem/1.45 var(--sos-sans);
	color: var(--sos-graphite);
	background: rgba(255, 255, 255, .4);
}

/* Small refinements */
.wc-block-cart-items__header { text-transform: none !important; font-size: var(--wp--preset--font-size--x-small); color: var(--sos-graphite); letter-spacing: 0 !important; }
.sos-product__summary:has(.sos-label.is-sold) .sos-product__price { color: var(--sos-graphite); }
.sos-bestsellers { margin-top: var(--wp--preset--spacing--60) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { align-items: flex-start !important; gap: .35rem !important; }
