/* =========================================================
   MOBILE NAV CSS
   assets/css/navigation/mobile-nav.css
   ========================================================= */

/* Mobile Controls */

.vb-mobile-toggle,
.vb-mobile-subtoggle {
	display: none;
}

.vb-header button.vb-mobile-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 40px;
	min-width: 40px;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	background: var(--vb-surface) !important;
	color: var(--vb-text) !important;
	border: 1px solid var(--vb-border-strong) !important;
	border-radius: var(--vb-radius-sm);
	box-shadow: none !important;
	outline: none !important;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.vb-header button.vb-mobile-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0;
	padding: 0;
	background: var(--vb-text);
	border-radius: var(--vb-radius-pill);
}

.vb-header button.vb-mobile-subtoggle {
	display: none !important;
}

/* Mobile Bottom Bar */

.vb-mobile-bottom-bar {
	display: none;
}

.vb-mobile-bottom-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	height: 58px;
	background: var(--vb-surface);
	color: var(--vb-action-active);
	border: 1px solid var(--vb-border-strong);
	border-radius: 10px;
	font-size: 11px;
	font-weight: 900;
	text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.vb-mobile-bottom-item:hover,
.vb-mobile-bottom-item:focus {
	background: var(--vb-info-soft);
	color: var(--vb-action-active);
	border-color: var(--vb-info-border);
}

.vb-mobile-bottom-item .vb-tool-icon {
	width: 19px;
	height: 19px;
}

.vb-mobile-bottom-item > span:not(.vb-tool-icon):not(.vb-cart-count) {
	white-space: nowrap;
	line-height: 1;
}

/* Responsive <= 1180 */

@media (max-width: 1180px) {

	.vb-header-main-inner {
		grid-template-columns: 150px minmax(260px, 1fr) auto;
		gap: 18px;
	}

	.vb-logo {
		width: 150px;
		max-width: 150px;
	}

	.vb-logo-img {
		width: 150px !important;
		max-width: 150px !important;
	}

	.vb-header-search {
		max-width: none;
	}

	.vb-menu {
		gap: 20px;
	}
}

/* Responsive <= 900 */

@media (max-width: 900px) {

	body {
		padding-bottom: 76px;
	}

	.vb-mobile-bottom-cart .vb-cart-icon {
		position: relative;
	}

	.vb-mobile-bottom-cart .vb-cart-count {
		position: absolute;
		top: -8px;
		right: -10px;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		font-size: 10px;
		line-height: 14px;
		border-width: 2px;
	}

	.vb-header-main-inner {
		grid-template-columns: 120px minmax(0, 1fr) auto;
		gap: 8px;
		min-height: 62px;
	}

	.vb-logo {
		width: 120px;
		max-width: 120px;
		height: 34px;
		max-height: 34px;
	}

	.vb-logo-img {
		width: 120px !important;
		max-width: 120px !important;
		height: 34px !important;
		max-height: 34px !important;
	}

	.vb-header-search {
		min-width: 0;
		height: 42px !important;
		border-radius: var(--vb-radius-sm);
	}

	.vb-header-search input[type="search"] {
		min-width: 0;
		height: 42px !important;
		padding: 0 12px !important;
		font-size: 13px;
		font-weight: 700;
	}

	.vb-header-search button[type="submit"] {
		width: 38px !important;
		min-width: 38px !important;
		height: 32px !important;
		margin-right: 5px !important;
		padding: 0 !important;
		border-radius: 7px !important;
		font-size: 0 !important;
		color: var(--vb-action-text) !important;
	}

	.vb-header-search button[type="submit"]::before {
		content: "";
		display: block;
		width: 14px;
		height: 14px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.3-4.3M11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.3-4.3M11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	.vb-header-actions {
		gap: 0;
	}

	.vb-header-actions::before {
		display: none;
	}

	.vb-header-help,
	.vb-action-btn {
		display: none;
	}

	.vb-header button.vb-mobile-toggle {
		display: flex;
	}

	.vb-header .vb-header-navline {
		position: absolute;
		top: 62px;
		right: 0;
		left: 0;
		z-index: 9999;
		display: block !important;
		max-height: calc(100vh - 62px - 76px) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		background: var(--vb-surface);
		border-top: 1px solid var(--vb-border);
		border-bottom: 1px solid var(--vb-border);
		box-shadow: 0 22px 40px rgba(15, 23, 42, .12);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		pointer-events: none;
		transition:
			opacity var(--vb-transition),
			transform var(--vb-transition),
			visibility var(--vb-transition);
		-webkit-overflow-scrolling: touch;
	}

	.vb-header.vb-mobile-open .vb-header-navline {
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateY(0) !important;
		pointer-events: auto !important;
	}

	.vb-header .vb-header-navline-inner {
		display: block !important;
		min-height: 0;
		padding: 16px 16px 22px;
	}

	.vb-header .vb-nav {
		display: block !important;
		width: 100%;
	}

	.vb-header .vb-menu {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		width: 100%;
	}

	.vb-header .vb-menu-item {
		position: relative;
		display: block;
		width: 100%;
	}

	.vb-header .vb-menu-item > a {
		display: flex !important;
		align-items: center;
		justify-content: flex-start;
		min-height: 48px;
		padding: 0 56px 0 16px;
		background: var(--vb-surface-soft);
		color: var(--vb-action-active);
		border: 1px solid var(--vb-border);
		border-radius: var(--vb-radius-md);
		font-size: 14px;
		font-weight: 900;
		text-align: left;
		text-transform: none;
		pointer-events: auto;
	}

	.vb-header .vb-menu-item > a::before,
	.vb-header .vb-menu-item > a::after {
		display: none;
	}

	.vb-header .vb-menu-item.vb-sub-open > a {
		background: var(--vb-action-soft);
		color: var(--vb-action-active);
		border-color: var(--vb-info-border);
	}

	.vb-header button.vb-mobile-subtoggle {
		position: absolute;
		top: 4px;
		right: 4px;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 40px;
		min-width: 40px;
		height: 40px;
		min-height: 40px;
		margin: 0 !important;
		padding: 0 !important;
		background: var(--vb-surface) !important;
		color: var(--vb-action-active) !important;
		border: 1px solid var(--vb-border) !important;
		border-radius: 10px;
		box-shadow: none !important;
		outline: none !important;
		appearance: none;
		-webkit-appearance: none;
		cursor: pointer;
	}

	.vb-header button.vb-mobile-subtoggle span {
		position: absolute;
		display: block;
		width: 14px;
		height: 2px;
		margin: 0;
		padding: 0;
		background: currentColor;
		border-radius: var(--vb-radius-pill);
		transition: transform var(--vb-transition);
	}

	.vb-header button.vb-mobile-subtoggle span:last-child {
		transform: rotate(90deg);
	}

	.vb-header .vb-menu-item.vb-sub-open button.vb-mobile-subtoggle {
		background: var(--vb-action-soft) !important;
		color: var(--vb-action-active) !important;
		border-color: var(--vb-info-border) !important;
	}

	.vb-header .vb-menu-item.vb-sub-open button.vb-mobile-subtoggle span:last-child {
		transform: rotate(0deg);
	}

	.vb-header .vb-menu-item > .vb-mega-menu {
		position: static !important;
		display: none !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 6px 0 0 !important;
		box-sizing: border-box !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		pointer-events: auto !important;
		transition: none !important;
	}

	.vb-header .vb-menu-item.vb-sub-open > .vb-mega-menu {
		display: block !important;
	}

	.vb-header .vb-mega-menu::before,
	.vb-header .vb-mega-grid::before,
	.vb-header .vb-mega-grid::after,
	.vb-header .vb-mega-highlight::before,
	.vb-header .vb-mega-col ul::before {
		display: none !important;
	}

	.vb-header .vb-mega-grid,
	.vb-header .vb-mega-col,
	.vb-header .vb-mega-highlight {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}

	.vb-header .vb-mega-grid {
		display: block !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 10px !important;
		overflow: visible !important;
		background: var(--vb-surface-soft) !important;
		border: 1px solid var(--vb-border) !important;
		border-radius: var(--vb-radius-md) !important;
		box-shadow: none !important;
	}

	.vb-header .vb-mega-col {
		margin-bottom: 12px;
	}

	.vb-header .vb-mega-col:last-child {
		margin-bottom: 0;
	}

	.vb-header .vb-mega-title {
		display: block;
		margin: 0 0 6px !important;
		color: var(--vb-text-muted);
		font-size: 11px !important;
		font-weight: 900;
		line-height: 1.2;
		text-transform: uppercase;
		letter-spacing: .06em;
	}

	.vb-header .vb-mega-col ul {
		display: flex;
		flex-direction: column;
		gap: 4px !important;
	}

	.vb-header .vb-mega-col ul a {
		display: flex;
		align-items: center;
		min-height: 38px !important;
		padding: 0 10px !important;
		background: var(--vb-surface);
		color: var(--vb-action-active);
		border: 1px solid var(--vb-border-soft);
		border-radius: var(--vb-radius-sm);
		font-size: 13px !important;
		font-weight: 800;
		transform: none !important;
	}

	.vb-header .vb-mega-icon {
		color: var(--vb-text-muted);
	}

	.vb-header .vb-mega-highlight {
		overflow: hidden !important;
		padding: 12px !important;
		background: var(--vb-surface) !important;
		border: 1px solid var(--vb-border-soft) !important;
		border-radius: 10px !important;
		box-shadow: none !important;
	}

	.vb-header .vb-mega-highlight p {
		display: block;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 10px !important;
		overflow: hidden;
		color: var(--vb-text-soft);
		font-size: 13px !important;
		line-height: 1.45 !important;
		white-space: normal !important;
		overflow-wrap: anywhere !important;
	}

	.vb-header a.vb-mega-btn {
		display: flex !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: 40px !important;
		padding: 0 12px !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
		font-size: 13px !important;
		line-height: 1.25 !important;
		text-align: center;
		white-space: nowrap !important;
		text-overflow: ellipsis !important;
		transform: none !important;
	}

	.vb-header .vb-header-whatsapp {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 44px;
		margin-top: 14px;
		background: var(--vb-action) !important;
		color: var(--vb-action-text) !important;
		border: 0;
		border-radius: 10px;
		font-size: 14px;
		font-weight: 900;
	}

	.vb-mobile-bottom-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 10000;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 8px;
		padding: 8px 12px;
		background: rgba(255, 255, 255, .96);
		border-top: 1px solid var(--vb-border);
		box-shadow: 0 -10px 30px rgba(15, 23, 42, .08);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
	}

	.vb-cart-btn .vb-tool-text {
		display: none;
	}
}

/* Responsive <= 560 */

@media (max-width: 560px) {

	.vb-header-main-inner {
		grid-template-columns: 122px minmax(0, 1fr) auto;
		gap: 8px;
		min-height: 58px;
	}

	.vb-logo {
		width: 122px;
		max-width: 122px;
		height: 34px;
		max-height: 34px;
	}

	.vb-logo-img {
		width: 122px !important;
		max-width: 122px !important;
		height: 34px !important;
		max-height: 34px !important;
	}

	.vb-header-search {
		height: 40px !important;
	}

	.vb-header-search input[type="search"] {
		height: 40px !important;
		padding: 0 10px !important;
		font-size: 12px;
	}

	.vb-header-search button[type="submit"] {
		width: 36px !important;
		min-width: 36px !important;
		height: 30px !important;
		padding: 0 !important;
		font-size: 0 !important;
	}

	.vb-header .vb-header-navline {
		top: 58px;
		max-height: calc(100vh - 58px - 76px) !important;
	}
}

/* Responsive <= 430 */

@media (max-width: 430px) {

	.vb-header-main-inner {
		grid-template-columns: 108px minmax(0, 1fr) auto;
		gap: 6px;
	}

	.vb-logo {
		width: 108px;
		max-width: 108px;
	}

	.vb-logo-img {
		width: 108px !important;
		max-width: 108px !important;
	}

	.vb-header-search input[type="search"] {
		font-size: 12px;
	}

	.vb-header-search button[type="submit"] {
		width: 34px !important;
		min-width: 34px !important;
	}

	.vb-header button.vb-mobile-toggle {
		width: 38px;
		min-width: 38px;
		height: 38px;
		min-height: 38px;
	}

	.vb-mobile-bottom-bar {
		gap: 6px;
		padding: 7px 8px;
	}

	.vb-mobile-bottom-item {
		height: 56px;
		font-size: 10px;
	}

	.vb-mobile-bottom-item .vb-tool-icon {
		width: 18px;
		height: 18px;
	}
}