/*
 * OrderFlock.com layout primitives - brand colors via CSS variables from settings.
 * --sf-brand, --sf-brand-dark, --sf-wa set in sf_shell.inc
 */
/* Live OF: html/body are 14px (not browser 16px) — rem scale depends on this */
html {
	font-size: 14px !important;
}
html, body.sf-body {
	height: 100%;
	background-color: #f4f5f5;
	font-family: "Quicksand", "Cairo", sans-serif !important;
	font-size: 14px !important;
	line-height: 1.42857; /* ~20px — live OF body */
	color: rgba(0, 0, 0, 0.87);
	overflow-y: scroll !important;
}
.english-font { font-family: "Quicksand", "Cairo", sans-serif !important; font-weight: 100; }
.arabic-font { font-family: "Cairo", "Quicksand", sans-serif !important; font-weight: 400; direction: rtl; }
.grayBackground { background-color: #f4f5f5; }
/* List row price — live OF: brand green + light weight */
.sf-of-item .priceEnglish,
.of-item-right .priceEnglish { color: rgb(56, 142, 60) !important; font-weight: 100; }
/* LIMITED / NEW - float over the photo; never push/shrink the img */
.image_menu {
	position: relative !important;
	overflow: hidden;
	width: 90px;
	height: 90px;
	flex-shrink: 0;
	background: #ededed;
}
.image_menu > img,
.image_menu > .image_menu-ph {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
.image_menu > .of-badges,
.image_menu .of-badges {
	position: absolute !important;
	top: 4px !important;
	left: 4px !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 3 !important;
	display: flex !important;
	flex-wrap: wrap;
	gap: 2px;
	width: auto !important;
	max-width: calc(100% - 8px);
	height: auto !important;
	pointer-events: none;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	line-height: 1;
}
.of-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	padding: 2px 6px;
	margin: 0;
	border-radius: 2px;
	line-height: 1.2;
	text-transform: uppercase;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.of-badge--limited { background: #e53935; color: #fff; }
.of-badge--new { background: var(--sf-brand, #388e3c); color: #fff; }
.App { height: 100%; text-align: left; }

/* Drawer panel (left on desktop, full on mobile) */
.MuiDrawer-paper,
.sf-drawer {
	background-color: #f4f5f5 !important;
}
.container {
	width: 100% !important;
	padding: 0 !important;
	background-color: #f4f5f5;
}
.container.relative {
	overflow-y: auto;
	height: 100%;
}

@media (min-width: 768px) {
	.MuiDrawer-paper,
	.sf-drawer {
		width: 41.6vw !important;
		max-width: 41.6vw;
		flex-shrink: 0;
		height: 100vh;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		border-right: 1px solid #dee2e6;
	}
	/* One scroll container on desktop - the drawer. Both axes visible so sticky works
	   (overflow-x:hidden + overflow-y:visible computes to auto and kills sticky). */
	.sf-drawer .container.relative,
	.sf-drawer .container {
		height: auto !important;
		min-height: 100%;
		overflow: visible !important;
	}
}

/* Header */
.header {
	padding: 16px;
	text-align: left;
	margin-bottom: 0;
	z-index: 1000;
	background-color: #f4f5f5;
}

/* Store card */
.MuiCard-root {
	width: 100%;
	min-height: 120px;
	margin: auto;
	background: #fff;
}

/* Delivery / pickup toggle */
.menu-item {
	outline: none !important;
	border: 1px solid #666 !important;
	min-width: 120px;
	background: #fff;
	min-height: 44px;
	color: #666;
	border-radius: 3px;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	padding: 10px 28px;
}

/* Category tabs */
.scroll-container {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	padding: 8px;
	gap: 4px;
	background: #f4f5f5;
	touch-action: pan-x;
}
.scroll-container::-webkit-scrollbar { display: none; }
/* Overridden by storefront visual lock to OF text tabs; keep selectors for compat */
.sf-cat-tab.ar_active,
.sf-cat-tab.active {
	color: var(--sf-on-brand, #fff) !important;
	font-weight: 700;
	border: 1px solid var(--sf-brand, #388e3c) !important;
	border-bottom: 2px solid var(--sf-brand, #388e3c) !important;
	box-shadow: none !important;
	background: var(--sf-brand, #388e3c) !important;
}
.sf-cat-tab.sf-cat-tab--colored {
	font-weight: 700;
	color: #212121 !important;
	border-bottom: 2px solid var(--sf-cat-color, var(--sf-brand, #388e3c)) !important;
}

/* Popular / promo strip */
.main_promo {
	text-align: center;
	padding: 16px 0;
	background: #fff;
}
.main_promo .box-title {
	margin-bottom: 12px;
	font-weight: 500;
	color: #6c757d;
	padding: 0 16px;
	font-size: 14px;
	text-align: left;
}
.image-container {
	vertical-align: middle;
	display: block;
	width: 100%;
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0 16px 8px;
	-webkit-overflow-scrolling: touch;
}
.image-container .promo_item {
	display: inline-block;
	vertical-align: top;
	width: 118px;
	margin-right: 14px;
	text-align: center;
	white-space: normal;
}
.image-container .image {
	height: 100px;
	width: 100px;
	border-radius: 12px;
	background: #ededed;
	display: inline-block;
	overflow: hidden;
	margin: 0 auto 10px;
}
.image-container .image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Menu list */
.image_menu {
	height: 90px;
	width: 90px;
	border-radius: 4px;
	background: #ededed;
	overflow: hidden;
	flex-shrink: 0;
}
.image_menu img { width: 100%; height: 100%; object-fit: cover; }
.categories_header {
	padding: 14px 16px;
	background-color: #f4f5f5;
	opacity: 0.95;
	font-weight: 700;
	font-size: 1rem;
	z-index: 30;
}
/* Full-bleed on mobile; desktop drawer keeps section padding via media query */
.category_menu {
	padding: 0;
	text-align: left;
	background-color: #fff;
	scroll-margin-top: 110px;
	/* No left accent by default — OF only paints when cart has items from this category */
	border-left: 0 !important;
	box-shadow: none;
	box-sizing: border-box;
}
@media (min-width: 768px) {
	.category_menu {
		padding: 0;
		background-color: #fff;
	}
}

.cut-text-one-line-list,
.cut-text-two-lines-list {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cut-text-one-line-list { -webkit-line-clamp: 1; }
.cut-text-two-lines-list { -webkit-line-clamp: 2; }

.layoutProductTitleEnglish { font-size: 14px; font-weight: 700; color: #000; }
.layoutProductDescriptionEnglish { font-size: 14px; color: var(--sf-muted, #5c5c5c); line-height: 1.35; }
.priceEnglish { font-size: 14px; font-weight: 100; color: rgb(56, 142, 60); }

/* Spacers (OrderFlock free-space) */
.free-space-20 { height: 20px; background-color: #fff; }
.free-space-40-white { height: 40px; background-color: #fff; }
.free-space-50-white { height: 50px; background-color: #fff; }
.free-space-70-white { height: 70px; background-color: #fff; }
.free-space-80-white { height: 80px; background-color: #fff; }

/* Product detail */
.detail_header {
	position: sticky;
	top: 0;
	left: 0;
	height: 60px;
	z-index: 50;
	background-color: #fff;
	display: flex;
	align-items: center;
	padding: 0 16px;
	border-bottom: 1px solid #dee2e6;
}
@media (min-width: 768px) {
	.detail_header { width: 41.6vw !important; position: fixed; }
}
.quantity_button { font-size: 30px !important; cursor: pointer; border: none; background: none; color: var(--sf-brand); }

/* Bottom CTA - match homepage .of-cart-bar (full-bleed) */
.action-button-english {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: none;
	padding: 0;
	background: transparent;
	border-top: none;
	z-index: 200;
	box-sizing: border-box;
}
@media (min-width: 768px) {
	.action-button-english {
		left: 0;
		right: auto;
		width: 41.6vw;
		max-width: 41.6vw;
	}
}
@media (max-width: 767px) {
	.action-button-english {
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
	}
}
.sf-mobile .action-button-english {
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
}
.action-button-english .sf-cta-btn {
	width: 100%;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	padding-bottom: calc(14px + env(safe-area-inset-bottom, 0));
	min-height: 48px;
	background: var(--sf-brand, #388e3c);
	color: #fff;
	border: none;
	border-radius: 0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.action-button-english .sf-cta-price {
	background: rgba(0, 0, 0, 0.15);
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 700;
}

/* Desktop hero nav buttons */
.menuButtonLargeScreenEnglish { position: fixed !important; top: 24px !important; left: 45vw !important; z-index: 100; }
.historyButtonLargeScreenEnglish { position: fixed !important; top: 24px !important; left: 50vw !important; z-index: 100; }
.SearchButtonLargeScreenEnglish { position: fixed !important; top: 24px !important; left: 55vw !important; z-index: 100; }
.languageButtonLargeScreenEnglish { position: fixed !important; top: 24px !important; left: 60vw !important; z-index: 100; }
.of-desk-nav-cart { position: fixed !important; top: 24px !important; left: 50vw !important; z-index: 100; pointer-events: auto; }
.of-desk-nav-profile { position: fixed !important; top: 24px !important; left: 55vw !important; z-index: 100; pointer-events: auto; }
.of-desk-nav-menu { position: fixed !important; top: 24px !important; left: 60vw !important; z-index: 100; pointer-events: auto; }
.header-button-cricle {
	min-height: 44px !important;
	min-width: 44px !important;
	border-radius: 50% !important;
	background-color: #fff !important;
	box-shadow: 0 1px 6px rgba(0,0,0,.12);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

/* WhatsApp widget - stay in FAB stack (positioning owned by .sf-fabs) */
.sf-fab-wa.of-wa-widget {
	background-color: #29ac00 !important;
	box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.15) !important;
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	width: 40px !important;
	height: 60px !important;
	border-radius: 0 !important;
	z-index: auto !important;
}

/* Category strip on mobile: static in-flow; JS pins fixed at top:54 (OF) */
@media (max-width: 767px) {
	.sticky-category,
	.sf-cat-tabs-wrap.sticky-category {
		position: static;
		top: auto;
		z-index: 999;
		background: #fff;
	}
	.sticky-category.is-pinned,
	.sf-cat-tabs-wrap.sticky-category.is-pinned {
		position: fixed !important;
		top: 54px !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		z-index: 999 !important;
		background: #fff !important;
		transform: translateZ(0);
	}
	.categories_header {
		position: static !important;
	}
}

.disable-scroll-bar::-webkit-scrollbar { display: none !important; }
.disable-scroll-bar { -ms-overflow-style: none; scrollbar-width: none; }

::-webkit-scrollbar { width: 0 !important; background: transparent; }

.half-line {
	height: 1px;
	width: 95%;
	margin: 0 auto;
	border-top: 1px solid #dee2e6 !important;
}

.bordered { border-top: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6; }
/* Live OF: green 4px rail on the in-cart product row only (not whole category_menu) */
.category_menu.accordionBorderEnglish,
.category_menu.accordionBorderArabic {
	border-left: 0 !important;
	border-right: 0 !important;
	box-shadow: none !important;
}
.sf-of-item.accordionBorderEnglish,
.sf-item-row.accordionBorderEnglish {
	border-left: 4px solid var(--sf-brand, #388e3c) !important;
	border-right: 0 !important;
	box-shadow: none !important;
}
.sf-of-item.accordionBorderArabic,
.sf-item-row.accordionBorderArabic {
	border-right: 4px solid var(--sf-brand, #388e3c) !important;
	border-left: 0 !important;
	box-shadow: none !important;
}
.box-title { margin-bottom: 0; font-weight: 700; color: #5b5b5b; padding: 0; font-size: 1rem; }

/* Modifier options - MUI-like */
.MuiCheckbox-root { color: grey !important; }
.sf-mod-option input[type="checkbox"],
.sf-mod-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--sf-brand); }

/* Product detail page (OrderFlock layout) */
.of-item-page {
	background: #fff;
	min-height: 100%;
	padding-bottom: 90px;
}
.of-item-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	min-height: 48px;
	background: #fff;
	border-bottom: 1px solid #eee;
	position: sticky;
	top: 0;
	z-index: 50;
}
.of-item-header--overlay {
	/* Legacy class — product header is sticky white on all pages now */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: #fff !important;
	border-bottom: 1px solid #dee2e6 !important;
	z-index: 1000;
}
.of-item-header-spacer { flex: 1; }
.of-item-hero {
	background: #faf7ed;
	padding: 0;
	text-align: center;
	width: 100%;
	position: relative;
}
.of-limited-label {
	position: absolute;
	top: 48px;
	left: 0;
	right: 0;
	z-index: 5;
	color: var(--sf-brand, #388e3c);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.14em;
	padding: 0 12px;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
	line-height: 1.2;
	pointer-events: none;
}
.of-item-hero-img {
	width: 100%;
	padding: 0;
	display: block;
	background: #faf7ed;
}
.of-item-hero-img img {
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: center;
	display: block;
	margin: 0 auto;
}
.of-item-img-ph {
	width: 100%;
	aspect-ratio: 5 / 4;
	max-height: none;
	min-height: 280px;
	background: #f0ebe0;
	border-radius: 0;
}
.of-item-info {
	padding: 16px;
	background: #fff;
	border-bottom: 1px solid #eee;
}
.of-item-info-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}
.of-item-title {
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #000;
	line-height: 1.25;
}
.of-item-price {
	font-size: 1rem;
	font-weight: 700;
	color: var(--sf-brand, #388e3c);
}
/* Product qty + modifier rows: see storefront.css (loads last) */
.of-item-section {
	padding: 16px;
	background: #fff;
	border-bottom: 1px solid #eee;
}
.of-section-title, .of-mod-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: #000;
}
.of-section-text {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}
.of-mod-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.of-mod-badge {
	display: inline-block;
	padding: 3px 10px;
	background: #9e9e9e;
	color: #fff;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
}
.of-mod-limit { font-size: 12px; color: var(--sf-muted, #5c5c5c); }
.of-special-label { display: block; font-size: 14px; color: var(--sf-muted, #5c5c5c); margin-bottom: 8px; }
.of-special-input {
	width: 100%;
	border: none;
	border-bottom: 1px solid #ddd;
	outline: none;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	min-height: 60px;
	padding: 8px 0;
	background: transparent;
}
.of-item-upsell { margin-top: 30px; border-top: none; }
.of-item-upsell .of-upsell-title { margin: 0 0 7px; padding: 0 10px; font-size: 14px; font-weight: 700; color: #5b5b5b; }
.of-item-upsell .of-upsell-carousel {
	display: flex;
	align-items: center;
	padding: 20px 5px;
	background: #fff;
	border: 1px solid #dee2e6;
}
.sf-app .of-item-upsell .of-upsell-prev,
.sf-app .of-item-upsell .of-upsell-next,
.of-item-upsell .of-upsell-prev,
.of-item-upsell .of-upsell-next {
	flex: 0 0 auto;
	width: auto;
	margin: 0 0 55px;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: rgba(0,0,0,.54) !important;
	cursor: pointer;
	padding: 0 4px !important;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.of-item-upsell .of-upsell-name {
	font-size: 14px;
	font-weight: 700;
	color: #000;
	margin: 8px 0 0;
	padding: 0 4px;
	line-height: 1.25;
	height: 40px;
	text-align: left;
}
.of-item-upsell .of-upsell-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--sf-brand, #388e3c);
	margin: 0;
	padding: 0 4px;
	text-align: left;
}
.sf-app .of-item-upsell .of-upsell-add,
.of-item-upsell .of-upsell-add {
	width: 100%;
	height: 30px !important;
	min-height: 30px !important;
	padding: 0 8px !important;
	font-size: 14px !important;
	border: 1px solid var(--sf-brand, #388e3c) !important;
	background: #fff !important;
	color: var(--sf-brand-text, #388e3c) !important;
	border-radius: 4px !important;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	box-shadow: none !important;
	text-transform: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.of-share-row { padding: 20px 16px 8px; background: #fff; text-align: center; }
.of-share-btn {
	border: none;
	background: transparent;
	color: #333;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sf-hero-side { display: none; }

@media (min-width: 768px) {
	.sf-hero-side {
		display: block;
		flex: 1;
		height: 100vh;
		position: sticky;
		top: 0;
		overflow: hidden;
		background: #ececec;
	}
	.sf-hero-side img { width: 100%; height: 100%; object-fit: cover; }
	.sf-app.sf-hydrated { display: flex; min-height: 100vh; }
}
