/* Swadigo — mobile-first styles. Kept intentionally plain/overridable by themes. */

.swadigo-btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 8px;
	background: #25D366; /* WhatsApp green */
	color: #fff;
	text-decoration: none;
	border: none;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}
.swadigo-btn--primary { background: #128C7E; }
.swadigo-btn--block { display: block; width: 100%; }
.swadigo-btn--large { padding: 16px; font-size: 1.1rem; }

/* Restaurant grid */
.swadigo-restaurant-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media ( min-width: 640px ) {
	.swadigo-restaurant-grid { grid-template-columns: repeat(2, 1fr); }
}
.swadigo-restaurant-card {
	display: block;
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}
.swadigo-restaurant-card__cover img { width: 100%; height: 140px; object-fit: cover; display: block; }
.swadigo-restaurant-card__body { padding: 12px; }
.swadigo-meta { font-size: 0.85rem; color: #666; margin: 2px 0; }

/* Product grid */
.swadigo-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 24px;
}
@media ( min-width: 480px ) {
	.swadigo-product-grid { grid-template-columns: repeat(2, 1fr); }
}
.swadigo-product-card {
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.swadigo-product-card__image img { width: 100%; height: 110px; object-fit: cover; display: block; }
.swadigo-product-card__body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.swadigo-product-card__desc { font-size: 0.82rem; color: #777; margin: 0; }
.swadigo-price--was { text-decoration: line-through; color: #999; margin-right: 6px; font-size: 0.85rem; }
.swadigo-price--now { font-weight: 700; }

/* Sticky cart bar */
.swadigo-sticky-cart-bar {
	position: sticky;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #111;
	color: #fff;
	padding: 12px 16px;
	border-radius: 10px 10px 0 0;
	margin-top: 12px;
}
.swadigo-sticky-cart-bar[hidden] { display: none; }
.swadigo-sticky-cart-bar__summary { font-weight: 600; }

/* Cart page */
.swadigo-cart-line {
	display: grid;
	grid-template-columns: 1fr auto auto auto auto;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}
.swadigo-qty-btn {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid #ccc;
	background: #fafafa;
	cursor: pointer;
}
.swadigo-cart-line__remove {
	border: none;
	background: none;
	color: #c0392b;
	font-size: 1.2rem;
	cursor: pointer;
}
.swadigo-cart-totals {
	margin: 16px 0;
	font-size: 1rem;
}
.swadigo-cart-totals > div { display: flex; justify-content: space-between; padding: 4px 0; }

/* Checkout */
#swadigo-checkout-form label {
	display: block;
	margin-bottom: 14px;
	font-weight: 600;
	font-size: 0.9rem;
}
#swadigo-checkout-form input,
#swadigo-checkout-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-weight: 400;
	box-sizing: border-box;
}
.required { color: #c0392b; }
.swadigo-checkout-total {
	display: flex;
	justify-content: space-between;
	font-size: 1.1rem;
	font-weight: 700;
	margin: 16px 0;
}
.swadigo-checkout-error {
	background: #fdecea;
	color: #c0392b;
	padding: 10px;
	border-radius: 8px;
	margin-bottom: 12px;
}
.swadigo-order-confirmation {
	text-align: center;
}
.swadigo-order-confirmation[hidden],
.swadigo-checkout-error[hidden] { display: none; }
.swadigo-note { color: #666; font-size: 0.85rem; }
