/* Bundle drawer */
.catalog-bundle-drawer--category-entry {
	height: auto;
	max-height: calc(100vh - 1.5rem);
	max-height: calc(100dvh - 1.5rem);
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: #ececec;
	overflow: visible;
}

.catalog-bundle-drawer--category-entry.offcanvas-bottom,
.catalog-bundle-drawer--category-entry.drawer--bottom {
	right: 0;
	left: 0;
}

.catalog-bundle-drawer--category-entry .offcanvas-content,
.catalog-bundle-drawer--category-entry .drawer__content {
	height: auto;
	overflow: visible;
}

.catalog-bundle-drawer--category-entry .offcanvas-header,
.catalog-bundle-drawer--category-entry .drawer__header {
	display: none;
}

.catalog-bundle-drawer--category-entry .offcanvas-body,
.catalog-bundle-drawer--category-entry .drawer__body {
	width: min(calc(100% - 2rem), 1400px);
	margin-right: auto;
	margin-left: auto;
	padding: 0;
	overflow: visible;
}

.catalog-bundle-drawer--category-entry .offcanvas-footer,
.catalog-bundle-drawer--category-entry .drawer__footer {
	width: min(calc(100% - 2rem), 1400px);
	margin: .75rem auto;
	padding: .5rem;
	border: 0;
	border-radius: .875rem;
	background: #fff;
}

.catalog-bundle-drawer__content {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: .75rem;
	padding: 1rem 0 0;
}

.catalog-bundle-drawer__badge {
	position: absolute;
	top: 0;
	left: 50%;
	display: inline-flex;
	min-width: 3.25rem;
	height: 2rem;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	padding: 0 .75rem;
	transform: translate(-50%, -50%);
	border-radius: 0.25rem;
	background: #901d78;
	box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1);
	color: #fff;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1;
	z-index: 2;
}

.catalog-bundle-drawer__badge .icon,
.catalog-bundle-drawer__badge svg {
	width: 1rem;
	height: 1rem;
	color: currentColor;
	fill: currentColor;
}

.catalog-bundle-drawer__badge--mobile {
	display: none;
	border: 0;
	font: inherit;
}

.catalog-bundle-drawer__badge-arrow {
	width: .45rem;
	height: .45rem;
	border-right: .12rem solid currentColor;
	border-bottom: .12rem solid currentColor;
	transform: rotate(-135deg);
	transition: transform .2s ease;
}

.catalog-bundle-drawer__badge--mobile[aria-expanded="true"] .catalog-bundle-drawer__badge-arrow {
	transform: rotate(45deg);
}

.catalog-bundle-drawer__selection-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.catalog-bundle-drawer__content--items-expanded .catalog-bundle-drawer__selection-header {
	display: flex;
}

.catalog-bundle-drawer__selection-heading {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: .2rem;
}

.catalog-bundle-drawer__selection-title {
	margin: 0;
	color: #901d78;
	font-size: 1.25rem;
	font-weight: 700;
}

.catalog-bundle-drawer__selection-count {
	color: #6c757d;
	font-size: .75rem;
}

.catalog-bundle-drawer__selection-close.btn {
	display: inline-flex;
	width: 2rem;
	height: 2rem;
	min-height: 0;
	flex: 0 0 2rem;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #d5d5d5;
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	color: #111;
}

.catalog-bundle-drawer__selection-close.btn:hover,
.catalog-bundle-drawer__selection-close.btn:focus {
	border-color: #b9b9b9;
	background: #f8f8f8;
	color: #111;
}

.catalog-bundle-drawer__selection-close.btn > .icon,
.catalog-bundle-drawer__selection-close.btn > svg {
	display: block;
	width: .85rem;
	height: .85rem;
	color: currentColor;
	fill: currentColor;
}

.catalog-bundle-drawer__discount {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	padding: 0 1rem;
}

.catalog-bundle-drawer__discount-message {
	margin: 0.25rem 0 0 0;
	color: #111;
	font-size: .875rem;
	font-weight: 700;
	text-align: center;
}

.catalog-bundle-drawer__progress {
	position: relative;
	margin: 1rem;
}

.catalog-bundle-drawer__progress::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: .45rem;
	border-radius: 0;
	background: #a6a6a6;
	content: '';
}

.catalog-bundle-drawer__progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	height: .45rem;
	border-radius: 0;
	background: #000;
	transition: width .2s ease;
}

.catalog-bundle-drawer__progress-threshold {
	position: absolute;
	top: -21px;
	left: var(--catalog-bundle-threshold-position);
	display: flex;
	align-items: center;
	flex-direction: column-reverse;
	transform: translateX(-50%);
	color: #a6a6a6;
}

.catalog-bundle-drawer__progress-marker {
	display: block;
	width: 3px;
	height: .85rem;
	border-radius: 0;
	background: currentColor;
}

.catalog-bundle-drawer__progress-label {
	display: block;
	margin-bottom: .25rem;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.catalog-bundle-drawer__progress-threshold--reached {
	color: #000;
}

.catalog-bundle-drawer__items {
	display: none;
	min-width: 0;
	max-height: min(42vh, 22rem);
	flex-direction: column;
	gap: .4rem;
	padding: .75rem 1rem;
	border: 1px solid #e4e4e4;
	border-radius: 0;
	background: #fff;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	scrollbar-color: #b9b9b9 transparent;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.catalog-bundle-drawer__content--items-expanded .catalog-bundle-drawer__items {
	display: flex;
}

.catalog-bundle-drawer__item {
	display: grid;
	width: 100%;
	min-width: 0;
	flex: 0 0 auto;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: center;
	gap: .65rem;
	margin: 0;
}

.catalog-bundle-drawer__image-wrapper {
	position: relative;
	width: 58px;
}

.catalog-bundle-drawer__image {
	display: flex;
	width: 58px;
	height: 58px;
	align-items: center;
	justify-content: center;
	border: 1px solid #dedede;
	background: #fff;
	overflow: hidden;
}

.catalog-bundle-drawer__image img,
.catalog-bundle-drawer__image .nophoto-container {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.catalog-bundle-drawer__remove.btn {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	width: 1rem;
	height: 1rem;
	min-height: 0;
	align-items: center;
	justify-content: center;
	padding: 0;
	transform: translate(-35%, -35%);
	border: 0;
	border-radius: 50%;
	background: #111;
	box-shadow: none;
	color: #fff;
	z-index: 1;
}

.catalog-bundle-drawer__remove.btn span {
	display: block;
	font-family: Arial, sans-serif;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1;
}

.catalog-bundle-drawer__item-details {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: .25rem;
}

.catalog-bundle-drawer__item-name {
	display: block;
	min-width: 0;
	color: #111;
	font-size: .75rem;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: anywhere;
	white-space: normal;
}

.catalog-bundle-drawer__item-price {
	display: flex;
	align-items: baseline;
	gap: .3rem;
	color: #111;
	font-size: .75rem;
	font-weight: 700;
	white-space: nowrap;
}

.catalog-bundle-drawer__item-qty {
	font-weight: 400;
}

.catalog-bundle-drawer__empty {
	min-height: 3.25rem;
	margin: 0;
	padding: 1rem;
	border: 1px solid #e4e4e4;
	border-radius: .875rem;
	background: #fff;
	color: #6c757d;
	text-align: center;
	display: none;
}

.catalog-bundle-drawer__footer {
	display: grid;
	width: 100%;
	grid-template-columns: minmax(160px, 1fr) minmax(90px, 110px) auto minmax(130px, 160px);
	align-items: center;
	gap: 1rem;
}

.catalog-bundle-drawer__footer--without-progress {
	grid-template-columns: minmax(90px, 110px) auto minmax(130px, 214px);
}

.catalog-bundle-drawer__footer--without-selection {
	grid-template-columns: minmax(160px, 1fr) auto minmax(130px, 214px);
}

.catalog-bundle-drawer__footer--without-progress.catalog-bundle-drawer__footer--without-selection {
	grid-template-columns: auto minmax(130px, 214px);
}

.catalog-bundle-drawer__selection-toggle {
	display: inline-flex;
	min-height: 2.8rem;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	padding: .4rem .75rem;
	border: 0;
	border-radius: 0;
	background: #e8e8e8;
	color: #111;
	font: inherit;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	cursor: pointer;
}

.catalog-bundle-drawer__selection-toggle-arrow {
	width: .4rem;
	height: .4rem;
	border-right: .1rem solid currentColor;
	border-bottom: .1rem solid currentColor;
	transform: rotate(-135deg) translate(-.1rem, -.1rem);
	transition: transform .2s ease;
}

.catalog-bundle-drawer__selection-toggle[aria-expanded="true"] .catalog-bundle-drawer__selection-toggle-arrow {
	transform: rotate(45deg) translateY(-.15rem);
}

.catalog-bundle-drawer__button.btn {
	width: min(100%, 214px);
	min-height: 2.8rem;
	border: 0;
	border-radius: 0;
	font-weight: 700;
	text-transform: uppercase;
  font-size: 13px;
}

.catalog-bundle-drawer__button--checkout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	justify-self: end;
	background: #901d78;
	color: #fff;
	white-space: nowrap;
}

.catalog-bundle-drawer__button--checkout:hover,
.catalog-bundle-drawer__button--checkout:focus {
	background: #6e165c;
	color: #fff;
}

.catalog-bundle-drawer__button--checkout .icon,
.catalog-bundle-drawer__button--checkout svg {
	width: 1rem;
	height: 1rem;
	color: currentColor;
	fill: currentColor;
}

.catalog-bundle-drawer__total {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	gap: .1rem;
	color: #111;
	font-size: .875rem;
	line-height: 1.15;
	white-space: nowrap;
}

.catalog-bundle-drawer__total-label,
.catalog-bundle-drawer__total-current {
	font-weight: 700;
}

.catalog-bundle-drawer__total-old {
	color: #898989;
	text-decoration: line-through;
	display: none;
}

.catalog-bundle-drawer--category-entry .catalog-bundle-drawer__items {
	padding-top: .75rem;
}

.catalog-bundle-drawer--category-entry .catalog-bundle-drawer__remove.btn {
	top: 0;
	left: 0;
	transform: translate(-35%, -35%);
	overflow: visible;
}

.catalog-bundle-drawer--category-entry .catalog-bundle-drawer__remove.btn > .icon,
.catalog-bundle-drawer--category-entry .catalog-bundle-drawer__remove.btn > svg {
	display: block;
	width: .55rem;
	height: .55rem;
	color: currentColor;
	fill: currentColor;
}

/* Bundle catalog page */
.page--catalog-bundle .page__aside-main,
.page--catalog-bundle .facets-sidebar,
.page--catalog-bundle .page__aside-head {
	display: none!important;
}

.page--catalog-bundle.page .page__content-wrapper {
	grid-template-areas:
		'content';
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
	.page--catalog-bundle.page .page__content-wrapper {
		grid-template-areas:
			'content';
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Bundle product listing */
.catalog-bundle-product-control,
.catalog-bundle-product-control__add.product__add-to-cart.btn,
.catalog-bundle-product-control__spinner {
	width: 100%;
}

.catalog-bundle-product-control__spinner {
	display: grid;
	min-height: 2.75rem;
	grid-template-columns: minmax(3rem, 1fr) 4rem minmax(3rem, 1fr);
	align-items: stretch;
	padding: .25rem;
	border-radius: 0.25rem;
	background: #eef2f2;
}

.catalog-bundle-product-control__button {
	display: inline-flex;
	min-width: 0;
	min-height: 2.25rem;
	align-items: center;
	justify-content: center;
	padding: 0 .75rem;
	border: 0;
	border-radius: 0.25rem;
	background: #901d78;
	color: #fff;
	font: inherit;
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.catalog-bundle-product-control__button:hover,
.catalog-bundle-product-control__button:focus {
	background: #901d78;
	color: #fff;
}

.catalog-bundle-product-control__button:disabled {
	cursor: wait;
	opacity: .65;
}

.catalog-bundle-product-control__quantity {
	width: 100%;
	min-width: 0;
	padding: 0 .25rem;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: #111;
	font: inherit;
	font-weight: 500;
	text-align: center;
	pointer-events: none;
}

@media (max-width: 991.98px) {
  .facets-page-top {
    display: block;
  }

	.facets-page-top__list {
		grid-template-columns: auto auto auto;
		gap: 0.5rem;
	}

	.facets-page-top .facet__title {
		min-width: 0;
		padding: .5rem;
		font-size: 12px;
	}
}

@media (max-width: 575.98px) {
	.catalog-bundle-drawer--category-entry {
		max-height: calc(100vh - .75rem);
		max-height: calc(100dvh - .75rem);
		width: calc(100% - .75rem);
	}

	.catalog-bundle-drawer--category-entry .offcanvas-body,
	.catalog-bundle-drawer--category-entry .drawer__body,
	.catalog-bundle-drawer--category-entry .offcanvas-footer,
	.catalog-bundle-drawer--category-entry .drawer__footer {
		width: calc(100% - .75rem);
	}

	.catalog-bundle-drawer--category-entry .offcanvas-footer,
	.catalog-bundle-drawer--category-entry .drawer__footer {
		margin-top: .5rem;
		margin-bottom: .5rem;
	}

	.catalog-bundle-drawer__content {
		gap: .6rem;
		padding-top: .75rem;
	}

	.catalog-bundle-drawer__badge--mobile {
		display: inline-flex;
	}

	.catalog-bundle-drawer__items {
		padding: .55rem .65rem;
	}

	.catalog-bundle-drawer__selection-header,
	.catalog-bundle-drawer__discount {
		padding-right: .65rem;
		padding-left: .65rem;
	}

	.catalog-bundle-drawer__selection-title {
		font-size: 1rem;
		margin-top: 6px;
	}

	.catalog-bundle-drawer__selection-close.btn {
		width: 2rem;
		height: 2rem;
		flex-basis: 2rem;
	}

	.catalog-bundle-drawer__footer {
		grid-template-columns: minmax(0, 1fr) minmax(100px, 1fr);
		gap: .35rem;
	}

	.catalog-bundle-drawer__progress {
		grid-column: 1 / -1;
	}

	.catalog-bundle-drawer__selection-toggle {
		display: none;
	}

	.catalog-bundle-drawer__button.btn {
		min-height: 2.5rem;
		padding-right: .75rem;
		padding-left: .75rem;
	}

	.catalog-bundle-product-control__add {
		font-size: 14px!important;
		padding: 10px;
	}
}
