/*
Theme Name: VARESTONE Signature
Theme URI: https://varestone.com
Author: iGlomart LLC
Description: One-product storefront for the VARESTONE Signature Throw. Warm ivory ground, charcoal type, deep olive actions; editorial serif headings over a quiet sans body.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: varestone
*/

/* =============================================================================
 * 01 TOKENS
 * -----------------------------------------------------------------------------
 * The palette is the brand's, not a theme default: warm ivory ground, charcoal
 * text, deep olive for anything that acts. Sand is an accent and never carries
 * text on its own.
 * ========================================================================== */

:root {
	--vs-ivory: #f2eee5;
	--vs-ivory-deep: #e9e3d6;
	--vs-charcoal: #333631;
	--vs-charcoal-soft: #5a5e56;
	--vs-olive: #4f5d48;
	--vs-olive-dark: #3d4838;
	--vs-sage: #7e8975;
	--vs-sand: #c7b495;
	--vs-line: #d9d2c3;
	--vs-white: #fffdf8;

	--vs-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--vs-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--vs-gutter: 18px;
	--vs-max: 1180px;
	--vs-tap: 44px;

	--vs-fast: 140ms;
	--vs-slow: 420ms;
	--vs-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	--vs-focus: #4f5d48;
}

@media (min-width: 768px) {
	:root { --vs-gutter: 28px; }
}

@media (min-width: 1100px) {
	:root { --vs-gutter: 32px; }
}

/* =============================================================================
 * 02 RESET AND BASE
 * ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--vs-ivory);
	color: var(--vs-charcoal);
	font-family: var(--vs-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--vs-serif);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0;
}

h1 { font-size: clamp(40px, 5.4vw, 70px); }
h2 { font-size: clamp(28px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

p { margin: 0 0 1em; }

:focus-visible {
	outline: 2px solid var(--vs-focus);
	outline-offset: 3px;
}

.vs-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.vs-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--vs-charcoal);
	color: var(--vs-ivory);
	padding: 12px 18px;
	z-index: 200;
}
.vs-skip:focus { left: 8px; top: 8px; }

/* =============================================================================
 * 03 LAYOUT
 * ========================================================================== */

.vs-container {
	width: 100%;
	max-width: var(--vs-max);
	margin-inline: auto;
	padding-inline: var(--vs-gutter);
}

/* A deliberate rhythm rather than one tall value everywhere: 32-40px on a
 * phone, 48-56 on a tablet, 64-80 on a desktop. Content sets the height. */
.vs-section { padding-block: clamp(32px, 5.2vw, 80px); }
.vs-section--tight { padding-block: clamp(24px, 3vw, 48px); }

.vs-eyebrow {
	font-family: var(--vs-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vs-charcoal-soft);
	margin: 0 0 14px;
}

.vs-lede {
	font-size: clamp(17px, 1.6vw, 20px);
	color: var(--vs-charcoal-soft);
	max-width: 54ch;
}

/* =============================================================================
 * 04 WORDMARK, HEADER, NAV
 * -----------------------------------------------------------------------------
 * The wordmark is set in spaced capitals to echo the printed mark on the
 * blanket itself, so the site and the product read as one thing.
 * ========================================================================== */

.vs-wordmark {
	font-family: var(--vs-sans);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--vs-charcoal);
	white-space: nowrap;
}

.vs-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: color-mix(in srgb, var(--vs-ivory) 92%, transparent);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--vs-line);
}

.vs-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 68px;
}

.vs-nav { display: none; }

@media (min-width: 900px) {
	.vs-nav {
		display: flex;
		gap: 30px;
		align-items: center;
	}
}

.vs-nav a {
	font-size: 14px;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: var(--vs-charcoal);
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	transition: border-color var(--vs-fast) var(--vs-ease);
}
.vs-nav a:hover { border-bottom-color: var(--vs-charcoal); }

.vs-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.vs-bag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: var(--vs-tap);
	padding: 0 4px;
	font-size: 14px;
	text-decoration: none;
}

.vs-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--vs-tap);
	height: var(--vs-tap);
	background: none;
	border: 0;
	cursor: pointer;
}
@media (min-width: 900px) { .vs-burger { display: none; } }

.vs-mobilenav {
	display: none;
	border-top: 1px solid var(--vs-line);
	padding-block: 10px 18px;
}
.vs-mobilenav[data-open="true"] { display: block; }
.vs-mobilenav a {
	display: block;
	min-height: var(--vs-tap);
	line-height: var(--vs-tap);
	text-decoration: none;
	font-size: 16px;
	border-bottom: 1px solid var(--vs-line);
}
.vs-mobilenav a:last-child { border-bottom: 0; }

/* =============================================================================
 * 05 BUTTONS
 * ========================================================================== */

.vs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--vs-tap);
	padding: 13px 30px;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 2px;
	cursor: pointer;
	transition: background var(--vs-fast) var(--vs-ease), color var(--vs-fast) var(--vs-ease);
}

.vs-btn--primary {
	background: var(--vs-olive);
	color: var(--vs-white);
}
.vs-btn--primary:hover { background: var(--vs-olive-dark); }

.vs-btn--ghost {
	background: transparent;
	color: var(--vs-charcoal);
	border-color: var(--vs-charcoal);
}
.vs-btn--ghost:hover { background: var(--vs-charcoal); color: var(--vs-ivory); }

.vs-btn[disabled], .vs-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* =============================================================================
 * 06 HERO
 * ========================================================================== */

.vs-hero__inner {
	display: grid;
	gap: 36px;
	align-items: center;
}

@media (min-width: 900px) {
	.vs-hero__inner {
		grid-template-columns: 42fr 58fr;
		gap: 48px;
	}
}

.vs-hero__sub {
	font-size: clamp(16px, 1.6vw, 18px);
	color: var(--vs-charcoal-soft);
	margin: 16px 0 26px;
	max-width: 40ch;
}

/* The hero photograph keeps its own 3:2 frame; it is never squeezed into a
 * portrait crop that would cut the person or the throw out of it. */
.vs-hero__media {
	position: relative;
	margin: 0;
	border-radius: 3px;
	overflow: hidden;
	background: var(--vs-ivory-deep);
}

.vs-hero__media img {
	width: 100%;
	height: auto;
	display: block;
}

/* =============================================================================
 * 06b THE FILM
 * -----------------------------------------------------------------------------
 * The clip is 9:16, so it gets a band to itself and sits in the middle of it.
 * Set beside a column of text it reads as a strip left over from a wider
 * picture; given the whole width to stand in, it reads as a film.
 * ========================================================================== */

.vs-reel {
	padding-block: clamp(30px, 3.6vw, 56px);
	background: var(--vs-ivory-deep);
	border-block: 1px solid var(--vs-line);
	text-align: center;
}

.vs-reel__head h2 { margin: 0 0 26px; }

/* Two cuts, two shapes, and the ratio is declared rather than waited for, so
 * the band reserves its height before a byte of video arrives and nothing
 * below it moves. Upright on a phone, where the screen has height to spare;
 * widescreen on a desktop, where it does not. */
.vs-film {
	position: relative;
	margin: 0 auto;
	width: 100%;
	max-width: min(400px, calc(68vh * 9 / 16));
	aspect-ratio: 9 / 16;
	border-radius: 3px;
	overflow: hidden;
	background: var(--vs-charcoal);
	box-shadow: 0 18px 50px rgba(51, 54, 49, 0.14);
}

/* Three limits, whichever bites first: never wider than the measure of a very
 * large screen, never more than most of the width of a normal one, and never
 * so wide that a 16:9 frame grows taller than the window it has to sit in. */
@media (min-width: 900px) {
	.vs-film {
		width: min(1360px, 82vw, calc(80vh * 16 / 9));
		max-width: none;
		aspect-ratio: 16 / 9;
		border-radius: 4px;
		box-shadow: 0 30px 70px rgba(18, 20, 17, 0.28);
	}
}

.vs-reel__act {
	display: grid;
	justify-items: center;
	gap: 12px;
	margin-top: 30px;
}

.vs-reel__price {
	margin: 0;
	font-size: 14px;
	color: var(--vs-charcoal-soft);
}

.vs-reel__price span { display: block; }

.vs-film__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vs-film__play,
.vs-film__sound {
	position: absolute;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--vs-ivory);
	background: rgba(51, 54, 49, 0.5);
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: background 160ms ease;
}

.vs-film__play:hover,
.vs-film__sound:hover { background: rgba(51, 54, 49, 0.76); }

/* The rule above sets a display, which outranks the browser's own [hidden].
 * Without this the script can hide a button and it stays on the screen. */
.vs-film__play[hidden],
.vs-film__sound[hidden] { display: none; }

.vs-film__play {
	inset: 0;
	margin: auto;
	width: 64px;
	height: 64px;
}

/* The triangle is the one solid glyph in the set; the rest are drawn in line. */
.vs-film__play .vs-icon {
	width: 26px;
	height: 26px;
	margin-left: 3px;
	fill: currentColor;
	stroke-width: 0;
}

.vs-film__sound {
	right: 12px;
	bottom: 12px;
	width: 38px;
	height: 38px;
}

.vs-film__sound .vs-icon { width: 19px; height: 19px; }

/* One button, two faces: only the icon that matches the current sound shows. */
.vs-film__ico { display: grid; place-items: center; }
.vs-film__ico--on { display: none; }
.vs-film__sound[aria-pressed="true"] .vs-film__ico--on { display: grid; }
.vs-film__sound[aria-pressed="true"] .vs-film__ico--off { display: none; }

/* =============================================================================
 * 07 FACT STRIP
 * ========================================================================== */

.vs-facts {
	border-block: 1px solid var(--vs-line);
}

.vs-facts__grid {
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.vs-facts__grid { grid-template-columns: repeat(3, 1fr); }
}

.vs-facts__item {
	padding: 22px 0;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-align: center;
	border-bottom: 1px solid var(--vs-line);
}
.vs-facts__item:last-child { border-bottom: 0; }

@media (min-width: 700px) {
	.vs-facts__item {
		border-bottom: 0;
		border-right: 1px solid var(--vs-line);
	}
	.vs-facts__item:last-child { border-right: 0; }
}

/* =============================================================================
 * 08 PURCHASE MODULE
 * -----------------------------------------------------------------------------
 * The gallery and the design buttons are one control: picking a design moves
 * the image, the variation, the price and the cart together.
 * ========================================================================== */

.vs-buy__inner {
	display: grid;
	gap: 40px;
}

@media (min-width: 900px) {
	.vs-buy__inner {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 64px;
		align-items: start;
	}
}

/* Sticky only where the buy module really has two columns. Below 900px the
 * gallery and the copy are stacked, so sticking the image would park it over
 * the title and price as the page scrolls. */
@media (min-width: 900px) {
	.vs-gallery {
		position: sticky;
		top: 92px;
	}
}

.vs-gallery__frame {
	background: var(--vs-ivory-deep);
	border-radius: 3px;
	overflow: hidden;
	/* Matches the product photographs, so nothing of the throw is cropped. */
	aspect-ratio: 4 / 5;
}

.vs-gallery__frame img {
	width: 100%; height: 100%;
	object-fit: cover;
}

.vs-buy__title { margin-bottom: 6px; }

.vs-buy__price {
	font-size: 22px;
	letter-spacing: 0.01em;
	margin: 0 0 4px;
}

.vs-buy__ship {
	font-size: 14px;
	color: var(--vs-charcoal-soft);
	margin: 0 0 26px;
}

/* Browsing the designs and being able to buy them are separate things: the
 * selector stays fully legible even while the buy button is locked. */
.vs-designs {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.vs-designs__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vs-charcoal-soft);
	padding: 0;
	margin-bottom: 12px;
}

.vs-designs__legend strong {
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
	font-size: 15px;
	color: var(--vs-charcoal);
}

.vs-designs__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.vs-design {
	position: relative;
	display: block;
	padding: 0;
	background: var(--vs-white);
	border: 1px solid var(--vs-line);
	border-radius: 2px;
	cursor: pointer;
	overflow: hidden;
	min-height: var(--vs-tap);
	transition: border-color var(--vs-fast) var(--vs-ease);
}

.vs-design:hover { border-color: var(--vs-charcoal-soft); }

.vs-design img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.vs-design__name {
	display: block;
	padding: 7px 4px;
	font-size: 12px;
	letter-spacing: 0.03em;
	text-align: center;
}

/* Selected state carries a border, a tick and a label - never colour alone. */
.vs-design[aria-pressed="true"] {
	border-color: var(--vs-olive);
	box-shadow: inset 0 0 0 1px var(--vs-olive);
}

.vs-design[aria-pressed="true"] .vs-design__name {
	background: var(--vs-olive);
	color: var(--vs-white);
}

.vs-design__tick {
	position: absolute;
	top: 8px; right: 8px;
	width: 22px; height: 22px;
	display: none;
	align-items: center;
	justify-content: center;
	background: var(--vs-olive);
	color: var(--vs-white);
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
}
.vs-design[aria-pressed="true"] .vs-design__tick { display: flex; }

/* Deliberately no faded state here. A locked checkout is communicated by the
 * buy button and its note, not by greying out the whole catalogue. */

.vs-buy__row {
	display: flex;
	gap: 12px;
	align-items: stretch;
	margin-bottom: 18px;
}

.vs-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--vs-line);
	border-radius: 2px;
	background: var(--vs-white);
}

.vs-qty__btn {
	width: var(--vs-tap);
	height: var(--vs-tap);
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 18px;
}

.vs-qty input {
	width: 46px;
	height: var(--vs-tap);
	border: 0;
	text-align: center;
	background: none;
	font: inherit;
	-moz-appearance: textfield;
}
.vs-qty input::-webkit-outer-spin-button,
.vs-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.vs-buy__cta { flex: 1; }

.vs-buy__meta {
	font-size: 14px;
	color: var(--vs-charcoal-soft);
	border-top: 1px solid var(--vs-line);
	padding-top: 18px;
}

.vs-buy__note {
	font-size: 13px;
	color: var(--vs-charcoal-soft);
	margin-top: 14px;
}

/* =============================================================================
 * 09 EDITORIAL AND STORY
 * ========================================================================== */

.vs-edit__grid {
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr;
	margin-top: 40px;
}

@media (min-width: 760px) {
	.vs-edit__grid { grid-template-columns: repeat(3, 1fr); }
}

.vs-edit__card {
	display: block;
	text-align: left;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.vs-edit__card img {
	width: 100%;
	aspect-ratio: 5 / 6;
	object-fit: cover;
	border-radius: 3px;
	transition: transform var(--vs-slow) var(--vs-ease);
}

.vs-edit__card:hover img { transform: scale(1.015); }

.vs-edit__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
	font-size: 15px;
}

.vs-edit__label span:last-child {
	font-size: 13px;
	color: var(--vs-charcoal-soft);
}

.vs-story {
	background: var(--vs-ivory-deep);
}

.vs-story__inner {
	display: grid;
	gap: 32px;
	align-items: center;
}

@media (min-width: 900px) {
	.vs-story__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* =============================================================================
 * 10 DETAILS AND FAQ
 * ========================================================================== */

.vs-spec {
	margin-top: 36px;
	border-top: 1px solid var(--vs-line);
}

.vs-spec__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	padding: 16px 0;
	border-bottom: 1px solid var(--vs-line);
}

@media (min-width: 640px) {
	.vs-spec__row { grid-template-columns: 220px 1fr; gap: 20px; }
}

.vs-spec__key {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vs-charcoal-soft);
}

.vs-faq { margin-top: 40px; }

.vs-faq details {
	border-bottom: 1px solid var(--vs-line);
}

.vs-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 0;
	min-height: var(--vs-tap);
	font-size: 17px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}

.vs-faq summary::-webkit-details-marker { display: none; }

.vs-faq summary::after {
	content: "+";
	font-size: 20px;
	color: var(--vs-charcoal-soft);
}
.vs-faq details[open] summary::after { content: "\2212"; }

.vs-faq__body {
	padding-bottom: 18px;
	color: var(--vs-charcoal-soft);
	max-width: 68ch;
}

/* =============================================================================
 * 11 FOOTER
 * ========================================================================== */

.vs-footer {
	border-top: 1px solid var(--vs-line);
	padding-block: 48px 36px;
	font-size: 14px;
}

.vs-footer__grid {
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
}

@media (min-width: 760px) {
	.vs-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.vs-footer a { text-decoration: none; }
.vs-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.vs-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.vs-footer__trust {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--vs-line);
	color: var(--vs-charcoal-soft);
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	justify-content: space-between;
}

/* The trust line already drew the rule above it. */
.vs-footer__trust + .vs-footer__legal {
	margin-top: 14px;
	padding-top: 0;
	border-top: 0;
}

.vs-footer__legal {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--vs-line);
	color: var(--vs-charcoal-soft);
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	justify-content: space-between;
}

/* =============================================================================
 * 12 STICKY BUY BAR (mobile)
 * -----------------------------------------------------------------------------
 * Sits above the home indicator and never covers the footer's help links,
 * because it hides itself once the purchase module has scrolled past.
 * ========================================================================== */

.vs-sticky {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 80;
	display: none;
	gap: 12px;
	align-items: center;
	padding: 10px var(--vs-gutter);
	padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--vs-white);
	border-top: 1px solid var(--vs-line);
}

.vs-sticky[data-show="true"] { display: flex; }

@media (min-width: 900px) { .vs-sticky { display: none !important; } }

.vs-sticky__info { flex: 1; font-size: 14px; line-height: 1.3; }
.vs-sticky__info strong { display: block; font-weight: 500; }
.vs-sticky__info span { color: var(--vs-charcoal-soft); font-size: 13px; }

/* =============================================================================
 * 13 WOOCOMMERCE SURFACES
 * ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 20px;
	padding: 14px 18px;
	border-left: 2px solid var(--vs-olive);
	background: var(--vs-white);
	font-size: 15px;
}

.woocommerce-error { border-left-color: #a8422f; }

.vs-page { padding-block: clamp(40px, 6vw, 80px); }

.vs-page h1 { margin-bottom: 24px; }
.vs-page h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 36px 0 12px; }
.vs-page ul { padding-left: 1.2em; }

/* =============================================================================
 * 14 MOTION
 * ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.vs-edit__card:hover img { transform: none; }
}


/* =============================================================================
 * 15 PHOTOGRAPHY
 * -----------------------------------------------------------------------------
 * Each supplied photograph keeps its own aspect ratio. There is no global
 * centre crop, because every one of these frames has a face or a throw near
 * an edge that a blanket rule would cut away.
 * ========================================================================== */

.vs-figure {
	margin: 0;
	border-radius: 3px;
	overflow: hidden;
	background: var(--vs-ivory-deep);
}

.vs-figure img {
	width: 100%;
	height: auto;
	display: block;
}

/* --- a photograph is a way in --------------------------------------------- */

/* Nearly all of this page is photography, and a picture a visitor cannot act
 * on is a dead end. Every lifestyle shot links to the purchase module and
 * says so with a small badge. The badge is always drawn rather than waiting
 * for a hover, because a phone has no hover and the picture has to look
 * clickable before it is touched. */
.vs-shot {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: inherit;
	color: inherit;
	text-decoration: none;
}

.vs-shot img {
	transition: transform var(--vs-slow) var(--vs-ease);
}

.vs-shot:hover img,
.vs-shot:focus-visible img { transform: scale(1.025); }

.vs-shot__badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 0;
	max-width: calc(100% - 20px);
	padding: 8px;
	border-radius: 999px;
	font-family: var(--vs-sans);
	font-size: 13px;
	line-height: 1;
	color: var(--vs-white);
	background: rgba(51, 54, 49, 0.52);
	backdrop-filter: blur(6px);
	transition: gap var(--vs-slow) var(--vs-ease),
		padding var(--vs-slow) var(--vs-ease),
		background var(--vs-fast) var(--vs-ease);
}

/* Closed it is an arrow in a circle; opened it says what the arrow means. The
 * word is clipped to nothing rather than hidden, so it can be animated and
 * still be read aloud. */
.vs-shot__word {
	display: block;
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	opacity: 0;
	transition: max-width var(--vs-slow) var(--vs-ease), opacity var(--vs-fast) var(--vs-ease);
}

.vs-shot:hover .vs-shot__badge,
.vs-shot:focus-visible .vs-shot__badge {
	gap: 8px;
	padding: 8px 12px 8px 14px;
	background: rgba(51, 54, 49, 0.74);
}

.vs-shot:hover .vs-shot__word,
.vs-shot:focus-visible .vs-shot__word {
	max-width: 12ch;
	opacity: 1;
}

.vs-shot__badge .vs-icon {
	width: 18px;
	height: 18px;
	flex: none;
}

/* The one button that sits on a photograph. It is anchored opposite the badge
 * so the two never collide, and it is a sibling of the link rather than a
 * child: a button inside a link is a control a keyboard cannot reach. */
.vs-shot__buy {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 1;
}

.vs-shot__buy .vs-btn {
	min-height: 40px;
	padding: 10px 22px;
	font-size: 14px;
	box-shadow: 0 6px 20px rgba(51, 54, 49, 0.22);
}

@media (prefers-reduced-motion: reduce) {
	.vs-shot img,
	.vs-shot__badge,
	.vs-shot__word { transition: none; }
	.vs-shot:hover img { transform: none; }
}

.vs-figure figcaption {
	padding: 10px 2px 0;
	font-size: 14px;
	color: var(--vs-charcoal-soft);
	background: var(--vs-ivory);
}

.vs-note {
	margin: 26px 0 0;
	font-size: 13px;
	color: var(--vs-charcoal-soft);
}

.vs-gallery__note {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--vs-charcoal-soft);
}

/* --- the wide family band ------------------------------------------------ */

.vs-band__copy {
	margin-top: 26px;
	max-width: 56ch;
}

.vs-band__copy h2 { margin-bottom: 10px; }

@media (min-width: 900px) {
	.vs-band__copy {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 48px;
		align-items: start;
		max-width: none;
	}
	.vs-band__copy h2 { margin-bottom: 0; }
}

/* --- three and four up ---------------------------------------------------- */

.vs-trio,
.vs-quad {
	display: grid;
	gap: 18px;
	margin-top: 30px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.vs-trio, .vs-quad { gap: 22px; }
	.vs-quad { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.vs-trio { grid-template-columns: repeat(3, 1fr); }
}

/* --- story ---------------------------------------------------------------- */

.vs-story__inner { align-items: center; }

@media (min-width: 900px) {
	.vs-story__inner { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* =============================================================================
 * 16 CHAT LAUNCHER
 * -----------------------------------------------------------------------------
 * The embedded assistant ships with a magenta gradient that belongs to no
 * part of this brand. Only its own button is restyled here - the widget, its
 * id and its behaviour are untouched, and nothing outside this site changes.
 * ========================================================================== */

#allinaa-launcher,
.allinaa-launcher,
[id^="allinaa"] button[class*="launcher"],
iframe[src*="bot.allinaa.com"] {
	--allinaa-accent: var(--vs-olive);
}

.allinaa-launcher,
#allinaa-launcher {
	background: var(--vs-olive) !important;
	background-image: none !important;
	color: var(--vs-ivory) !important;
	width: 52px !important;
	height: 52px !important;
	box-shadow: 0 2px 10px rgba(51, 54, 49, 0.18) !important;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
}

/* The sticky buy bar must never sit under the launcher on a phone. */
@media (max-width: 899px) {
	.vs-sticky[data-show="true"] ~ .allinaa-launcher,
	.vs-sticky[data-show="true"] ~ #allinaa-launcher {
		bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

/* =============================================================================
 * 17 CART
 * ========================================================================== */

.vs-empty {
	max-width: 46ch;
	padding-block: 8px 12px;
}

.vs-empty h1 { margin-bottom: 14px; }

.vs-empty p {
	color: var(--vs-charcoal-soft);
	font-size: 17px;
	margin-bottom: 24px;
}

/* Long prose reads badly at full container width. */
.vs-page--prose .entry-content,
.vs-page--prose > *:not(h1) {
	max-width: 760px;
}
