/* Fellini menu cart */

.fellini-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 16px;
}

.fellini-qty-btn {
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: #853046;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}

.fellini-qty-btn:hover,
.fellini-qty-btn:focus {
	background: #6b2638;
	outline: none;
}

.fellini-qty-btn:active {
	transform: scale(0.95);
}

.fellini-qty-btn:disabled {
	opacity: 0.35;
	cursor: default;
	transform: none;
}

.fellini-qty-count {
	min-width: 28px;
	text-align: center;
	font-family: 'Gotham Pro', sans-serif;
	font-size: 22px;
	font-weight: 500;
	color: #333;
}

.fellini-cart-fab {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 999;
	width: 58px;
	height: 58px;
	border: none;
	border-radius: 50%;
	background: #853046;
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}

.fellini-cart-fab.is-visible {
	display: inline-flex;
}

.fellini-cart-fab.is-bouncing {
	animation: fellini-cart-bounce 0.45s ease;
}

.fellini-cart-fab.is-shaking {
	animation: fellini-cart-shake 0.4s ease;
}

.fellini-cart-fab-count.is-popping {
	animation: fellini-cart-badge-pop 0.35s ease;
}

@keyframes fellini-cart-bounce {
	0% { transform: scale(1); }
	30% { transform: scale(1.18); }
	55% { transform: scale(0.94); }
	75% { transform: scale(1.06); }
	100% { transform: scale(1); }
}

@keyframes fellini-cart-shake {
	0%, 100% { transform: rotate(0deg); }
	20% { transform: rotate(-8deg); }
	40% { transform: rotate(8deg); }
	60% { transform: rotate(-5deg); }
	80% { transform: rotate(5deg); }
}

@keyframes fellini-cart-badge-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.35); }
	100% { transform: scale(1); }
}

.fellini-cart-fab:hover,
.fellini-cart-fab:focus {
	background: #6b2638;
	outline: none;
}

.fellini-cart-fab:active {
	transform: scale(0.95);
}

.fellini-cart-fab svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.fellini-cart-fab-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: #fff;
	color: #853046;
	font-family: 'Gotham Pro', sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.fellini-cart-panel {
	position: fixed;
	top: auto;
	right: 16px;
	bottom: 90px;
	width: min(380px, calc(100vw - 32px));
	max-height: min(78vh, 620px);
	z-index: 1000;
	display: none;
	flex-direction: column;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	font-family: 'Gotham Pro', sans-serif;
}

.fellini-cart-panel.is-open {
	display: flex;
}

.fellini-cart-header {
	background: #853046;
	color: #fff;
	padding: 22px 20px 16px;
	text-align: center;
	flex-shrink: 0;
}

.fellini-cart-title {
	margin: 0;
	font-family: 'Adventure Regular', cursive;
	font-size: 38px;
	font-weight: normal;
	line-height: 1.1;
	color: #fff;
}

.fellini-cart-subtitle {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 300;
	opacity: 0.95;
}

.fellini-cart-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	background: #ececec;
	padding: 12px;
	-webkit-overflow-scrolling: touch;
}

.fellini-cart-hint {
	background: #d8d8d8;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.45;
	color: #555;
	text-align: center;
}

.fellini-cart-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fellini-cart-item {
	padding: 14px 4px;
	border-bottom: 1px solid #d0d0d0;
}

.fellini-cart-item:last-child {
	border-bottom: none;
}

.fellini-cart-item-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.fellini-cart-item-name {
	flex: 1;
	font-size: 15px;
	font-weight: 700;
	color: #333;
	line-height: 1.3;
	text-transform: none;
}

.fellini-cart-item-qty {
	font-size: 14px;
	font-weight: 500;
	color: #666;
	white-space: nowrap;
	padding-top: 2px;
}

.fellini-cart-item-price {
	margin-top: 4px;
	font-size: 13px;
	color: #888;
}

.fellini-cart-empty {
	text-align: center;
	padding: 32px 16px;
	color: #888;
	font-size: 14px;
}

.fellini-cart-footer {
	background: #ececec;
	padding: 0 12px 14px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fellini-cart-btn {
	width: 100%;
	padding: 13px 16px;
	border: none;
	border-radius: 999px;
	background: #d4d4d4;
	color: #853046;
	font-family: 'Gotham Pro', sans-serif;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.fellini-cart-btn:hover,
.fellini-cart-btn:focus {
	background: #c8c8c8;
	outline: none;
}

.fellini-cart-btn:active {
	background: #bcbcbc;
}

@media screen and (max-width: 768px) {
	.fellini-cart-panel {
		right: 12px;
		bottom: 80px;
		width: min(340px, calc(100vw - 24px));
		max-height: min(74vh, 560px);
		border-radius: 20px;
	}

	.fellini-cart-fab {
		bottom: 16px;
		right: 16px;
	}
}
