.section-buy-together-v2 {
	padding-block: 40px;
}
.btv2-store {
	--btv2-products-gap: 16px;
	--btv2-variation-control-size: 36px;
	width: 100%;
}
.btv2-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
	gap: 36px;
	align-items: start;
	width: 100%;
}
.btv2-swiper {
	width: 100%;
	min-width: 0;
}
.btv2-slide {
	height: auto;
}
.btv2-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.btv2-card > .product-thumb {
	height: auto;
	flex: 1 1 auto;
}
.btv2-card .product-thumb-buttons {
	display: none !important;
}

.btv2-card .product-thumb-center {
	padding-bottom: 8px !important;
}

.btv2-thumb-wrapper {
	position: relative;
}
.btv2-thumb-overlay {
	position: absolute;
	z-index: 7;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}
.btv2-thumb-overlay--top-left {
	top: 10px;
	left: 10px;
}
.btv2-thumb-overlay--top-right {
	top: 10px;
	right: 10px;
	align-items: flex-end;
}
.btv2-card.is-current .btv2-thumb-overlay--top-right {
	top: 48px;
}
.btv2-thumb-overlay--bottom-left {
	bottom: 10px;
	left: 10px;
}
.btv2-thumb-overlay--bottom-right {
	right: 10px;
	bottom: 10px;
	align-items: flex-end;
}
.btv2-selector {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 2px;
	cursor: pointer;
	pointer-events: auto;
	user-select: none;
}
.btv2-selector input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.btv2-checkmark {
	position: relative;
	display: grid;
	place-items: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border: 1px solid var(--border-color, #bbb);
	border-radius: 5px;
	background: var(--background, #fff);
	transition:
		background-color 0.15s,
		border-color 0.15s,
		box-shadow 0.15s;
}
.btv2-selector input:checked + .btv2-checkmark {
	border-color: var(--primary, #171717);
	background: var(--primary, #171717);
}
.btv2-selector input:checked + .btv2-checkmark::after {
	content: '';
	width: 9px;
	height: 5px;
	margin-top: -2px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg);
}
.btv2-selector input:focus-visible + .btv2-checkmark {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.14);
}
.btv2-current {
	position: absolute;
	z-index: 6;
	top: 10px;
	right: 10px;
	padding: 5px 8px;
	border: 0;
	border-radius: 2px;
	background: var(--primary, #171717);
	box-shadow: none;
	color: var(--primary-contrast, #fff);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

/* A thumb continua nativa; somente seu modo de compra é normalizado dentro da V2. */
.btv2-card .product-thumb-bottom {
	position: static !important;
	inset: auto !important;
	display: block !important;
	width: auto !important;
	padding: 0 10px 10px !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	transform: none !important;
}
.btv2-card .product-thumb-variations,
.btv2-card [data-thumb-slot='variations'],
.btv2-card .product-variation-wrapper {
	display: block !important;
	width: 100%;
	opacity: 1 !important;
	pointer-events: auto !important;
}
.btv2-card .variations {
	display: flex !important;
	flex-direction: column;
	gap: 10px;
	margin-top: 0 !important;
}
.btv2-card .variations .variants-group,
.btv2-card .variations .option-type-image,
.btv2-card .variations .variant-group-label {
	display: flex !important;
}
.btv2-card .variations .variants-group,
.btv2-card .variations .option-type-image {
	flex-direction: column;
	gap: 5px;
}
.btv2-card .variations .variant-group-label {
	align-items: center;
	gap: 5px;
	color: var(--text, #171717);
	font-size: 12px;
	font-weight: 600;
}
.btv2-card .variations .variant-selected-option {
	color: var(--text-secondary, #666);
	font-weight: 400;
}
.btv2-card .variations .variant-options-wrapper {
	display: flex !important;
	flex-wrap: wrap;
	gap: 6px;
}
.btv2-card .variations .variant-button {
	display: grid;
	place-items: center;
	min-width: var(--btv2-variation-control-size);
	min-height: var(--btv2-variation-control-size);
	padding: 6px 10px;
	pointer-events: auto !important;
	cursor: pointer !important;
}
.btv2-card .product-thumb .variations .variant-button.color-button {
	width: var(--btv2-variation-control-size) !important;
	height: var(--btv2-variation-control-size) !important;
	border-width: 2px;
	pointer-events: auto !important;
}
.btv2-card .variations .image-button {
	width: 56px;
	height: 56px;
	pointer-events: auto !important;
}
.btv2-card .variations .select-wrapper,
.btv2-card .variations select {
	width: 100%;
}
.btv2-card .variations select {
	min-height: 44px;
	cursor: pointer;
}

.btv2-card .product-thumb-top {
	position: relative;
}
.btv2-slide:not(:last-child) .product-thumb-top::after {
	content: '+';
	position: absolute;
	z-index: 8;
	top: 50%;
	right: -8px;
	display: grid;
	place-items: center;
	width: 16px;
	height: 20px;
	color: var(--text-secondary, #666);
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	opacity: 0.7;
	pointer-events: none;
	transform: translate(50%, -50%);
}
.btv2-product-discount {
	display: inline-flex;
	align-items: center;
	width: max-content;
	padding: 7px 10px;
	border-radius: var(--border-radius-default, 4px);
	background: var(--primary, #171717);
	color: var(--primary-contrast, #fff);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	pointer-events: auto;
	white-space: nowrap;
}
.btv2-card .product-thumb-top > :not(.btv2-thumb-overlay),
.btv2-card .product-thumb > :not(.product-thumb-top) {
	transition: opacity 0.18s ease;
}
.btv2-card.is-excluded .product-thumb-top > :not(.btv2-thumb-overlay),
.btv2-card.is-excluded .product-thumb > :not(.product-thumb-top) {
	opacity: 0.45;
}
.btv2-card.is-unavailable .product-thumb {
	opacity: 0.55;
}
.btv2-unavailable {
	margin-top: 8px;
	color: var(--danger, #dc3545);
	font-size: 13px;
	font-weight: 600;
}

.btv2-summary {
	position: static;
	align-self: start;
	padding: 24px;
	border: 1px solid var(--border-color, #e2e2e2);
	border-radius: var(--border-radius-default, 8px);
	background: var(--background, #fff);
}
.btv2-summary-title {
	margin-bottom: 20px;
	color: var(--text, #171717);
	font-size: 16px;
	font-weight: 700;
}
.btv2-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 10px;
	color: var(--text-secondary, #555);
	font-size: 13px;
}
.btv2-summary-row strong {
	color: var(--text, #171717);
	text-align: right;
	white-space: nowrap;
}
.btv2-saving-row span,
.btv2-saving-row strong {
	color: var(--success, #198754);
}
.btv2-summary-divider {
	height: 1px;
	margin: 18px 0;
	background: var(--border-color, #e2e2e2);
}
.btv2-summary-total {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	color: var(--text, #171717);
}
.btv2-summary-total span {
	font-size: 14px;
	font-weight: 600;
}
.btv2-summary-total strong {
	font-size: 18px;
	line-height: 1;
	white-space: nowrap;
}
.btv2-summary-extra {
	margin-top: 10px;
	color: var(--text-secondary, #555);
	font-size: 13px;
}
.btv2-warning {
	margin: 14px 0 0;
	color: var(--danger, #dc3545);
	font-size: 13px;
	line-height: 1.4;
}
.btv2-add {
	width: 100%;
	min-height: 46px;
	margin-top: 18px;
	white-space: normal;
}

.btv2-login {
	margin-top: 16px;
}
.btv2-swiper:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
	gap: var(--btv2-products-gap);
	overflow-x: auto;
}
.btv2-swiper:not(.swiper-initialized) .swiper-slide {
	flex: 0 0 min(300px, 80vw);
}

@media (max-width: 991px) {
	.section-buy-together-v2 {
		padding-block: 28px;
	}
	.btv2-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.btv2-summary {
		position: static;
		max-width: none;
		margin-top: 0;
	}
}

@media (max-width: 575px) {
	.btv2-pagination {
		position: static !important;
		margin-top: 16px;
	}
	.btv2-summary {
		padding: 20px;
	}
}
