/* Color Variables */
:root {
	--primary-color: #d06224;
	--highlight-bg: #edd6c8;
	--page-bg: #ffffff;
	--text-color: #2d2d2d;
}

@font-face {
	font-family: 'HelveticaNowDisplay';
	src: url('../kasa-brew-pos/HelveticaNowDisplay-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'HelveticaNowDisplay';
	src: url('../kasa-brew-pos/HelveticaNowDisplay-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Sora', 'HelveticaNowDisplay', sans-serif;
	-webkit-tap-highlight-color: transparent;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--page-bg);
	color: var(--text-color);
	line-height: 1.6;
}

body {
	background: var(--page-bg);
	color: var(--text-color);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-weight: 500;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

/* Disable scrolling when cart is open */
body.cart-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
	left: 0;
	right: 0;
}

.nav-header {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
	padding: 16px 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	z-index: 50;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 8px;
}

.brand-name {
	font-size: 18px;
	font-weight: 600;
}

.brand-logo img {
	height: 28px;
	width: auto;
	display: block;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nav-btn {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 8px 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.badge {
	background: #2d2d2d;
	color: #fff;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 12px;
}

.main-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 8px 8px 72px;
}

.main-content.cart-visible {
	padding-bottom: 120px;
}

.filters-container {
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 12px 0;

}

.filters {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	padding: 0 8px;
	scrollbar-width: none;
}

.filters::-webkit-scrollbar {
	display: none;
}

.filter-btn {
	flex: 0 0 auto;
	background: rgba(240, 240, 240, 0.519);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(208, 98, 36, 0.2);
	border-radius: 20px;
	padding: 10px 12px;
	font-size: 12px;
	cursor: pointer;
	position: relative;
	color: #411400;
	font-weight: 500;
	will-change: transform;
}

.filter-btn:hover {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(208, 98, 36, 0.4);
}

.filter-btn.active {
	background: var(--primary-color);
	border: 1px solid var(--primary-color);
	opacity: 1;
	font-weight: 600;
	color: #ffffff;
}

.filter-btn.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 2px;
	background: var(--primary-color);
	border-radius: 1px;
}

.filter-btn .count {
	margin-left: 6px;
	font-weight: 600;
	opacity: 0.7;
}

.products-container {
	margin-top: 2px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6.3px;
	padding: 0;
	contain: layout style;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* Skeleton Loading Animation */
.skeleton-loading {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 40px 20px;
	text-align: center;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	position: relative;
	left: 0;
	right: 0;
	grid-template-columns: none !important;
	gap: 0 !important;
}

.skeleton-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #f3f4f6;
	border-top: 4px solid var(--primary-color);
	border-radius: 50%;
	animation: skeleton-spin 1s linear infinite;
	margin-bottom: 20px;
}

.skeleton-text {
	color: var(--primary-color);
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
}

.skeleton-subtext {
	color: #6b7280;
	font-size: 14px;
	font-weight: 400;
}

@keyframes skeleton-spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Override product grid when showing skeleton loading */
.product-grid:has(.skeleton-loading) {
	display: flex !important;
	align-items: center;
	justify-content: center;
	grid-template-columns: none !important;
	gap: 0 !important;
	padding: 0 !important;
}

/* Desktop/tablet responsive grid */
@media (min-width: 720px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.product-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.product-card {
	background: #ffffff;
	border-radius: 11px !important;
	padding: 5px;
	text-align: left;
	box-shadow: none;
	position: relative;
	border: none;
	cursor: pointer;
	transform: translateZ(0);
	aspect-ratio: 0.90;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 100%;
	box-sizing: border-box;
	min-height: 186px;
	will-change: transform;
	contain: layout style;
}

.product-image-container {
	position: relative;
	display: block;
	margin-bottom: 6px;
	width: 100%;
	height: 69%;
	min-height: 114px;
	margin: 0 0 6px 0;
	overflow: hidden;
	border-radius: 8px;
	flex-shrink: 0;
}

.product-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}

.product-card .name {
	font-weight: 500;
	font-size: clamp(14px, 3.2vw, 20px);
	margin-bottom: 4px;
	color: #2d2d2d;
	line-height: 1.0;
	min-height: 32px;
	text-align: left;
	padding: 2px 3px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	margin-top: 0px;
	max-width: 85%;
}

.product-card .price {
	color: #2d2d2d;
	font-size: clamp(14px, 3.2vw, 20px);
	font-weight: 500;
	line-height: 1.25;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0px 4px;
	position: absolute;
	bottom: 8px;
	left: 6px;
}

.price-range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.price-arrow {
	width: 18px;
	height: 18px;
	opacity: 0.75;
}

.add-btn {
	background: var(--primary-color);
	color: #fff;
	border: 1px solid #e0e0e0;
	width: clamp(36px, 5.2vw, 42px);
	height: clamp(36px, 5.2vw, 42px);
	border-radius: 11px;
	cursor: pointer;
	position: absolute;
	bottom: 0px;
	right: 5px;
	font-weight: 900;
	font-size: clamp(17px, 2.8vw, 20px);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Larger on wider screens as well */
@media (min-width: 720px) {
	.product-card {
		min-height: 206px;
	}

	.product-image-container {
		height: 72%;
		min-height: 154px;
	}

	.product-card .name {
		font-size: clamp(13px, 2.4vw, 20px);
		min-height: 36px;
	}

	.product-card .price {
		font-size: clamp(13px, 2.4vw, 20px);
		bottom: 9px;
	}

	.price-arrow {
		width: 18px;
		height: 18px;
	}

	.add-btn {
		width: clamp(40px, 4.6vw, 46px);
		height: clamp(40px, 4.6vw, 46px);
		font-size: clamp(18px, 2.6vw, 22px);
	}
}

/* Category break label (for All view) */
.category-label {
	grid-column: 1 / -1;
	font-size: 15px;
	color: #666;
	margin-top: 30px;
	margin-bottom: -5px;
	opacity: 0.9;
}

/* Cart Panel - Bottom Sheet */
.cart-panel {
	position: fixed;
	left: 0;
	bottom: 0;
	height: 85%;
	width: 100%;
	background: #ffffff;
	border-top: 1px solid #e8e8e8;
	border-radius: 24px 24px 0 0;
	transform: translateY(100%);
	-webkit-transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	-webkit-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 60;
	display: flex;
	flex-direction: column;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	will-change: transform;
	-webkit-overflow-scrolling: touch;
}

.cart-panel.open {
	transform: translateY(0);
}

.cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 16px 14px;
	border-bottom: 1px solid #e8e8e8;
	position: relative;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 1;
	flex-shrink: 0;
}

.cart-header-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.clear-cart-btn {
	background: linear-gradient(145deg, #ff6b6b, #ee5a52);
	color: white;
	border: 2px solid #d63031;
	padding: 6px 12px;
	border-radius: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	box-shadow: 0 2px 4px rgba(210, 48, 49, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
	white-space: nowrap;
}

.clear-cart-btn:hover {
	background: linear-gradient(145deg, #ff5252, #e53e3e);
	transform: scale(1.05);
}

/* Drag handle removed - cart closes only via close button */
.close-btn {
	background: #f8f8f8;
	border: 1px solid #e8e8e8;
	font-size: 18px;
	cursor: pointer;
	color: #666;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* POS-like cart item styling */
.cart-items {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: calc(85vh - 120px);
	min-height: 0;
}

.cart-item {
	display: grid;
	grid-template-columns: 88px 1fr 70px;
	grid-template-rows: auto auto auto;
	gap: 8px;
	align-items: start;
	border: 1px solid #f3f1ef;
	border-radius: 8px;
	padding: 6px;
	background: #ffffff;
	height: 101px;
	overflow: hidden;
	flex-shrink: 0;
	margin-bottom: 0;
}

.cart-item-img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 6px;
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: start;
}

.cart-item-main {
	grid-column: 2;
	display: grid;
	grid-template-rows: auto auto auto;
	gap: 5px;
	padding: 0;
	min-height: 0;
	overflow: hidden;
	max-width: 100%;
}

.cart-item-title {
	font-weight: 600;
	font-size: 14px;
	color: #2d2d2d;
	margin: 0;
	line-height: 1.2;
	max-height: 2.4em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.cart-item-tags {
	display: flex;
	gap: 4px;
	flex-wrap: nowrap;
	align-items: center;
	overflow-x: auto;
	white-space: nowrap;
	flex-shrink: 0;
	max-height: 2em;
}

.cart-item-tag {
	background: transparent;
	color: #666;
	padding: 2px 4px;
	border-radius: 7px;
	border: 1px solid #f3f1ef;
	font-size: 11px;
	font-weight: 500;
}

.cart-item-meta {
	display: flex;
	gap: 6px;
	font-size: 12px;
	color: #666;
}

.cart-item-unit {
	font-weight: 600;
	color: #2d2d2d;
}

.cart-item-price-left {
	font-weight: 800;
	color: #2d2d2d;
	font-size: 15px;
	align-self: end;
}

.cart-item-controls {
	grid-column: 3;
	grid-row: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	height: 100%;
}

.cart-item-edit {
	padding: 4px 8px;
	height: 24px;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
	background: #ffffff;
	cursor: pointer;
	font-size: 11px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2d2d2d;
	white-space: nowrap;
}

.cart-item-edit:hover {
	background: #f8f8f8;
}

.cart-item-delete {
	background: linear-gradient(145deg, #ff6b6b, #ee5a52);
	color: white;
	border: 2px solid #d63031;
	width: 24px;
	height: 24px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 4px rgba(210, 48, 49, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cart-item-delete:hover {
	background: linear-gradient(145deg, #ff5252, #e53e3e);
}

.qty-controls {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.qty-btn {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	background: #f8f8f8;
	cursor: pointer;
	font-weight: 700;
}

.cart-item-total {
	font-weight: 800;
	color: #2d2d2d;
	font-size: 14px;
}

.cart-summary {
	border-top: 1px solid #e8e8e8;
	padding: 12px 16px;
	flex-shrink: 0;
	background: #ffffff;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 8px 0;
}

.summary-divider {
	height: 1px;
	background: #e8e8e8;
	margin: 8px 0;
}

.summary-row.total span:last-child {
	font-weight: 700;
}

.pay-btn {
	width: 100%;
	background: var(--primary-color);
	color: #fff;
	border: 2px solid var(--primary-color);
	border-radius: 25px;
	padding: 12px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 10px;
}

/* Mobile cart items scrolling */
#cart-items-mobile {
	overflow-y: auto;
	overflow-x: hidden;
	flex: 1;
	min-height: 0;
	max-height: calc(85vh - 160px);
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Custom scrollbar for cart items */
#cart-items-mobile::-webkit-scrollbar {
	width: 4px;
}

#cart-items-mobile::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 2px;
}

#cart-items-mobile::-webkit-scrollbar-thumb {
	background: #d06224;
	border-radius: 2px;
}

#cart-items-mobile::-webkit-scrollbar-thumb:hover {
	background: #b8541f;
}

/* Modal */
.modal {
	position: fixed;
	inset: 0;
	background: rgba(42, 42, 42, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 70;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	-webkit-overflow-scrolling: touch;
}

.modal.open {
	display: flex;
}

.modal-content {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	width: 92%;
	max-width: 460px;
	overflow: hidden;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	border-bottom: 1px solid #e8e8e8;
}

/* Order Summary Modal Sticky Header */
.order-summary-modal-content .modal-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: #ffffff;
	border-radius: 24px 24px 0 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Order Summary Modal - Compact Design */
.order-summary-modal-content {
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	transform-origin: bottom center;
}

@keyframes slideUp {
	from {
		transform: translateY(100px);
		opacity: 0;
	}

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


.order-summary-content {
	padding: 12px;
}

.summary-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 5px;
	padding: 8px;
	background: #ffffff;
	border-radius: 8px;

}

.summary-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.summary-title {
	margin: 0;
	color: #2d2d2d;
	font-size: 16px;
	font-weight: 600;
}

.summary-actions {
	margin-top: 12px;
	text-align: center;
}

.download-btn {
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 25px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.download-btn:hover {
	background: #a66b3a;
}

.instructions-text {
	color: #666;
	font-size: 12px;
	margin: 0;
}

.modal-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #2d2d2d;
}

.modal-body {
	padding: 16px;
}

.modal-footer {
	padding: 16px;
	border-top: 1px solid #e8e8e8;
	display: flex;
	justify-content: flex-end;
}

.btn {
	padding: 10px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}

.btn-primary {
	background: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

.instructions-list {
	margin-left: 18px;
	display: grid;
	gap: 8px;
}

.instructions-list ul {
	margin-top: 6px;
	margin-left: 18px;
}

.instructions-content {
	margin: 0;
	font-size: 14px;
	color: #555;
	line-height: 1.5;
}

.instructions-content p {
	margin: 6px 0;
	font-weight: 500;
}

/* Send Order Modal Improvements */
.send-order-modal-content {
	max-width: 400px;
	max-height: 80vh;
	overflow-y: auto;
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.modal-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.success-message {
	text-align: center;
	margin-bottom: 16px;
	padding: 12px;
	background: #ffffff;
	border-radius: 8px;
}

.success-icon {
	font-size: 20px;
	margin-bottom: 6px;
}

.success-message p {
	margin: 0;
	font-size: 14px;
	color: #333;
	font-weight: 500;
}

/* Send Instructions Container */
.send-instructions-container {
	background: #ffffff;
	border-radius: 12px;
	padding: 16px;
	margin-top: 12px;
}

.instructions-header {
	text-align: center;
	margin-bottom: 16px;
}

.instructions-header h4 {
	margin: 0;
	font-size: 16px;
	color: #333;
	font-weight: 600;
}

.instructions-steps {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.step {
	display: flex;
	align-items: center;
	gap: 12px;
}

.step-number {
	width: 24px;
	height: 24px;
	background: #d06224;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}

.step p {
	margin: 0;
	font-size: 14px;
	color: #555;
	line-height: 1.4;
}

/* Social Buttons */
.social-buttons-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.social-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.2s ease;
	border: 2px solid transparent;
}

.facebook-btn {
	background: #1877f2;
	color: white;
	border-radius: 25px;
	padding: 10px 20px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.facebook-btn:hover {
	background: #166fe5;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.instagram-btn {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: white;
	border-radius: 25px;
	padding: 10px 20px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.instagram-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(188, 24, 136, 0.4);
}

.note-section {
	text-align: center;
	padding-top: 12px;
	border-top: 1px solid #e0e0e0;
}

.note-text {
	margin: 0 0 8px 0;
	font-size: 13px;
	color: #666;
	font-weight: 500;
}

.contact-info {
	margin: 0;
	font-size: 12px;
	color: #888;
}

/* Improved Order Summary Modal Instructions */
.instructions-section {
	margin-top: 5px;
	padding: 5px;
	background: #ffffff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.instructions-section h4 {
	margin: 0 0 10px 0;
	font-size: 16px;
	color: #333;
	font-weight: 700;
	text-align: center;
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 12px;
}

.social-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 25px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.social-link.facebook {
	background: #1877f2;
	color: white;
}

.social-link.facebook:hover {
	background: #166fe5;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.social-link.instagram {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: white;
}

.social-link.instagram:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(188, 24, 136, 0.4);
}

/* Capture */
.order-summary-capture {
	width: 100%;
}

.capture-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 20px;
	overflow: hidden;
}

.capture-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid #e8e8e8;
}

.capture-header img {
	width: 24px;
	height: 24px;
}

.capture-items {
	padding: 12px;
	display: grid;
	gap: 8px;
}

.capture-item {
	display: grid;
	grid-template-columns: 88px 1fr 70px;
	grid-template-rows: auto auto auto;
	gap: 8px;
	align-items: start;
	border: 1px solid #f3f1ef;
	border-radius: 8px;
	padding: 6px;
	background: #ffffff;
	height: 101px;
	overflow: hidden;
}

.capture-item:last-child {
	border-bottom: 1px solid #f3f1ef;
}

.capture-item-img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 6px;
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: start;
}

.capture-item-details {
	grid-column: 2;
	display: grid;
	grid-template-rows: auto auto auto;
	gap: 5px;
	padding: 0;
	min-height: 0;
	overflow: hidden;
	max-width: 100%;
}

.capture-item-title {
	font-weight: 600;
	font-size: 14px;
	color: #2d2d2d;
	margin: 0;
	line-height: 1.2;
	max-height: 2.4em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	white-space: normal;
	text-overflow: clip;
}

.capture-item-tags {
	display: flex;
	gap: 4px;
	flex-wrap: nowrap;
	align-items: center;
	overflow-x: auto;
	white-space: nowrap;
	flex-shrink: 0;
	max-height: 2em;
}

.capture-item-tag {
	background: transparent;
	color: #666;
	padding: 2px 4px;
	border-radius: 7px;
	border: 1px solid #f3f1ef;
	font-size: 11px;
	font-weight: 500;
}

.capture-item-meta {
	display: flex;
	gap: 6px;
	font-size: 12px;
	color: #666;
}

.capture-item-unit {
	font-weight: 600;
	color: #2d2d2d;
}

.capture-item-price {
	font-weight: 800;
	color: #2d2d2d;
	font-size: 15px;
	align-self: end;
}

.capture-item-actions {
	grid-column: 3;
	grid-row: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	height: 100%;
}

.capture-item-quantity {
	font-weight: 600;
	color: #2d2d2d;
	font-size: 14px;
	background: transparent;
	padding: 0;
	border-radius: 0;
}

.capture-item-total {
	font-weight: 800;
	color: #2d2d2d;
	font-size: 15px;
}

.capture-total {
	padding: 12px;
	border-top: 1px solid #e8e8e8;
	display: flex;
	justify-content: space-between;
	font-weight: 700;
}

.capture-note {
	padding: 0 12px 12px;
	font-size: 12px;
	color: #666;
}

/* Modal from POS styling cues */
.add-order-modal-content {
	background: #ffffff;
	border-radius: 28px;
	border: 1px solid #e8e8e8;
	max-width: 500px;
	width: 92%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	border-bottom: 1px solid #e8e8e8;
}

.modal-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #2d2d2d;
}

.modal-body {
	padding: 12px;
}

.order-summary-item {
	display: grid;
	grid-template-columns: 88px 1fr 70px;
	grid-template-rows: auto auto auto;
	gap: 8px;
	align-items: start;
	border: 1px solid #f3f1ef;
	border-radius: 8px;
	padding: 6px;
	background: #ffffff;
	height: 101px;
	overflow: hidden;
	margin-bottom: 10px;
}

.order-item-image {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 6px;
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: start;
}

.order-item-details {
	grid-column: 2;
	display: grid;
	grid-template-rows: auto auto auto;
	gap: 5px;
	padding: 0;
	min-height: 0;
	overflow: hidden;
	max-width: 100%;
}

.order-item-name {
	font-weight: 600;
	font-size: 14px;
	color: #2d2d2d;
	margin: 0;
	line-height: 1.2;
	max-height: 2.4em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.order-item-tags {
	display: flex;
	gap: 4px;
	flex-wrap: nowrap;
	align-items: center;
	overflow-x: auto;
	white-space: nowrap;
	flex-shrink: 0;
	max-height: 2em;
}

.order-item-tag {
	background: transparent;
	color: #666;
	padding: 2px 4px;
	border-radius: 7px;
	border: 1px solid #f3f1ef;
	font-size: 11px;
	font-weight: 500;
}

.order-item-meta {
	display: flex;
	gap: 6px;
	font-size: 12px;
	color: #666;
}

.order-item-unit {
	font-weight: 600;
	color: #2d2d2d;
}

.order-item-price {
	font-weight: 800;
	color: #2d2d2d;
	font-size: 15px;
	align-self: end;
}

.order-item-actions {
	grid-column: 3;
	grid-row: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 10px;
	height: 100%;
}

.order-item-quantity {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.quantity-btn {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	background: #f8f8f8;
	cursor: pointer;
	font-weight: 700;
	font-size: 12px;
}

.quantity-display {
	min-width: 18px;
	text-align: center;
	font-weight: 600;
	font-size: 12px;
}

.customization-section {
	margin: 12px 0;
}

.customization-section h5 {
	margin: 0 0 6px 0;
	font-size: 13px;
	font-weight: 700;
	color: #2d2d2d;
}

.required {
	color: #e11d48;
	margin-left: 4px;
}

.radio-group {
	display: grid;
	gap: 6px;
}

.radio-option {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 100px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
}

.radio-option:hover {
	border-color: #f5b860;
	background: #fef9f0;
}

.radio-option.selected {
	border-color: var(--primary-color);
	background: var(--primary-color);
	color: #ffffff;
}

.radio-option.selected .variant-price {
	color: #ffffff;
	font-weight: 600;
}

.radio-option input[type="radio"] {
	display: none;
}

.checkbox-group {
	display: grid;
	gap: 6px;
}

.checkbox-option {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	background: #fff;
	transition: all 0.2s ease;
}

.checkbox-option:hover {
	border-color: #2d2d2d;
	background: #f8f8f8;
}

.checkbox-option input[type="checkbox"] {
	width: 14px;
	height: 14px;
	accent-color: #2d2d2d;
	justify-self: end;
}

.modal-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.add-to-order-btn {
	flex: 1;
	background: var(--primary-color);
	color: #ffffff;
	border: 2px solid var(--primary-color);
	border-radius: 100px;
	padding: 10px 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 13px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.add-to-order-btn:hover {
	background: #a66b3a;
	border-color: #a66b3a;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(198, 124, 78, 0.18);
}

/* Modal close buttons alignment */
.close-modal,
.close-btn {
	background: #f8f8f8;
	border: 1px solid #e8e8e8;
	font-size: 18px;
	cursor: pointer;
	color: #666;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	font-weight: 700;
}

.close-modal:hover,
.close-btn:hover {
	background: #e8e8e8;
	color: #2d2d2d;
	border-color: #2d2d2d;
}

/* Floating Cart Button Container */
.floating-cart-container {
	position: fixed;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
	-webkit-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
	z-index: 1000;
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* Hide floating cart when any modal is open */
body:has(.modal.open) .floating-cart-container {
	opacity: 0 !important;
	pointer-events: none !important;
}

.floating-cart-container.show {
	transform: translateX(-50%) translateY(0);
}

/* Blur effect for products when cart is active */
.products-container.blurred {
	filter: blur(5px);
	-webkit-filter: blur(5px);
	pointer-events: none;
	will-change: filter;
}

.filters-container.blurred {
	filter: blur(5px);
	-webkit-filter: blur(5px);
	pointer-events: none;
	will-change: filter;
}

.nav-header.blurred {
	filter: blur(5px);
	-webkit-filter: blur(5px);
	pointer-events: none;
	will-change: filter;
}

/* Floating Cart Button */
.floating-cart-btn {
	background: var(--primary-color);
	color: #ffffff;
	border-radius: 50px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease;
	cursor: pointer;
	width: 360px;
	justify-content: space-between;
	border: none;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	will-change: transform;
	box-shadow:
		0 8px 32px rgba(208, 98, 36, 0.4),
		0 4px 16px rgba(208, 98, 36, 0.2),
		0 0 0 1px rgba(255, 255, 255, 0.1);
	-webkit-box-shadow:
		0 8px 32px rgba(208, 98, 36, 0.4),
		0 4px 16px rgba(208, 98, 36, 0.2),
		0 0 0 1px rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.cart-count-badge {
	background: #ffffff;
	color: var(--primary-color);
	border-radius: 28px;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	min-width: 24px;
}

.cart-label {
	font-weight: 600;
	font-size: 14px;
	color: #ffffff;
}

.cart-total {
	font-weight: 700;
	font-size: 14px;
	color: #ffffff;
}

/* Mobile bottom spacing */
@media (max-width: 768px) {
	.floating-cart-btn {
		bottom: 20px;
	}
}

/* Price range arrow styling akin to POS */
.price-range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.price-min,
.price-max {
	font-weight: 500;
}

.price-arrow {
	width: 18px;
	height: 18px;
	opacity: 0.75;
}

/* Tighter blend of filters and header */
.nav-header {
	border-bottom: none;
}

.filters-container {
	border-bottom: none;
}

/* Remove blue highlight on mobile button clicks */
* {
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* Safari and Chrome optimizations */
html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

/* Allow text selection for input fields and text areas */
input,
textarea {
	-webkit-user-select: text;
	-khtml-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}

/* Remove focus outlines on mobile */
@media (max-width: 767px) {
	*:focus {
		outline: none !important;
	}

	button:focus,
	.filter-btn:focus,
	.add-btn:focus {
		outline: none !important;
		box-shadow: none !important;
	}
}

/* Hide desktop cart section on mobile */
@media (max-width: 767px) {
	.cart-section {
		display: none !important;
	}
}

/* Product Badges */
.product-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: none;
	color: #d06224;
	padding: 0;
	border-radius: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	z-index: 5;
	backdrop-filter: none;
}

.product-badge.best-seller {
	color: #d06224;
	top: 8px;
	left: 8px;
}

.product-badge.must-try {
	color: #707c4f;
	top: 8px;
	left: 8px;
}

/* Multiple badges positioning */
.product-image-container:has(.best-seller):has(.must-try) .best-seller {
	top: 8px;
	left: 8px;
}

.product-image-container:has(.best-seller):has(.must-try) .must-try {
	top: 28px;
	left: 8px;
}

/* Ads Carousel Styles for Online Booking */
.ads-carousel-container {
	margin: 0 auto -15px auto;
	padding: 30px 0 0 0;
	position: relative;
	width: calc(100% - 32px);
	max-width: calc(100% - 32px);
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
}

.ads-carousel {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	background: #ffffff;
	width: 100%;
	max-width: 100%;
	touch-action: manipulation;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: grab;
}

.ads-carousel:active {
	cursor: grabbing;
}

.ads-carousel-slide {
	display: none;
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: 12px;
}

.ads-carousel-slide.active {
	display: block;
	animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.ads-carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
}

.ads-indicators {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.ads-indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
}

.ads-indicator.active {
	background: #d06224;
	transform: scale(1.2);
	backdrop-filter: blur(4px);
}

.ads-indicator:hover {
	background: rgba(208, 98, 36, 0.8);
	opacity: 0.9;
}

/* Auto-rotate animation */
.ads-carousel-container.auto-rotate .ads-carousel-slide {
	animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}

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