﻿/* Geral */

:root {
	--project-color-primary: #ffd400;
	--project-color-text: #111;
	--project-color-text-muted: #1f2937;
	--project-color-surface: #fff;
	--project-color-surface-muted: #f3f4f6;
	--project-color-notification: #ff1f3d;
	--project-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

body {
	background: #f4f4f4;
}

/* Cabeçalho */

.header-badge {
	position: absolute;
	border-radius: 50rem;
	background: var(--project-color-notification);
	color: var(--project-color-surface);
}
.header-badge.badge-new {
	right: -4px;
	bottom: 100%;
	padding: 2px 6px;
	font-size: 10px;
}
.header-badge.badge-cart {
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	font-size: 12px;
}
.header-btn {
	border: 0;
	outline: 0;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 10px;
	gap: 8px;
	border-radius: 12px;
	background: var(--project-color-surface);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .10);
	color: var(--project-color-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
.header-btn.active {
	background: var(--project-color-primary);
	color: var(--project-color-text);
}
.header-btn-icon {
	width: 46px;
	padding: 0;
}
.header-search {
	display: flex;
	align-items: center;
	height: 46px;
	padding: 5px;
	overflow: hidden;
	border-radius: 50px;
	background: var(--project-color-surface);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}
.header-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 18px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--project-color-text);
	font-size: 14px;
}
.header-search input::placeholder {
	color: --project-color-text-muted;
}
.header-search .search-btn {
	display: grid;
	place-items: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--project-color-primary);
}
.header-dropdown .dropdown-menu {
	z-index: 1060;
	padding: 8px;
	border: 0;
	border-radius: 12px;
	background: var(--project-color-surface);
	box-shadow: var(--project-shadow);
}
.header-dropdown .dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--project-color-text-muted);
	font-size: 14px;
	font-weight: 600;
}
.header-dropdown .dropdown-item .bi {
	font-size: 18px;
	text-align: center;
}
.header-dropdown .dropdown-item:is(:hover, :focus) {
	background: var(--project-color-surface-muted);
	color: var(--project-color-text);
}
.header-default {
	padding-top: 10px;
	background: var(--project-color-primary);
}
.header-default .container {
	display: grid;
	grid-template-columns: max-content max-content minmax(0, 1fr) max-content;
	align-items: center;
	gap: clamp(16px, 2.5vw, 40px);
}
.header-navigation {
	margin-top: -10px;
	padding: 10px;
	border-radius: 12px;
	background: var(--project-color-surface);
	box-shadow: var(--project-shadow);
}
.header-navigation .navbar .navbar-nav {
	width: 100%;
}
.header-navigation .navbar .menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: 12px;
	color: var(--project-color-text-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.header-navigation .navbar .nav-item:not(:first-child) > .menu-item:is(:hover, :focus) {
	background: var(--project-color-surface-muted);
	color: var(--project-color-text-muted);
}
.header-navigation .navbar .nav-item:first-child > .menu-item {
	background: var(--project-color-primary);
	color: var(--project-color-text);
}
.header-navigation .navbar .menu-dropdown {
	margin-top: 8px;
	padding: 8px;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .10);
}
.header-navigation .navbar .menu-dropdown .dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
}
.header-navigation .navbar .menu-dropdown .dropdown-item:is(:hover, :focus) {
	background: var(--project-color-surface-muted);
}
.header-dropdown .dropdown-toggle::after, .header-navigation .navbar .dropdown-toggle::after {
	margin-left: -4px;
	vertical-align: middle;
	border-top: 5px solid;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
}
@media (min-width: 992px) {
	.header-navigation .navbar .nav-item {
		position: relative;
		display: flex;
		flex: 1 1 auto;
		align-items: stretch;
		min-width: 0;
		padding-inline: 6px;
	}
	.header-navigation .navbar .nav-item:first-child {
		padding-left: 0;
	}
	.header-navigation .navbar .nav-item:last-child {
		padding-right: 0;
	}
	.header-navigation .navbar .nav-item:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 8px;
		right: 0;
		bottom: 8px;
		width: 1px;
		background: #d9d9d9;
	}
	.header-navigation .navbar .nav-item > .menu-item {
		width: 100%;
		height: 100%;
		justify-content: center;
		text-align: center;
		white-space: nowrap;
	}
	.header-navigation .navbar .nav-item:nth-last-child(-n + 1) > .menu-dropdown {
		left: auto;
		right: 0;
	}
	.header-navigation .navbar .menu-dropdown.show {
		display: grid;
		grid-template-rows: repeat(6, auto);
		grid-auto-flow: column;
	}
}
@media (max-width: 991.98px) {
	.header-btn {
		height: 38px;
		background: var(--project-color-surface-muted);
		box-shadow: none;
	}
	.header-btn-icon {
		width: 38px;
	}
	.header-search {
		background: var(--project-color-surface-muted);
		box-shadow: none;
	}
	.header-default .container {
		grid-template-columns: 1fr;
		justify-items: center;
	}
	.header-navigation {
		padding: 6px;
	}
	.header-navigation .navbar .menu-offcanvas {
		max-width: 80%;
	}
	.header-navigation .navbar .navbar-nav {
		gap: 10px;
	}
	.header-navigation .navbar .menu-item {
		padding: 15px;
		background: var(--project-color-surface-muted);
	}
	.header-navigation .navbar .dropdown-menu {
		position: static;
		background: var(--project-color-surface-muted);
		box-shadow: none;
	}
}