img {
	border-radius: 16px;
}

.hotspot {
	position: absolute;
	width: 56px;
	height: 56px;
	background-color: #21171b38;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	cursor: pointer;
	transition: background-color 0.3s;
}

.hotspot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	background-color: #dbf8ff;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: background-color 0.3s, width 0.3s, height 0.3s;
}

.hotspot:hover::after,
.hotspot:active::after {
	background-color: #f8f9fb;
	width: 32px;
	height: 32px;
}

.hotspot-popup {
	position: absolute;
	width: 175px;
	height: auto;
	padding: 15px;
	background-color: #f8f9fb;
	box-shadow: 0px 2px 6px 2px #00000026, 0px 1px 2px 0px #0000004d;
	z-index: 9999;
}

.hotspot-popup-content {
	position: relative;
}

.hotspot-popup .product-name,
.hotspot-popup .product-category {
	font-family: Roboto;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.1px;
	text-align: left;
	margin-top: 5px;
	margin-bottom: 5px;
}

.hotspot-popup .product-price {
	font-family: Roboto;
	font-size: 22px;
	font-weight: 700;
	line-height: 28px;
	text-align: left;
	margin-top: 10px;
	margin-bottom: 15px;
}

.hotspot-popup .product-category {
	color: #727c7e;
}

/* variable products popup */

.hotspot-popup .variation-select {
	width: 100%;
	border: 1px solid #dfdfdf;
	border-radius: 6px;
	padding: 5px 2px;
	margin: 15px 0;
}

/* variable products product-list */

.product-list-container .variation-select {
	width: 50%;
	border: 1px solid #dfdfdf;
	border-radius: 6px;
	padding: 5px 2px;
	margin: 15px 0;
}

button.minus svg,
button.plus svg {
	width: 14px;
	height: auto;
}

.quantity-controls {
	display: flex;
	align-items: center;
}

.quantity-controls button {
	background-color: #eceeef;
	border: 1px solid #ddd;
	padding: 5px;
	cursor: pointer;
	transition: background-color 0.2s;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.quantity-controls button:hover {
	background-color: white !important;
}

.quantity-controls input[type="number"] {
	width: 30px;
	text-align: center;
	margin: 0 5px;
	border: none;
	font-size: 16px;
	font-weight: 500;
	color: #0a88a4;
	background-color: transparent;
	text-align: center !important;
}

.quantity-controls input[type="number"]::-webkit-inner-spin-button,
.quantity-controls input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.quantity-controls input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.product-list-title {
	margin-top: 80px;
	font-family: Cormorant Infant;
	font-size: 36px;
	font-weight: 500;
	line-height: 44px;
	text-align: left;
	color: #202324;
}

.product-list-container {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
	margin-top: 35px;
	position: relative;
}

.hotspot-product-list {
	grid-column: 1;
	border: 1px solid #d6d9da;
	border-radius: 16px;
	padding: 32px;
}

.grouped-product-list {
	grid-column: 1;
	border: 1px solid #d6d9da;
	border-radius: 16px;
	padding: 32px;
}

.estimated-total-wrapper {
	grid-column: 2;
	grid-row: 1;
	border: 1px solid #d6d9da;
	border-radius: 16px;
	max-height: 172px;
	overflow-y: auto;
	align-self: flex-end;
	position: sticky;
	bottom: 15px;
}

.hotspot-product-list ul {
	list-style-type: none;
	padding: 0;
}

.hotspot-product-list li {
	font-size: 16px;
	margin-bottom: 10px;
}

.hotspot-product-item {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.product-image {
	margin-right: 20px;
	width: 170px;
	height: 170px;
	overflow: hidden;
}

.product-image img {
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 16px;
	border: 0.4px solid #d6d9da;
}

.product-info {
	flex: 1;
}

.hotspot-product-list .product-name,
.hotspot-product-list .grouped-product-name {
	font-family: Cormorant Infant;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
	text-align: left;
	color: #202324;
	margin-bottom: 10px;
}

.hotspot-product-list .product-price {
	font-family: Roboto;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-align: left;
	color: #727c7e;
	margin-bottom: 20px;
}

hr {
	border: 0.5px solid #d6d9da;
	margin: 30px 0;
}

.estimated-total-wrapper {
	padding: 32px 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.estimated-total-text {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.total-text {
	font-family: Roboto;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-align: left;
	color: #727c7e;
}

.total-price {
	font-family: Roboto;
	font-size: 22px;
	font-weight: 600;
	line-height: 28px;
	letter-spacing: 0em;
	text-align: right;
	color: #202324;
}

#addToCartBtn {
	width: 100%;
	height: 48px;
	text-align: center;
	background-color: #0a88a4;
	border: none;
	border-radius: 100px;
	font-family: Roboto;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-align: center;
	color: #dbf8ff;
	cursor: pointer;
	transition: background-color 0.3s;
}

#addToCartBtn:hover {
	background-color: #3abbe2;
}

.woocommerce-message {
	color: #047857;
	background-color: #d1fae5;
	padding: 20px 25px;
	margin-top: 30px;
	font-weight: 500;
	display: flex;
	justify-content: space-between;
}

.grouped-parent {
	padding: 15px;
	border: 1px solid #eaeaea;
	border-radius: 4px;
	background-color: #f8f8f8;
	margin-bottom: 20px;
}

.grouped-product-info {
	margin-bottom: 15px;
	width: 100%;
}

.grouped-children-list {
	list-style: none;
	padding-left: 20px;
	margin-top: 0;
	margin-bottom: 0;
}

.grouped-child-item {
	display: grid;
	grid-template-columns: auto 2fr 0.5fr 1fr;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding: 10px;
	border: 1px solid #eaeaea;
	border-radius: 4px;
	background-color: #f9fafb;
	position: relative;
	z-index: 1;
}

.grouped-child-item .product-image {
	width: 60px;
	height: 60px;
	margin-right: 10px;
	padding: 3px;
	border-radius: 4px;
	overflow: visible;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.grouped-child-item .product-image img {
	max-width: 100%;
	max-height: 100%;
	transition: transform 0.3s ease;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.grouped-child-item:hover .product-image img {
	transform: translate(-50%, -50%) scale(1.6);
	border-radius: 5px;
	z-index: 2;
}

.grouped-child-name {
	font-size: 0.85em;
	color: #555;
	margin-right: 10px;
}

.grouped-child-price {
	font-weight: bold;
	color: #1a1a1a;
}

.grouped-child-item:hover {
	background-color: #f1f1f1;
}

.grouped-product-button {
	border-radius: 100px;
	background-color: #0a88a4;
	color: #fff !important;
	text-decoration: none;
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	margin: 15px 0;
	padding: 10px 28px;
	transition: background-color 0.3s;
}

.grouped-product-button:hover {
	background-color: #3abbe2;
}

.grouped-product-name {
	margin-bottom: 30px !important;
}

#goTopBtn {
	width: 65px;
	height: 65px;
	padding: 0;
	margin: 0;
	position: fixed;
	bottom: 20px;
	right: 30px;
	z-index: 99;
	border: none;
	border-radius: 100%;
	background-color: white;
	outline: none;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;

	svg {
		/* width: 100px; */
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.hotspot-product-list {
		flex: 0 0 60%;
	}

	.estimated-total-wrapper {
		flex: 0 0 37%;
	}
}

@media (max-width: 767px) {
	.product-list-container {
		display: flex;
		flex-direction: column;
		position: relative;
	}

	.hotspot-product-list,
	.estimated-total-wrapper {
		display: block;
		width: 100%;
	}

	.estimated-total-wrapper {
		background-color: white;
		position: sticky;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 99;
	}

	.hotspot-product-item {
		flex-direction: column;
	}

	.product-image {
		width: 180px;
		height: 180px;
		margin: 0 auto;
	}

	.product-info {
		width: 100%;
	}

	.hotspot-product-list .product-name {
		margin: 15px 0;
	}

	.hotspot-product-list .quantity-controls {
		justify-content: center;
	}

	#addToCartBtn {
		margin-top: 20px;
	}

	#goTopBtn {
		bottom: 10px;
		right: 22px;
	}

	.grouped-child-item {
		display: flex;
		flex-direction: column;
	}

	.grouped-child-item .product-image {
		width: 180px;
		height: 180px;
		margin: 0;
	}

	.grouped-child-name {
		text-align: center;
	}

	.product-list-container .variation-select {
		width: 100%;
	}
}
