/*
 * OrderFlock homepage layout (mobile + desktop drawer content)
 */
.of-home {
	background: #f4f5f5;
	min-height: 100%;
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.of-home-desktop-only { display: none; }
.of-home-mobile-only { display: block; }

@media (min-width: 768px) {
	.of-home-desktop-only { display: block; }
	.of-home-mobile-only { display: none !important; }
}

/* Mobile header - live OF: menu left; bag + search + lang right; fixed ~54px */
.of-home-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	direction: ltr;
	padding: 0 10px;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 1000;
	min-height: 54px;
	height: 54px;
	box-sizing: border-box;
	/* Live OF detail_header.border-bottom — separates header from category strip */
	border-bottom: 1px solid #dee2e6;
	width: 100%;
}
@media (max-width: 767px) {
	/* Fixed header so category pin at 54px never fights a moving sticky header */
	.of-home-header {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		transform: translateZ(0);
	}
	.of-mobile-home {
		padding-top: 54px; /* offset for fixed header */
	}
}
.of-home-header > .sf-nav-menu { order: 1; flex: 0 0 auto; }
.of-home-header-spacer { order: 2; flex: 1 1 auto; min-width: 8px; }
.of-home-header-actions {
	order: 3;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
	direction: ltr;
	margin-left: auto;
}
.of-home-header-actions .sf-go-cart { order: 1; }
.of-home-header-actions .sf-open-search { order: 2; }
.of-home-header-actions .sf-lang-btn { order: 3; }
.of-header-btn {
	position: relative;
	width: 40px;
	height: 40px;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #222;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
}
/* Live OF: menu/search glyphs 21px, bag glyph 24px */
.of-header-btn svg { width: 21px; height: 21px; }
.of-header-btn.sf-go-cart svg { width: 24px; height: 24px; }
.of-header-btn .sf-cart-dot {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	font-size: 10px;
	line-height: 16px;
}

/* Hero banner + store overlay */
.of-hero-block {
	background: #fff;
	margin-bottom: 0;
}
.of-hero-img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #ececec;
}
.of-hero-img--ph {
	min-height: 200px;
	background: linear-gradient(180deg, #ececec 0%, #f4f5f5 100%);
}
.of-hero-store {
	text-align: center;
	padding: 16px 20px 20px;
	background: #fff;
}
.of-logo-circle {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--sf-brand, #388e3c);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: -36px auto 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
	overflow: hidden;
	font-weight: 700;
	border: 3px solid #fff;
}
.of-logo-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.of-logo-circle > span {
	color: #fff !important;
	font-weight: 800;
}
.of-logo-circle--sm {
	width: 48px;
	height: 48px;
	margin: 0;
	flex-shrink: 0;
	border-width: 2px;
}
.of-store-title {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 700;
	color: #000;
	line-height: 1.2;
}
.of-store-meta {
	font-size: .85rem;
	color: #6c757d;
	margin-bottom: 4px;
}
.of-store-meta .of-stars { color: #000; font-weight: 600; }
.of-store-branch { margin-bottom: 12px; }
.of-follow-btn {
	display: inline-block;
	min-width: 120px;
	padding: 8px 28px;
	border: 1px solid #000;
	border-radius: 24px;
	background: #fff;
	color: #000;
	font-size: .9rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}
.of-follow-btn.following {
	background: #000;
	color: #fff;
}

/* Desktop store bar in drawer - match OF logo + title scale (not tiny) */
.of-desktop-store-wrap {
	background: #fff;
}
.of-desktop-store.sf-store-header-btn {
	padding: 14px 16px;
	gap: 12px;
	align-items: center;
}
.of-desktop-store.sf-store-header-btn .sf-store-logo {
	/* Live OF MuiAvatar: 60×60 / radius 4 */
	width: 60px;
	height: 60px;
	border-radius: 4px;
}
/* Live OF ListItemText: primary 14/400, secondary 12.25/400 muted */
.of-desktop-store.sf-store-header-btn .sf-store-name {
	font-size: 14px;
	line-height: 21px;
	font-weight: 400;
	letter-spacing: 0;
	color: #000;
	margin: 0;
}
.of-desktop-store.sf-store-header-btn .sf-store-tagline {
	font-size: 12.25px;
	line-height: 17.5px;
	color: rgba(0, 0, 0, 0.54);
	margin: 0;
	font-weight: 400;
}
.of-desktop-store.sf-store-header-btn .sf-store-info-icon svg {
	width: 22px;
	height: 22px;
}

/* Pick-up / Delivery + ASAP - OF: segment fills row when dual mode */
.of-order-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12.625px 15px;
	background: #fff;
	border-top: none;
	border-bottom: none;
}
.of-segment {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}
.of-segment-btn {
	border: none;
	background: #fff;
	color: #4a4a4a;
	font-size: .9rem;
	font-weight: 600;
	padding: 10px 16px;
	cursor: pointer;
	font-family: inherit;
	flex: 1 1 50%;
	min-width: 0;
	text-align: center;
}
.of-segment-btn.active {
	background: var(--sf-brand, #388e3c);
	color: var(--sf-on-brand, #fff);
}
.of-order-bar--single {
	justify-content: center !important;
	align-items: center;
	text-align: center;
	min-height: 65px;
	padding: 0 !important;
}
.of-order-bar--single .of-order-bar-col,
.of-order-bar--single .col-4 {
	text-align: center;
}
.of-order-bar--single .of-single-otype,
.of-order-bar--single .menu-item {
	flex: 0 0 auto !important;
	min-width: 80px !important;
	width: 80px !important;
	max-width: 80px !important;
	min-height: 39px !important;
	height: 39px !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 12.25px !important;
	font-weight: 700;
	border: 1px solid #666 !important;
	border-radius: 3px;
	background: transparent !important;
	color: #666 !important;
	cursor: pointer;
	font-family: inherit;
	line-height: 39px;
	margin: 0 auto;
}
.of-asap-btn {
	border: none;
	background: transparent;
	color: var(--sf-brand-text, #2e7d32);
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	padding: 6px 4px;
	white-space: nowrap;
}

/* Accordion menu sections */
.of-accordion-menu {
	background: #f4f5f5;
}
.of-acc-section {
	background: #fff;
	margin-bottom: 8px;
}
.of-acc-head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border: none;
	background: #fff;
	font-size: .95rem;
	font-weight: 700;
	color: #000;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	letter-spacing: .02em;
}
.of-acc-head svg {
	transition: transform .2s ease;
	color: #666;
	flex-shrink: 0;
}
.of-acc-section.open .of-acc-head svg { transform: rotate(180deg); }
.of-acc-body {
	display: none;
	border-top: 1px solid #eee;
}
.of-acc-section.open .of-acc-body { display: block; }

/* Product rows */
.of-product-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	background: #fff;
}
.of-product-row:last-child { border-bottom: none; }
.of-product-img {
	width: 90px;
	height: 90px;
	flex-shrink: 0;
	border-radius: 4px;
	background: #ececec;
	overflow: hidden;
}
.of-product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.of-product-info {
	flex: 1;
	min-width: 0;
	padding-top: 2px;
}
.of-product-name {
	font-size: .95rem;
	font-weight: 700;
	color: #000;
	margin-bottom: 4px;
	line-height: 1.25;
}
.of-product-desc {
	font-size: .8rem;
	color: var(--sf-muted, #5c5c5c);
	margin-bottom: 6px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.of-product-price {
	font-size: .9rem;
	color: #000;
	font-weight: 700;
	white-space: nowrap;
}
.of-item-right {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 8px;
	min-width: 78px;
	align-self: center;
}
.of-item-right .sf-add-outline {
	min-width: 72px;
	min-height: 34px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	border: 1.5px solid var(--sf-brand, #388e3c);
	background: #fff;
	color: var(--sf-brand, #388e3c);
	border-radius: 4px;
	cursor: pointer;
	font-family: inherit;
}
.of-row-qty {
	display: inline-flex;
	align-items: center;
	background: var(--sf-brand, #388e3c);
	border-radius: 4px;
	overflow: hidden;
	min-height: 34px;
}
.of-row-qty-btn {
	width: 32px;
	height: 34px;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	line-height: 1;
}
.of-row-qty-val {
	min-width: 22px;
	text-align: center;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}
.of-add-link {
	flex-shrink: 0;
	align-self: center;
	border: none;
	background: transparent;
	color: var(--sf-brand-text, #2e7d32);
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	padding: 8px 4px;
	white-space: nowrap;
}
.of-add-link:hover { text-decoration: underline; }

/* Bottom cart bar - OrderFlock full-bleed */
.of-cart-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 14px 18px;
	padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	background: var(--sf-brand, #388e3c);
	color: #fff;
	border-radius: 0;
	box-shadow: 0 -2px 10px rgba(0,0,0,.12);
	cursor: pointer;
	font-size: .95rem;
	font-weight: 600;
	box-sizing: border-box;
	width: 100%;
	max-width: 100vw;
	transform: none;
}
.of-cart-bar strong { font-size: 1rem; white-space: nowrap; }
.of-cart-bar-left {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.of-cart-bar-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
}
.of-cart-bar-label {
	font-weight: 700;
	letter-spacing: 0.01em;
}
.of-home-spacer { height: 0; }
/* Space so last FAQ/menu rows are not covered by the fixed cart bar */
.of-cart-clearance {
	height: 96px;
	width: 100%;
	flex-shrink: 0;
	pointer-events: none;
	background: transparent;
}
.of-home--cart,
.of-mobile-home--cart,
.sf-has-cart-bar .sf-home-scroll,
.sf-has-cart-bar #sf-main {
	padding-bottom: 0;
}

@media (min-width: 768px) {
	.of-cart-bar {
		left: 0;
		right: auto;
		width: 41.6vw;
		min-width: 320px;
		max-width: 41.6vw;
		padding-bottom: 14px;
		/* Sit above left drawer content only - never over hero */
		z-index: 180;
	}
	.of-cart-clearance {
		height: 88px;
		background: #f4f5f5;
	}
	.sf-desktop.sf-has-cart-bar .sf-fabs,
	.sf-desktop .sf-fabs--lift {
		/* FABs live on the hero (right); do not lift for left cart bar */
		bottom: 32px !important;
	}
	.of-order-bar:not(.of-order-bar--single) {
		background: #f4f5f5;
		border: none;
		padding-top: 8px;
	}
	.of-order-bar.of-order-bar--single {
		background: #fff !important;
		border: none !important;
		border-bottom: 1px solid #dee2e6 !important;
		min-height: 65px !important;
		padding: 0 !important;
	}
	.of-acc-section { margin-bottom: 0; }
}
