/*
Theme Name: Bricks Child
Theme URI: https://vietwp.com/
Description: Child theme for Bricks Builder
Author: VietWP
Author URI: https://vietwp.com/
Template: bricks
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bricks-child
*/


/* Tabs sản phẩm: đoạn giới thiệu thu gọn / mở rộng */
.product-tabs .intro-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.product-tabs .intro-clamp {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.7;
}

.product-tabs .intro-wrap:has(.btn-more[data-open="1"]) .intro-clamp {
	display: block;
	-webkit-line-clamp: unset;
}

.product-tabs .btn-more {
	color: var(--primary);
	font-weight: 600;
	cursor: pointer;
}

.product-tabs .btn-more::before {
	content: "Xem thêm ▾";
}

.product-tabs .btn-more[data-open="1"]::before {
	content: "Thu gọn ▴";
}

.product-tabs .btn-more[hidden] {
	display: none;
}


/* Tabs sản phẩm: hover giống trạng thái active */
.product-tabs > .tab-menu .tab-title {
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.product-tabs > .tab-menu .tab-title:hover {
	background-color: var(--primary) !important;
	border-color: var(--primary) !important;
	color: var(--white) !important;
}

.product-tabs > .tab-menu .tab-title:hover > * {
	color: var(--white) !important;
}


/* Tabs sản phẩm: khoảng cách giữa đoạn giới thiệu và danh sách sản phẩm */
.product-tabs .intro-wrap {
	margin-bottom: 32px;
}


/* Tabs sản phẩm: hiệu ứng chuyển tab */
.product-tabs > .tab-content .tab-pane.brx-open {
	animation: product-tab-in .45s ease both;
}

@keyframes product-tab-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.product-tabs > .tab-content .tab-pane.brx-open {
		animation: none;
	}
}

/* Mobile: 6 tab nằm 1 hàng, cuộn ngang */
@media (max-width: 767px) {
	.product-tabs > .tab-menu {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.product-tabs > .tab-menu::-webkit-scrollbar {
		display: none;
	}

	.product-tabs > .tab-menu .tab-title {
		flex: 0 0 auto;
		white-space: nowrap;
		scroll-snap-align: start;
	}
}


/* Tabs sản phẩm: khoá chiều rộng để chỉ hàng tab cuộn ngang, không kéo rộng cả trang */
.brxe-container:has(> .product-tabs) {
	min-width: 0;
	max-width: 100%;
}

.product-tabs {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.product-tabs > .tab-menu,
.product-tabs > .tab-content,
.product-tabs .tab-pane {
	min-width: 0;
	max-width: 100%;
}


/* Lưới sản phẩm trong tabs: cho phép cột co lại, không tràn ra ngoài */
.product-tabs .product-grid {
	min-width: 0;
	max-width: 100%;
}

.product-tabs .product-grid > *,
.product-tabs .product-grid .product-item {
	min-width: 0;
	max-width: 100%;
}

.product-tabs .product-grid :is(h2, h3, h4, h5, h6),
.product-tabs .product-grid .brxe-text-basic,
.product-tabs .product-grid .product_meta {
	overflow-wrap: anywhere;
}


/* ===== Trang chi tiết sản phẩm ===== */

/* 3 thông số chính */
.sp-specs {
	width: 100%;
}

.sp-spec {
	padding: 12px 14px;
	border: 1px solid #e5e9ef;
	border-radius: 6px;
	background: #fff;
}

.sp-spec-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #6b7785;
}

.sp-spec-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--primary);
}

/* Các mục mô tả 2 cột */
.sp-section .sp-content {
	line-height: 1.8;
}

.sp-section .sp-content > :first-child {
	margin-top: 0;
}

.sp-section .sp-content > :last-child {
	margin-bottom: 0;
}

.sp-section .sp-content ul {
	padding-left: 20px;
}

.sp-section .sp-content li + li {
	margin-top: 6px;
}

.sp-section .sp-content table {
	width: 100%;
	border-collapse: collapse;
}

.sp-section .sp-content :is(th, td) {
	padding: 12px 16px;
	border: 1px solid #e5e9ef;
	text-align: left;
}

.sp-section .sp-content th {
	background: #f7f7f7;
	font-weight: 700;
	color: var(--text);
}

/* Mục nền tối */
.sp-section--dark .sp-content,
.sp-section--dark .sp-content :is(p, li, td) {
	color: var(--white);
}

.sp-section--dark .sp-content :is(h3, h4, strong) {
	color: var(--white);
}

.sp-section--dark .sp-content :is(th, td) {
	border-color: rgba(255, 255, 255, .15);
}

.sp-section--dark .sp-content th {
	background: rgba(255, 255, 255, .06);
	color: var(--white);
}

@media (max-width: 767px) {
	.sp-section .sp-content table {
		display: block;
		overflow-x: auto;
	}
}



/* Nút giỏ hàng: tách hover từng nút, và làm link "Xem giỏ hàng" khác nút "Thêm vào giỏ hàng" */
.brxe-product-add-to-cart:hover a:not(:hover)::before {
	transform: scale(0) rotate(-45deg);
}

.brxe-product-add-to-cart:hover a:not(:hover)::after {
	transform: scale(0) rotate(45deg);
}

.brxe-product-add-to-cart a:hover::before,
.brxe-product-add-to-cart a:hover::after {
	transform: scale(1) rotate(0deg);
}

.brxe-product-add-to-cart a.added_to_cart.wc-forward {
	background: none;
	color: var(--primary);
	border: 0;
	padding: 4px 0;
	min-height: 0;
	overflow: visible;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .2s ease;
}

.brxe-product-add-to-cart a.added_to_cart.wc-forward::before,
.brxe-product-add-to-cart a.added_to_cart.wc-forward::after {
	display: none;
}

.brxe-product-add-to-cart a.added_to_cart.wc-forward:hover {
	color: var(--second);
}


/* ===== Giỏ hàng & Thanh toán (WooCommerce Blocks) ===== */

/* Trang không có banner: không để mảng xanh của header tràn xuống nội dung */
body.woocommerce-cart #brxe-hrixrc::before,
body.woocommerce-checkout #brxe-hrixrc::before,
body.woocommerce-account #brxe-hrixrc::before {
	height: 100%;
}

.woocommerce-cart #brx-content,
.woocommerce-checkout #brx-content,
.woocommerce-account #brx-content {
	box-sizing: border-box;
	width: 100%;
	max-width: 1290px;
	margin: 0 auto;
	padding: 60px 20px 90px;
}

.woocommerce-cart #brx-content > h1,
.woocommerce-checkout #brx-content > h1,
.woocommerce-account #brx-content > h1 {
	margin: 0 0 32px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e9ef;
	font-size: 34px;
	line-height: 1.2;
	color: var(--text);
}

/* Nút chính */
.wc-block-components-button:not(.is-link) {
	border-radius: 0;
	background-color: var(--primary);
	color: var(--white);
	font-weight: 600;
	transition: background-color .2s ease;
}

.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):focus {
	background-color: var(--second);
	color: var(--white);
}

.wc-block-components-button.is-link,
.wc-block-components-totals-coupon-link,
.wc-block-cart-item__remove-link {
	color: var(--primary);
}

.wc-block-components-button.is-link:hover,
.wc-block-cart-item__remove-link:hover {
	color: var(--second);
}

/* Giỏ hàng: bảng sản phẩm */
.wc-block-cart-items__header,
.wc-block-cart-items__header span {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #6b7785;
}

.wc-block-cart-items .wc-block-cart-items__row {
	border-color: #e5e9ef;
}

.wc-block-components-product-name {
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
}

.wc-block-components-product-name:hover {
	color: var(--primary);
}

.wc-block-components-product-price,
.wc-block-components-product-price .wc-block-components-formatted-money-amount {
	font-weight: 700;
	color: var(--text);
}

.wc-block-components-product-price__regular {
	font-weight: 400;
	font-size: .9em;
	color: #9aa3ad;
}

.wc-block-components-product-badge,
.wc-block-components-sale-badge {
	border-radius: 3px;
	border-color: var(--primary);
	color: var(--primary);
}

.wc-block-components-quantity-selector {
	border-radius: 0;
	border-color: #d8dee6;
}

.wc-block-components-quantity-selector::after {
	border-radius: 0;
	border-color: #d8dee6;
}

/* Hộp tổng cộng (giỏ hàng) và tóm tắt đơn hàng (thanh toán) */
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar {
	align-self: flex-start;
	padding: 24px;
	border: 1px solid #e5e9ef;
	border-radius: 8px;
	background: #f7f7f7;
}

.wc-block-cart__totals-title,
.wc-block-components-order-summary__button-text {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #6b7785;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 700;
	color: var(--text);
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	width: 100%;
	min-height: 52px;
}

/* Thanh toán: form */
.wc-block-components-checkout-step__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--text);
}

.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-combobox .components-combobox-control input,
.wc-block-components-country-input select,
.wc-block-components-state-input select {
	border-radius: 0;
	border-color: #d8dee6;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus,
.wc-block-components-combobox .components-combobox-control input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 1px var(--primary);
}

.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
	border-color: #e5e9ef;
}

.wc-block-components-radio-control__option-checked,
.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	border-color: var(--primary);
}

.wc-block-components-radio-control__input:checked::before {
	background: var(--primary);
}

.wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: var(--primary);
	border-color: var(--primary);
}

/* Giỏ hàng trống */
.wp-block-woocommerce-empty-cart-block {
	text-align: center;
	padding: 40px 0;
}

@media (max-width: 767px) {
	.woocommerce-cart #brx-content,
	.woocommerce-checkout #brx-content,
	.woocommerce-account #brx-content {
		padding: 30px 16px 60px;
	}

	.woocommerce-cart #brx-content > h1,
	.woocommerce-checkout #brx-content > h1,
	.woocommerce-account #brx-content > h1 {
		font-size: 26px;
		margin-bottom: 20px;
	}

	.wc-block-cart__sidebar,
	.wc-block-checkout__sidebar {
		padding: 16px;
	}
}


/* Giỏ hàng mobile: dòng sản phẩm co theo màn hình, tổng tiền xuống dưới chi tiết */
@media (max-width: 767px) {
	.wc-block-cart-items,
	.wc-block-cart-items tbody {
		display: block;
		width: 100%;
		max-width: 100%;
	}

	.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 72px minmax(0, 1fr) !important;
		grid-auto-rows: auto;
		column-gap: 14px;
		max-width: 100%;
	}

	.wc-block-cart-items .wc-block-cart-item__image {
		grid-column: 1 !important;
		grid-row: 1 / span 2 !important;
	}

	.wc-block-cart-items .wc-block-cart-item__product {
		grid-column: 2 !important;
		grid-row: 1 !important;
		min-width: 0;
		padding-left: 0;
		padding-right: 0;
		text-align: left;
	}

	.wc-block-cart-items .wc-block-cart-item__total {
		grid-column: 2 !important;
		grid-row: 2 !important;
		justify-self: start;
		min-width: 0;
		padding: 8px 0 0;
		text-align: left;
	}

	.wc-block-cart-items .wc-block-cart-item__total-price-and-sale-badge-wrapper {
		align-items: flex-start;
	}

	.wc-block-cart-items .wc-block-cart-item__total .wc-block-components-sale-badge {
		white-space: normal;
	}

	.wc-block-components-sidebar-layout {
		display: block;
	}

	.wc-block-components-sidebar-layout .wc-block-components-main {
		width: 100%;
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	.wc-block-components-sidebar-layout .wc-block-components-sidebar {
		width: 100%;
		max-width: 100%;
		margin-top: 24px;
		box-sizing: border-box;
	}
}


/* Thanh toán: tăng độ ưu tiên để thắng CSS của WooCommerce Blocks */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input input[type],
.wc-block-checkout .wc-block-components-textarea,
.wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control input {
	border-radius: 0 !important;
	border-color: #d8dee6 !important;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-text-input.is-active input,
.wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--primary) !important;
	box-shadow: 0 0 0 1px var(--primary) !important;
}

.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout h2.wc-block-components-title {
	font-size: 20px;
	font-weight: 700 !important;
	color: var(--text);
}

.wc-block-checkout .wc-block-components-checkout-step {
	margin-bottom: 8px;
}


/* Giỏ hàng & Thanh toán: chữ to hơn, khoảng cách thoáng hơn */
.wc-block-cart-items .wc-block-cart-items__row {
	padding-top: 24px;
	padding-bottom: 24px;
}

.wc-block-cart-item__wrap > * + *,
.wc-block-cart-item__product > * + * {
	margin-top: 8px;
}

.wc-block-components-product-name {
	font-size: 17px;
	line-height: 1.4;
}

.wc-block-components-product-price,
.wc-block-components-product-price .wc-block-components-formatted-money-amount,
.wc-block-cart-item__total .wc-block-components-formatted-money-amount {
	font-size: 17px;
}

.wc-block-components-product-price__regular {
	font-size: 15px;
}

.wc-block-components-product-details,
.wc-block-components-product-details__name,
.wc-block-components-product-details__value,
.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description {
	font-size: 15px;
	line-height: 1.5;
}

.wc-block-components-product-badge,
.wc-block-components-sale-badge {
	font-size: 14px;
	padding: 3px 8px;
}

.wc-block-components-quantity-selector {
	margin-top: 4px;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	font-size: 16px;
}

/* Tóm tắt đơn hàng (thanh toán) */
.wc-block-components-order-summary-item {
	padding: 16px 0;
}

.wc-block-components-order-summary-item__description {
	padding-left: 16px;
}

.wc-block-components-order-summary-item .wc-block-components-product-name {
	font-size: 16px;
}

.wc-block-components-order-summary-item .wc-block-components-product-metadata,
.wc-block-components-order-summary-item .wc-block-components-product-details {
	font-size: 14px;
}

.wc-block-components-order-summary-item__total-price {
	font-size: 16px;
	font-weight: 700;
}

/* Hộp tổng cộng / tóm tắt: chữ và padding */
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar,
.wc-block-components-sidebar {
	box-sizing: border-box;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
	font-size: 16px;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 20px;
}

@media (max-width: 767px) {
	.wc-block-cart-items .wc-block-cart-items__row {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.wc-block-components-product-name {
		font-size: 16px;
	}

	.wc-block-cart__sidebar,
	.wc-block-checkout__sidebar,
	.wc-block-components-sidebar {
		padding: 20px 16px;
	}
}


/* Giỏ hàng & Thanh toán: ép kích thước chữ và padding (thắng CSS của WooCommerce Blocks) */
.wc-block-cart .wc-block-components-product-name,
.wc-block-checkout .wc-block-components-product-name {
	font-size: 17px !important;
	line-height: 1.4 !important;
}

.wc-block-cart .wc-block-components-product-metadata__description,
.wc-block-cart .wc-block-components-product-metadata__description *,
.wc-block-cart .wc-block-components-product-details,
.wc-block-cart .wc-block-components-product-details * {
	font-size: 15px !important;
	line-height: 1.55 !important;
}

.wc-block-cart .wc-block-cart-items .wc-block-cart-items__row {
	padding-top: 24px !important;
	padding-bottom: 24px !important;
}

.wc-block-cart .wc-block-cart-item__total .wc-block-components-formatted-money-amount {
	font-size: 17px !important;
}

.wc-block-cart .wc-block-cart__sidebar,
.wc-block-checkout .wc-block-checkout__sidebar,
.wc-block-components-sidebar {
	padding: 24px !important;
}

@media (max-width: 767px) {
	.wc-block-cart .wc-block-components-product-name,
	.wc-block-checkout .wc-block-components-product-name {
		font-size: 16px !important;
	}

	.wc-block-cart .wc-block-cart-items .wc-block-cart-items__row {
		padding-top: 20px !important;
		padding-bottom: 20px !important;
	}

	.wc-block-cart .wc-block-cart__sidebar,
	.wc-block-checkout .wc-block-checkout__sidebar,
	.wc-block-components-sidebar {
		padding: 20px 16px !important;
	}
}


/* Giỏ hàng: tiêu đề h2 trong mô tả sản phẩm dùng cùng font với site */
.wc-block-cart .wc-block-components-product-metadata__description :is(h1, h2, h3, h4, h5, h6),
.wc-block-checkout .wc-block-components-product-metadata__description :is(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.5 !important;
	letter-spacing: 0;
	color: var(--text) !important;
}

/* Giỏ hàng: cột tổng tiền thoáng hơn */
.wc-block-cart .wc-block-cart-item__total {
	padding: 16px 0 0 !important;
}

.wc-block-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

@media (max-width: 767px) {
	.wc-block-cart .wc-block-cart-item__total {
		padding: 14px 0 0 !important;
	}
}


/* Trang chi tiết: làm gọn nội dung lấy từ mô tả sản phẩm */
.sp-info .woocommerce-product-details__short-description :is(h1, h2, h3, h4, h5, h6) {
	display: none;
}

.sp-section .sp-content :is(h1, h2, h3, h4, h5, h6) {
	margin: 28px 0 10px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
	color: var(--text);
}

.sp-section .sp-content > :is(h1, h2, h3, h4, h5, h6):first-child {
	margin-top: 0;
}

.sp-section .sp-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 16px 0;
}

.sp-section--dark .sp-content :is(h1, h2, h3, h4, h5, h6) {
	color: var(--white);
}


/* Trang chi tiết: thông báo không dính nội dung bên dưới */
.single-product .brxe-woocommerce-notice.woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: 40px;
}

/* Trang chi tiết: nút Thêm vào giỏ hàng */
.single-product form.cart .single_add_to_cart_button {
	min-height: 48px;
	padding: 0 32px;
	border: 0;
	border-radius: 0;
	background: var(--primary);
	color: var(--white);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s ease;
}

.single-product form.cart .single_add_to_cart_button:hover,
.single-product form.cart .single_add_to_cart_button:focus {
	background: var(--second);
	color: var(--white);
}

.single-product form.cart .single_add_to_cart_button.disabled,
.single-product form.cart .single_add_to_cart_button:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* Ô số lượng cao bằng nút */
.single-product form.cart .quantity {
	min-height: 48px;
	margin-right: 10px;
}

.single-product form.cart .quantity input.qty {
	min-height: 48px;
}

.single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}


/* Lưới sản phẩm dùng chung (cả "Sản phẩm liên quan"): cho phép cột co lại */
.product-grid {
	min-width: 0;
	max-width: 100%;
}

.product-grid > *,
.product-grid .product-item {
	min-width: 0;
	max-width: 100%;
}


/* Trang chi tiết: ô số lượng và nút Thêm vào giỏ hàng cùng cao 48px */
.single-product form.cart {
	align-items: center;
}

.single-product form.cart .quantity {
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	height: 48px;
	min-height: 0;
	margin: 0;
	border: 1px solid #d8dee6;
	background: var(--white);
	transition: border-color .2s ease;
}

.single-product form.cart .quantity:focus-within,
.single-product form.cart .quantity:hover {
	border-color: var(--primary);
}

.single-product form.cart .quantity input.qty {
	box-sizing: border-box;
	width: 64px;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	color: var(--text);
	-moz-appearance: textfield;
}

.single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product form.cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product form.cart .quantity .action {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 100%;
	color: #6b7785;
	cursor: pointer;
	user-select: none;
	transition: background-color .2s ease, color .2s ease;
}

.single-product form.cart .quantity .action:hover {
	background: #f7f7f7;
	color: var(--primary);
}

.single-product form.cart .quantity .action svg {
	width: 16px;
	height: 16px;
}

.single-product form.cart .single_add_to_cart_button {
	box-sizing: border-box;
	height: 48px;
	min-height: 0;
	margin: 0;
}


/* Gallery trang chi tiết (element Product gallery của Bricks): ảnh vuông, 4 thumbnail một hàng */
.sp-gallery .flex-viewport {
	height: auto !important;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.sp-gallery .woocommerce-product-gallery__image,
.sp-gallery .woocommerce-product-gallery__image > a {
	display: block;
	height: 100%;
}

.sp-gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.sp-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.sp-gallery .flex-control-thumbs li {
	position: relative;
	float: none;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	cursor: pointer;
}

.sp-gallery .flex-control-thumbs li img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	opacity: .7;
	outline: 2px solid transparent;
	outline-offset: -2px;
	transition: opacity .2s ease, outline-color .2s ease;
}

.sp-gallery .flex-control-thumbs li img:hover,
.sp-gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
}

.sp-gallery .flex-control-thumbs li img.flex-active {
	outline-color: var(--primary);
}

/* Kiểu Facebook: chỉ hiện 4 thumbnail, thumbnail thứ 4 phủ "+N" */
.sp-gallery .flex-control-thumbs li:nth-child(n + 5) {
	display: none;
}

.sp-gallery .flex-control-thumbs li[data-more]::after {
	content: attr(data-more);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .55);
	color: var(--white);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

/* Trang chi tiết: bảng thông số kỹ thuật dạng bảng viền */
.sp-info .woocommerce-product-details__short-description table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--boder);
	font-size: 14px;
}

.sp-info .woocommerce-product-details__short-description table tr:has(> th:empty) {
	display: none;
}

.sp-info .woocommerce-product-details__short-description table td {
	padding: 8px 12px;
	border: 1px solid var(--boder);
	vertical-align: middle;
	line-height: 1.4;
}

.sp-info .woocommerce-product-details__short-description table td:first-child {
	width: 68%;
	background: var(--gray);
}

.sp-info .woocommerce-product-details__short-description table td:last-child {
	font-weight: 700;
	text-align: center;
	color: var(--primary);
}

.sp-info .woocommerce-product-details__short-description table td em {
	font-size: 13px;
	color: var(--text-body);
}

.sp-info .sp-specs {
	margin-top: 16px;
}

.sp-info .sp-spec {
	background: var(--gray);
	border-color: var(--boder);
}

.sp-info form.cart {
	display: flex;
	gap: 10px;
	width: 100%;
}

.sp-info form.cart .single_add_to_cart_button {
	flex: 1;
}

.sp-info .brxe-product-short-description {
	width: 100%;
}

/* Trang chi tiết: chỉnh lại theo mẫu */
.sp-info .woocommerce-product-details__short-description table {
	background: var(--white);
	border-color: var(--boder);
	border-radius: 6px;
}

.sp-info .woocommerce-product-details__short-description table td {
	border-color: var(--boder);
}

.sp-info .woocommerce-product-details__short-description table td:first-child {
	width: 64%;
	background: var(--white);
}

.sp-info .woocommerce-product-details__short-description table td:last-child {
	font-weight: 400;
	text-align: left;
	color: var(--text);
}

.sp-info .woocommerce-product-details__short-description table td em {
	font-size: inherit;
	color: var(--primary);
}

.sp-info .sp-spec {
	background: var(--white);
	border-color: var(--boder);
}

/* Trang chi tiết: bảng chi tiết kỹ thuật */
.sp-section .sp-content table {
	table-layout: fixed;
	margin-bottom: 24px;
}

.sp-section .sp-content table th {
	background: var(--primary);
	color: var(--white);
}

.sp-section .sp-content table td:first-child {
	width: 40%;
	font-weight: 600;
}

.sp-section .sp-content table tbody tr:nth-child(even) td {
	background: var(--gray);
}

/* Trang chi tiết: 2 bảng dùng chung format */
.sp-info .woocommerce-product-details__short-description table,
.sp-section .sp-content table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	border: 1px solid var(--boder);
	background: var(--white);
	font-size: 14px;
}

.sp-info .woocommerce-product-details__short-description table :is(th, td),
.sp-section .sp-content table :is(th, td) {
	padding: 8px 12px;
	border: 1px solid var(--boder);
	text-align: left;
	vertical-align: middle;
	line-height: 1.4;
}

.sp-info .woocommerce-product-details__short-description table td:first-child,
.sp-section .sp-content table td:first-child {
	width: 60%;
	background: transparent;
	font-weight: 600;
	color: var(--text);
}

.sp-info .woocommerce-product-details__short-description table td:last-child,
.sp-section .sp-content table td:last-child {
	font-weight: 400;
	text-align: left;
	color: var(--text);
}

.sp-info .woocommerce-product-details__short-description table td em,
.sp-section .sp-content table td em {
	font-size: 13px;
	font-weight: 400;
	color: var(--primary);
}

.sp-info .woocommerce-product-details__short-description table tbody tr:nth-child(odd) td,
.sp-section .sp-content table tbody tr:nth-child(even) td {
	background: var(--gray);
}

.sp-info .woocommerce-product-details__short-description table tbody tr:nth-child(even) td,
.sp-section .sp-content table tbody tr:nth-child(odd) td {
	background: var(--white);
}

/* Màu chữ nội dung: nền sáng chữ đen, nền tối chữ trắng */
.sp-section:not(.sp-section--dark) .sp-content,
.sp-section:not(.sp-section--dark) .sp-content :is(p, li) {
	color: var(--text);
}

/* Bảng: font đồng bộ, chữ đậm, value đen */
.sp-info .woocommerce-product-details__short-description table,
.sp-section .sp-content table {
	font-family: inherit;
}

.sp-info .woocommerce-product-details__short-description table strong,
.sp-section .sp-content table strong {
	font-weight: 600;
}

.sp-info .woocommerce-product-details__short-description table td:last-child,
.sp-section .sp-content table td:last-child {
	font-weight: 500;
	color: var(--text);
}

/* Card sản phẩm: các item cao bằng nhau, nút nằm sát đáy */
.product-grid > .brxe-block > .product-item {
	flex: 1;
}

/* Gallery: khi bật Slider thumbnail của Bricks thì ẩn hàng thumbnail mặc định của WooCommerce */
.sp-gallery .thumbnail-slider .flex-control-thumbs {
	display: none;
}

/* Gallery: hàng thumbnail của Bricks không dùng khung vuông của ảnh chính (tránh chừa khoảng trống phía dưới) */
.sp-gallery .brx-product-gallery-thumbnail-slider .flex-viewport {
	aspect-ratio: auto;
}

/* Tab danh mục: ẩn khung giới thiệu khi danh mục không có mô tả */
.product-tabs .intro-wrap:not(:has(.intro-clamp)) {
	display: none;
}

/* Banner trang chủ: slide ảnh nền toàn khung, nội dung ở giữa */
section:has(.hero-slide) {
	position: relative;
}

.hero-slide {
	position: relative;
	isolation: isolate;
	background-size: cover;
	background-position: center;
}

.hero-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .6));
}

.hero-scroll {
	position: absolute;
	bottom: 14px;
	left: 50%;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	font-size: 0;
	transform: translateX(-50%);
}

.hero-scroll::after {
	content: "";
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--white);
	border-bottom: 2px solid var(--white);
	transform: rotate(45deg);
}

/* Banner trang chủ: hiệu ứng chuyển slide mượt, không dồn về đầu */
.hero-slide.splide__slide {
	transition-timing-function: ease-in-out !important;
}

/* Slider sản phẩm trang chủ: ẩn chấm trang, card cao bằng nhau */
.product-slider .splide__pagination {
	display: none;
}

.product-slider .splide__slide {
	display: flex;
}

.product-slider .splide__slide > .product-item {
	flex: 1;
}

/* Mũi tên slider sản phẩm: mờ mặc định, đậm khi rê chuột */
.product-slider .splide__arrow {
	opacity: .5;
	transition: opacity .3s ease;
}

.product-slider .splide__arrow:hover:not(:disabled) {
	opacity: 1;
}

/* Dự án trang chủ (bản v2): card bo góc, lớp phủ mượt, hover nổi lên và phóng ảnh */
.projects-v2 .project-card {
	border-radius: 8px;
	overflow: hidden;
	background: var(--white);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
	transition: transform .4s ease, box-shadow .4s ease;
}

.projects-v2 .project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.projects-v2 .project-img {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
}

.projects-v2 .project-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.projects-v2 .project-card:hover .project-img img {
	transform: scale(1.05);
}

.projects-v2 .project-img::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(22, 25, 33, 0) 40%, rgba(22, 25, 33, .88) 100%);
}

.projects-v2 .project-content-wrap {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 24px;
	z-index: 2;
	opacity: 1;
}

.projects-v2 .project-content-wrap .brxe-text-basic {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--primary);
	color: var(--white);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.projects-v2 .project-content-wrap .brxe-heading {
	color: var(--white);
	transition: transform .4s ease;
}

.projects-v2 .project-card:hover .project-content-wrap .brxe-heading {
	transform: translateY(-6px);
}

.projects-v2 .project-content-wrap::after {
	content: "Xem dự án \2192";
	display: block;
	margin-top: 10px;
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .4s ease, transform .4s ease;
}

.projects-v2 .project-card:hover .project-content-wrap::after {
	opacity: 1;
	transform: translateY(0);
}

/* Dự án v2: khối tiêu đề sát đáy hơn, hover kéo cả khối lên, nhãn chữ trắng, link Xem dự án luôn hiện */
.projects-v2 .project-content-wrap {
	bottom: 12px;
	transition: transform .4s ease;
}

.projects-v2 .project-card:hover .project-content-wrap {
	transform: translateY(-8px);
}

.projects-v2 .project-card:hover .project-content-wrap .brxe-heading {
	transform: none;
}

.projects-v2 .project-content-wrap .brxe-text-basic {
	color: #fff !important;
}

.projects-v2 .project-content-wrap::after {
	content: none;
}

.projects-v2 .project-content-wrap .view-project {
	display: inline-block;
	margin-top: 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

/* Dự án v2: mặc định title nằm sát đáy, nút Xem dự án ẩn; hover thì khối trượt lên và nút hiện ra */
.projects-v2 .project-content-wrap {
	bottom: 12px !important;
}

.projects-v2 .project-content-wrap .view-project {
	display: inline-block;
	max-height: 0;
	margin-top: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height .4s ease, margin-top .4s ease, opacity .4s ease;
}

.projects-v2 .project-card:hover .project-content-wrap {
	transform: translateY(-24px);
}

.projects-v2 .project-card:hover .project-content-wrap .view-project {
	max-height: 30px;
	margin-top: 10px;
	opacity: 1;
}

/* Dự án v2: link ở cả item; chữ "Xem dự án" không dùng kiểu nhãn; chuyển động 1 giây */
.projects-v2 .project-content-wrap .view-project {
	display: inline-block;
	padding: 0;
	margin-bottom: 0;
	background: none;
	border-radius: 0;
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	font-weight: 600;
}

.projects-v2 .project-content-wrap,
.projects-v2 .project-content-wrap .view-project {
	transition-duration: 1s;
}

/* Dự án v2: link phủ kín card, thời gian chuyển 1 giây */
.projects-v2 .card-link {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
}

.projects-v2 .project-content-wrap {
	transition: transform 1s ease !important;
}

.projects-v2 .project-content-wrap .view-project {
	transition: max-height 1s ease, margin-top 1s ease, opacity 1s ease !important;
}

.projects-v2 .project-card:hover .project-content-wrap {
	transform: translateY(-24px) !important;
}

/* Trang dịch vụ: nút Xem thêm full width trong card */
.brxe-wikgcx > .brxe-ergiap.brxe-button {
	align-self: stretch;
	width: 100%;
	justify-content: center;
}

/* Trang Archive Post: nút Xem thêm full width trong card */
.brxe-havhku > .brxe-ucvymv.brxe-button {
	align-self: stretch;
	width: 100%;
	justify-content: center;
}

/* Sản phẩm liên quan: lưới 4 cột bằng nhau trên màn hình rộng */
@media (min-width: 992px) {
	.brx-grid:has(> .brxe-block > .product-item) {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		row-gap: 30px;
		column-gap: 20px;
		align-items: stretch;
	}

	.brx-grid:has(> .brxe-block > .product-item) > .brxe-block > .product-item {
		height: 100%;
	}
}

/* Banner trang chủ (mobile): mũi tên nằm dưới, chữ không đè lên, nút xếp gọn */
@media (max-width: 767px) {
	#brxe-lpajvi .hero-slide .col-left {
		padding: 40px 20px 110px;
		text-align: center;
		align-items: center;
	}

	#brxe-lpajvi .splide__arrow {
		top: auto !important;
		bottom: 52px !important;
		transform: none !important;
	}

	#brxe-lpajvi .splide__arrow--prev {
		left: 16px !important;
	}

	#brxe-lpajvi .splide__arrow--next {
		right: 16px !important;
	}

	#brxe-lpajvi .btn-wrap {
		flex-wrap: wrap;
		justify-content: center;
		gap: 12px;
	}

	#brxe-lpajvi .btn-wrap .brxe-button::after,
	#brxe-lpajvi .btn-wrap .brxe-button::before {
		content: none !important;
		display: none !important;
	}
}

/* Banner trang chủ (mobile): ẩn 2 mũi tên */
@media (max-width: 767px) {
	#brxe-lpajvi .splide__arrows {
		display: none !important;
	}
}

/* Trang chủ (mobile): 2 mục sản phẩm - tiêu đề canh giữa, card hiện đủ nội dung, mũi tên nhỏ lại */
@media (max-width: 767px) {
	#brxe-fxciym .brxe-container > .brxe-block:first-child,
	#brxe-uptfdt .brxe-container > .brxe-block:first-child {
		align-items: flex-start !important;
		text-align: left;
	}

	#brxe-fxciym .brxe-container > .brxe-block:first-child > .brxe-block,
	#brxe-uptfdt .brxe-container > .brxe-block:first-child > .brxe-block {
		justify-content: flex-start;
		align-items: flex-start;
	}

	#brxe-fxciym h2,
	#brxe-uptfdt h2 {
		text-align: left !important;
	}

	.product-slider .splide__slide,
	.product-slider .product-item {
		height: auto !important;
	}

	.product-slider .splide__arrow {
		width: 32px !important;
		height: 32px !important;
	}

	.product-slider .splide__arrow svg {
		width: 14px !important;
		height: 14px !important;
	}
}



/* Slider sản phẩm: bỏ height 50vh để ảnh card không bị co theo chiều cao viewport (F12) */
.product-slider .splide__slide {
	height: auto !important;
}

.product-slider .product-item {
	height: 100%;
}

/* Single dịch vụ: khối liên hệ (blockquote) dùng font/size mặc định của site, bỏ size inline */
.service-template-default .brxe-post-content blockquote {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

.service-template-default .brxe-post-content blockquote :is(p, span, strong, b, em, a) {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

/* Tên dịch vụ trong slider: cùng font/size với tên sản phẩm */
.product-slider .box-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	text-align: center;
}

/* Trang Liên hệ: khung form (Fluent) giống trang Yêu cầu báo giá */
#brxe-rcwcvw {
	padding: 50px 30px;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}


/* Trang Liên hệ: thông báo sau khi gửi form */
#brxe-rcwcvw .ff-message-success {
	background: #eef6ff;
	border: 1px solid #cfe4fb;
	border-left: 4px solid #1a7efb;
	border-radius: 7px;
	padding: 20px 24px;
	margin-top: 10px;
	color: #1f2d3d;
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
}


/* Single Project: khối "Tư vấn xin liên hệ" giống trang single dịch vụ (bỏ màu cam/cỡ chữ inline của nội dung) */
#brxe-mdqhcv .wpb_text_column p[style*="padding-left: 40px"] span[style*="color: #ff6600"],
.single-project #brxe-mdqhcv .wpb_text_column p[style*="padding-left: 40px"] span[style*="font-size: 20px"] {
	color: inherit !important;
	font-size: inherit !important;
}


/* Trang Liên hệ: 2 video YouTube Shorts (dọc 9:16) */
.brxe-video:has(iframe[src*="UlU0-ka3C7M"]),
.brxe-video:has(iframe[src*="eKRUpYBwl-s"]) {
	aspect-ratio: 9 / 16;
	width: 100%;
	max-width: 360px;
	justify-self: center;
}
.brxe-video:has(iframe[src*="UlU0-ka3C7M"]) iframe,
.brxe-video:has(iframe[src*="eKRUpYBwl-s"]) iframe {
	width: 100% !important;
	height: 100% !important;
}


/* [ĐÃ TẮT] Trang Liên hệ: feed YouTube Shorts dạng slider (kéo/vuốt ngang), 4 video/lượt - bỏ comment để bật lại.
.sb_youtube .sby_items_wrap {
	display: flex !important;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 14px;
}
.sb_youtube .sby_items_wrap .sby_item {
	flex: 0 0 calc((100% - 60px) / 4);
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
	scroll-snap-align: start;
}
.sb_youtube .sby_item .sby_video_thumbnail_wrap,
.sb_youtube .sby_item .sby_video_thumbnail {
	height: auto !important;
	aspect-ratio: 9 / 16;
	background-size: cover !important;
	background-position: center !important;
}
.sb_youtube .sby_item .sby_video_thumbnail {
	border-radius: 8px;
	overflow: hidden;
}
.sb_youtube .sby_footer {
	display: none;
}
@media (max-width: 991px) {
	.sb_youtube .sby_items_wrap .sby_item {
		flex-basis: calc((100% - 20px) / 2);
	}
}
@media (max-width: 575px) {
	.sb_youtube .sby_items_wrap .sby_item {
		flex-basis: 75%;
	}
}
*/

/* Pagination hover giống trạng thái active */
.bricks-pagination ul .page-numbers {
	transition: background-color .2s, color .2s, border-color .2s;
}

.bricks-pagination ul a.page-numbers:hover,
.bricks-pagination ul a.page-numbers:focus-visible {
	background-color: #2286cc !important;
	border-color: #2286cc !important;
	color: #fff !important;
}

/* Pagination template Archive Product - Category (giống trang shop) */
#brxe-hbnhzz ul.page-numbers {
	gap: 13px;
	justify-content: center;
	margin-top: 30px;
}

#brxe-hbnhzz ul .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	padding: 0;
	border: 1px solid #2286cc;
	background-color: #fff;
	color: #2286cc;
}

#brxe-hbnhzz ul .page-numbers.current {
	background-color: #2286cc;
	color: #fff;
}

/* Trang Dịch vụ: khung card nổi bật hơn + pagination */
#brxe-zgbjgu .item {
	border: 1px solid #e3e8ee;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(13, 31, 53, .14);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#brxe-zgbjgu .item:hover {
	transform: translateY(-4px);
	border-color: #2286cc;
	box-shadow: 0 14px 32px rgba(34, 134, 204, .28);
}

#brxe-lmmpbx .bricks-pagination ul.page-numbers {
	gap: 13px;
	justify-content: center;
	margin-top: 30px;
}

#brxe-lmmpbx .bricks-pagination ul .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	padding: 0;
	border: 1px solid #2286cc;
	background-color: #fff;
	color: #2286cc;
}

#brxe-lmmpbx .bricks-pagination ul .page-numbers.current {
	background-color: #2286cc;
	color: #fff;
}

/* Khung card nổi bật: Dự án, Tư vấn, single service / dự án / tư vấn */
body:is(.page-id-156, .archive.category, .single-service, .single-project, .single-post) #brx-content .item {
	border: 1px solid #e3e8ee;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(13, 31, 53, .14);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body:is(.page-id-156, .archive.category, .single-service, .single-project, .single-post) #brx-content .item:not(.splide__slide):hover {
	transform: translateY(-4px);
	border-color: #2286cc;
	box-shadow: 0 14px 32px rgba(34, 134, 204, .28);
}

/* Slider: chừa chỗ để bóng đổ không bị cắt */
body:is(.single-service, .single-project, .single-post) #brx-content .splide__track:has(.item) {
	padding: 8px 4px 24px;
}

/* Trang Dự án: pagination + bỏ hover xanh */
#brxe-kjaepj .bricks-pagination ul.page-numbers {
	gap: 13px;
	justify-content: center;
	margin-top: 30px;
}

#brxe-kjaepj .bricks-pagination ul .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	padding: 0;
	border: 1px solid #2286cc;
	background-color: #fff;
	color: #2286cc;
}

#brxe-kjaepj .bricks-pagination ul .page-numbers.current {
	background-color: #2286cc;
	color: #fff;
}

body.page-id-156 #brx-content .item:not(.splide__slide):hover {
	border-color: #e3e8ee;
	box-shadow: 0 8px 24px rgba(13, 31, 53, .14);
}

/* Trang chủ: khung card slider Dịch vụ + Dự án */
body.home :is(#brxe-jshiow, #brxe-mrrcrd) .item {
	border: 1px solid #e3e8ee;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(13, 31, 53, .14);
}

body.home :is(#brxe-jshiow, #brxe-mrrcrd) .splide__track {
	padding: 8px 4px 24px;
}

/* Trang chủ: khung card khối Thông tin + slider sản phẩm */
body.home #brxe-tyakig > .brxe-block {
	border: 1px solid #e3e8ee;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(13, 31, 53, .14);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.home #brxe-tyakig > .brxe-block:hover {
	transform: translateY(-4px);
	border-color: #2286cc;
	box-shadow: 0 14px 32px rgba(34, 134, 204, .28);
}

body.home :is(#brxe-bklbyx, #brxe-uptfdt) .product-item {
	box-shadow: 0 8px 24px rgba(13, 31, 53, .14);
}

body.home :is(#brxe-bklbyx, #brxe-uptfdt) .splide__track {
	padding: 8px 4px 24px;
}


/* Gallery trang chi tiết: nút mũi tên trái/phải để trượt thumbnail (slider thumbnail của Bricks) */
.sp-gallery .brx-product-gallery-thumbnail-slider {
	position: relative;
	overflow: visible;
}

.sp-gallery .brx-product-gallery-thumbnail-slider .flex-direction-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-gallery .brx-product-gallery-thumbnail-slider .flex-direction-nav a {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: -16px 0 0;
	padding: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .6);
	color: var(--white, #fff);
	font-size: 0;
	line-height: 0;
	text-decoration: none;
	opacity: 1;
	overflow: hidden;
	cursor: pointer;
	transition: background .2s ease, opacity .2s ease;
}

.sp-gallery .brx-product-gallery-thumbnail-slider .flex-direction-nav a::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
}

.sp-gallery .brx-product-gallery-thumbnail-slider .flex-direction-nav a.flex-prev {
	left: -16px;
	right: auto;
}

.sp-gallery .brx-product-gallery-thumbnail-slider .flex-direction-nav a.flex-next {
	right: -16px;
	left: auto;
}

.sp-gallery .brx-product-gallery-thumbnail-slider .flex-direction-nav a.flex-prev::before {
	transform: translateX(2px) rotate(135deg);
}

.sp-gallery .brx-product-gallery-thumbnail-slider .flex-direction-nav a.flex-next::before {
	transform: translateX(-2px) rotate(-45deg);
}

.sp-gallery .brx-product-gallery-thumbnail-slider .flex-direction-nav a:hover {
	background: var(--primary);
}

.sp-gallery .brx-product-gallery-thumbnail-slider .flex-direction-nav a.flex-disabled {
	opacity: .35;
	pointer-events: none;
	cursor: default;
}
