/*
Theme Name:   Banvalikeo
Description:  Child theme của GeneratePress cho landing page.
Template:     generatepress
Version:      1.0.0
Text Domain:  banvalikeo
*/

@font-face {
	font-family: Roboto;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/roboto-400.woff2) format("woff2");
}

@font-face {
	font-family: Roboto;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(assets/fonts/roboto-700.woff2) format("woff2");
}

body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
	font-family: Roboto, sans-serif;
}

body {
	color: var(--contrast);
}

html {
	scroll-behavior: smooth;
}

section[id] {
	scroll-margin-top: 150px;
}

/* =========================================================================
 * Header
 * ====================================================================== */
:root {
	--bvk-top-bg: linear-gradient(90deg, #1074a5 4.72%, #1799d9 95.8%);
	--bvk-sale: #cf3434;
	--bvk-top-height: 76px;
	--bvk-nav-height: 56px;
}

.bvk-container {
	max-width: 1200px;
	margin: 0 auto;
	/* padding: 0 20px; */
}

.bvk-icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

.bvk-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .bvk-header {
	top: 32px;
}

.bvk-lock,
.bvk-lock body {
	overflow: hidden;
}

/* Thanh trên: logo – tìm kiếm – hotline – cửa hàng */
.bvk-top {
	background: var(--bvk-top-bg);
	color: #fff;
}

.bvk-top__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--bvk-top-height);
}

.bvk-logo {
	flex: 0 0 auto;
}

.bvk-logo img {
	display: block;
	width: 130px;
	height: auto;
}

.bvk-logo__text {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.02em;
	text-decoration: none;
}

.bvk-logo__text .bvk-icon {
	font-size: 30px;
}

.bvk-logo__text:hover,
.bvk-logo__text:focus {
	color: #fff;
}

.bvk-search {
	flex: 1;
	display: flex;
	max-width: 580px;
	margin: 0 auto;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
}

.bvk-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding: 0 16px;
	border: 0;
	background: #fff;
	color: var(--contrast);
	font-size: 15px;
}

.bvk-search input[type="search"]:focus {
	outline: none;
	background: #fff;
}

.bvk-search button,
.bvk-search button:hover,
.bvk-search button:focus {
	display: grid;
	place-items: center;
	width: 50px;
	padding: 0;
	border: 0;
	background: #333;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}

.bvk-search button:hover {
	background: #000;
}

.bvk-hotline {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6px 18px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 8px;
	color: #fff;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color .2s;
}

.bvk-hotline:hover,
.bvk-hotline:focus {
	color: var(--accent);
	background: #fff;
	border-color: #fff;
}

.bvk-hotline__label {
	font-size: 12px;
	opacity: .85;
}

.bvk-hotline__num {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	font-weight: 700;
}

.bvk-store {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.bvk-store .bvk-icon {
	font-size: 26px;
}

.bvk-store:hover,
.bvk-store:focus {
	color: #fff;
	opacity: .85;
}

.bvk-top__inner[hidden] {
	display: none;
}

.bvk-actions {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
}

.bvk-icon-btn,
.bvk-icon-btn:hover,
.bvk-icon-btn:focus {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

.bvk-menu-btn__open {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}

.bvk-menu-btn__open small {
	margin-top: 1px;
	font-size: 10px;
}

.bvk-menu-btn__close {
	display: none;
}

.bvk-menu-btn.is-open .bvk-menu-btn__open {
	display: none;
}

.bvk-menu-btn.is-open .bvk-menu-btn__close {
	display: flex;
	padding: 0 3px;
}

/* Ô tìm kiếm mobile (thay hàng header khi bấm icon tìm kiếm) */
.bvk-msearch {
	display: flex;
	align-items: center;
	height: var(--bvk-top-height);
	padding: 0 8px;
}

.bvk-msearch[hidden] {
	display: none;
}

.bvk-msearch__form {
	display: flex;
	width: 100%;
}

.bvk-msearch__form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 38px;
	padding: 5px 5px 5px 15px;
	border: 0;
	border-radius: 3px 0 0 3px;
	background: #fff;
	color: var(--contrast);
	font-size: 16px;
}

.bvk-msearch__form input[type="search"]:focus {
	outline: none;
	background: #fff;
}

.bvk-msearch__form button,
.bvk-msearch__form button:hover,
.bvk-msearch__form button:focus {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 0 3px 3px 0;
	background: #e2e8f0;
	color: #333;
	font-size: 18px;
}

/* Thanh dưới: danh mục + menu chính */
.bvk-nav {
	background: #fff;
	box-shadow: 0 1px 0 rgba(15, 23, 42, .08);
}

.bvk-nav__inner {
	display: flex;
	align-items: stretch;
	height: var(--bvk-nav-height);
}

.bvk-catbox {
	position: relative;
	flex: 0 0 300px;
	background: var(--base-2);
	border-left: 1px solid var(--base);
	border-right: 1px solid var(--base);
}

.bvk-catbox__btn,
.bvk-catbox__btn:hover,
.bvk-catbox__btn:focus {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	padding: 0 24px;
	border: 0;
	background: transparent;
	color: var(--accent);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.bvk-catbox__btn .bvk-icon {
	font-size: 24px;
}

.bvk-catbox > .bvk-cat {
	display: none;
	position: absolute;
	top: 100%;
	left: -1px;
	right: -1px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.bvk-catbox:hover > .bvk-cat,
.bvk-catbox:focus-within > .bvk-cat,
.bvk-catbox.is-open > .bvk-cat {
	display: block;
}

.bvk-cat__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 18px;
	color: var(--contrast);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .15s, color .15s;
}

.bvk-catbox .bvk-cat__item:hover > .bvk-cat__link,
.bvk-catbox .bvk-cat__item:focus-within > .bvk-cat__link {
	background: var(--accent);
	color: #fff;
}

.bvk-cat__toggle {
	display: none;
}

.bvk-flag-it > .bvk-cat__link::after {
	content: "";
	flex-shrink: 0;
	width: 24px;
	height: 16px;
	margin-left: 10px;
	border-radius: 2px;
	background: linear-gradient(90deg, #009246 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66%);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.bvk-catbox .bvk-mega {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	width: 830px;
	min-height: 100%;
	padding: 20px 24px;
	background: #fff;
	border-radius: 0 8px 8px 0;
	box-shadow: 12px 12px 30px rgba(15, 23, 42, .12);
}

.bvk-catbox .bvk-cat__item:hover > .bvk-mega,
.bvk-catbox .bvk-cat__item:focus-within > .bvk-mega {
	display: block;
}

.bvk-mega__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 20px;
}

.bvk-mega__title {
	display: block;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--accent);
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}

.bvk-mega ul {
	display: grid;
	gap: 2px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.bvk-mega ul a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	color: var(--contrast);
	font-size: 15px;
	text-decoration: none;
	transition: color .15s, transform .15s;
}

.bvk-mega ul a::before {
	content: "";
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid currentColor;
}

.bvk-mega ul a:hover,
.bvk-mega ul a:focus {
	color: var(--accent);
	transform: translateX(4px);
}

.bvk-menu {
	display: flex;
	margin: 0;
	padding: 0 0 0 12px;
	list-style: none;
}

.bvk-menu a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 20px;
	color: var(--contrast-2);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.bvk-menu a:hover,
.bvk-menu a:focus {
	color: var(--accent);
}

/* Menu mobile (panel full width dưới header) */
.bvk-mpanel {
	position: fixed;
	top: var(--bvk-top-height);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1001;
	overflow-y: auto;
	padding-bottom: 120px;
	background: #fff;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
	animation: bvk-fade .15s ease;
}

.bvk-mpanel[hidden] {
	display: none;
}

@keyframes bvk-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.bvk-mmenu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bvk-mmenu__item {
	padding: 4px 15px;
}

.bvk-mmenu__item + .bvk-mmenu__item {
	border-top: 1px solid #e5e7eb;
}

.bvk-mmenu__row {
	display: flex;
	align-items: center;
	height: 40px;
}

.bvk-mmenu__link {
	display: flex;
	flex: 1;
	align-items: center;
	height: 100%;
	color: var(--contrast);
	text-transform: uppercase;
	text-decoration: none;
}

.bvk-mmenu__link img {
	width: 25px;
	height: auto;
	margin-right: 10px;
}

.bvk-m-red .bvk-mmenu__link {
	color: #ef4444;
}

.bvk-mmenu__arrow,
.bvk-mmenu__arrow:hover,
.bvk-mmenu__arrow:focus {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 20px;
	border: 0;
	background: transparent;
	color: var(--contrast);
	font-size: 16px;
}

.bvk-mmenu__arrow .bvk-icon {
	transition: transform .15s;
}

.bvk-mmenu__item.is-open .bvk-mmenu__arrow .bvk-icon {
	transform: rotate(90deg);
}

.bvk-mmenu__tiles {
	display: none;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 16px 0 12px;
	padding: 0;
	list-style: none;
}

.bvk-mmenu__item.is-open .bvk-mmenu__tiles {
	display: grid;
}

.bvk-mmenu__tiles a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.bvk-mmenu__tiles img {
	width: 63px;
	height: 63px;
	object-fit: cover;
}

.bvk-mmenu__tiles span {
	color: #6b7280;
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
}

.bvk-mmenu__tiles .bvk-mmenu__all {
	display: flex;
	align-items: center;
	height: 63px;
}

.bvk-mmenu__all img {
	width: 46px;
	height: 46px;
}

.bvk-mmenu__noimg {
	width: 63px;
	height: 63px;
	background: var(--base-2);
}

/* Responsive header (breakpoint theo kosshop: lg 1024, xl 1280) */
@media (min-width: 1280px) {
	.bvk-mpanel {
		display: none !important;
	}
}

@media (max-width: 1279px) {
	section[id] {
		scroll-margin-top: 90px;
	}

	.bvk-nav {
		display: none;
	}

	.bvk-menu-btn,
	.bvk-menu-btn:hover,
	.bvk-menu-btn:focus {
		display: flex;
	}
}

@media (min-width: 1024px) {
	.bvk-msearch {
		display: none !important;
	}

	.bvk-top__inner[hidden] {
		display: flex;
	}
}

@media (max-width: 1023px) {
	:root {
		--bvk-top-height: 56px;
	}

	section[id] {
		scroll-margin-top: 70px;
	}

	.bvk-top__inner {
		gap: 20px;
	}

	.bvk-logo img {
		width: 100px;
	}

	.bvk-search,
	.bvk-hotline {
		display: none;
	}

	.bvk-msearch-open,
	.bvk-msearch-open:hover,
	.bvk-msearch-open:focus {
		display: flex;
	}

	.bvk-store .bvk-icon {
		font-size: 24px;
	}

	.bvk-store span {
		display: none;
	}
}

@media (max-width: 782px) {
	.admin-bar .bvk-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .bvk-header {
		top: 0;
	}
}

/* =========================================================================
 * Footer
 * ====================================================================== */
.bvk-foot {
	background: #f2f7ff;
	color: var(--contrast-2);
	font-size: 14px;
	line-height: 1.5;
}

.bvk-foot a {
	color: inherit;
}

.bvk-foot a:hover,
.bvk-foot a:focus {
	color: var(--accent);
}

.bvk-foot p {
	margin: 0 0 14px;
}

.bvk-foot__main {
	padding: 24px 0;
}

.bvk-foot__grid {
	display: grid;
	grid-template-columns: 4fr 2fr 3fr 3fr;
	gap: 30px;
}

.bvk-foot__title {
	margin: 16px 0 !important;
	font-size: 20px;
	font-weight: 700;
	color: var(--contrast-2);
}

.bvk-foot__title--small {
	font-size: 14px;
}

.bvk-foot__showrooms {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.bvk-foot__showrooms > li + li {
	margin-top: 8px;
}

.bvk-foot__showrooms > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	font-weight: 700;
	text-decoration: none;
}

.bvk-foot__showrooms .bvk-icon {
	font-size: 12px;
}

.bvk-foot__showrooms ul {
	margin: 4px 0 0 16px;
	padding-left: 24px;
	list-style: disc;
}

.bvk-foot__hotline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 8px 24px;
	border-radius: 999px;
	background: #d5dfee;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.bvk-foot__meta {
	margin-top: 16px;
}

.bvk-foot__meta p {
	margin: 0 0 4px;
}

.bvk-foot__meta a {
	text-decoration: underline;
}

.bvk-foot__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.bvk-foot__social {
	display: grid;
	place-items: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	transition: transform .15s;
}

.bvk-foot__social:hover {
	transform: translateY(-2px);
}

.bvk-foot__social--facebook { background: #4267b2; }
.bvk-foot__social--tiktok { background: #333; }
.bvk-foot__social--youtube { background: #c4302b; }
.bvk-foot__social--instagram { background: #ec4899; }
.bvk-foot__social--email { background: #16a34a; }

.bvk-foot__links {
	margin: -8px 0 0;
	padding: 0;
	list-style: none;
}

.bvk-foot__links a {
	display: block;
	padding: 8px 0;
	text-decoration: underline;
}

.bvk-foot__toggle {
	display: none;
}

.bvk-foot__badges {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 8px;
}

.bvk-foot__badges a:last-child {
	position: relative;
	top: 14px;
}

.bvk-foot__col--badges img {
	display: block;
	height: auto;
}

.bvk-foot__bottom {
	padding: 20px;
	background: #d1dff4;
	text-align: center;
}

.bvk-foot__bottom p {
	margin: 0;
}

@media (max-width: 1199px) {
	.bvk-foot__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.bvk-foot__title--desktop {
		display: none;
	}

	.bvk-foot__toggle,
	.bvk-foot__toggle:hover,
	.bvk-foot__toggle:focus {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin: 16px 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--contrast-2);
		font-size: 20px;
		font-weight: 700;
		text-align: left;
	}

	.bvk-foot__toggle span {
		width: 8px;
		height: 8px;
		margin-right: 4px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s;
	}

	.bvk-foot__col--links.is-open .bvk-foot__toggle span {
		transform: rotate(-135deg);
	}

	.bvk-foot__col--links .bvk-foot__links {
		display: none;
	}

	.bvk-foot__col--links.is-open .bvk-foot__links {
		display: block;
	}
}

/* FAQ (core/details) */
.wp-block-details {
	background: #fff;
	border: 1px solid var(--base);
	border-radius: 14px;
	padding: 18px 22px;
	margin-bottom: 12px;
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	position: relative;
	padding-right: 30px;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: -2px;
	font-size: 22px;
	color: var(--accent);
	transition: transform .2s;
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details p {
	margin: 12px 0 0;
	color: var(--contrast-2);
}

/* Nút liên hệ nổi */
.bvk-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	display: grid;
	gap: 12px;
	z-index: 200;
}

.bvk-lock .bvk-float {
	display: none;
}

.bvk-float__btn {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(15, 23, 42, .25);
}

.bvk-float__btn:hover {
	color: #fff;
	transform: scale(1.06);
}

.bvk-float__btn--zalo {
	background: #0068ff;
}

.bvk-float__btn--call {
	background: #16a34a;
	animation: bvk-pulse 2s infinite;
}

@keyframes bvk-pulse {
	0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
	70% { box-shadow: 0 0 0 14px rgba(22, 163, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.bvk-float__btn--call,
	.bvk-mpanel {
		animation: none;
	}
}
