/* Restaurant Menu for WooCommerce — front-end styles */

:root {
	/* Loaded Pizza & Burgers palette — golden amber like loadedpizza.ca.
	   If you have the exact brand hex, change ONLY --rmw-yellow below. */
	--rmw-accent: #f57c00;        /* orange — price pill */
	--rmw-accent-dark: #d96c00;
	--rmw-yellow: #f2b201;        /* golden amber — buttons, active tab */
	--rmw-yellow-dark: #dba201;
	--rmw-dark: #111111;
	--rmw-text: #111111;
	--rmw-muted: #9a9a9a;
	--rmw-bg: #ffffff;
	--rmw-border: #ececec;
}

/* Category heading — bold dark title (light page background) */
.rmw-cat-heading {
	color: var(--rmw-dark);
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 22px;
	letter-spacing: 0.3px;
}

/* Closed banner — store not taking orders */
.rmw-closed-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #b3261e;
	color: #fff;
	font-size: 15.5px;
	font-weight: 700;
	padding: 14px 20px;
	border-radius: 12px;
	margin-bottom: 20px;
	text-align: center;
}

.rmw-store-closed .rmw-card {
	opacity: 0.85;
}

/* Store timings box */
.rmw-timings {
	max-width: 420px;
	margin: 0 auto 24px;
	background: #fff;
	border: 2px solid var(--rmw-yellow);
	border-radius: 14px;
	padding: 14px 20px 16px;
	text-align: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.rmw-timings-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 16px;
	color: var(--rmw-dark);
	margin-bottom: 6px;
}

.rmw-timings-title svg {
	color: var(--rmw-accent);
}

.rmw-timings-lines {
	font-size: 14px;
	color: #555;
	line-height: 1.7;
}

/* Delivery / Pickup toggle */
.rmw-order-type {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-bottom: 24px;
}

.rmw-order-type-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 30px;
	font-size: 15px;
	font-weight: 700;
	border: 2px solid var(--rmw-yellow);
	background: #fff;
	color: var(--rmw-dark);
	cursor: pointer;
	transition: all 0.2s ease;
}

.rmw-order-type-btn:first-child {
	border-radius: 999px 0 0 999px;
	border-right-width: 1px;
}

.rmw-order-type-btn:last-child {
	border-radius: 0 999px 999px 0;
	border-left-width: 1px;
}

.rmw-order-type-btn.active {
	background: var(--rmw-yellow);
	color: var(--rmw-dark);
}

.rmw-order-type-btn:not(.active):hover {
	background: rgba(242, 178, 1, 0.15);
}

.rmw-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	font-family: inherit;
}

/* Tabs */
.rmw-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
	justify-content: center;
}

.rmw-tab-btn {
	border: 1px solid var(--rmw-border);
	background: #f6f6f6;
	color: var(--rmw-text);
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.rmw-tab-btn:hover {
	background: #ededed;
}

.rmw-tab-btn.active {
	background: var(--rmw-yellow);
	border-color: var(--rmw-yellow);
	color: var(--rmw-dark);
}

/* Panels */
.rmw-panel {
	display: none;
}

.rmw-panel.active {
	display: block;
	animation: rmw-fade 0.25s ease;
}

@keyframes rmw-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Grid */
.rmw-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, 1fr);
}

.rmw-cols-1 { grid-template-columns: repeat(1, 1fr); }
.rmw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rmw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rmw-cols-4 { grid-template-columns: repeat(4, 1fr); }
.rmw-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
	.rmw-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 560px) {
	.rmw-grid { grid-template-columns: 1fr !important; }
}

/* Card — horizontal: image left, content right (reference layout) */
.rmw-card {
	background: var(--rmw-bg);
	border-radius: 18px;
	overflow: visible;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 8px;
	padding: 18px 16px;
	min-height: 210px;
	position: relative;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.rmw-card:hover {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
	transform: translateY(-3px);
}

.rmw-card-media {
	flex: 0 0 42%;
	max-width: 42%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rmw-card-image img {
	width: 100%;
	height: auto;
	max-height: 190px;
	object-fit: contain;
	display: block;
	transform: rotate(-6deg);
	transition: transform 0.25s ease;
}

.rmw-card:hover .rmw-card-image img {
	transform: rotate(-2deg) scale(1.04);
}

/* Black badge pill: Best Seller / Popular / Premium */
.rmw-card-badge {
	position: absolute;
	bottom: -6px;
	left: 2px;
	background: var(--rmw-dark);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	white-space: nowrap;
	z-index: 2;
}

.rmw-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.rmw-card-title {
	font-size: 19px;
	font-weight: 800;
	margin: 0;
	color: var(--rmw-text);
	line-height: 1.25;
}

.rmw-card-desc {
	font-size: 13.5px;
	color: var(--rmw-muted);
	line-height: 1.45;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Orange price pill: "Rs. 599.00" */
.rmw-card-price {
	margin-top: auto;
}

.rmw-card-price .woocommerce-Price-amount,
.rmw-card-price {
	color: #fff;
}

.rmw-card-price {
	display: inline-block;
	align-self: flex-start;
	background: var(--rmw-accent);
	font-size: 15px;
	font-weight: 800;
	padding: 6px 16px;
	border-radius: 8px;
}

.rmw-card-price del {
	color: rgba(255, 255, 255, 0.75);
	font-weight: 400;
	margin-right: 6px;
}

.rmw-card-price ins {
	text-decoration: none;
}

/* Button row: yellow Add To Cart + heart */
.rmw-card-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rmw-card-actions .rmw-btn {
	flex: 1;
}

.rmw-fav-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #cfcfcf;
	padding: 4px;
	line-height: 0;
	transition: color 0.2s ease, transform 0.15s ease;
}

.rmw-fav-btn:hover {
	color: var(--rmw-accent);
	transform: scale(1.1);
}

.rmw-fav-btn.active {
	color: #e5322d;
}

.rmw-fav-btn.active svg {
	fill: #e5322d;
	stroke: #e5322d;
}

/* Buttons — yellow like the reference */
.rmw-btn {
	background: var(--rmw-yellow);
	color: var(--rmw-dark);
	border: none;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
	width: 100%;
}

.rmw-btn:hover {
	background: var(--rmw-yellow-dark);
}

.rmw-btn:disabled,
.rmw-btn-disabled {
	background: #ccc;
	cursor: not-allowed;
}

.rmw-simple-add {
	display: flex;
	gap: 8px;
	align-items: center;
}

.rmw-qty {
	width: 56px;
	padding: 9px 6px;
	border: 1px solid var(--rmw-border);
	border-radius: 8px;
	text-align: center;
}

.rmw-simple-add-btn {
	flex: 1;
}

/* Modal */
.rmw-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.rmw-modal-overlay.open {
	display: flex;
}

.rmw-modal {
	background: #fff;
	border-radius: 14px;
	max-width: 520px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
	padding: 28px 24px 24px;
}

.rmw-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--rmw-muted);
}

.rmw-modal-title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	padding-right: 24px;
}

.rmw-modal-qty {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0;
}

.rmw-modal-qty label {
	font-weight: 600;
	font-size: 14px;
}

.rmw-modal-qty-input {
	width: 70px;
	padding: 9px 6px;
	border: 1px solid var(--rmw-border);
	border-radius: 8px;
	text-align: center;
}

.rmw-modal-add-btn {
	margin-top: 4px;
}

.rmw-loading {
	text-align: center;
	padding: 40px 0;
	color: var(--rmw-muted);
}

/* ---------------------------------------------------------------
 * Floating cart icon + slide-out mini cart
 * ------------------------------------------------------------- */

.rmw-floating-cart {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
}

.rmw-cart-toggle {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--rmw-dark);
	color: #fff;
	border: 2px solid var(--rmw-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	position: relative;
	transition: transform 0.2s ease, background 0.2s ease;
}

.rmw-cart-toggle:hover {
	background: var(--rmw-accent-dark);
}

.rmw-cart-toggle.rmw-bump {
	transform: scale(1.14);
}

.rmw-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--rmw-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 2px solid #fff;
}

.rmw-cart-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 99998;
}

.rmw-cart-backdrop.open {
	display: block;
}

.rmw-cart-panel {
	position: fixed;
	top: 0;
	right: -380px;
	width: 360px;
	max-width: 92vw;
	height: 100%;
	background: #fff;
	z-index: 99999;
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
	transition: right 0.3s ease;
	display: flex;
	flex-direction: column;
}

.rmw-cart-panel.open {
	right: 0;
}

.rmw-cart-panel-head {
	background: var(--rmw-dark);
	color: #fff;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	font-size: 17px;
	border-bottom: 3px solid var(--rmw-accent);
}

.rmw-cart-panel-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.rmw-cart-panel-inner {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

/* WooCommerce's default mini-cart markup, restyled to match the panel */
.rmw-cart-panel-inner .woocommerce-mini-cart {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.rmw-cart-panel-inner .woocommerce-mini-cart-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--rmw-border);
	position: relative;
}

.rmw-cart-panel-inner .woocommerce-mini-cart-item img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
}

.rmw-cart-panel-inner .woocommerce-mini-cart-item a.remove {
	color: var(--rmw-accent) !important;
	font-weight: 700;
	margin-left: auto;
}

.rmw-cart-panel-inner .total {
	font-weight: 700;
	font-size: 16px;
	padding: 14px 0;
	border-top: 2px solid var(--rmw-dark);
}

.rmw-cart-panel-inner .wc-forward {
	display: block;
	text-align: center;
	background: var(--rmw-accent);
	color: #fff !important;
	padding: 12px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none !important;
	margin-top: 8px;
}

.rmw-cart-panel-inner .wc-forward:hover {
	background: var(--rmw-accent-dark);
}

@media (max-width: 480px) {
	.rmw-floating-cart {
		bottom: 16px;
		right: 16px;
	}
}

/* Let WooCommerce's native variation table sit cleanly inside the modal */
.rmw-variation-wrap table.variations {
	width: 100%;
	margin-bottom: 12px;
}

.rmw-variation-wrap table.variations td {
	padding: 6px 0;
}

.rmw-variation-wrap .woocommerce-variation-price {
	font-weight: 700;
	margin: 10px 0;
}

.rmw-variation-wrap .woocommerce-variation-add-to-cart,
.rmw-variation-wrap .single_add_to_cart_button,
.rmw-variation-wrap .reset_variations,
.rmw-variation-wrap .quantity {
	display: none !important; /* we supply our own Add to Cart + qty */
}

/* Checkout: Delivery / Pickup radio field */
.rmw-checkout-order-type {
	background: #faf9f6;
	border: 1px solid var(--rmw-border);
	border-radius: 12px;
	padding: 16px 18px !important;
	margin-bottom: 18px !important;
}

.rmw-checkout-order-type > label:first-child {
	font-weight: 800;
	font-size: 16px;
	display: block;
	margin-bottom: 8px;
}

.rmw-checkout-order-type .woocommerce-input-wrapper label {
	margin-right: 22px;
	font-weight: 600;
	cursor: pointer;
}

.rmw-checkout-order-type input[type="radio"] {
	accent-color: var(--rmw-accent);
	margin-right: 6px;
}

/* Small screens: keep the horizontal card but tighten it */
@media (max-width: 560px) {
	.rmw-card {
		padding: 14px 12px;
		min-height: 0;
	}

	.rmw-card-image img {
		max-height: 140px;
	}

	.rmw-cat-heading {
		font-size: 24px;
	}

	.rmw-order-type-btn {
		padding: 10px 20px;
		font-size: 14px;
	}
}
