/*
Theme Name: Flatsome Bida
Description: Child theme Flatsome cho website bán bàn bida, cơ bida và phụ kiện.
Author: Bida Pro
Template: flatsome
Version: 1.0
Text Domain: flatsome-bida
*/

:root {
	--bp-green: #0f6e46;
	--bp-green-dark: #0a4d31;
	--bp-green-deep: #07261a;
	--bp-gold: #d4a94f;
	--bp-gold-dark: #b48a32;
	--bp-red: #c8152b;
	--bp-ink: #15201b;
	--bp-muted: #5f6d66;
	--bp-line: #e4e8e5;
	--bp-soft: #f5f7f4;
	--bp-radius: 10px;
}

/* ---------- Chung ---------- */
body { color: #333d38; }
h1, h2, h3, h4, h5, h6, .heading-font { letter-spacing: .01em; }
.button, button, input[type="submit"] { border-radius: 6px; letter-spacing: .03em; }
.button.secondary, .button.is-gold { color: #1b1406; }
a.button.secondary:hover { color: #1b1406; }

/* ---------- Top bar ---------- */
#top-bar .html { font-size: 13px; }
.bp-topbar { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.bp-topbar span { display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.bp-topbar svg, .bp-hotline svg, .bp-feature svg, .bp-service svg, .bp-contact-list svg { flex: 0 0 auto; }
.bp-topbar strong { color: var(--bp-gold); }

/* ---------- Header ---------- */
.header-main .searchform-wrapper input[type="search"] {
	height: 44px; border-radius: 6px 0 0 6px; border: 2px solid var(--bp-green); box-shadow: none; background: #fff;
}
.header-main .searchform .button.icon { height: 44px; border-radius: 0 6px 6px 0; background: var(--bp-green); }
.header-main .header-search-form { min-width: 320px; }
.bp-hotline { display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.bp-hotline .bp-hotline-icon {
	width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(15,110,70,.1); color: var(--bp-green);
}
.bp-hotline small { display: block; font-size: 11px; color: var(--bp-muted); text-transform: uppercase; letter-spacing: .06em; }
.bp-hotline a { font-weight: 700; font-size: 17px; color: var(--bp-red); }
.header-bottom { border-top: 0; }
.header-bottom .nav > li > a { font-size: 14.5px; letter-spacing: .03em; }
.header-bottom .nav > li.active > a,
.header-bottom .nav > li > a:hover { color: var(--bp-gold) !important; }
.header-bottom .nav-dropdown { border-top: 3px solid var(--bp-gold); }

/* ---------- Hero ---------- */
.bp-hero .text-box .bp-kicker,
.bp-kicker {
	display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	color: var(--bp-gold); margin-bottom: 10px;
}
.bp-hero h2 { font-size: 3.1em; line-height: 1.08; margin-bottom: .35em; }
.bp-hero p { font-size: 1.12em; opacity: .92; max-width: 560px; }
@media (max-width: 849px) { .bp-hero h2 { font-size: 2em; } }

/* ---------- Dải cam kết ---------- */
.bp-features { margin-top: -46px; position: relative; z-index: 5; }
.bp-features-inner {
	display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--bp-radius);
	box-shadow: 0 14px 40px rgba(7,38,26,.12); overflow: hidden;
}
.bp-feature { display: flex; gap: 14px; align-items: center; padding: 22px 22px; border-right: 1px solid var(--bp-line); }
.bp-feature:last-child { border-right: 0; }
.bp-feature .bp-ico {
	width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 50px;
	background: var(--bp-green); color: #fff;
}
.bp-feature h4 { margin: 0 0 2px; font-size: 15px; color: var(--bp-ink); }
.bp-feature p { margin: 0; font-size: 13px; color: var(--bp-muted); line-height: 1.4; }
@media (max-width: 849px) {
	.bp-features { margin-top: 16px; }
	.bp-features-inner { grid-template-columns: repeat(2, 1fr); }
	.bp-feature { border-bottom: 1px solid var(--bp-line); padding: 16px; }
}
@media (max-width: 549px) { .bp-features-inner { grid-template-columns: 1fr; } }
.bp-features.is-flat { margin-top: 0; }
.bp-features.is-flat .bp-features-inner { box-shadow: none; border: 1px solid var(--bp-line); }

/* ---------- Tiêu đề section ---------- */
.bp-head { text-align: center; margin-bottom: 26px; }
.bp-head .bp-kicker { color: var(--bp-green); margin-bottom: 6px; }
.bp-head h2 { font-size: 2.1em; margin: 0; color: var(--bp-ink); text-transform: uppercase; }
.bp-head h2:after {
	content: ""; display: block; width: 64px; height: 3px; background: var(--bp-gold); margin: 12px auto 0; border-radius: 3px;
}
.bp-head p { color: var(--bp-muted); max-width: 640px; margin: 12px auto 0; }
.bp-head.is-light h2, .bp-head.is-light p { color: #fff; }
.bp-head.is-light .bp-kicker { color: var(--bp-gold); }
.bp-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 2px solid var(--bp-line); }
.bp-head-row h2 {
	margin: 0; padding: 0 0 12px; font-size: 1.7em; text-transform: uppercase; color: var(--bp-ink);
	border-bottom: 3px solid var(--bp-green); margin-bottom: -2px;
}
.bp-head-row .bp-sublinks { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 12px; font-size: 14px; }
.bp-head-row .bp-sublinks a { color: var(--bp-muted); }
.bp-head-row .bp-sublinks a:hover { color: var(--bp-green); }
.bp-head-row .bp-sublinks a.bp-all { color: var(--bp-green); font-weight: 700; }
@media (max-width: 549px) { .bp-head-row { flex-direction: column; align-items: flex-start; } .bp-head-row .bp-sublinks { padding-bottom: 8px; } }

/* ---------- Ô danh mục ---------- */
.bp-cat .banner { border-radius: var(--bp-radius); overflow: hidden; }
.bp-cat .text-box-content h3 { font-size: 28px; line-height: 1.1; margin-bottom: 4px; text-transform: uppercase; }
.bp-cat .text-box-content p { font-size: 15px; margin-bottom: 12px; opacity: .92; }
.bp-cat .text-box-content .button { font-size: 13px; }
.bp-hero .text-box-content { font-size: 16px; }
.bp-hero .text-box-content h2 { font-size: 50px; }
.bp-hero .text-box-content .bp-kicker { font-size: 14px; }
.bp-hero .text-box-content p { font-size: 18px; }
@media (max-width: 849px) { .bp-hero .text-box-content h2 { font-size: 32px; } .bp-hero .text-box-content p { font-size: 15px; } }
@media (max-width: 549px) { .bp-hero .banner-bg:after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); } }

/* ---------- Thẻ sản phẩm ---------- */
.product-small.box { background: #fff; border: 1px solid var(--bp-line); border-radius: var(--bp-radius); overflow: hidden; transition: box-shadow .25s, transform .25s; height: 100%; }
.product-small.box:hover { box-shadow: 0 12px 30px rgba(7,38,26,.12); transform: translateY(-3px); }
.product-small .box-image { background: #f7f5f0; }
.product-small .box-text { padding: 14px 14px 16px; }
.product-small .box-text .product-cat { font-size: 11px; letter-spacing: .08em; color: var(--bp-green); opacity: 1; }
.product-small .box-text .product-title { font-size: 15px; font-weight: 600; line-height: 1.35; min-height: 2.7em; }
.product-small .box-text .product-title a { color: var(--bp-ink); }
.product-small .price-wrapper { margin: 6px 0 10px; }
.product-small .price { font-size: 17px; }
.product-small .price ins, .product-small .price > .amount, .product-small .price > span > .amount { color: var(--bp-red); font-weight: 700; }
.product-small .price del { color: #9aa39f; font-size: 13px; font-weight: 400; }
.product-small .add-to-cart-button { margin-top: 4px; }
.product-small .add-to-cart-button .button,
.product-small .add_to_cart_button {
	width: 100%; margin: 0; border-radius: 6px; font-size: 13px; padding: 4px 10px; min-height: 38px; line-height: 30px;
	background: var(--bp-green); color: #fff; border: 0;
}
.product-small .add_to_cart_button:hover { background: var(--bp-gold); color: #1b1406; }
.product-small .add_to_cart_button.loading { opacity: .7; }
.product-small .added_to_cart { display: block; text-align: center; font-size: 13px; padding-top: 6px; color: var(--bp-green); font-weight: 600; }
.badge-container .badge-inner { background: var(--bp-red); border-radius: 4px; font-weight: 700; }
.row-small > .col.product-small, .products .product-small.col { padding-bottom: 20px; }

/* ---------- Khuyến mãi (banner giữa trang) ---------- */
.bp-promo .text-box h2 { font-size: 2.6em; line-height: 1.1; }
.bp-promo .text-box-content { font-size: 16px; }
.bp-promo .text-box-content h2 { font-size: 40px; }
@media (max-width: 849px) { .bp-promo .text-box-content h2 { font-size: 28px; } }
.bp-promo ul { list-style: none; margin: 0 auto 18px; padding: 0; display: grid; width: fit-content; gap: 6px; text-align: left; }
.bp-promo li { margin: 0; padding-left: 26px; position: relative; }
.bp-promo li:before { content: "✓"; position: absolute; left: 0; color: var(--bp-gold); font-weight: 700; }

/* ---------- Dịch vụ ---------- */
.bp-service { background: #fff; border-radius: var(--bp-radius); overflow: hidden; border: 1px solid var(--bp-line); height: 100%; display: flex; flex-direction: column; }
.bp-service img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.bp-service .bp-service-body { padding: 18px 18px 20px; position: relative; flex: 1; }
.bp-service .bp-ico {
	width: 48px; height: 48px; border-radius: 50%; background: var(--bp-gold); color: #1b1406; display: grid; place-items: center;
	position: absolute; top: -24px; left: 18px; box-shadow: 0 6px 14px rgba(0,0,0,.15);
}
.bp-service h3 { font-size: 1.15em; margin: 16px 0 6px; color: var(--bp-ink); }
.bp-service p { margin: 0; color: var(--bp-muted); font-size: 14px; }

/* ---------- Số liệu ---------- */
.bp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bp-stat { text-align: center; padding: 26px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--bp-radius); background: rgba(255,255,255,.04); }
.bp-stat strong { display: block; font-size: 2.6em; line-height: 1; color: var(--bp-gold); font-family: inherit; }
.bp-stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.85); font-size: 14px; }
@media (max-width: 849px) { .bp-stats { grid-template-columns: repeat(2, 1fr); } }

.bp-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bp-why li { margin: 0; display: flex; gap: 12px; color: rgba(255,255,255,.88); }
.bp-why li b { color: #fff; display: block; }
.bp-why .bp-check { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--bp-gold); color: #1b1406; display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* ---------- Đánh giá ---------- */
.bp-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bp-review { background: #fff; border: 1px solid var(--bp-line); border-radius: var(--bp-radius); padding: 22px; position: relative; }
.bp-review:before { content: "\201C"; position: absolute; right: 18px; top: 2px; font-size: 70px; line-height: 1; color: rgba(15,110,70,.12); font-family: Georgia, serif; }
.bp-review .bp-stars { color: #f2b705; letter-spacing: 2px; margin-bottom: 8px; }
.bp-review p { color: #45514b; font-size: 14.5px; margin-bottom: 14px; }
.bp-review .bp-who { display: flex; align-items: center; gap: 10px; }
.bp-review .bp-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bp-green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.bp-review .bp-who b { display: block; color: var(--bp-ink); }
.bp-review .bp-who small { color: var(--bp-muted); }
@media (max-width: 849px) { .bp-reviews { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.bp-blog .box-blog-post { border-radius: var(--bp-radius); overflow: hidden; border: 1px solid var(--bp-line); background: #fff; }
.bp-blog .box-blog-post .box-text { padding: 16px 18px 20px; }
.bp-blog .post-title { font-size: 1.05em; }

/* ---------- Đăng ký / CTA ---------- */
.bp-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bp-cta h3 { margin: 0; color: #fff; font-size: 1.6em; }
.bp-cta p { margin: 4px 0 0; color: rgba(255,255,255,.85); }
.bp-cta .button { margin: 0; }
.bp-cta-form { flex: 0 1 520px; }
.bp-cta-form .wpcf7-form p { margin: 0; }
.bp-quick, .bp-quick > p { display: flex; gap: 8px; align-items: flex-start; margin: 0; width: 100%; }
.bp-quick .wpcf7-form-control-wrap { flex: 1; }
.bp-quick input[type="text"], .bp-quick input[type="tel"] { height: 46px; margin: 0; border: 0; border-radius: 6px; background: #fff; color: var(--bp-ink); }
.bp-cta-form .bp-quick input.wpcf7-submit { height: 46px; margin: 0; background: var(--bp-gold) !important; color: #1b1406 !important; border: 0; border-radius: 6px; font-weight: 700; padding: 0 22px; flex: 0 0 auto; text-transform: uppercase; }
.bp-cta-form .bp-quick input.wpcf7-submit:hover { background: #fff !important; }
.bp-cta-form .wpcf7-response-output { color: #fff; border-color: rgba(255,255,255,.5) !important; margin: 10px 0 0 !important; }
.bp-cta-form .wpcf7-spinner { position: absolute; }
@media (max-width: 549px) { .bp-quick, .bp-quick > p { flex-direction: column; align-items: stretch; } }
.bp-footer ul { margin-left: 0; }
.bp-footer ul li { margin-left: 0; }
.bp-social .social-icons { margin: 4px 0 6px; }

/* ---------- Footer ---------- */
.bp-footer { color: rgba(255,255,255,.78); font-size: 14px; }
.bp-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.bp-footer h4:after { content: ""; display: block; width: 36px; height: 2px; background: var(--bp-gold); margin-top: 8px; }
.bp-footer a { color: rgba(255,255,255,.78); }
.bp-footer a:hover { color: var(--bp-gold); }
.bp-footer ul { list-style: none; margin: 0; padding: 0; }
.bp-footer li { margin: 0 0 8px; }
.bp-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.bp-contact-list svg { margin-top: 3px; color: var(--bp-gold); }
.bp-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bp-pay span { border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 3px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.absolute-footer { font-size: 13px; }

/* ---------- Trang sản phẩm ---------- */
.single-product .product-info .price { color: var(--bp-red); font-size: 1.7em; font-weight: 700; }
.single-product .product-info .price del { color: #9aa39f; font-size: .7em; }
.single-product .single_add_to_cart_button { background: var(--bp-green); border-radius: 6px; }
.bp-buy-box { margin-top: 18px; border: 1px dashed var(--bp-green); border-radius: var(--bp-radius); padding: 14px 16px; background: var(--bp-soft); font-size: 14px; }
.bp-buy-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bp-buy-box li { margin: 0; padding-left: 22px; position: relative; }
.bp-buy-box li:before { content: "✓"; position: absolute; left: 0; color: var(--bp-green); font-weight: 700; }
.bp-buy-box .bp-hotline { margin-top: 10px; }

/* ---------- Trang nội dung ---------- */
.bp-page-hero { padding: 60px 0 50px; }
.bp-page-hero h1 { color: #fff; font-size: 2.4em; margin: 0; text-transform: uppercase; }
.bp-page-hero p { color: rgba(255,255,255,.85); margin: 8px 0 0; }
.bp-box { background: var(--bp-soft); border-radius: var(--bp-radius); padding: 24px; height: 100%; }
.bp-map { border-radius: var(--bp-radius); overflow: hidden; line-height: 0; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form textarea, .wpcf7-form select { border-radius: 6px; }

/* ---------- Nút liên hệ nổi ---------- */
.bp-float { position: fixed; left: 14px; bottom: 22px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.bp-float a {
	width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff;
	box-shadow: 0 6px 16px rgba(0,0,0,.22); position: relative;
}
.bp-float a.is-call { background: var(--bp-red); animation: bp-pulse 1.8s infinite; }
.bp-float a.is-zalo { background: #0068ff; font-weight: 800; font-size: 13px; }
.bp-float a.is-mess { background: #0a7cff; }
.bp-float a .bp-tip {
	position: absolute; left: 60px; white-space: nowrap; background: var(--bp-ink); color: #fff; font-size: 12px; padding: 5px 9px;
	border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.bp-float a:hover .bp-tip { opacity: 1; }
@keyframes bp-pulse { 0% { box-shadow: 0 0 0 0 rgba(200,21,43,.55); } 70% { box-shadow: 0 0 0 14px rgba(200,21,43,0); } 100% { box-shadow: 0 0 0 0 rgba(200,21,43,0); } }
@media (max-width: 549px) { .bp-float { bottom: 76px; left: 10px; } .bp-float a { width: 44px; height: 44px; } }
