/**
 * VisionaryCue Commerce Pro - shop, product cards, categories, filters, search.
 */

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

.vc-shop {
	background: var(--vc-background);
	padding-bottom: var(--vc-space-7);
}

.vc-shop__search { padding-block: var(--vc-space-4); }

.vc-shop__chips {
	padding-block: var(--vc-space-3);
	border-bottom: 1px solid var(--vc-border);
	margin-bottom: var(--vc-space-5);
}

.vc-chips { gap: var(--vc-space-2); }

.vc-chip {
	flex: 0 0 auto;
	padding: 8px 16px;
	border: 1px solid var(--vc-border);
	border-radius: var(--vc-radius-pill);
	background: var(--vc-surface);
	color: var(--vc-text);
	font: inherit;
	font-size: 0.86em;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background var(--vc-transition) var(--vc-ease),
		color var(--vc-transition) var(--vc-ease),
		border-color var(--vc-transition) var(--vc-ease);
}

.vc-chip:hover { border-color: var(--vc-primary); color: var(--vc-primary); }

.vc-chip.is-active {
	background: var(--vc-primary);
	border-color: var(--vc-primary);
	color: var(--vc-on-primary);
}

.vc-shop__layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: var(--vc-space-6);
	align-items: start;
}

.vc-shop__layout--full { grid-template-columns: minmax(0, 1fr); }

.vc-shop__sidebar {
	position: sticky;
	top: calc(var(--vc-sticky-offset) + var(--vc-space-3));
	max-height: calc(100vh - var(--vc-sticky-offset) - var(--vc-space-5));
	overflow-y: auto;
	overscroll-behavior: contain;
	display: flex;
	flex-direction: column;
	gap: var(--vc-space-4);
	scrollbar-width: thin;
}

.vc-shop__main { min-width: 0; }

.vc-shop__header { margin-bottom: var(--vc-space-4); }

.vc-shop__title.vc-shop__title {
	margin: 0;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
	font-weight: var(--vc-heading-weight);
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.vc-shop__description {
	margin-top: var(--vc-space-2);
	color: var(--vc-muted);
	font-size: 0.92em;
	max-width: 72ch;
}

.vc-shop__description p:last-child { margin-bottom: 0; }

.vc-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vc-space-3);
	flex-wrap: wrap;
	padding: var(--vc-space-3) 0;
	margin-bottom: var(--vc-space-3);
	border-bottom: 1px solid var(--vc-border);
}

.vc-shop__count { margin: 0; color: var(--vc-muted); font-size: 0.88em; }
.vc-shop__tools { display: flex; align-items: center; gap: var(--vc-space-2); }
.vc-shop__sort { width: auto; min-width: 190px; min-height: 40px; padding-block: 8px; }
.vc-shop__filter-toggle { display: none; }

.vc-shop__results { position: relative; min-height: 200px; }
.vc-shop__results[aria-busy="true"] { opacity: 0.75; }

.vc-shop__more {
	display: flex;
	justify-content: center;
	padding-top: var(--vc-space-5);
}

/* ------------------------------------------------------------- Cat nav --- */

.vc-catnav {
	background: var(--vc-surface);
	border: 1px solid var(--vc-border);
	border-radius: var(--vc-radius);
	padding: var(--vc-space-3);
}

.vc-catnav__title.vc-catnav__title {
	margin: 0 0 var(--vc-space-2);
	padding-inline: var(--vc-space-2);
	font-size: 0.74em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--vc-muted);
}

.vc-catnav__list,
.vc-catnav__children { list-style: none; margin: 0; padding: 0; }

.vc-catnav__link,
.vc-catnav__child {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: var(--vc-radius-sm);
	background: none;
	color: var(--vc-text);
	font: inherit;
	font-size: 0.9em;
	text-align: left;
	cursor: pointer;
	transition: background var(--vc-transition) var(--vc-ease), color var(--vc-transition) var(--vc-ease);
}

.vc-catnav__link:hover,
.vc-catnav__child:hover { background: var(--vc-background); }

.vc-catnav__link.is-active {
	background: var(--vc-primary-soft);
	color: var(--vc-primary);
	font-weight: 600;
}

.vc-catnav__child.is-active { color: var(--vc-primary); font-weight: 600; }

.vc-catnav__thumb {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: var(--vc-radius-sm);
	background: var(--vc-background);
	color: var(--vc-muted);
	overflow: hidden;
}

.vc-catnav__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vc-catnav__name { flex: 1 1 auto; min-width: 0; }

.vc-catnav__count {
	flex: none;
	font-size: 0.78em;
	color: var(--vc-muted);
	font-variant-numeric: tabular-nums;
}

.vc-catnav__children {
	margin-left: 42px;
	border-left: 1px solid var(--vc-border);
	padding-left: 6px;
}

.vc-catnav__child { padding-block: 6px; font-size: 0.86em; }

/* ------------------------------------------------------------- Filters --- */

.vc-filters {
	background: var(--vc-surface);
	border: 1px solid var(--vc-border);
	border-radius: var(--vc-radius);
	padding: var(--vc-space-4);
}

.vc-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vc-space-2);
	margin-bottom: var(--vc-space-3);
}

.vc-filters__title.vc-filters__title {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 0.95em;
	font-weight: var(--vc-heading-weight);
}

.vc-filters__clear { padding-inline: 8px; }

.vc-filters__group {
	padding-block: var(--vc-space-3);
	border-top: 1px solid var(--vc-border);
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.vc-filters__legend.vc-filters__legend {
	margin: 0 0 2px;
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--vc-muted);
}

.vc-filters__options {
	display: flex;
	flex-direction: column;
	gap: 9px;
	max-height: 236px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.vc-filters__count { margin-left: auto; font-size: 0.8em; color: var(--vc-muted); }
.vc-filters .vc-checkbox { align-items: center; width: 100%; }

.vc-price-filter { display: flex; align-items: center; gap: 8px; }
.vc-price-filter .vc-input { min-height: 40px; padding: 8px 10px; }
.vc-price-filter__sep { color: var(--vc-muted); }

.vc-rating-filter .vc-rating__stars { width: 74px; }

/* -------------------------------------------------------- Product grid --- */

.vc-product-grid {
	display: grid;
	grid-template-columns: repeat(var(--vc-grid-cols, var(--vc-cols-desktop)), minmax(0, 1fr));
	gap: var(--vc-space-4);
}

/* ------------------------------------------------------------- Product --- */

.vc-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--vc-card);
	border: 1px solid var(--vc-border);
	border-radius: var(--vc-card-radius);
	box-shadow: var(--vc-shadow);
	overflow: hidden;
	transition: transform var(--vc-transition) var(--vc-ease),
		box-shadow var(--vc-transition) var(--vc-ease),
		border-color var(--vc-transition) var(--vc-ease);
}

.vc-product-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--vc-shadow-lg);
	border-color: var(--vc-border-strong);
}

.vc-product-card--carousel { width: 210px; }

/*
 * Safety net. Scroller children are flex: 0 0 auto, so a card that somehow
 * loses its carousel modifier sizes to its image instead — and because the
 * media is aspect-ratio 1/1, that width becomes an equally large height.
 * Bounding any card inside a scroller keeps a single missing class from
 * producing a multi-thousand-pixel page.
 */
.vc-scroller > .vc-product-card { width: 210px; }
.vc-product-card.is-out-of-stock .vc-product-card__media { opacity: 0.62; }

.vc-product-card__media {
	position: relative;
	aspect-ratio: var(--vc-card-ratio);
	background: var(--vc-background);
	overflow: hidden;
}

.vc-product-card__media-link { display: block; width: 100%; height: 100%; }

.vc-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.4s var(--vc-ease);
	mix-blend-mode: multiply;
}

.vc-product-card:hover .vc-product-card__img { transform: scale(1.045); }

.vc-product-card__badges {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	pointer-events: none;
}

.vc-product-card__tools {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	opacity: 0;
	transform: translateX(6px);
	transition: opacity var(--vc-transition) var(--vc-ease), transform var(--vc-transition) var(--vc-ease);
}

.vc-product-card:hover .vc-product-card__tools,
.vc-product-card:focus-within .vc-product-card__tools,
.vc-product-card__tools:has(.is-active) {
	opacity: 1;
	transform: none;
}

.vc-product-card__tools .vc-icon-btn {
	width: 34px;
	height: 34px;
	background: color-mix(in srgb, var(--vc-surface) 92%, transparent);
	backdrop-filter: blur(4px);
}

.vc-product-card__oos {
	position: absolute;
	left: 50%;
	bottom: 10px;
	transform: translateX(-50%);
	padding: 4px 12px;
	border-radius: var(--vc-radius-pill);
	background: var(--vc-secondary);
	color: #fff;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.vc-product-card__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: var(--vc-space-3);
	flex: 1 1 auto;
}

.vc-product-card__unit {
	font-size: 0.75em;
	color: var(--vc-muted);
	font-weight: 500;
}

.vc-product-card__title.vc-product-card__title {
	margin: 0;
	font-size: 0.92em;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vc-product-card__title a { color: inherit; text-decoration: none; }
.vc-product-card__title a:hover { color: var(--vc-primary); }

.vc-product-card__stock { font-size: 0.76em; font-weight: 600; }
.vc-product-card__stock--lowstock { color: var(--vc-warning); }
.vc-product-card__stock--onbackorder { color: var(--vc-info); }
.vc-product-card__stock--outofstock { color: var(--vc-error); }

.vc-product-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--vc-space-2);
	margin-top: auto;
	padding-top: var(--vc-space-2);
}

.vc-product-card__price { font-size: 0.98em; flex: 1 1 auto; min-width: 0; }
.vc-product-card__price del { display: block; font-size: 0.78em; }
.vc-product-card__price ins { text-decoration: none; }
.vc-product-card__action { flex: none; }

/* Add / stepper control */

.vc-add { position: relative; display: inline-flex; min-width: 92px; justify-content: flex-end; }
.vc-add__btn { min-width: 78px; font-weight: 700; letter-spacing: 0.04em; }
.vc-add__qty { display: none; }
.vc-add.is-active .vc-add__btn { display: none; }
.vc-add.is-active .vc-add__qty { display: inline-flex; }
.vc-add.is-busy { opacity: 0.65; pointer-events: none; }

.vc-add .vc-qty { border-color: var(--vc-primary); }
.vc-add .vc-qty__btn { width: 30px; height: 34px; color: var(--vc-primary); }
.vc-add .vc-qty__input { width: 34px; height: 34px; font-size: 0.9em; }

/* ------------------------------------------------------ Category tiles --- */

.vc-categories {
	display: grid;
	grid-template-columns: repeat(var(--vc-grid-cols, 6), minmax(0, 1fr));
	gap: var(--vc-space-3);
}

.vc-categories--scroll { display: flex; grid-template-columns: none; }
.vc-categories--scroll .vc-category-tile { width: 124px; }

.vc-category-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: var(--vc-space-3) var(--vc-space-2);
	background: var(--vc-card);
	border: 1px solid var(--vc-border);
	border-radius: var(--vc-card-radius);
	text-align: center;
	text-decoration: none;
	color: var(--vc-text);
	transition: transform var(--vc-transition) var(--vc-ease),
		border-color var(--vc-transition) var(--vc-ease),
		box-shadow var(--vc-transition) var(--vc-ease);
}

.vc-category-tile:hover {
	transform: translateY(-2px);
	border-color: var(--vc-primary);
	box-shadow: var(--vc-shadow);
	color: var(--vc-text);
}

.vc-category-tile__media {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--vc-background);
	overflow: hidden;
}

.vc-category-tile__img { width: 100%; height: 100%; object-fit: cover; }
.vc-category-tile__placeholder { color: var(--vc-muted); }

.vc-category-tile__name {
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vc-category-tile__count { font-size: 0.74em; color: var(--vc-muted); }

/* -------------------------------------------------------------- Search --- */

.vc-search { position: relative; width: 100%; }

.vc-search__form {
	position: relative;
	display: flex;
	align-items: center;
}

/*
 * The field owns the frame; the input inside it is a bare text box.
 *
 * The icon used to be absolutely positioned over an input padded to clear it,
 * which broke whenever a theme's own input[type="search"] rule (a more
 * specific selector than a single class) reset that padding and slid the
 * placeholder under the icon. As flex items they can never overlap.
 */
.vc-search__field {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 0 8px 0 18px;
	background: var(--vc-surface);
	border: 1px solid var(--vc-border);
	border-radius: var(--vc-radius-pill);
	box-shadow: var(--vc-shadow-sm);
	transition: border-color var(--vc-transition) var(--vc-ease),
		box-shadow var(--vc-transition) var(--vc-ease);
}

.vc-search__field:hover { border-color: var(--vc-border-strong); }

.vc-search__field:focus-within {
	border-color: var(--vc-primary);
	box-shadow: 0 0 0 4px var(--vc-primary-soft), var(--vc-shadow-sm);
}

.vc-search__icon {
	flex: none;
	display: grid;
	place-items: center;
	color: var(--vc-muted);
	pointer-events: none;
	transition: color var(--vc-transition) var(--vc-ease);
}

.vc-search__field:focus-within .vc-search__icon { color: var(--vc-primary); }

/*
 * Two classes deep so a theme's input[type="search"] cannot take the box back
 * and reintroduce a border, background or padding inside the field.
 */
.vc-search__field .vc-search__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 14px 0;
	font: inherit;
	line-height: 1.2;
	color: var(--vc-text);
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.vc-search__field .vc-search__input:focus {
	outline: none;
	border: 0;
	background: none;
	box-shadow: none;
}

.vc-search__input::placeholder { color: var(--vc-muted); opacity: 1; }

/* The header is 72px tall by default, so its search sits one size down. */
.vc-header__search .vc-search__field {
	min-height: 44px;
	gap: 10px;
	padding-left: 16px;
}

.vc-header__search .vc-search__field .vc-search__input {
	padding-block: 10px;
	font-size: 0.94em;
}

.vc-header__search .vc-search__clear { width: 30px; height: 30px; }

.vc-search__input::-webkit-search-cancel-button { display: none; }



.vc-search__clear {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--vc-background);
	color: var(--vc-muted);
	cursor: pointer;
	transition: background var(--vc-transition) var(--vc-ease),
		color var(--vc-transition) var(--vc-ease);
}

.vc-search__clear:hover {
	background: var(--vc-border);
	color: var(--vc-text);
}

/*
 * [hidden] is only display:none from the user-agent sheet, which any class
 * carrying a display value outranks. Without this the clear button showed on
 * an empty field.
 */
.vc-search__clear[hidden] { display: none; }

.vc-search__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: var(--vc-z-header);
	max-height: min(70vh, 520px);
	overflow-y: auto;
	background: var(--vc-surface);
	border: 1px solid var(--vc-border);
	border-radius: var(--vc-radius);
	box-shadow: var(--vc-shadow-lg);
	overscroll-behavior: contain;
}

.vc-search__panel[hidden] { display: none; }

.vc-search__panel--inline {
	position: static;
	max-height: none;
	border: 0;
	box-shadow: none;
	background: transparent;
	margin-top: var(--vc-space-3);
}

.vc-search__section { padding: var(--vc-space-2); }
.vc-search__section + .vc-search__section { border-top: 1px solid var(--vc-border); }

.vc-search__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 10px;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--vc-muted);
}

.vc-search__clear-recent {
	border: 0;
	background: none;
	color: var(--vc-primary);
	font: inherit;
	font-size: 1em;
	font-weight: 700;
	text-transform: inherit;
	letter-spacing: inherit;
	cursor: pointer;
}

.vc-search__recent,
.vc-search__categories,
.vc-search__results { list-style: none; margin: 0; padding: 0; }

.vc-search__recent-item,
.vc-search__category {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: var(--vc-radius-sm);
	background: none;
	color: var(--vc-text);
	font: inherit;
	font-size: 0.9em;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.vc-search__recent-item:hover,
.vc-search__category:hover { background: var(--vc-background); }
.vc-search__category span { margin-left: auto; font-size: 0.8em; color: var(--vc-muted); }

.vc-search__results li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-right: 10px;
	border-radius: var(--vc-radius-sm);
}

.vc-search__results li:hover { background: var(--vc-background); }

.vc-search-result {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 10px;
	border-radius: var(--vc-radius-sm);
	color: var(--vc-text);
	text-decoration: none;
}

.vc-search-result.is-active { background: var(--vc-primary-soft); }

.vc-search-result__thumb {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: var(--vc-radius-sm);
	background: var(--vc-background);
	overflow: hidden;
}

.vc-search-result__thumb img { width: 100%; height: 100%; object-fit: contain; }
.vc-search-result__img { max-width: 100%; height: auto; }

.vc-search-result__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.vc-search-result__name {
	font-size: 0.9em;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vc-search-result__meta { font-size: 0.76em; color: var(--vc-muted); }
.vc-search-result__price { font-size: 0.86em; font-weight: 700; }
.vc-search-result__price del { font-weight: 400; font-size: 0.85em; color: var(--vc-muted); }
.vc-search-result__price ins { text-decoration: none; }
.vc-search-result__add { flex: none; }

.vc-search__empty { padding: var(--vc-space-5); text-align: center; color: var(--vc-muted); }

.vc-search__view-all {
	display: block;
	padding: 12px;
	text-align: center;
	font-size: 0.86em;
	font-weight: 700;
	color: var(--vc-primary);
	text-decoration: none;
	border-top: 1px solid var(--vc-border);
}

.vc-search__view-all:hover { background: var(--vc-background); }

/* ------------------------------------------------- Mobile search sheet --- */

.vc-mobile-search {
	position: fixed;
	inset: 0;
	z-index: var(--vc-z-modal);
	background: var(--vc-surface);
	transform: translateY(100%);
	transition: transform 0.24s var(--vc-ease);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.vc-mobile-search[hidden] { display: none; }
.vc-mobile-search.is-open { transform: none; }

.vc-mobile-search__bar {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: var(--vc-space-3);
	padding-top: calc(var(--vc-space-3) + env(safe-area-inset-top, 0px));
}

.vc-mobile-search__bar > .vc-icon-btn { margin-top: 5px; flex: none; }
.vc-mobile-search__field { flex: 1 1 auto; min-width: 0; }

/* ---------------------------------------------------------- Pagination --- */

.vc-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: var(--vc-space-5);
}

.vc-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 12px;
	border: 1px solid var(--vc-border);
	border-radius: var(--vc-radius-sm);
	background: var(--vc-surface);
	color: var(--vc-text);
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 600;
}

.vc-pagination .page-numbers:hover { border-color: var(--vc-primary); color: var(--vc-primary); }

.vc-pagination .page-numbers.current {
	background: var(--vc-primary);
	border-color: var(--vc-primary);
	color: var(--vc-on-primary);
}

.vc-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* --------------------------------------------------------- Responsive --- */

@media (max-width: 1279px) {
	.vc-shop__layout { grid-template-columns: 230px minmax(0, 1fr); gap: var(--vc-space-5); }
	.vc-product-grid { grid-template-columns: repeat(min(var(--vc-grid-cols, 4), var(--vc-cols-tablet)), minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
	.vc-shop__layout { grid-template-columns: minmax(0, 1fr); }
	.vc-shop__sidebar { display: none; }
	.vc-shop__filter-toggle { display: inline-flex; }
	.vc-filter-drawer .vc-shop__sidebar { display: block; }
	.vc-product-grid { grid-template-columns: repeat(var(--vc-cols-tablet), minmax(0, 1fr)); }
	.vc-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.vc-product-grid {
		grid-template-columns: repeat(var(--vc-cols-mobile), minmax(0, 1fr));
		gap: var(--vc-space-3);
	}

	.vc-product-card__body { padding: var(--vc-space-2); gap: 4px; }
	.vc-product-card__title { font-size: 0.86em; }

	.vc-product-card__footer {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.vc-product-card__action { width: 100%; }
	.vc-add { width: 100%; }
	.vc-add__btn { width: 100%; }
	.vc-add.is-active .vc-add__qty { display: flex; width: 100%; justify-content: space-between; }

	/*
	 * The stepper spans the card here, so the field takes the leftover space.
	 *
	 * min-width is the part that matters: a flex item defaults to
	 * min-width:auto, and an input's intrinsic width is about 20 characters,
	 * so "flex: 1 1 auto" could never shrink it. The field stayed ~180px, the
	 * stepper outgrew the card, and .vc-qty's overflow:hidden clipped the plus
	 * button off the edge.
	 */
	.vc-add .vc-qty__input {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}

	/* Keep the buttons at their own size while the field absorbs the rest. */
	.vc-add .vc-qty__btn { flex: none; }

	.vc-product-card__tools { opacity: 1; transform: none; }

	.vc-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vc-shop__toolbar { position: sticky; top: 0; z-index: var(--vc-z-sticky); background: var(--vc-background); }
	.vc-shop__sort { min-width: 0; flex: 1 1 auto; }
	.vc-shop__tools { flex: 1 1 auto; justify-content: flex-end; }
	.vc-search__panel { max-height: 60vh; }
}

@media (max-width: 400px) {
	.vc-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
