/* Brasil Flores — Layout CSS
   Container, header, footer */

/* ===========================
   CONTAINER
   =========================== */
.bf-container {
	width: min(100% - 2 * var(--bf-gutter), var(--bf-container));
	margin-inline: auto;
}

/* ===========================
   HEADER — ANNOUNCE BAR
   =========================== */
.bf-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bf-white);
	box-shadow: 0 2px 16px rgba(13, 51, 32, 0.05);
}

.bf-header__announce {
	background: var(--bf-green-950);
	color: var(--bf-green-100);
}

.bf-header__announce-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bf-space-4);
	padding: var(--bf-space-1) 0;
	font-size: 11px;
	font-weight: var(--bf-weight-medium);
}

.bf-header__announce-text {
	letter-spacing: 0.02em;
}

.bf-header__announce-wa {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bf-green-200);
	font-weight: var(--bf-weight-bold);
	transition: color var(--bf-transition-fast);
	white-space: nowrap;
}

.bf-header__announce-wa:hover {
	color: var(--bf-white);
}

/* ===========================
   HEADER — MAIN BAR
   =========================== */
.bf-header__bar {
	background: var(--bf-white);
	border-bottom: 1px solid var(--bf-border);
}

.bf-header__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bf-space-3);
	padding: var(--bf-space-3) 0;
}

.bf-header__brand {
	display: flex;
	align-items: center;
	gap: var(--bf-space-3);
	order: 1;
	flex: 0 0 auto;
	min-width: 0;
}

.bf-header__logo {
	display: block;
	height: 40px;
	width: 40px;
	max-width: 40px;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	flex-shrink: 0;
}

.bf-header__logo-icon {
	width: 40px;
	height: 40px;
	border-radius: var(--bf-radius-full);
	background: var(--bf-green-900);
	color: var(--bf-green-200);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.bf-header__brand-text {
	display: flex;
	flex-direction: column;
}

.bf-header__name {
	font-family: var(--bf-font-heading);
	font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
	font-weight: var(--bf-weight-bold);
	letter-spacing: -0.02em;
	color: var(--bf-green-950);
	line-height: 1;
	white-space: nowrap;
}

.bf-header__sub {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: var(--bf-weight-semibold);
	color: var(--bf-green-700);
	margin-top: 4px;
	white-space: nowrap;
}

.bf-header__actions {
	display: flex;
	align-items: center;
	gap: var(--bf-space-2);
	order: 2;
	margin-left: auto;
	flex: 0 0 auto;
}

.bf-header__icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--bf-green-900);
	border-radius: var(--bf-radius-full);
	transition: background var(--bf-transition-fast), color var(--bf-transition-fast);
	position: relative;
}

.bf-header__icon-btn:hover {
	background: var(--bf-green-50);
	color: var(--bf-green-700);
}

.bf-header__icon-btn--wa {
	background: var(--bf-green-50);
	color: var(--bf-green-700);
}

.bf-header__icon-btn--account {
	display: none;
}

.bf-header__cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	background: var(--bf-green-700);
	color: var(--bf-white);
	font-size: 11px;
	font-weight: var(--bf-weight-bold);
	border-radius: var(--bf-radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
}

.bf-header__menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
}

.bf-header__hamburger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 20px;
}

.bf-header__hamburger span {
	display: block;
	height: 2px;
	background: var(--bf-text);
	border-radius: 2px;
	transition: transform var(--bf-transition-base), opacity var(--bf-transition-base);
}

.bf-header__menu-toggle[aria-expanded="true"] .bf-header__hamburger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.bf-header__menu-toggle[aria-expanded="true"] .bf-header__hamburger span:nth-child(2) {
	opacity: 0;
}

.bf-header__menu-toggle[aria-expanded="true"] .bf-header__hamburger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Search */
.bf-header__search {
	order: 3;
	flex: 1 1 100%;
	display: flex;
	align-items: center;
	background: var(--bf-green-50);
	border: 1px solid var(--bf-border);
	border-radius: var(--bf-radius-full);
	overflow: hidden;
	transition: border-color var(--bf-transition-fast), background var(--bf-transition-fast);
}

.bf-header__search:focus-within {
	background: var(--bf-white);
	border-color: var(--bf-green-600);
}

.bf-header__search-input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--bf-text);
	min-width: 0;
	outline: none;
}

.bf-header__search-input::placeholder {
	color: var(--bf-gray-500);
}

.bf-header__search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	align-self: stretch;
	color: var(--bf-green-600);
	flex-shrink: 0;
	transition: color var(--bf-transition-fast);
}

.bf-header__search-submit:hover {
	color: var(--bf-green-800);
}

/* ===========================
   HEADER — NAV
   =========================== */
.bf-header__nav {
	display: none;
}

.bf-header__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--bf-space-8);
	list-style: none;
	padding: var(--bf-space-3) 0;
}

.bf-header__menu a {
	font-size: 14px;
	font-weight: var(--bf-weight-semibold);
	color: var(--bf-gray-700);
	transition: color var(--bf-transition-fast);
}

.bf-header__menu a:hover,
.bf-header__menu a[aria-current="page"] {
	color: var(--bf-green-700);
}

/* ===========================
   MOBILE MENU
   =========================== */
.bf-mobile-menu {
	position: fixed;
	inset: 0;
	top: 0;
	z-index: 110;
	background: var(--bf-white);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform var(--bf-transition-base);
}

.bf-mobile-menu.is-open {
	transform: translateX(0);
}

.bf-mobile-menu__inner {
	padding: var(--bf-space-6) var(--bf-gutter) var(--bf-space-12);
}

.bf-mobile-menu__list {
	display: flex;
	flex-direction: column;
	list-style: none;
}

.bf-mobile-menu__list li {
	border-bottom: 1px solid var(--bf-border);
}

.bf-mobile-menu__list a {
	display: block;
	padding: var(--bf-space-4) 0;
	font-size: var(--bf-text-lg);
	font-weight: var(--bf-weight-medium);
	color: var(--bf-text);
}

.bf-mobile-menu__list a:hover {
	color: var(--bf-primary);
}

.bf-mobile-menu__links {
	margin-top: var(--bf-space-8);
	padding-top: var(--bf-space-6);
	border-top: 2px solid var(--bf-border);
	display: flex;
	flex-direction: column;
}

.bf-mobile-menu__link {
	display: block;
	padding: var(--bf-space-3) 0;
	font-size: var(--bf-text-base);
	color: var(--bf-text-muted);
}

.bf-mobile-menu__link--wa {
	color: var(--bf-green-700);
	font-weight: var(--bf-weight-bold);
}

/* Body locks */
body.bf-nav-open {
	overflow: hidden;
}

/* ===========================
   MAIN
   =========================== */
.bf-main {
	min-height: 60vh;
}

/* ===========================
   FOOTER
   =========================== */
.bf-footer {
	background: var(--bf-green-950);
	color: var(--bf-gray-300);
}

.bf-footer__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--bf-space-8);
	padding: var(--bf-space-12) 0 var(--bf-space-10);
}

.bf-footer__brand {
	display: flex;
	flex-direction: column;
	gap: var(--bf-space-3);
}

.bf-footer__brand-link {
	display: flex;
	align-items: center;
	gap: var(--bf-space-3);
}

.bf-footer__logo {
	display: block;
	height: 40px;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.bf-footer__logo-icon {
	width: 40px;
	height: 40px;
	border-radius: var(--bf-radius-full);
	background: var(--bf-green-800);
	color: var(--bf-green-200);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bf-footer__site-name {
	font-family: var(--bf-font-heading);
	font-size: var(--bf-text-2xl);
	font-weight: var(--bf-weight-bold);
	color: var(--bf-cream);
}

.bf-footer__tagline {
	color: var(--bf-gray-400);
	font-size: var(--bf-text-sm);
	line-height: var(--bf-leading-relaxed);
	max-width: 34ch;
}

.bf-footer__title {
	font-family: var(--bf-font-ui);
	font-size: 12px;
	font-weight: var(--bf-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--bf-gold);
	margin-bottom: var(--bf-space-4);
}

.bf-footer__menu {
	list-style: none;
}

.bf-footer__menu li {
	margin-bottom: var(--bf-space-2);
}

.bf-footer__menu a {
	font-size: var(--bf-text-sm);
	color: var(--bf-gray-300);
	transition: color var(--bf-transition-fast);
}

.bf-footer__menu a:hover {
	color: var(--bf-white);
}

.bf-footer__contact {
	list-style: none;
}

.bf-footer__contact li {
	display: flex;
	align-items: center;
	gap: var(--bf-space-3);
	margin-bottom: var(--bf-space-3);
	font-size: var(--bf-text-sm);
	color: var(--bf-gray-300);
}

.bf-footer__contact a {
	color: var(--bf-gray-300);
	transition: color var(--bf-transition-fast);
}

.bf-footer__contact a:hover {
	color: var(--bf-green-200);
}

.bf-footer__contact svg {
	flex-shrink: 0;
	color: var(--bf-green-400);
}

.bf-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: var(--bf-space-4) 0;
	text-align: center;
	font-size: 12px;
	color: var(--bf-gray-500);
}

.bf-footer__bottom .bf-container {
	display: flex;
	justify-content: center;
}

.bf-footer__bottom a {
	color: var(--bf-white);
	transition: color .2s ease;
}

.bf-footer__bottom a:hover {
	color: var(--bf-gold);
}
