/*
 * Menu bar under the top header (full width), mobile header row, slide-in drawer and bottom tab bar.
 * Loads after style.css and blinkit-header.css.
 */

/* =============== desktop: full-width menu bar =============== */
header .container-fluid-lg { max-width: none; padding-left: 0; padding-right: 0; }
header .container-fluid-lg > .row, header .container-fluid-lg > .row > .col-12 { margin: 0; padding: 0; }
header .header-nav {
	width: 100%;
	padding: 0 28px;
	background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
	box-shadow: none;
	position: relative;
}
header .header-nav .header-nav-middle { flex: 1 1 auto; min-width: 0; }
header .header-nav .main-nav { width: 100%; padding: 0; }
header .header-nav .main-nav .offcanvas-body { padding: 0; }
header .header-nav .main-nav .navbar-nav { display: flex; flex-direction: row; align-items: center; justify-content: space-evenly; width: 100%; gap: 2px; }
header .header-nav .main-nav .nav-item { flex: 1 1 auto; text-align: center; }
header .header-nav .main-nav .nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 14px !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .1px;
	color: #2b2f4a !important;
	transition: color .2s;
}
header .header-nav .main-nav .nav-link::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 8px;
	width: 0;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, #1e9bd7, #e2261c);
	transform: translateX(-50%);
	transition: width .25s ease;
}
header .header-nav .main-nav .nav-link:hover { color: #1667a8 !important; }
header .header-nav .main-nav .nav-link:hover::after { width: 34px; }
header .header-nav .main-nav .nav-link.active { color: #e2261c !important; font-weight: 700; }
header .header-nav .main-nav .nav-link.active::after { width: 34px; }
header .header-nav .header-nav-right { flex: 0 0 auto; margin-left: 16px; }
header .header-nav .header-nav-right .btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 20px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff5a4e, #d4231a);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 12px 22px -12px rgba(226, 38, 28, .85);
	transition: transform .2s, box-shadow .2s;
}
header .header-nav .header-nav-right .btn:hover {  box-shadow: 0 16px 26px -12px rgba(226, 38, 28, .95); }

/* =============== phone / tablet =============== */
@media (max-width: 1199.98px) {
	header .header-nav { padding: 0; border-top: 0; box-shadow: none; }
	header .header-nav::after { display: none; }
	header .header-nav .header-nav-right { display: none; }
}

@media (max-width: 767.98px) {
	/* two-row header: logo + actions, then location + search */
	header .top-nav .navbar-top { flex-wrap: wrap; row-gap: 0; padding: 8px 0 0; }
	header .top-nav .navbar-top .web-logo { margin-right: auto !important; }
	header .top-nav .navbar-top .web-logo img { width: 150px; }
	header .top-nav .navbar-top .middle-box.gk-bk {
		display: flex !important;
		order: 10;
		flex: 0 0 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 8px 0 12px;
	}
	header .top-nav .navbar-top .middle-box .location-box.gk-bk-loc { display: block !important; margin: 0 !important; padding: 0 2px !important; }
	.gk-bk-locbtn { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 8px; max-width: 100%; }
	.gk-bk-loctitle { font-size: 14px; }
	.gk-bk-locsub, header .gk-bk-locbtn .gk-bk-locsub { font-size: 12px !important; color: #555 !important; }
	.gk-bk-form { max-width: none; }
	.gk-bk-search { height: 44px; border-radius: 12px; background: #f1f3f7; }
	.right-side-menu .right-side.d-md-none { display: none !important; }
	header .top-nav .navbar-top .rightside-box { margin-left: 0; }
	.navbar-menu-button { margin-right: 8px; }
}

/* drawer */
@media (max-width: 1199.98px) {
	header .main-nav .offcanvas {
		width: min(86vw, 340px);
		border-radius: 0 24px 24px 0;
		background: #fff;
		box-shadow: 0 0 60px rgba(10, 15, 50, .35);
	}
	header .main-nav .offcanvas-header {
		padding: 18px 18px 14px;
		border-bottom: 0;
		background: linear-gradient(135deg, #1e9bd7 0%, #1667a8 55%, #1d1d64 100%);
	}
	header .main-nav .offcanvas-header h5 { margin: 0; }
	header .main-nav .offcanvas-header .btn { border-radius: 999px; background: #fff !important; color: #d4231a !important; font-weight: 700; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); }
	header .main-nav .offcanvas-header .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .9; }
	header .main-nav .offcanvas-body { padding: 12px 14px 24px; }
	header .main-nav .navbar-nav { flex-direction: column; align-items: stretch; gap: 4px; }
	header .main-nav .nav-item { text-align: left; }
	header .main-nav .nav-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 13px 16px !important;
		border-radius: 14px;
		font-size: 15px;
		font-weight: 600;
		color: #232748 !important;
		transition: background .18s, color .18s, transform .18s;
	}
	header .main-nav .nav-link::after {
		content: "\203A";
		position: static;
		width: auto;
		height: auto;
		background: none;
		transform: none;
		font-size: 22px;
		line-height: 1;
		font-weight: 400;
		color: #aab0c8;
	}
	header .main-nav .nav-link:hover { background: #f1f7fc; transform: translateX(3px); }
	header .main-nav .nav-link.active { background: linear-gradient(90deg, rgba(226, 38, 28, .1), rgba(30, 155, 215, .08)); color: #e2261c !important; box-shadow: inset 4px 0 0 #e2261c; }
	header .main-nav .nav-link.active::after { color: #e2261c; }
}

/* bottom tab bar: floating glass pill */
@media (max-width: 767.98px) {
	body { padding-bottom: 84px; }
	.mobile-menu {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		padding: 6px;
		border-radius: 22px;
		background: rgba(255, 255, 255, .9) !important;
		-webkit-backdrop-filter: blur(16px) saturate(1.6);
		backdrop-filter: blur(16px) saturate(1.6);
		border: 1px solid rgba(255, 255, 255, .9);
		box-shadow: 0 18px 40px -14px rgba(20, 30, 80, .5);
		overflow: visible;
	}
	.mobile-menu ul { width: 100% !important; margin: 0; padding: 0; gap: 4px; }
	.mobile-menu ul li { flex: 1 1 0; }
	.mobile-menu ul li.active::before { display: none; }
	.mobile-menu ul li a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		padding: 8px 4px;
		border-radius: 16px;
		color: #6a7090 !important;
		font-size: 11.5px;
		font-weight: 600;
		transition: background .2s, color .2s, transform .2s;
	}
	.mobile-menu ul li a span { color: inherit !important; }
	.mobile-menu ul li a i { font-size: 19px; color: #6a7090 !important; transition: color .2s, transform .2s; }
	.mobile-menu ul li.active a { background: linear-gradient(135deg, #1e9bd7, #1667a8); color: #fff !important; box-shadow: 0 12px 20px -10px rgba(22, 103, 168, .9); }
	.mobile-menu ul li.active a i { color: #fff !important; transform: scale(1.08); }
	.mobile-menu ul li a:active { transform: scale(.95); }
	.back-to-top, .theme-option .back-to-top { bottom: 96px; }
}

/* no border / line under the menu bar */
header.brdr_btm { border-bottom: 0 !important; }
header .header-nav { border-bottom: 0; box-shadow: none; }
header .header-nav { border-top: 0 !important; }
