.upsell_produkty {
	padding: 40px 0;
	background: #F7F1E5;
	border-radius: 8px;
	margin: 20px 0;
}

.upsell_produkty .wrap {
	margin: 0 auto;
	padding: 0 24px;
}

.upsell-main-title {
	font-family: "ivypresto-display", serif;
	text-align: center !important;
	margin: 0 auto 40px auto;
	color: #151A15;
	font-size: 32px;
	line-height: 1.35;
	letter-spacing: 0.02px;
	width: 100%;
	max-width: none !important;
}

@media (max-width: 768px) {
	.upsell-main-title {
		font-size: 24px;
		margin-bottom: 0px;
	}
}

.products-layout {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.products-layout {
		flex-direction: column;
		gap: 0px;
		align-items: center;
	}
	
	.plus-sign-small{
		display: none;
	}
	.plus-sign
	 {
		margin-top: 10px;
		transform: rotate(90deg);
	}
	
	/* Na mobilu: aktuální produkt nahoře, pak upsell produkty ve dvou sloupcích */
	.upsell-product {
		flex: 1;
		max-width: calc(50% - 7.5px);
	}
}

/* Aktuální produkt vlevo */
.current-product {
	flex: 1;
	max-width: 300px;
}

@media (max-width: 768px) {
	.current-product {
		max-width: calc(50% - 7.5px) !important;
		flex: 0 0 calc(50% - 7.5px);
	}
}

.current-product .product-item {
	position: relative;
	width: 100%;
}

.current-product .product-item .bg {
	position: absolute;
	background-color: #f7f1e5;
	aspect-ratio: 33/32;
	width: 100%;
	z-index: -1;
	transition: all 0.3s ease-out;
}

.current-product .product-item:hover .bg {
	background-color: #ede7da;
	scale: 1.05;
}

.current-product .nahled {
	padding: 0.8rem 0.4rem 1rem;
	aspect-ratio: 33/32;
	position: relative;
	display: block;
}

.current-product .nahled img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.current-product .popis {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	font-size: 2rem;
	font-style: normal;
	font-weight: 400;
	line-height: 100%;
}

.current-product .title-price {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 1.6rem;
}

.current-product .product-title {
	flex: 1;
	line-height: 120%;
	cursor: pointer;
	text-align: center;
}

.current-product .text {
	margin-top: 2rem;
	font-size: max(1.4rem, 12px);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	min-height: 3lh;
}

/* Plus mezi produkty */
.plus-sign {
	font-size: 40px;
	color: #303C30;
	font-weight: bold;
	flex-shrink: 0;
	user-select: none;
	align-self: center;
}

.plus-sign-small {
	font-size: 40px;
	color: #303C30;
	font-weight: bold;
	flex-shrink: 0;
	user-select: none;
	align-self: center;
	margin-top: 60px;
}

@media (max-width: 768px) {

	.plus-sign-small {
		margin-top: 0;
	}
}

/* Upsell produkty vpravo */
.upsell-products-container {
	display: flex;
	gap: 20px;
	flex: 2;
	max-width: 700px;
	align-items: flex-start;
}

@media (max-width: 768px) {
	.upsell-products-container {
		flex-direction: row; /* Na mobilu vedle sebe */
		max-width: 100%;
		margin-top: -40px;
		width: 100%;
		gap: 15px;
		justify-content: center;
	}
}

/* Jednotlivý upsell produkt */
.upsell-product {
	flex: 1;
	max-width: 320px;
}

.upsell-product a {
	position: relative;
	width: 100%;
	display: block;
	text-decoration: none;
	color: inherit;
}

.upsell-product a:hover .bg {
	background-color: #ede7da;
	scale: 1.05;
}

.upsell-product .bg {
	position: absolute;
	background-color: #f7f1e5;
	aspect-ratio: 33/32;
	width: 100%;
	z-index: -1;
	transition: all 0.3s ease-out;
}

.upsell-product .nahled {
	padding: 0.8rem 0.4rem 1rem;
	aspect-ratio: 33/32;
	position: relative;
	display: block;
}

.upsell-product .nahled img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Floating cart button styling z _produkty.scss */
.floating-cart-button {
	border: none;
	position: absolute;
	bottom: 15px;
	right: 15px; /* Přesunuto na pravou stranu */
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: #fffef3;
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.3s ease, background-color 0.3s ease;
	z-index: 10;
}

.floating-cart-button:hover {
	transform: scale(1.1);
	background-color: #EDE7DA;
}

.floating-cart-button svg {
	width: 20px;
	height: 20px;
}

.floating-cart-button .loading-spinner {
	width: 24px;
	height: 24px;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -12px;
	margin-left: -12px;
	animation: spinner-rotation 1.5s linear infinite;
}

.floating-cart-button .loading-spinner .path {
	stroke: #303C30;
	stroke-linecap: round;
	animation: spinner-dash 1.5s ease-in-out infinite;
}

@keyframes spinner-rotation {
	100% {
		transform: rotate(360deg);
	}
}

@keyframes spinner-dash {
	0% {
		stroke-dasharray: 1, 150;
		stroke-dashoffset: 0;
	}
	50% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -35;
	}
	100% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -124;
	}
}

@media (max-width: 768px) {
	.floating-cart-button {
		width: 35px;
		height: 35px;
		bottom: 9px;
		right: 9px; /* Přesunuto na pravou stranu i na mobilu */
	}
	
	.floating-cart-button svg {
		width: 17px;
		height: 17px;
	}
	
	.floating-cart-button .loading-spinner {
		width: 20px;
		height: 20px;
		margin-top: -10px;
		margin-left: -10px;
	}
	
	.floating-cart-button .loading-spinner .path {
		stroke-width: 4;
	}
}

.upsell-product .popis {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	font-size: 2rem;
	font-style: normal;
	font-weight: 400;
	line-height: 100%;
}

.upsell-product .title-price {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.6rem;
}

.upsell-product .title-price > span:first-child {
	flex: 1;
	line-height: 120%;
}

.upsell-product .price {
	flex-shrink: 0;
	padding-top: 0.2rem;
	display: flex;
	gap: 1rem;
	align-items: center;
}

.upsell-product .price * {
	display: inline;
}

.upsell-product .price .before {
	color: #c4bcb2;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.upsell-product .details {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.upsell-product .quantity {
	font-weight: 300;
}

.upsell-product .rating {
	display: flex;
	align-items: center;
	gap: 1rem;
	white-space: nowrap;
}

.upsell-product .product-title {
	cursor: pointer;
}

.upsell-product .text {
	margin-top: 2rem;
	font-size: max(1.4rem, 12px);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	min-height: 3lh;
}

@media (max-width: 450px) {
	.upsell_produkty .wrap {
		padding: 0 16px;
	}
	
	.current-product,
	.upsell-products-container {
		max-width: 100%;
	}
	
	.plus-sign,
	.plus-sign-small {
		font-size: 28px;
	}
	
	.upsell-product .popis .title-price {
		gap: 0.8rem !important;
		font-size: 1.8rem;
	}
}
