/* Layout: container, sections, header, menus, drawers, footer. */

.bk-container {
	width: 100%;
	max-width: calc(var(--bk-container) + var(--bk-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--bk-gutter);
}

.bk-container--narrow { max-width: calc(880px + var(--bk-gutter) * 2); }

.bk-section { padding-block: var(--bk-section-y); }
.bk-section--page { padding-top: var(--bk-space-3xl); }
.bk-section--tight-top { padding-top: 0; }
.bk-section--muted { background: var(--bk-bg-muted); }
.bk-section--surface { background: var(--bk-bg-surface); }

.bk-section--green {
	background-color: var(--bk-green-800);
	background-image: url("../img/pattern-cream.png");
	background-size: 216px auto;
	background-blend-mode: normal;
	position: relative;
	isolation: isolate;
}

.bk-section--green::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(52, 74, 43, 0.93);
}

.bk-section__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: var(--bk-space-2xl);
}

.bk-section .bk-heading--center { margin-bottom: var(--bk-space-2xl); }

.bk-grid { display: grid; gap: var(--bk-space-xl); }
.bk-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Announcement + header ---------- */
.bk-announce {
	background: var(--bk-green-800);
	color: var(--bk-cream-50);
	font-size: var(--bk-fs-small);
	line-height: 1.5;
	text-align: center;
	padding-block: 9px;
}

.bk-header {
	position: sticky;
	top: 0;
	z-index: 60;
	border-bottom: 1px solid var(--bk-border-default);
	background: rgba(252, 248, 240, 0.96);
	backdrop-filter: saturate(1.2) blur(8px);
	transition: box-shadow 0.3s var(--bk-ease);
}

.admin-bar .bk-header { top: 32px; }
.bk-header.is-stuck { box-shadow: 0 6px 24px rgba(75, 33, 27, 0.08); }

.bk-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: var(--bk-header-h);
}

.bk-logo img { width: auto; height: 60px; }
.bk-header__logo img { height: 58px; transition: height 0.3s var(--bk-ease); }
.bk-header.is-stuck .bk-header__logo img { height: 48px; }

.bk-nav { flex: 1; display: flex; justify-content: center; }

.bk-nav ul {
	display: flex;
	gap: clamp(18px, 2.4vw, 36px);
	list-style: none;
}

.bk-nav a {
	position: relative;
	display: inline-flex;
	padding-block: 8px;
	color: var(--bk-text-secondary);
	font-size: var(--bk-fs-label);
	font-weight: 700;
	white-space: nowrap;
}

.bk-nav a::after {
	content: "";
	position: absolute;
	inset-inline: 30%;
	bottom: 0;
	height: 3px;
	border-radius: 2px;
	background: var(--bk-caramel-400);
	transform: scaleX(0);
	transition: transform 0.3s var(--bk-ease);
}

.bk-nav a:hover,
.bk-nav .current-menu-item > a,
.bk-nav .current_page_item > a { color: var(--bk-text-brand); }

.bk-nav a:hover::after,
.bk-nav .current-menu-item > a::after,
.bk-nav .current_page_item > a::after { transform: scaleX(1); }

.bk-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-inline-start: auto;
}

.bk-cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 8px 14px 8px 18px;
	border-radius: var(--bk-radius-full);
	background: var(--bk-bg-brand);
	color: var(--bk-text-on-brand);
	font-weight: 700;
}

.bk-cart-btn:hover { background: var(--bk-bg-brand-hover); color: var(--bk-text-on-brand); }

.bk-cart-count {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding-inline: 6px;
	border-radius: var(--bk-radius-full);
	background: var(--bk-caramel-400);
	color: var(--bk-brown-800);
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
}

.bk-cart-count.is-empty { display: none; }

.bk-menu-toggle { display: none; }

/* Search panel */
.bk-search {
	border-top: 1px solid var(--bk-border-default);
	background: var(--bk-bg-page);
	padding-block: 16px;
}

.bk-search__form {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 760px;
	margin-inline: auto;
	padding: 6px 18px 6px 6px;
	border: 1.5px solid var(--bk-border-strong);
	border-radius: var(--bk-radius-full);
	background: var(--bk-bg-surface);
	color: var(--bk-icon-brand);
}

.bk-search__form input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1.125rem; }

/* ---------- Mobile menu + scrim ---------- */
.bk-mobile-menu {
	position: fixed;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	width: min(390px, 100vw);
	overflow-y: auto;
	background: var(--bk-bg-page);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.35s var(--bk-ease), visibility 0s linear 0.35s;
}

.bk-mobile-menu.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--bk-ease); }

.bk-mobile-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid var(--bk-border-default);
}

.bk-mobile-menu__top .bk-logo img { height: 48px; }

.bk-mobile-menu__search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 20px 4px;
	padding: 10px 16px;
	border: 1px solid var(--bk-border-default);
	border-radius: var(--bk-radius-full);
	background: var(--bk-bg-surface);
	color: var(--bk-icon-brand);
}

.bk-mobile-menu__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; }

.bk-mobile-menu__nav { padding-inline: 20px; }
.bk-mobile-menu__nav ul { list-style: none; }

.bk-mobile-menu__nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-bottom: 1px solid var(--bk-border-default);
	color: var(--bk-text-brand);
	font-size: 1.3125rem;
	font-weight: 700;
}

.bk-mobile-menu__nav a::after {
	content: "";
	width: 8px;
	height: 8px;
	border-inline-end: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.6;
}

.bk-mobile-menu__nav .current-menu-item > a { color: var(--bk-text-accent); }

.bk-mobile-menu__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 20px;
}

.bk-mobile-menu__actions .bk-btn { padding-inline: 12px; }

.bk-mobile-menu__contact {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: auto;
	padding: 20px 20px 32px;
}

.bk-mobile-menu__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--bk-text-brand); font-weight: 700; }
.bk-mobile-menu__phone .bk-icon { color: var(--bk-whatsapp); }

.bk-scrim {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgba(42, 18, 14, 0.55);
}

/* ---------- Cart drawer ---------- */
.bk-drawer {
	position: fixed;
	inset-block: 0;
	inset-inline-end: 0;
	z-index: 95;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	background: var(--bk-bg-page);
	box-shadow: var(--bk-shadow-drawer);
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform 0.35s var(--bk-ease), visibility 0s linear 0.35s;
}

.bk-drawer.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--bk-ease); }

.bk-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--bk-border-default);
}

.bk-drawer__head h2 { font-size: var(--bk-fs-h3); }

.bk-drawer__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
}

.bk-drawer__body .bk-freeship { margin: 0; border-radius: 0; border-inline: 0; border-top: 0; }

/* ---------- Page title band (Page Hero) ---------- */
.bk-page-hero {
	padding-block: clamp(28px, 5vw, 64px);
	background: var(--bk-bg-muted);
	text-align: center;
}

.bk-page-hero .bk-breadcrumb { justify-content: center; }
.bk-page-hero__title { margin-top: 8px; font-size: var(--bk-fs-h1); }
.bk-page-hero__subtitle { max-width: 680px; margin: 8px auto 0; color: var(--bk-text-secondary); font-size: var(--bk-fs-body-lg); }

.bk-crumbs { padding-block: 20px 0; }

.bk-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	color: var(--bk-text-muted);
	font-size: var(--bk-fs-small);
}

.bk-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.bk-breadcrumb li + li::before { content: "‹"; color: var(--bk-caramel-600); font-size: 1.1em; }
.bk-breadcrumb [aria-current] { color: var(--bk-text-primary); font-weight: 700; }

/* ---------- Footer ---------- */
.bk-footer {
	padding-block: var(--bk-space-4xl) var(--bk-space-xl);
	background: var(--bk-brown-900);
	color: var(--bk-text-secondary);
}

/* Palm border: background-repeat: space only draws whole palms (no cut palm at the edges). */
.bk-footer__palms {
	height: 28px;
	margin-bottom: var(--bk-space-3xl);
	background: url("../img/palm-cream.png") center / 33px 28px space no-repeat;
	background-repeat: space no-repeat;
	opacity: 0.4;
}

.bk-footer__cols {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: var(--bk-space-3xl);
}

.bk-footer__brand { display: flex; flex-direction: column; gap: 20px; max-width: 380px; }
.bk-footer__brand .bk-logo img { height: 96px; }

.bk-footer h3 { margin-bottom: 14px; color: var(--bk-text-brand); font-size: var(--bk-fs-h4); }
.bk-footer ul { list-style: none; }
.bk-footer__col li + li { margin-top: 10px; }
.bk-footer__col a { color: var(--bk-text-secondary); }
.bk-footer__col a:hover { color: var(--bk-text-accent); }

.bk-footer__contact li { display: flex; align-items: center; gap: 10px; }
.bk-footer__contact .bk-icon { flex: none; color: var(--bk-icon-accent); }

.bk-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: var(--bk-space-3xl);
	padding-top: var(--bk-space-lg);
	border-top: 1px solid var(--bk-border-default);
	font-size: var(--bk-fs-small);
	color: var(--bk-text-muted);
}

.bk-footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--bk-text-secondary); }

/* ---------- Floating WhatsApp ---------- */
.bk-fab {
	position: fixed;
	inset-inline-end: 24px;
	bottom: 24px;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: var(--bk-radius-full);
	background: var(--bk-whatsapp);
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transition: transform 0.25s var(--bk-ease);
}

.bk-fab:hover { color: #fff; transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.bk-nav ul { gap: 18px; }
	.bk-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.bk-nav,
	.bk-cart-btn__label,
	.bk-hide-mobile { display: none; }

	.bk-menu-toggle { display: inline-grid; }
	.bk-header__inner { gap: 8px; }
	.bk-header__logo { position: absolute; inset-inline-start: 50%; transform: translateX(50%); }
	.bk-header__logo img,
	.bk-header.is-stuck .bk-header__logo img { height: 46px; }
	.bk-cart-btn { padding: 0; width: 44px; min-height: 44px; justify-content: center; }
	.bk-cart-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; font-size: 0.75rem; }
}

@media (max-width: 767px) {
	.admin-bar .bk-header { top: 0; }
	.bk-announce { font-size: 0.8125rem; }
	.bk-announce__more { display: none; }
	.bk-section__top { flex-direction: column; align-items: flex-start; }
	.bk-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.bk-footer { padding-top: var(--bk-space-3xl); padding-bottom: 96px; }
	.bk-footer__palms { margin-bottom: var(--bk-space-2xl); }
	.bk-footer__cols { grid-template-columns: 1fr 1fr; gap: var(--bk-space-xl) 20px; }
	.bk-footer__brand,
	.bk-footer__contact { grid-column: 1 / -1; }
	.bk-footer__brand .bk-logo img { height: 80px; }
	.bk-footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
	.bk-fab { width: 56px; height: 56px; inset-inline-end: 16px; bottom: 16px; }
}
