/*
 * Shared fixed bottom shortcut bar — product + bundle pages (same markup: .fixed-action-bar).
 * Loaded via product_shortcut_bar-v1.css and bundle_shortcut_bar-v1.css (@import).
 * Previously lived in product.css under “Fixed Action Bar”.
 */

/* Fixed Action Bar */
.fixed-action-bar {
	position: fixed;
	bottom: 0;
	bottom: env(safe-area-inset-bottom, 0);
	left: 0;
	right: 0;
	width: 100%;
	background: var(--secondary-background-color);
	backdrop-filter: blur(10px);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transform: translateY(100%);
	transition: transform 0.3s ease, opacity 0.3s ease;
	border-top: 2px solid var(--primary-brand-color);
	margin: 0;
	padding-bottom: env(safe-area-inset-bottom, 0);
	opacity: 0;
}

.fixed-action-bar.show {
	transform: translateY(0);
	opacity: 1;
}

.fixed-action-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 15px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.fixed-product-info {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 1;
}

.fixed-product-image {
	width: 60px;
	height: 60px;
	object-fit: contain;
	border-radius: 8px;
	background-color: var(--secondary-background-color);
	border: 1px solid var(--primary-brand-color);
}

.fixed-product-details {
	flex: 1;
}

.fixed-product-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--primary-title-color);
	margin-bottom: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 300px;
}

.fixed-product-price {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fixed-current-price {
	font-size: 18px;
	font-weight: bold;
	color: var(--original-price-color);
}

.fixed-original-price {
	font-size: 14px;
	text-decoration: line-through;
	color: var(--discount-price-color);
}

.fixed-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.fixed-actions .add-to-fav {
	width: 45px;
	height: 45px;
	padding: 0;
	font-size: 20px;
}

.fixed-actions .buy-now {
	padding: 12px 25px;
	font-size: 16px;
	white-space: nowrap;
}

.fixed-actions .add-to-cart {
	width: 45px;
	height: 45px;
	padding: 0;
	font-size: 20px;
}

.fixed-actions form {
	margin: 0;
}

/* Responsive for Fixed Action Bar */
@media (max-width: 768px) {
	.fixed-action-bar {
		bottom: calc(0px + env(safe-area-inset-bottom, 0)); /* Position above mobile bottom nav (60px nav height + 10px spacing) */
		z-index: 1001; /* Higher than mobile nav (999) to float above it */
	}

	.fixed-action-content {
		padding: 12px 15px;
		gap: 15px;
	}

	.fixed-product-image {
		width: 50px;
		height: 50px;
	}

	.fixed-product-name {
		font-size: 14px;
		max-width: 150px;
	}

	.fixed-current-price {
		font-size: 16px;
	}

	.fixed-original-price {
		font-size: 12px;
	}

	.fixed-actions .add-to-fav,
	.fixed-actions .add-to-cart {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.fixed-actions .buy-now {
		padding: 10px 20px;
		font-size: 14px;
	}
}

@media (max-width: 576px) {
	.fixed-action-bar {
		bottom: calc(0px + env(safe-area-inset-bottom, 0)); /* Position above mobile bottom nav on small screens */
	}

	.fixed-product-name {
		max-width: 100px;
	}

	.fixed-actions .buy-now {
		padding: 10px 15px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.fixed-action-bar {
		bottom: calc(0px + env(safe-area-inset-bottom, 0)); /* Position above mobile bottom nav on very small screens (nav is at bottom: 0, ~60px tall) */
	}
}
