.mbvs-swatches {
	--mbvs-columns: 6;
	--mbvs-columns-tablet: 4;
	--mbvs-columns-mobile: 3;
	width: 100%;
}

.mbvs-group + .mbvs-group {
	margin-top: 24px;
}

/* Product gallery */
.mbvs-gallery {
	width: 100%;
	margin-bottom: 16px;
}

.mbvs-gallery__main {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #f2f2f2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mbvs-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.mbvs-gallery__placeholder {
	color: #888;
	font-size: 14px;
	padding: 24px;
}

.mbvs-gallery__thumbs-wrap {
	position: relative;
	margin-top: 12px;
}

.mbvs-gallery__thumbs-wrap.is-empty {
	display: none;
}

.mbvs-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(var(--mbvs-thumb-columns, 4), minmax(0, 1fr));
	gap: var(--mbvs-thumb-gap, 10px);
}

.mbvs-gallery__thumbs.is-empty {
	display: none;
}

/* Carousel mode: single row + overlay arrows (aligned with main image) */
.mbvs-gallery__thumbs-wrap.is-carousel {
	display: block;
}

.mbvs-gallery__thumbs-wrap.is-carousel .mbvs-gallery__thumbs {
	display: flex;
	width: 100%;
	gap: var(--mbvs-thumb-gap, 10px);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	grid-template-columns: none;
	cursor: grab;
}

.mbvs-gallery__thumbs-wrap.is-carousel .mbvs-gallery__thumbs.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}

.mbvs-gallery__thumbs-wrap.is-carousel .mbvs-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.mbvs-gallery__thumbs-wrap.is-carousel .mbvs-gallery__thumb {
	flex: 0 0 calc((100% - (var(--mbvs-thumb-gap, 10px) * (var(--mbvs-thumb-columns, 4) - 1))) / var(--mbvs-thumb-columns, 4));
	width: calc((100% - (var(--mbvs-thumb-gap, 10px) * (var(--mbvs-thumb-columns, 4) - 1))) / var(--mbvs-thumb-columns, 4));
	max-width: calc((100% - (var(--mbvs-thumb-gap, 10px) * (var(--mbvs-thumb-columns, 4) - 1))) / var(--mbvs-thumb-columns, 4));
	scroll-snap-align: start;
}

.mbvs-gallery__nav {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: auto;
	height: auto;
	min-width: 24px;
	min-height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #111;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
	transition: opacity 0.15s ease;
}

.mbvs-gallery__nav--prev {
	left: 6px;
}

.mbvs-gallery__nav--next {
	right: 6px;
}

.mbvs-gallery__nav:hover {
	opacity: 0.7;
	background: transparent;
}

.mbvs-gallery__nav:disabled {
	opacity: 0.25;
	cursor: default;
}

.mbvs-gallery__nav[hidden] {
	display: none;
}

.mbvs-gallery__thumb {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	cursor: pointer;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #f5f5f5;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.mbvs-gallery__thumb.is-active {
	border-width: 2px;
	border-color: #111;
}

.mbvs-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	background: #f5f5f5;
}

.mbvs-notice {
	padding: 12px 14px;
	border: 1px dashed #c8c8c8;
	color: #666;
	font-size: 13px;
	line-height: 1.4;
}

.mbvs-label {
	display: block;
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.4;
	color: #1a1a1a;
}

.mbvs-label__prefix {
	font-weight: 700;
	margin-right: 0.25em;
}

.mbvs-label__value {
	font-weight: 400;
}

.mbvs-grid {
	display: grid;
	grid-template-columns: repeat(var(--mbvs-columns), minmax(0, 1fr));
	gap: 8px;
	align-items: start;
}

.mbvs-option {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	cursor: pointer;
	background: #fff;
	border: 1px solid #d0d0d0;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
	font: inherit;
	color: inherit;
	text-align: center;
}

.mbvs-option:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

/* Image tiles */
.mbvs-option--image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 4px;
	overflow: hidden;
	border-width: 1px;
	border-style: solid;
}

.mbvs-option--image.is-selected {
	border-width: 2px;
	border-color: #111;
}

.mbvs-option__media {
	display: block;
	width: 100%;
	height: 100%;
}

.mbvs-option__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	background: #fff;
}

/* Pill buttons (no image) */
.mbvs-option--pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 40px;
	padding: 8px 18px;
	border-radius: 999px;
	border-width: 1px;
	border-style: solid;
	white-space: nowrap;
	line-height: 1.2;
	font-size: 14px;
}

.mbvs-option--pill.is-selected {
	background: #111;
	border-color: #111;
	color: #fff;
}

/* Pill-only layout */
.mbvs-group--pills .mbvs-grid {
	display: flex;
	flex-wrap: wrap;
	grid-template-columns: none;
}

/* Mixed: keep grid; pills fill a cell */
.mbvs-group--mixed .mbvs-option--pill {
	width: 100%;
	border-radius: 4px;
	aspect-ratio: 1 / 1;
	white-space: normal;
	padding: 8px;
	font-size: 12px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 1024px) {
	.mbvs-grid {
		grid-template-columns: repeat(var(--mbvs-columns-tablet), minmax(0, 1fr));
	}

	.mbvs-gallery__thumbs {
		grid-template-columns: repeat(var(--mbvs-thumb-columns-tablet, 4), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.mbvs-grid {
		grid-template-columns: repeat(var(--mbvs-columns-mobile), minmax(0, 1fr));
	}

	.mbvs-gallery__thumbs {
		grid-template-columns: repeat(var(--mbvs-thumb-columns-mobile, 3), minmax(0, 1fr));
	}

	.mbvs-actions__buttons {
		flex-direction: column;
	}
}

/* -------------------- Price -------------------- */
.mbvs-price-widget {
	width: 100%;
}

.mbvs-price {
	font-family: "Montserrat", Sans-serif;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 400;
	color: #2c2c2c;
}

.mbvs-price del {
	opacity: 0.7;
	font-weight: 400;
	margin-right: 0.35em;
}

.mbvs-price ins {
	text-decoration: none;
}

.mbvs-price-suffix {
	margin-top: 4px;
	font-size: 13px;
	color: #777;
}

/* -------------------- Actions / Buy Now -------------------- */
.mbvs-actions-widget {
	width: 100%;
}

.mbvs-actions__row--meta {
	display: flex;
	align-items: center;
	margin-bottom: 16px;
}

.mbvs-qty {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	width: 132px;
	height: 44px;
	padding: 4px;
	border-radius: 999px;
	background: #f0f0f0;
	color: #1a1a1a;
	box-sizing: border-box;
}

.mbvs-qty__btn {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
}

.mbvs-qty__btn:hover {
	background: rgba(0, 0, 0, 0.06);
}

.mbvs-qty__btn:active {
	background: rgba(0, 0, 0, 0.1);
}

.mbvs-qty__icon {
	display: block;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	transform: translateY(-0.5px);
}

.mbvs-qty__input {
	flex: 1 1 auto;
	width: 36px;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	text-align: center;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: inherit;
	appearance: textfield;
	-moz-appearance: textfield;
}

.mbvs-qty__input::-webkit-outer-spin-button,
.mbvs-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.mbvs-actions__buttons {
	display: flex;
	gap: 12px;
	width: 100%;
}

.mbvs-btn {
	appearance: none;
	-webkit-appearance: none;
	flex: 1 1 0;
	min-height: 52px;
	padding: 12px 20px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.mbvs-btn:disabled,
.mbvs-btn.is-loading {
	opacity: 0.65;
	cursor: wait;
}

.mbvs-btn--buy {
	background: #7B5959;
	border-color: #7B5959;
	color: #fff;
}

.mbvs-btn--cart {
	background: #fff;
	border-color: #1a1a1a;
	color: #1a1a1a;
}

.mbvs-actions__message {
	margin-top: 10px;
	min-height: 1.2em;
	font-size: 13px;
	color: #2f5d48;
}

.mbvs-actions__message.is-error {
	color: #b42318;
}
