/* Bambu product-category archive. Intentionally scoped to this child-theme page. */
body.tax-product_cat {
	background: #fff;
}

body.post-type-archive-product {
	background: #fff;
}

body.bambu-modal-open {
	overflow: hidden;
}

.bambu-category-page,
.bambu-category-page * {
	box-sizing: border-box;
}

.bambu-category-page {
	min-height: 60vh;
	padding: 18px 0 80px;
	color: #151515;
}

.bambu-category-shell {
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
}

/* Use the same desktop boundaries as the header and homepage. All archive
   children share this shell; retain the existing sidebar, grid and gaps. */
@media (min-width: 1024px) {
	.bambu-category-shell {
		width: min(var(--bambu-desktop-content-max), calc(100% - 2 * var(--bambu-desktop-side-gutter)));
	}
}

.bambu-category-header {
	margin: 0 0 36px;
}

.bambu-category-header h1 {
	margin: 0;
	color: #111;
	font-size: clamp(28px, 3vw, 32px);
	font-weight: 600;
	line-height: 1.2;
}

.bambu-category-description {
	max-width: 820px;
	margin-top: 10px;
	color: #666;
	font-size: 14px;
}

.bambu-category-layout {
	display: grid;
	grid-template-columns: 254px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.bambu-category-filters {
	position: sticky;
	top: 76px;
	min-width: 0;
	background: #fff;
}

.bambu-filter-backdrop {
	display: none;
}

.bambu-filter-drawer__header {
	display: flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 1px solid #e5e5e5;
}

.bambu-filter-drawer__header strong {
	font-size: 16px;
	font-weight: 600;
}

.bambu-filter-drawer__header strong span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-left: 5px;
	padding: 0 5px;
	border-radius: 10px;
	background: #f1f1f1;
	color: #666;
	font-size: 11px;
}

.bambu-filter-drawer__header > a {
	margin-left: auto;
	color: #008f3d;
	font-size: 12px;
}

.bambu-filter-close {
	display: none;
	margin-left: 12px;
	padding: 3px 7px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
}

.bambu-filter-group {
	border-bottom: 1px solid #e8e8e8;
}

.bambu-filter-group summary {
	position: relative;
	padding: 21px 26px 17px 0;
	list-style: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
}

.bambu-filter-group summary::-webkit-details-marker {
	display: none;
}

.bambu-filter-group summary::after {
	position: absolute;
	top: 50%;
	right: 3px;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid #444;
	border-bottom: 1.5px solid #444;
	content: '';
	transform: translateY(-65%) rotate(45deg);
	transition: transform .18s ease;
}

.bambu-filter-group[open] summary::after {
	transform: translateY(-20%) rotate(225deg);
}

.bambu-filter-group__options {
	display: grid;
	gap: 10px;
	padding: 0 0 20px;
}

.bambu-filter-group__options label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #333;
	cursor: pointer;
	font-size: 14px;
}

.bambu-filter-group__options input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #00ae42;
}

.bambu-filter-group__options.bambu-color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.bambu-shop-category-nav {
	border-top: 1px solid #e5e5e5;
}

.bambu-shop-category-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bambu-shop-category-list--root + .bambu-shop-category-list--root {
	border-top: 1px solid #e5e5e5;
}

.bambu-shop-category-list li {
	margin: 0;
}

.bambu-shop-category-list li > a,
.bambu-shop-category-row > a {
	display: block;
	padding: 11px 10px;
	color: #333;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.bambu-shop-category-list li > a:hover,
.bambu-shop-category-list li > a:focus-visible,
.bambu-shop-category-row > a:hover,
.bambu-shop-category-row > a:focus-visible,
.bambu-shop-category-list li.is-current > a,
.bambu-shop-category-list li.is-current > .bambu-shop-category-row > a {
	color: #00ae42;
	background: #f0faf3;
	outline: 0;
}

.bambu-shop-category-list li + li {
	border-top: 1px solid #f0f0f0;
}

.bambu-shop-category-list .bambu-shop-category-list {
	padding: 0 0 5px 14px;
}

.bambu-shop-category-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 36px;
	align-items: stretch;
}

.bambu-shop-category-toggle {
	position: relative;
	width: 36px;
	min-height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.bambu-shop-category-toggle span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid #555;
	border-bottom: 1.5px solid #555;
	transform: translate(-50%, -65%) rotate(45deg);
	transition: transform .18s ease;
}

.bambu-shop-category-toggle[aria-expanded="true"] span {
	transform: translate(-50%, -20%) rotate(225deg);
}

.bambu-shop-category-toggle:hover,
.bambu-shop-category-toggle:focus-visible {
	background: #f5f5f5;
	outline: 0;
}

.bambu-shop-category-list--root > li > a,
.bambu-shop-category-list--root > li > .bambu-shop-category-row > a {
	font-weight: 500;
}

.bambu-color-swatches .bambu-color-swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	cursor: pointer;
}

.bambu-color-swatch input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.bambu-color-swatch__circle,
.bambu-active-filter__swatch {
	display: block;
	flex: 0 0 auto;
	border: 1px solid #c9c9c9;
	border-radius: 50%;
	background: var(--bambu-swatch);
}

.bambu-color-swatch__circle {
	width: 18px;
	height: 18px;
	transition: box-shadow .15s ease, transform .15s ease;
}

.bambu-color-swatch:hover .bambu-color-swatch__circle {
	transform: scale(1.08);
}

.bambu-color-swatch input:checked + .bambu-color-swatch__circle {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #00b83f;
}

.bambu-color-swatch input:focus-visible + .bambu-color-swatch__circle {
	outline: 2px solid #111;
	outline-offset: 3px;
}

.bambu-color-swatch.is-fallback .bambu-color-swatch__circle {
	border-style: dashed;
}

.bambu-price-inputs {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 10px;
	align-items: center;
	padding-bottom: 14px;
}

.bambu-price-inputs input {
	width: 100%;
	height: 34px;
	padding: 0 9px;
	border: 1px solid #d6d6d6;
	border-radius: 4px;
	background: #fff;
	font-size: 13px;
}

.bambu-price-inputs > span {
	font-size: 12px;
	font-weight: 600;
}

.bambu-price-range {
	position: relative;
	height: 24px;
	margin-bottom: 16px;
}

.bambu-price-range::before {
	position: absolute;
	top: 11px;
	left: 2px;
	right: 2px;
	height: 2px;
	background: #00ae42;
	content: '';
}

.bambu-price-range input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 24px;
	margin: 0;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
}

.bambu-price-range input::-webkit-slider-thumb {
	width: 15px;
	height: 15px;
	border: 1px solid #00ae42;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
}

.bambu-price-range input::-moz-range-thumb {
	width: 15px;
	height: 15px;
	border: 1px solid #00ae42;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
}

.bambu-filter-apply {
	width: 100%;
	height: 40px;
	margin-top: 18px;
	border: 0;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.bambu-category-results {
	min-width: 0;
}

.bambu-category-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	margin-bottom: 10px;
}

.bambu-category-toolbar--mobile {
	display: none;
}

.bambu-filter-toggle__icon,
.bambu-mobile-result-count,
.bambu-category-ordering--mobile {
	display: none;
}

.bambu-category-count {
	font-size: 14px;
}

.bambu-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.bambu-active-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 4px 9px;
	border: 1px solid #00b83f;
	border-radius: 4px;
	background: #fff;
	color: #008f3d;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
}

.bambu-active-filter:hover,
.bambu-active-filter:focus-visible {
	background: #f2fff6;
	color: #007c34;
}

.bambu-active-filter__swatch {
	width: 13px;
	height: 13px;
}

.bambu-active-filters__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	color: #555;
}

.bambu-active-filters__clear:hover,
.bambu-active-filters__clear:focus-visible {
	background: #f3f3f3;
	color: #111;
}

.bambu-active-filters__clear svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.bambu-category-ordering {
	margin: 0;
}

.bambu-category-ordering label {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	font-size: 13px;
}

.bambu-category-ordering select {
	width: auto;
	height: 34px;
	padding: 0 25px 0 2px;
	border: 0;
	background-color: transparent;
	color: #111;
	font-size: 13px;
	font-weight: 500;
}

.bambu-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 22px;
}

.bambu-category-card {
	position: relative;
	min-width: 0;
	margin: 0;
	background: #fff;
}

.bambu-category-card__main {
	display: block;
	color: inherit;
	text-decoration: none;
}

.bambu-category-card__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
}

.bambu-category-card__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
	transition: transform .25s ease;
}

.bambu-category-card:hover .bambu-category-card__image img {
	transform: scale(1.015);
}

.bambu-category-card .onsale {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 10px;
	min-width: 42px;
	min-height: 24px;
	padding: 4px 7px;
	border-radius: 2px;
	background: #ff4d32;
	color: #fff;
	font-size: 11px;
	line-height: 16px;
}

.bambu-category-card__body {
	display: block;
	min-height: 66px;
	padding: 10px 6px 0;
}

.bambu-category-card__title {
	display: -webkit-box;
	height: 21px;
	overflow: hidden;
	color: #111;
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
	text-align: left;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.bambu-category-card__price,
.bambu-category-card__price .price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 3px 6px;
	margin-top: 2px;
	color: #111;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

.bambu-category-card__price .amount,
.bambu-category-card__price bdi {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.bambu-category-card__price ins {
	color: #ff4d32;
	font-weight: 600;
	text-decoration: none;
}

.bambu-category-card__price del {
	order: 2;
	color: #999;
	font-size: 12px;
	font-weight: 400;
}

.bambu-category-card__action-wrap {
	position: absolute;
	z-index: 3;
	top: calc((100% - 66px) - 50px);
	left: 8px;
	right: 8px;
	height: 42px;
	pointer-events: none;
}

.bambu-category-card__action {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 0 !important;
	border-radius: 3px !important;
	background: #111 !important;
	color: #fff !important;
	box-shadow: none !important;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.bambu-category-card:hover .bambu-category-card__action,
.bambu-category-card:focus-within .bambu-category-card__action,
.bambu-category-card__action:focus {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.bambu-category-card__action-wrap:has(.bambu-category-card__action:hover),
.bambu-category-card:hover .bambu-category-card__action-wrap,
.bambu-category-card:focus-within .bambu-category-card__action-wrap {
	pointer-events: auto;
}

.bambu-category-card__action:hover {
	background: #000 !important;
}

.bambu-category-card__action.loading {
	cursor: wait;
	opacity: .72;
	pointer-events: none;
}

.bambu-category-pagination {
	margin-top: 42px;
}

.bambu-category-pagination .woocommerce-pagination {
	margin: 0;
}

/* Modal */
.bambu-category-modal[hidden] {
	display: none !important;
}

.bambu-category-modal {
	position: fixed;
	z-index: 10020;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.bambu-category-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .57);
}

.bambu-category-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(900px, 100%);
	height: min(730px, calc(100dvh - 48px));
	max-height: calc(100dvh - 48px);
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .24);
}

.bambu-category-modal__header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	padding: 0 22px;
	border-bottom: 1px solid #e8e8e8;
}

.bambu-category-modal__header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.bambu-category-modal__close {
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
}

.bambu-category-modal__content {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.bambu-category-modal__loading {
	display: grid;
	place-items: center;
	min-height: 360px;
	color: #777;
}

.bambu-category-modal__error {
	display: grid;
	place-items: center;
	align-content: center;
	min-height: 360px;
	padding: 32px;
	text-align: center;
}

.bambu-category-modal__error p {
	margin: 0 0 16px;
	color: #555;
}

.bambu-category-modal__retry {
	min-width: 112px;
	height: 40px;
	border: 1px solid #111;
	border-radius: 4px;
	background: #111;
	color: #fff;
}

.bambu-configurator-skeleton {
	display: grid;
	grid-template-columns: 44% 56%;
	height: 100%;
	min-height: 0;
}

.bambu-configurator-skeleton__gallery,
.bambu-configurator-skeleton__details {
	padding: 28px;
}

.bambu-configurator-skeleton__gallery {
	border-right: 1px solid #e8e8e8;
}

.bambu-configurator-skeleton__details {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bambu-skeleton {
	display: block;
	width: 100%;
	height: 54px;
	border-radius: 6px;
	background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 45%, #f0f0f0 65%);
	background-size: 300% 100%;
	animation: bambu-skeleton-shimmer 1.15s ease-in-out infinite;
}

.bambu-skeleton--image {
	aspect-ratio: 1 / 1;
	height: auto;
}

.bambu-configurator-skeleton__thumbs {
	display: grid;
	grid-template-columns: repeat(3, 54px);
	gap: 8px;
	margin-top: 16px;
}

.bambu-configurator-skeleton__thumbs .bambu-skeleton {
	height: 54px;
}

.bambu-skeleton--title {
	width: 68%;
	height: 34px;
}

.bambu-skeleton--price {
	width: 34%;
	height: 28px;
}

.bambu-skeleton--copy {
	height: 14px;
}

.bambu-skeleton--copy:nth-of-type(4) {
	width: 78%;
}

@keyframes bambu-skeleton-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: 0 0; }
}

.bambu-configurator {
	display: grid;
	grid-template-columns: 44% 56%;
	grid-template-rows: minmax(0, 1fr) auto;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.bambu-configurator__gallery {
	grid-column: 1;
	grid-row: 1;
	min-height: 0;
	padding: 53px 28px 28px;
	overflow: hidden;
	border-right: 1px solid #e8e8e8;
}

.bambu-configurator__main-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
	background: #f5f5f5;
}

.bambu-configurator__main-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bambu-configurator__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	overflow-x: auto;
}

.bambu-configurator__thumb {
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	padding: 2px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.bambu-configurator__thumb.is-active {
	border-color: #00b83f;
}

.bambu-configurator__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bambu-configurator__details {
	display: flex;
	grid-column: 2;
	grid-row: 1;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.bambu-configurator__summary {
	position: relative;
	padding: 30px 26px 18px;
	border-bottom: 1px solid #e8e8e8;
}

.bambu-configurator__summary h3 {
	max-width: calc(100% - 90px);
	margin: 0 0 5px;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
}

.bambu-configurator__details-link {
	position: absolute;
	top: 35px;
	right: 26px;
	color: #009c3b;
	font-size: 12px;
}

.bambu-configurator__total {
	color: #222;
	font-size: 24px;
	font-weight: 600;
}

.bambu-configurator__total .amount,
.bambu-configurator__total bdi {
	font-size: inherit;
	font-weight: inherit;
}

.bambu-configurator__description {
	position: relative;
	flex: 0 0 auto;
	padding: 14px 26px;
	border-bottom: 1px solid #e8e8e8;
	color: #666;
	font-size: 12px;
	line-height: 1.45;
}

.bambu-configurator__description-content {
	position: relative;
}

.bambu-configurator__description.is-collapsible:not(.is-expanded) .bambu-configurator__description-content {
	max-height: var(--bambu-feature-collapsed-height, 72px);
	overflow: hidden;
}

.bambu-configurator__description.is-collapsible:not(.is-expanded) .bambu-configurator__description-content::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 28px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 92%);
	content: '';
	pointer-events: none;
}

.bambu-configurator__description h1,
.bambu-configurator__description h2,
.bambu-configurator__description h3,
.bambu-configurator__description h4 {
	margin: 0 0 7px;
	color: #666;
	font-size: 14px;
	font-weight: 600;
}

.bambu-configurator__description p,
.bambu-configurator__description ul {
	margin: 0 0 7px;
}

.bambu-configurator__description-toggle {
	display: block;
	margin-top: 5px;
	padding: 0;
	border: 0;
	background: #fff;
	color: #009c3b;
	font-size: 12px;
	font-weight: 600;
}

.bambu-configurator__options {
	display: grid;
	gap: 16px;
	padding: 18px 26px;
}

.bambu-configurator__options-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

.bambu-configurator__attribute-label {
	display: block;
	margin-bottom: 7px;
	color: #777;
	font-size: 12px;
	font-weight: 600;
}

.bambu-configurator__quantity-label {
	display: block;
	margin: 0;
	color: #777;
	font-size: 12px;
	font-weight: 600;
}

.bambu-configurator__select {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #d4d4d4;
	border-radius: 4px;
	background: #fff;
}

.bambu-configurator__option-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bambu-configurator__option {
	min-height: 38px;
	padding: 7px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-size: 13px;
	font-weight: 500;
}

.bambu-configurator__option:hover:not(:disabled),
.bambu-configurator__option:focus-visible,
.bambu-configurator__option.is-selected {
	border-color: #00b83f;
}

.bambu-configurator__option.is-selected {
	box-shadow: inset 0 0 0 1px #00b83f;
}

.bambu-configurator__option:disabled {
	cursor: not-allowed;
	opacity: .35;
}

.bambu-configurator__option-list--color {
	gap: 10px;
}

.bambu-configurator__option--color {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	width: 32px;
	height: 32px;
	min-height: 32px;
	padding: 0;
	border-color: transparent;
	border-radius: 50%;
}

.bambu-configurator__color-swatch {
	display: block;
	width: 20px;
	height: 20px;
	border: 1px solid #bbb;
	border-radius: 50%;
	background: var(--bambu-swatch);
}

.bambu-configurator__color-swatch.is-fallback {
	border-style: dashed;
}

.bambu-configurator__cards {
	display: grid;
	gap: 7px;
}

.bambu-configurator__card {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	min-height: 58px;
	padding: 7px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	background: #fff;
	color: #222;
	text-align: left;
}

.bambu-configurator__card.is-selected {
	border-color: #00b83f;
	box-shadow: inset 0 0 0 1px #00b83f;
}

.bambu-configurator__card:disabled {
	opacity: .42;
	cursor: not-allowed;
}

.bambu-configurator__card img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.bambu-configurator__card-name {
	font-size: 14px;
	font-weight: 500;
}

.bambu-configurator__card-price {
	min-width: 0;
	font-size: 13px;
	font-weight: 500;
}

.bambu-configurator__quantity {
	display: inline-grid;
	grid-template-columns: 34px 42px 34px;
	border: 1px solid #d6d6d6;
	border-radius: 3px;
}

.bambu-configurator__quantity-row {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	padding: 11px 26px;
	border-top: 1px solid #e8e8e8;
}

.bambu-configurator__quantity button,
.bambu-configurator__quantity input {
	width: 100%;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
	text-align: center;
}

.bambu-configurator__quantity input {
	border-right: 1px solid #e4e4e4;
	border-left: 1px solid #e4e4e4;
	-moz-appearance: textfield;
}

.bambu-configurator__status {
	flex: 0 0 auto;
	min-height: 18px;
	padding: 0 26px 8px;
	color: #bf1e2e;
	font-size: 12px;
}

.bambu-configurator__footer {
	position: relative;
	grid-column: 1 / -1;
	grid-row: 2;
	flex: 0 0 auto;
	z-index: 2;
	bottom: 0;
	display: grid;
	grid-template-columns: 1fr 126px 208px;
	gap: 12px;
	align-items: center;
	margin-top: auto;
	padding: 16px 26px;
	border-top: 1px solid #e8e8e8;
	background: #fff;
}

.bambu-configurator__buy,
.bambu-configurator__add {
	height: 42px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
}

.bambu-configurator__buy {
	border: 1px solid #222;
	background: #fff;
	color: #111;
}

.bambu-configurator__add {
	border: 1px solid #00b83f;
	background: #00b83f;
	color: #fff;
}

.bambu-configurator__buy:disabled,
.bambu-configurator__add:disabled {
	cursor: not-allowed;
	opacity: .5;
}

@media (max-width: 991px) {
	.bambu-category-shell {
		width: min(100% - 28px, 900px);
	}

	.bambu-category-header {
		margin-bottom: 20px;
	}

	.bambu-category-layout {
		display: block;
	}

	.bambu-category-toolbar--mobile {
		display: flex;
		margin-bottom: 10px;
	}

	.bambu-filter-toggle {
		height: 38px;
		padding: 0 15px;
		border: 1px solid #ccc;
		border-radius: 4px;
		background: #fff;
		font-size: 14px;
	}

	.bambu-category-filters {
		position: fixed;
		z-index: 10010;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(340px, 88vw);
		padding: 18px;
		overflow-y: auto;
		box-shadow: 16px 0 40px rgba(0, 0, 0, .18);
		transform: translateX(-105%);
		transition: transform .22s ease;
	}

	.bambu-category-filters.is-open {
		transform: translateX(0);
	}

	.bambu-shop-categories {
		top: 56px;
	}

	.bambu-filter-close {
		display: block;
	}

	.bambu-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bambu-category-card__action {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.bambu-category-card__action-wrap {
		pointer-events: auto;
	}

	.bambu-configurator {
		grid-template-columns: 42% 58%;
	}

	.bambu-configurator-skeleton {
		grid-template-columns: 42% 58%;
	}

	.bambu-configurator__gallery,
	.bambu-configurator-skeleton__gallery {
		padding: 20px;
	}

	.bambu-configurator__gallery {
		padding-top: 45px;
	}
}

@media (max-width: 767.98px) {
	body.tax-product_cat.bambu-filter-drawer-open {
		overflow: hidden;
	}

	body.tax-product_cat.bambu-filter-drawer-open .page-wrapper {
		z-index: 100000;
	}

	body.tax-product_cat .bambu-category-toolbar--mobile {
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	body.tax-product_cat .bambu-mobile-filter-summary {
		display: flex;
		align-items: center;
		gap: 9px;
		min-width: 0;
	}

	body.tax-product_cat .bambu-filter-toggle {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		height: 34px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #111;
		font-weight: 500;
	}

	body.tax-product_cat .bambu-filter-toggle__icon {
		display: block;
		width: 14px;
		height: 14px;
		fill: none;
		stroke: currentColor;
		stroke-linejoin: round;
		stroke-width: 1.5;
	}

	body.tax-product_cat .bambu-filter-toggle__active-count {
		display: none;
	}

	body.tax-product_cat .bambu-mobile-result-count {
		display: inline;
		white-space: nowrap;
		font-size: 13px;
	}

	body.tax-product_cat .bambu-category-ordering--mobile {
		display: block;
		margin-left: auto;
	}

	body.tax-product_cat .bambu-category-results > .bambu-category-toolbar {
		display: none;
	}

	body.tax-product_cat .bambu-filter-backdrop {
		position: fixed;
		z-index: 10049;
		inset: 0;
		display: block;
		background: rgba(0, 0, 0, .42);
		opacity: 0;
		transition: opacity .22s ease;
	}

	body.tax-product_cat .bambu-filter-backdrop.is-visible {
		opacity: 1;
	}

	body.tax-product_cat .bambu-filter-backdrop[hidden] {
		display: none;
	}

	body.tax-product_cat .bambu-category-filters {
		z-index: 10050;
		width: min(360px, 90vw);
	}

	body.tax-product_cat .bambu-filter-drawer__header {
		position: sticky;
		z-index: 2;
		top: 0;
		background: #fff;
	}

	body.tax-product_cat .bambu-filter-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border-radius: 4px;
		cursor: pointer;
	}

	body.tax-product_cat .bambu-filter-drawer__header strong + .bambu-filter-close {
		margin-left: auto;
	}

	.bambu-category-page {
		padding-top: 12px;
	}

	.bambu-category-shell {
		width: calc(100% - 20px);
	}

	.bambu-category-grid {
		gap: 22px 10px;
	}

	.bambu-category-card__body {
		min-height: 74px;
		padding-right: 2px;
		padding-left: 2px;
	}

	.bambu-category-card__title,
	.bambu-category-card__price,
	.bambu-category-card__price .price {
		font-size: 13px;
	}

	.bambu-category-card__action-wrap {
		top: calc((100% - 74px) - 44px);
		left: 5px;
		right: 5px;
	}

	.bambu-category-card__action {
		height: 36px !important;
		padding: 0 6px !important;
		font-size: 11px !important;
	}

	.bambu-category-modal {
		align-items: stretch;
		padding: 0;
	}

	.bambu-category-modal__dialog {
		width: 100%;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
	}

	.bambu-category-modal__content {
		overflow-y: auto;
	}

	.bambu-configurator,
	.bambu-configurator-skeleton {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		height: auto;
		overflow: visible;
	}

	.bambu-configurator__gallery,
	.bambu-configurator__details,
	.bambu-configurator__footer {
		grid-column: 1;
		grid-row: auto;
	}

	.bambu-configurator__gallery,
	.bambu-configurator-skeleton__gallery {
		border-right: 0;
		border-bottom: 1px solid #e8e8e8;
	}

	.bambu-configurator__gallery,
	.bambu-configurator__summary,
	.bambu-configurator__options,
	.bambu-configurator__quantity-row,
	.bambu-configurator-skeleton__gallery,
	.bambu-configurator-skeleton__details {
		padding: 18px;
	}

	.bambu-configurator__main-image {
		max-height: 58vh;
	}

	.bambu-configurator__summary h3 {
		max-width: 100%;
		font-size: 23px;
	}

	.bambu-configurator__details-link {
		position: static;
		display: inline-block;
		margin-top: 7px;
	}

	.bambu-configurator__description {
		padding-right: 18px;
		padding-left: 18px;
	}

	.bambu-configurator__description-toggle {
		margin-top: 5px;
	}

	.bambu-configurator__footer {
		position: sticky;
		z-index: 2;
		bottom: 0;
		grid-template-columns: 1fr 1fr;
		padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
		background: #fff;
	}

	.bambu-configurator__total {
		grid-column: 1 / -1;
		font-size: 20px;
	}
}

@media (max-width: 390px) {
	.bambu-category-grid {
		grid-template-columns: 1fr;
	}

}

@media (prefers-reduced-motion: reduce) {
	.bambu-category-card__action,
	.bambu-category-card__image img,
	.bambu-category-filters {
		transition: none;
	}

	.bambu-skeleton {
		animation: none;
	}
}
