.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 10px;
	padding: 20px;
}

.bundle-banner {
	width: 100%;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

.bundle-item {
	border: 1px solid #ddd;
	padding: 15px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	background: white;
	animation: appear 0.3s ease-out;
	min-height: 75px;
}

@keyframes appear {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shake {

	0%,
	100% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-5px);
	}

	75% {
		transform: translateX(5px);
	}
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideOut {
	from {
		opacity: 1;
		transform: translateX(0);
	}

	to {
		opacity: 0;
		transform: translateX(20px);
	}
}

.bundle-card:hover {
	border-color: #007bff;
	animation: pulse 0.3s ease-in-out;
}

.bundle-card.shake {
	animation: shake 0.3s ease-in-out;
}

.selected-products {
	padding: 0 15px;
	min-height: 100px;
}

.selected-slot {
	width: 100%;
	display: block;
	min-height: 50px;
	border: 2px dashed #ccc;
	position: relative;
	text-align: center;
	font-size: 14px;
	transition: all 0.3s ease;
	aspect-ratio: 4 / 4;
}

.selected-slot.filled {
	border: 2px none transparent;
	cursor: pointer;
	animation: slideIn 0.3s ease-out;
	text-align: left;
}

.selected-slot.removing {
	animation: slideOut 0.3s ease-out;
}

.selected-slot.free .bundle-item {
	border-color: #28a745;
	background-color: #e8f5e9;
	animation: pulse 0.3s ease-in-out;
}

.free-badge {
	position: absolute;
	top: -10px;
	left: 25px;
	background: #11B114;
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 12px;
	animation: appear 0.3s ease-out;
}

.remove-item {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #dc3545;
	color: white;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 14px;
	opacity: 1;
	transition: opacity 0.2s ease;
}

@media screen and (min-width: 768px) {
	.remove-item {
		opacity: 0;
	}
}

.selected-slot.filled:hover .remove-item {
	opacity: 1;
}

.item-count {
	position: absolute;
	top: -8px;
	left: -8px;
	background: #1C3C56;
	color: white;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.public-page-bundle {
	display: grid;
}

@media screen and (min-width: 768px) {
	.public-page-bundle {
		grid-template-columns: 1fr 400px;
		grid-column-gap: 20px;
	}
}

.bundle-item-meta {
	align-self: center;
	padding: 8px;
	padding-right: 10px;
}

.bundle-card {
	display: grid;
	grid-template-columns: max(100px, 20%) 1fr;
	border: 1px solid #d2d2d2;
	border-radius: 7px;
	cursor: grab;
	min-height: 75px;
	grid-column-gap: 5px;
	background-color: #fff;
}

.bundle-item-image {
	width: 100%;
	mix-blend-mode: multiply;
}

.bundle-item-title {
	font-family: 'Montserrat';
	font-size: 13px;
}

.bundle-item-description {
	display: block;
	width: 100%;
	margin-top: 2px;
	margin-bottom: 5px;
	color: #757575;
	font-size: 12px;
	margin-right: 5px;
}

.bundle-item-link {
	text-decoration: underline;
	display: block;
	width: 100%;
	margin-top: 4px;
	color: #275793;
	font-family: 'Roboto', sans-serif;
	cursor: pointer;
}

.bundle-item-list-price {
	font-size: 12px;
	color: grey;
}

.bundle-item-price {
	font-size: 16px;
	font-family: 'Montserrat';
	color: #333;
}

.column-two {
	background: #F7F9F9;
	padding: 15px;
}

.bundle-add-to-cart {
	border-radius: 2px;
	color: #ffffff;
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	font-weight: bold;
	padding: 13px 20px;
	background: #3498db;
	text-decoration: none;
}

.bundle-add-to-cart:hover {
	background-color: #287FB8;
}

.bundle-add-to-cart.disabled {
	background-color: grey;
	opacity: 0.3;
}

.bundle-square .selected-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
	grid-column-gap: 25px;
	grid-row-gap: 15px;
}

.bundle-square .bundle-card {
	display: block;
}

.bundle-square .selected-products .bundle-item {
	cursor: none;
}

.bundle-square .selected-products .bundle-item-meta {
	display: none;
}

.bundle-price-group {
	display: grid;
	grid-template-columns: 140px 1fr;
	grid-column-gap: 10px;
	font-family: 'Roboto', sans-serif;
}

.bundle-price-total-group .bundle-savings-price {
	color: #177B29
}

.bundle-column-two .bundle-square {
	background-color: #F4F5F5;
	padding: 15px;
	position: sticky;
	top: 50px;
}

.bundle-column-two {
	order: 1;
}

.bundle-column-one {
	order: 2;
}

@media screen and (min-width: 768px) {
	.bundle-column-two {
		order: 2;
	}

	.bundle-column-one {
		order: 1;
	}
}

.bundle-savings {
	margin-top: 15px;
	margin-bottom: 10px;
}

.bundle-savings-title {
	text-align: right;
	padding: 3px 10px;
}

.bundle-savings-price {
	font-size: 17px;
	color: #4a4a4a;
	font-weight: bold;
	text-align: left;
}


.bundle-list-price-group .bundle-savings-price,
.bundle-price-group-savings .bundle-savings-price {
	font-weight: normal;
}

.bundle-price-group-savings .bundle-savings-price {
	color: red;
}

.bundle-banner-mobile {
	display: none !important;
}

.bundle-banner,
.bundle-banner-mobile {
	width: 100%;
	border-radius: 5px;
}

@media screen and (max-width: 767px) {
	.bundle-banner {
		display: none;
	}

	.bundle-banner-mobile {
		display: block !important;
	}
}

.dragging {
	opacity: 0.7;
	transform: scale(0.95);
}

.drop-hover {
	background-color: rgba(0, 0, 0, 0.1);
	border: 2px dashed #666;
}

.selected-slot-placeholder {
	border: 2px dashed #999;
	background-color: rgba(0, 0, 0, 0.05);
	margin: 5px;
}

.ui-draggable-dragging {
    transform-origin: center center;
    transition: transform 0.2s ease;
    max-width: none !important;
}

.go-to-checkout-button {
	border-radius: 2px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    padding: 13px 20px;
    text-decoration: none;
    display: block;
	background: #2ECC70;
    margin: 10px 0 0 0;
    width: 100%;
}

.go-to-checkout-button:hover {
	color: #fff;
}

.bundle-filter-controls {
	background-color: #F4F5F5;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	padding:10px 15px;
}

.bundle-sort-filter,
.bundle-price-filter,
.bundle-size-filter,
.bundle-material-filter {
	display:inline-block;
	margin:0 10px;
	align-items: center;
}

.bundle-filter-controls label {
	margin-right: 5px;
	margin-bottom:5px;
	display:block;
}

.bundle-dropdown {
	border: 2px solid #F39C0F;
    border-radius: 5px;
	padding: 7px 12px;
	box-shadow: 1px 1px 0px 0px #e6e6e6;
	min-width: 150px;

}

/* js added */
.bundle-empty-selection {
    border: 1px dashed #D1D2D2;
    color: #979797;
    text-align: center;
    padding: 15px;
    margin: 15px;
}

.size-tabs {
  display: inline-flex;
  gap: 8px;
}

.size-tab {
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
	padding: 8px 13px;
    margin-right: 1px;
    margin-left: 1px;
    display: inline-block;
    box-shadow: 1px 1px 0px 0px #e6e6e6;
    border: 2px solid #C1C1C1;
    background-color: rgba(255, 255, 255, 0.75);
    min-width: 72px;
}

.size-tab:hover {
}

.size-tab.active {
      font-weight: bold;
    color: #F39C0F;
    border-color: #F39C0F;
}

.bundle-reset-filters {
	font-size:11px;
	color: #3194D5;
	font-weight:normal;
	margin-left:5px;
}