.cos-menu-wrapper {
	max-width: 1100px;
	margin: 0 auto;
}

.cos-category-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.cos-tab {
	padding: 8px 16px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
}

.cos-tab.is-active {
	background: #222;
	color: #fff;
	border-color: #222;
}

.cos-categories-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cos-category-pill {
	padding: 6px 14px;
	background: #f2f2f2;
	border-radius: 999px;
	font-size: 13px;
}

.cos-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.cos-product-card {
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fff;
}

.cos-product-card.is-hidden {
	display: none;
}

.cos-product-name {
	margin: 0 0 6px;
	font-size: 16px;
}

.cos-product-desc {
	font-size: 13px;
	color: #666;
	margin: 0 0 8px;
}

.cos-product-price {
	font-weight: 600;
	margin-bottom: 12px;
}

.cos-btn {
	background: #222;
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}

.cos-btn:hover {
	opacity: 0.9;
}

.cos-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.cos-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cos-modal.is-open {
	display: flex;
}

.cos-modal-content {
	background: #fff;
	border-radius: 10px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
	position: relative;
}

.cos-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	cursor: pointer;
	line-height: 1;
}

.cos-modifier-group {
	margin: 14px 0;
}

.cos-modifier-group h5 {
	margin: 0 0 6px;
}

.cos-modifier-option {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 14px;
	border-bottom: 1px solid #f2f2f2;
}

.cos-qty-control {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0;
}

.cos-qty-control button {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	font-size: 16px;
}

.cos-note-field {
	width: 100%;
	min-height: 60px;
	margin: 10px 0;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.cos-floating-cart {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #222;
	color: #fff;
	padding: 14px 20px;
	border-radius: 999px;
	display: none;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	z-index: 9999;
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cos-floating-cart.is-visible {
	display: flex;
}

.cos-floating-cart-count {
	background: #fff;
	color: #222;
	border-radius: 999px;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}

/* Cart */
.cos-cart-wrapper {
	max-width: 500px;
	margin: 0 auto;
}

.cos-cart-line {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.cos-cart-line-name {
	font-weight: 600;
}

.cos-cart-line-mods {
	font-size: 12px;
	color: #666;
}

.cos-cart-line-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cos-cart-line-controls button {
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 6px;
	width: 26px;
	height: 26px;
	cursor: pointer;
}

.cos-cart-remove {
	color: #b00020;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
}

.cos-cart-totals {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 2px solid #222;
}

.cos-cart-subtotal-row {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	font-size: 16px;
}

.cos-cart-note {
	font-size: 12px;
	color: #888;
}

/* Checkout */
.cos-checkout-wrapper {
	max-width: 500px;
	margin: 0 auto;
}

.cos-checkout-form label {
	display: block;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 600;
}

.cos-checkout-form input[type="text"],
.cos-checkout-form input[type="email"],
.cos-checkout-form input[type="tel"],
.cos-checkout-form select,
.cos-checkout-form textarea {
	width: 100%;
	padding: 10px;
	margin-top: 6px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-weight: 400;
}

.cos-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cos-place-order-btn {
	width: 100%;
	padding: 14px;
	font-size: 16px;
	margin-top: 10px;
}

.cos-checkout-message {
	margin-top: 14px;
	font-size: 14px;
}

.cos-checkout-message.is-error {
	color: #b00020;
}

.cos-checkout-message.is-success {
	color: #0a7d28;
}

.cos-error-fallback {
	padding: 20px;
	text-align: center;
	background: #fafafa;
	border-radius: 8px;
	color: #666;
}

@media (max-width: 480px) {
	.cos-products-grid {
		grid-template-columns: 1fr;
	}
}
