/*
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
*/

/* a {
  color: var(--primary, #B29041);
  transition: color 0.3s ease;
}
a:hover {
  color: #8a6d2c;
} */


/* =========================================
   TRANG THANH TOÁN - BUTPARKER
   ========================================= */

/* ---------- Bố cục 2 cột ---------- */
.woocommerce-checkout form.checkout {
  /* display: grid;
  grid-template-columns: 1fr 480px;
  grid-template-areas: "details review";
  gap: 32px;
  align-items: start; */

  display: grid;
  grid-template-columns: 1fr 480px;
  grid-template-areas:
    "notices notices"
    "details review";
  column-gap: 32px;
  row-gap: 0;               
  align-items: start;
}

.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup {
  grid-area: notices;
  margin-bottom: 24px;
}
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup .woocommerce-error {
  margin: 0;
}

.woocommerce-checkout form.checkout #customer_details {
  grid-area: details;
  width: 100%;
  float: none;
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.woocommerce-checkout form.checkout #customer_details .col-1,
.woocommerce-checkout form.checkout #customer_details .col-2 {
  float: none;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.woocommerce-checkout form.checkout #customer_details .col-2 {
  margin-top: 32px;
}

/* Khối "Đơn hàng của bạn" (div bọc heading + order_review) */
.woocommerce-checkout form.checkout > div:not(.bp-oas-hp-wrap):not(#customer_details) {
  grid-area: review;
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 24px;
}

/* ---------- Tiêu đề các khối ---------- */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
}

/* ---------- Form fields ---------- */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.woocommerce-checkout .form-row {
  margin: 0 0 20px;
  padding: 0;
  width: 100%;
  float: none;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: calc(50% - 10px);
}

.woocommerce-checkout .form-row label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
}

.woocommerce-checkout .form-row label .required {
  color: #d63638;
  text-decoration: none;
}

.woocommerce-checkout .form-row label .optional {
  font-weight: 400;
  color: #777;
}

.woocommerce-checkout .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font-size: 15px;
  color: var(--black);
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce-checkout .form-row textarea {
  height: auto;
  min-height: 110px;
  padding: 14px 20px;
  resize: vertical;
}

.woocommerce-checkout .form-row .input-text::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
  color: #aaa;
}

.woocommerce-checkout .form-row .input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(178, 144, 65, 0.15);
}

/* Trạng thái lỗi / hợp lệ */
.woocommerce-checkout .form-row.woocommerce-invalid .input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select,
.woocommerce-checkout .form-row.woocommerce-invalid .select2-selection {
  border-color: #d63638;
}

/* ---------- Select2 (Quốc gia) ---------- */
.woocommerce-checkout .select2-container {
  width: 100% !important;
}

.woocommerce-checkout .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.25s ease;
}

.woocommerce-checkout .select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--focus .select2-selection--single {
  border-color: var(--primary);
}

.woocommerce-checkout .select2-container .select2-selection__rendered {
  padding: 0 44px 0 20px;
  line-height: 50px;
  font-size: 15px;
  color: var(--black);
}

.woocommerce-checkout .select2-container .select2-selection__arrow {
  top: 0;
  right: 14px;
  height: 50px;
}

/* ---------- Bảng đơn hàng ---------- */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 0 24px;
  border: 0;
  border-collapse: collapse;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-size: 15px;
  color: var(--black);
  text-align: left;
  vertical-align: top;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777;
  border-bottom: 1px solid var(--black);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table td:last-child,
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th:last-child {
  text-align: right;
  white-space: nowrap;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
  font-weight: 500;
  line-height: 1.5;
  padding-right: 16px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-quantity {
  font-weight: 700;
  color: var(--primary);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
  font-weight: 600;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total td {
  border-bottom: 0;
  font-size: 18px;
  font-weight: 700;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total td .amount {
  color: var(--primary);
}

/* ---------- Phương thức thanh toán ---------- */
.woocommerce-checkout #payment {
  background: transparent;
  border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border: 0;
}

.woocommerce-checkout #payment .wc_payment_method {
  margin: 0 0 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.woocommerce-checkout #payment .wc_payment_method:has(input:checked) {
  border-color: var(--primary);
  background: var(--gray);
}

.woocommerce-checkout #payment .wc_payment_method > input.input-radio {
  margin: 0 10px 0 0;
  accent-color: var(--primary);
  vertical-align: middle;
}

.woocommerce-checkout #payment .wc_payment_method > label {
  display: inline;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  vertical-align: middle;
}

.woocommerce-checkout #payment .payment_box {
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  background: transparent;
  font-size: 14px;
  line-height: 1.65;
  color: #555;
}

.woocommerce-checkout #payment .payment_box::before {
  display: none;
}

.woocommerce-checkout #payment .payment_box p {
  margin: 0 0 10px;
}

.woocommerce-checkout #payment .payment_box p:last-child {
  margin-bottom: 0;
}

/* ---------- Điều khoản + nút đặt hàng ---------- */
.woocommerce-checkout #payment .place-order {
  margin: 0;
  padding: 0;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #777;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p {
  margin: 0;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
  color: var(--primary);
  text-decoration: underline;
}

.woocommerce-checkout #place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  padding: 0 24px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.woocommerce-checkout #place_order:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ---------- Thông báo ---------- */
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error {
  margin: 0 0 24px;
  padding: 16px 24px;
  border: 0;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: var(--white);
  list-style: none;
}

.woocommerce-checkout .woocommerce-error {
  border-left-color: #d63638;
}

/* ---------- Ẩn ô chống spam (honeypot) ---------- */
.woocommerce-checkout .bp-oas-hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "details"
      "review";
  }

  .woocommerce-checkout form.checkout > div:not(.bp-oas-hp-wrap):not(#customer_details) {
    position: static;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .woocommerce-checkout form.checkout #customer_details,
  .woocommerce-checkout form.checkout > div:not(.bp-oas-hp-wrap):not(#customer_details) {
    padding: 24px 20px;
  }

  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100%;
  }

  .woocommerce-checkout .woocommerce-billing-fields h3,
  .woocommerce-checkout .woocommerce-additional-fields h3,
  .woocommerce-checkout #order_review_heading {
    font-size: 20px;
  }
}


/* =========================================
   TRANG GIỎ HÀNG - BUTPARKER
   ========================================= */

/* ---------- Bảng sản phẩm ---------- */
.woocommerce-cart .woocommerce-cart-form {
  background: var(--white);
  border-radius: 16px;
  padding: 8px 28px 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.woocommerce-cart table.shop_table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  margin: 0;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  border: 0;
  background: transparent;
}

.woocommerce-cart table.cart thead th {
  padding: 20px 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777;
  border-bottom: 1px solid var(--black);
  text-align: left;
}

.woocommerce-cart table.cart tbody tr.cart_item td,
.woocommerce-cart table.cart tbody tr.cart_item th {
  padding: 24px 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

/* Nút xóa */
.woocommerce-cart table.cart td.product-remove {
  width: 48px;
  text-align: center;
}

.woocommerce-cart table.cart a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  color: #777 !important;
  background: var(--gray);
  text-decoration: none;
  transition: all 0.25s ease;
}

.woocommerce-cart table.cart a.remove:hover {
  background: var(--black);
  color: var(--white) !important;
}

/* Ảnh sản phẩm */
.woocommerce-cart table.cart td.product-thumbnail {
  width: 110px;
}

.woocommerce-cart table.cart td.product-thumbnail img {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: var(--gray);
  border-radius: 12px;
  padding: 6px;
}

/* Tên sản phẩm */
.woocommerce-cart table.cart .product-name {
  text-align: left;
}

.woocommerce-cart table.cart .product-name a {
  color: var(--black);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.25s ease;
}

.woocommerce-cart table.cart .product-name a:hover {
  color: var(--primary);
}

/* Giá, tạm tính */
.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
  white-space: nowrap;
  color: var(--black);
  font-size: 15px;
}

.woocommerce-cart table.cart .product-subtotal {
  font-weight: 700;
}

/* ---------- Hàng mã giảm giá + cập nhật ---------- */
.woocommerce-cart table.cart td.actions {
  padding: 28px 0 0;
  border: 0;
}

.woocommerce-cart table.cart td.actions::after {
  content: "";
  display: table;
  clear: both;
}

.woocommerce-cart .actions .coupon {
  float: left;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.woocommerce-cart .actions .coupon label {
  font-weight: 600;
  color: var(--black);
  margin: 0;
}

.woocommerce-cart .actions .coupon .input-text {
  width: 220px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  transition: border-color 0.25s ease;
}

.woocommerce-cart .actions .coupon .input-text:focus {
  outline: none;
  border-color: var(--primary);
}

.woocommerce-cart .actions > button[name="update_cart"] {
  float: right;
}

/* ---------- Nút chung ---------- */
.woocommerce-cart .woocommerce .button,
.woocommerce-cart .woocommerce button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.woocommerce-cart .woocommerce .button:hover,
.woocommerce-cart .woocommerce button.button:hover {
  background: var(--black);
  color: var(--white);
}

.woocommerce-cart .woocommerce button.button:disabled,
.woocommerce-cart .woocommerce button.button[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  color: var(--black);
}

/* ---------- Khung tổng cộng giỏ hàng ---------- */
.woocommerce-cart .brxe-block.brx-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

.woocommerce-cart .cart-collaterals {
  grid-column: 2;
}

.woocommerce-cart .cart_totals {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  float: none;
  width: 100%;
}

.woocommerce-cart .cart_totals h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  text-align: left;
}

.woocommerce-cart .cart_totals table.shop_table td {
  text-align: right;
}

.woocommerce-cart .cart_totals tr.order-total th,
.woocommerce-cart .cart_totals tr.order-total td {
  border-bottom: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}

.woocommerce-cart .cart_totals tr.order-total td .amount {
  color: var(--primary);
}

/* Nút thanh toán */
.woocommerce-cart .wc-proceed-to-checkout {
  padding: 24px 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: flex;
  width: 100%;
  height: 54px;
  padding: 0 24px;
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ---------- Thông báo (notice) ---------- */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
  margin: 0 0 20px;
  
}


/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .woocommerce-cart .brxe-block.brx-grid {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .cart-collaterals {
    grid-column: 1;
  }
}

/* ---------- Mobile: mỗi sản phẩm thành một thẻ ---------- */
@media (max-width: 767px) {
  .woocommerce-cart .woocommerce-cart-form {
    padding: 8px 16px 20px;
  }

  .woocommerce-cart table.cart thead {
    display: none;
  }

  .woocommerce-cart table.cart tbody tr.cart_item {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    column-gap: 16px;
    row-gap: 8px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }

  .woocommerce-cart table.cart tbody tr.cart_item td,
  .woocommerce-cart table.cart tbody tr.cart_item th {
    display: block;
    padding: 0;
    border: 0;
    text-align: left !important;
  }

  .woocommerce-cart table.cart td.product-thumbnail {
    grid-row: 1 / span 4;
    width: auto;
  }

  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 90px;
    height: 90px;
  }

  .woocommerce-cart table.cart td.product-remove {
    position: absolute;
    top: 16px;
    right: 0;
    width: auto;
  }

  .woocommerce-cart table.cart .product-name {
    padding-right: 36px !important;
  }

  .woocommerce-cart table.cart .product-price::before,
  .woocommerce-cart table.cart .product-subtotal::before {
    content: attr(data-title) ": ";
    font-weight: 400;
    color: #777;
  }

  .woocommerce-cart .actions .coupon {
    float: none;
    width: 100%;
  }

  .woocommerce-cart .actions .coupon .input-text {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .woocommerce-cart .actions > button[name="update_cart"] {
    float: none;
    width: 100%;
    margin-top: 12px;
  }

  .woocommerce-cart .cart_totals {
    padding: 24px 20px;
  }
}





/*  */
#mega-menu-max_mega_menu_1 > .mega-menu-item > a {
  font-weight: 500 !important;
  height: auto !important;
  line-height: 1 !important;
  padding: 16px 30px !important;
  font-size: 16px !important;
  transition: all 0.3s !important;
}

#mega-menu-max_mega_menu_1 > .mega-menu-item > a .mega-menu-title,
#mega-menu-max_mega_menu_1 > .mega-menu-item .mega-description-group {
  line-height: 1 !important;
}


/* #mega-menu-max_mega_menu_1 > .mega-menu-item > a:hover {
  background: var(--primary) !important;
  color: #fff !important;
} */
@media (min-width: 769px) {
  #mega-menu-max_mega_menu_1 > .mega-menu-item:hover > a.mega-menu-link,
  #mega-menu-max_mega_menu_1 > .mega-menu-item.mega-toggle-on > a.mega-menu-link {
    background: var(--primary) !important;
    color: #fff !important;
  }

  /* Chữ tiêu đề, mô tả và mũi tên cũng đổi trắng theo */
  #mega-menu-max_mega_menu_1 > .mega-menu-item:hover > a.mega-menu-link .mega-menu-title,
  #mega-menu-max_mega_menu_1 > .mega-menu-item.mega-toggle-on > a.mega-menu-link .mega-menu-title,
  #mega-menu-max_mega_menu_1 > .mega-menu-item:hover > a.mega-menu-link .mega-indicator,
  #mega-menu-max_mega_menu_1 > .mega-menu-item.mega-toggle-on > a.mega-menu-link .mega-indicator {
    color: #fff !important;
  }
}

/* #mega-menu-max_mega_menu_1 > .mega-menu-item > a::before {
	content: '';
	background: var(--primary) !important;
	width: 100% !important;
	height: 2px !important;
	bottom: 0;
	left: 50%;
	transform: translatex(-50%);
	position: absolute !important;
	width: 0 !important; 
	transition: all 0.4s;

  display: none;
}

#mega-menu-max_mega_menu_1 > .mega-menu-item a:hover::before {
	width: 100% !important; 
} */

.mega-menu-wrap {
	width: 100% !important;
}

@media (min-width: 768px) {
	.max-mega-menu {
		display: flex !important;
		justify-content: center;
		gap: 0 !important;
	}
	
		.mega-menu-item-has-children > .mega-sub-menu {
		padding: 20px !important;
	}
}


.mega-menu-list ul.menu {
	list-style-type: none;
	padding-left: 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding-top: 20px;
}

/* .mega-menu-list ul.menu > li > a {
	color: var(--black);
	transition: all 0.3s;
	font-size: 16px;
}
.mega-menu-list ul.menu > li > a:hover {
	color: var(--primary);
} */

/* ========= */
.mega-menu-list ul.menu > li > a {
	color: var(--black);
	transition: all 0.3s;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
}

/* .mega-menu-list ul.menu > li > a::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 1px;
	background-color: currentColor;
	margin-right: 8px;
	transition: all 0.3s;
} */

.mega-menu-list ul.menu > li > a:hover {
	color: var(--primary);
}

/* Tuỳ chọn: hover thì gạch dài ra */
.mega-menu-list ul.menu > li > a:hover::before {
	width: 16px;
}



.mega-menu-toggle {
    background: transparent !important;
}

.mega-menu-toggle .mega-toggle-blocks-left,
.mega-menu-toggle .mega-toggle-blocks-center {
    display: none !important;
}

@media (max-width: 768px) {
	#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-megamenu > ul.mega-sub-menu {
			padding: 0;
	}
	
		
	
	.mega-menu-list {
		border-bottom: 1px solid rgb(0 0 0 / 20%) !important;
	}
	
	#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item a.mega-menu-link:before {
		display: none !important; 
	}

		#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item > a.mega-menu-link {
			padding: 16px 20px !important;
			height: auto;
			font-size: 16px;
	}
	
		#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item {
			border-bottom: 1px solid rgb(0 0 0 / 20%);
	}
	
		#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item.mega-toggle-on > a.mega-menu-link {
			color: #fff !important;
	}
}


/* ===== MINI CART ===== */
.widget_shopping_cart_content{
  padding:4px 20px 20px;
  color:#1f2937;
}

/* danh sách */
.widget_shopping_cart_content .woocommerce-mini-cart{
  list-style:none;
  margin:0;
  padding:0;
  max-height:55vh;
  overflow-y:auto;
}
.widget_shopping_cart_content .woocommerce-mini-cart-item{
  position:relative;
  min-height:72px;
  margin:0;
  padding:20px 28px 20px 88px;
  border-bottom:1px solid #e5e7eb;
}
.widget_shopping_cart_content .woocommerce-mini-cart-item:last-child{
  border-bottom:0;
}



/* ảnh sản phẩm */
.widget_shopping_cart_content .woocommerce-mini-cart-item img{
  position:absolute;
  left:0;
  top:16px;
  width:72px;
  height:72px;
  margin:0;
  float:none;
  object-fit:cover;
  background:#f5f6f8;
  border:1px solid #e5e7eb;
  border-radius:6px;
}

/* tên sản phẩm (tối đa 2 dòng) */
.widget_shopping_cart_content .woocommerce-mini-cart-item > a:not(.remove){
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:14px;
  font-weight:600;
  line-height:1.45;
  color:var(--primary);
  text-decoration:none;
}
.widget_shopping_cart_content .woocommerce-mini-cart-item > a:not(.remove):hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* số lượng × giá */
.widget_shopping_cart_content .woocommerce-mini-cart-item .quantity{
  display:block;
  margin-top:6px;
  font-size:13px;
  color:#6b7280;
	height: auto;
	border: none;
	border-radius: 0;
}
.widget_shopping_cart_content .woocommerce-mini-cart-item .quantity .amount{
  color:#1f2937;
  font-weight:600;
}

/* nút xóa */
.widget_shopping_cart_content a.remove.remove_from_cart_button{
  position:absolute;
  top:14px;
  right:0;
  left:auto;
  width:24px;
  height:24px;
  line-height:24px;
  text-align:center;
  border-radius:50%;
  font-size:16px;
  color:#6b7280 !important;
  background:transparent !important;
  transition:.15s;
}
.widget_shopping_cart_content a.remove.remove_from_cart_button:hover{
  color:#b42318 !important;
  background:#fef3f2 !important;
}

/* tổng tiền */
.widget_shopping_cart_content .woocommerce-mini-cart__total{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin:8px 0 16px;
  padding:16px 0 0;
  border-top:2px solid var(--primary);
  font-size:14px;
  color:#6b7280;
}
.widget_shopping_cart_content .woocommerce-mini-cart__total strong{
  font-weight:500;
}
.widget_shopping_cart_content .woocommerce-mini-cart__total .amount{
  font-size:20px;
  font-weight:700;
  color:var(--primary);
}

/* nút bấm */
.widget_shopping_cart_content .woocommerce-mini-cart__buttons{
  display:grid;
  gap:10px;
  margin:0;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button{
  display:block;
  width:100%;
  box-sizing:border-box;
  margin:0;
  padding:5px 16px;
  border-radius:6px;
  font-size:14px;
  font-weight:600;
  text-align:center;
  text-decoration:none;
  color:var(--primary);
  background:transparent;
  border:1.5px solid var(--primary);
  transition:.15s;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button:hover{
  background:#f5f6f8;
}

/* nút Thanh toán: nổi bật, đặt lên trên */
.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button.checkout{
  order:-1;
  color:#fff;
  background:var(--primary);
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button.checkout:hover{
  background:var(--black);
  border-color:var(--black);
}











/*  */
.brx-loading-animation {
    position: absolute;
}

b, strong {
    font-weight: 600 !important;
}

/* Pagination (Bricks + WooCommerce + FacetWP) */
.bricks-pagination,
.woocommerce-pagination,
.facetwp-type-pager {
  margin-top: 48px;
  text-align: center;
}

.bricks-pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers,
.facetwp-pager {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.bricks-pagination ul.page-numbers li,
.woocommerce-pagination ul.page-numbers li {
  margin: 0;
  border: 0;
}

/* Mỗi ô số */
.bricks-pagination .page-numbers a,
.bricks-pagination .page-numbers span,
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span,
.facetwp-pager .facetwp-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}

/* Hover */
.bricks-pagination .page-numbers a:hover,
.woocommerce-pagination .page-numbers a:hover,
.facetwp-pager .facetwp-page:hover {
  border-color: var(--black, #1a1a1a);
  background: var(--black, #1a1a1a);
  color: #fff;
}

/* Trang hiện tại */
.bricks-pagination .page-numbers span.current,
.woocommerce-pagination .page-numbers span.current,
.facetwp-pager .facetwp-page.active {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  pointer-events: none;
}

/* Dấu … khi có nhiều trang */
.bricks-pagination .page-numbers span.dots,
.woocommerce-pagination .page-numbers span.dots,
.facetwp-pager .dots {
  min-width: auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
}

/* Nút trước / sau */
.bricks-pagination .page-numbers .prev,
.bricks-pagination .page-numbers .next,
.woocommerce-pagination .page-numbers .prev,
.woocommerce-pagination .page-numbers .next,
.facetwp-pager .facetwp-page.prev,
.facetwp-pager .facetwp-page.next {
  font-size: 18px;
}

/* Mobile */
@media (max-width: 767px) {
  .bricks-pagination,
  .woocommerce-pagination,
  .facetwp-type-pager {
    margin-top: 32px;
  }
  .bricks-pagination ul.page-numbers,
  .woocommerce-pagination ul.page-numbers,
  .facetwp-pager {
    gap: 6px;
  }
  .bricks-pagination .page-numbers a,
  .bricks-pagination .page-numbers span,
  .woocommerce-pagination .page-numbers a,
  .woocommerce-pagination .page-numbers span,
  .facetwp-pager .facetwp-page {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* End Pagination */
/* Khung chứa nút */
.product-item .brxe-product-add-to-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 16px 20px 20px;
}

/* Nút chính */
.product-item .brxe-product-add-to-cart .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  background: transparent;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .3s, color .3s, border-color .3s;
}
.product-item .brxe-product-add-to-cart .button:hover {
  background: #1a1a1a;
  color: #fff;
}

/* Đang thêm vào giỏ: hiện vòng xoay */
.product-item .brxe-product-add-to-cart .button.loading {
  pointer-events: none;
  opacity: .7;
}
.product-item .brxe-product-add-to-cart .button.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pi-spin .6s linear infinite;
}
@keyframes pi-spin {
  to { transform: rotate(360deg); }
}

/* Đã thêm thành công: đổi sang vàng đồng, thêm dấu tick */
.product-item .brxe-product-add-to-cart .button.added {
  background: #8c6d2f;
  border-color: #8c6d2f;
  color: #fff;
}
.product-item .brxe-product-add-to-cart .button.added::after {
  content: "✓";
  font-size: 14px;
}

/* Link "Xem giỏ hàng" Woo chèn sau khi thêm */
.product-item .brxe-product-add-to-cart .added_to_cart {
  font-size: 13px;
  color: #8c6d2f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile: nút gọn hơn */
@media (max-width: 767px) {
  .product-item .brxe-product-add-to-cart {
    padding: 12px 14px 16px;
  }
  .product-item .brxe-product-add-to-cart .button {
    height: 42px;
    font-size: 13px;
  }
}

@media (max-width: 550px) {
  .product-item .brxe-product-add-to-cart {
    padding: 12px 0px 0;
  }
  .product-item .brxe-product-add-to-cart .button {
    font-size: 12px;
    padding: 0;
  }

  .product-item .product-price del {
    font-size: 12px !important;
  }
  
}








/*  */
form.cart {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

/* Khung số lượng */
.quantity {
  display: flex;
  align-items: center;
  height: 52px;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
  min-width: 200px;
}

/* Sắp xếp: − | số | + */
.quantity .minus { order: 1; }
.quantity .qty   { order: 2; }
.quantity .plus  { order: 3; }

/* Nút + và − */
.quantity .action {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  cursor: pointer;
  transition: background .2s;
}
.quantity .action svg {
  width: 16px;
  height: 16px;
}
.quantity .action:hover {
  background: #f3f0e8;
}
.quantity .action.disabled {
  opacity: .3;
  cursor: not-allowed;
}

/* Ô nhập số */
.quantity .qty {
  width: 44px;
  height: 100%;
  border: 0;
  padding: 0;
  text-align: center;
  font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Nút thêm vào giỏ */
.single_add_to_cart_button {
  flex: 1;
  height: 52px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 600;
  transition: background .3s;
	margin-top: 0;
}
.single_add_to_cart_button:hover {
  background: #8c6d2f;
}


/*  */
.splide__pagination {
	width: 100%;
}

.product-item .product-price del {
	color: #999;
	font-size: 15px;
}

.product-item .product-price ins {
	text-decoration: none;
}

/*  */
.product-img-wrap {
  position: relative;
  overflow: hidden;
  display: block;
	background: #fff;
}

.product-img-wrap .img-default,
.product-img-wrap .img-hover {
  display: block;
  transition: opacity 0.35s ease;
	padding: 10px;
}

.product-img-wrap .img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.product-img-wrap .img-default img,
.product-img-wrap .img-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-img-wrap:has(.img-hover):hover .img-default {
  opacity: 0;
}

.product-img-wrap:has(.img-hover):hover .img-hover {
  opacity: 1;
}


/* ========== */

/* Lớp overlay đen phủ toàn trang */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 998; /* thấp hơn menu (menu đang là 999) */
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Hiện overlay khi có mega menu đang mở */
@media (min-width: 769px) {
  body:has(.mega-menu-item.mega-menu-megamenu.mega-toggle-on)::before {
    opacity: 0.5;
    visibility: visible;
  }
}

















/* ===== Khung chứa: xếp dọc, cố định góc trái dưới ===== */
#gom-all-in-one {
  position: fixed;
  left: auto;
  right: 10px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0px;
  transition: opacity .3s ease, visibility .3s ease;
}

#gom-all-in-one.gom-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===== Mỗi nút: khung 60x60 riêng ===== */
#gom-all-in-one .button-contact {
  position: relative;
  margin: 0;
}

#gom-all-in-one .button-contact img {
  width: 25px;
}

#gom-all-in-one .button-contact .phone-vr {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  width: 60px !important;
  height: 60px !important;
  background: transparent !important;
  cursor: pointer;
}

/* Vòng sóng phía sau */
#gom-all-in-one .phone-vr-circle-fill {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* background-color: rgba(178, 144, 65, 0.35) !important; */
  background-color: #B29041 !important;
  box-shadow: none !important;
  animation: gom-pulse 1.6s infinite ease-out !important;
}

/* Hình tròn chính – lắc lắc */
#gom-all-in-one .phone-vr-img-circle {
  position: absolute;
  top: 10px !important;
  left: 10px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  overflow: hidden;
  background-color: #B29041 !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gom-shake 1s infinite ease-in-out !important;
}
#gom-all-in-one .phone-vr-img-circle a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1 !important;
  color: #fff !important;   /* màu icon SVG + chữ Zalo */
  text-decoration: none;
  transition: transform 0.2s ease;
}
#gom-all-in-one .button-contact:hover .phone-vr-img-circle a {
  transform: scale(1.15);
}

/* Icon SVG */
#gom-all-in-one .phone-vr-img-circle svg {
    display: block;
  width: 25px !important;
  height: 25px !important;
  max-width: 25px;
  max-height: 25px;
  fill: currentColor;
}
#gom-all-in-one .phone-vr-img-circle svg path {
  fill: currentColor !important;
}

/* Chữ Zalo */
#zalo-vr .zalo-text {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
}

/* ===== Animation ===== */
@keyframes gom-pulse {
  0%   { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 0; }
}
@keyframes gom-shake {
  0%, 50%, 100% { transform: rotate(0deg) scale(1); }
  10%, 30%      { transform: rotate(-25deg) scale(1); }
  20%, 40%      { transform: rotate(25deg) scale(1); }
}

/* ===== Mobile ===== */


.woocommerce-cart-form dl.variation {
  font-weight: 400;
  font-size: 15px;
}

.woocommerce-checkout form.checkout > div.woocommerce-NoticeGroup {
    grid-area: notices !important;
  grid-column: 1 / -1 !important;
  position: static !important;
  top: auto !important;
  width: 100%;
  margin: 0 0 24px;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.woocommerce-checkout form.checkout > div.woocommerce-NoticeGroup .woocommerce-error {
  margin: 0;
}

@media (max-width: 767px) {
  .brxe-woocommerce-mini-cart .cart-detail {
    display: none !important;
  }
}



.woocommerce-product-gallery .woocommerce-product-gallery__image {
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 550px) {
  .tgb-engrave-open {
    width: 100%;
    min-height: 52px;
  }

}


/* ======================================== */
/* ===== MEGA MENU: danh sách dạng hàng xen kẽ ===== */
.mega-menu-list ul.menu {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mega-menu-list ul.menu > li {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  transition: background 0.3s;
}

/* Hàng lẻ: xám nhạt – hàng chẵn: trắng */
.mega-menu-list ul.menu > li:nth-child(odd)  { background: #f5f5f5; }
.mega-menu-list ul.menu > li:nth-child(even) { background: #fff; }

/* Link phủ kín cả hàng */
.mega-menu-list ul.menu > li > a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px 16px;
  color: var(--black);
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.3s;
}

/* Gạch ngang đầu dòng */
/* .mega-menu-list ul.menu > li > a::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1px;
  margin-right: 8px;
  background-color: currentColor;
  transition: width 0.3s;
} */

/* Hover: cả hàng đổi màu primary */
.mega-menu-list ul.menu > li:hover {
  background: var(--primary);
}
.mega-menu-list ul.menu > li:hover > a {
  color: #fff;
}
.mega-menu-list ul.menu > li:hover > a::before {
  width: 16px;
}
















































/* =====================================================
   PRODUCT GALLERY – THUMBNAIL SLIDER
   Desktop: thumbnail dọc bên cạnh ảnh chính
   Mobile/tablet: thumbnail ngang bên dưới
   ===================================================== */

/* ---------- DÙNG CHUNG ---------- */
.brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery .flex-control-thumbs {
  display: none !important;
}

.brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery .woocommerce-product-gallery__image {
  background: #fff;
}

.brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider .woocommerce-product-gallery__image {
  background: #fff;
  cursor: pointer;
}

.brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider .woocommerce-product-gallery__image > a {
  display: block;
}

.brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider .woocommerce-product-gallery__image > a > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider .flex-active-slide {
  outline: 1px solid var(--primary, #B29041);
  outline-offset: -1px;
}

/* =====================================================
   DESKTOP (>= 992px) – thumbnail dọc trái/phải
   ===================================================== */
@media (min-width: 992px) {
  .brxe-product-gallery.thumbnail-slider[data-pos="right"],
  .brxe-product-gallery.thumbnail-slider[data-pos="left"] {
    /* --gallery-h: clamp(380px, calc(100vh - 230px), 600px);
    --thumb-w: 100px;
    align-items: flex-start;
    gap: 10px; */


    container-type: inline-size;
    width: 100%;
    --thumb-w: 100px;
    --gallery-gap: 10px;
    /* ảnh chính vuông: cao = rộng của ảnh chính */
    --gallery-h: calc(100cqw - var(--thumb-w) - var(--gallery-gap));
    align-items: flex-start;
    gap: var(--gallery-gap);
  }

  /* ---------- Ảnh chính ---------- */
  .brxe-product-gallery.thumbnail-slider[data-pos="right"] > .woocommerce-product-gallery,
  .brxe-product-gallery.thumbnail-slider[data-pos="left"] > .woocommerce-product-gallery {
    flex: 1 1 0;
    min-width: 0;
    height: auto !important;
    max-height: none !important;
  }

  .brxe-product-gallery.thumbnail-slider[data-pos="right"] > .woocommerce-product-gallery .flex-viewport,
  .brxe-product-gallery.thumbnail-slider[data-pos="left"] > .woocommerce-product-gallery .flex-viewport,
  .brxe-product-gallery.thumbnail-slider[data-pos="right"] > .woocommerce-product-gallery .woocommerce-product-gallery__image,
  .brxe-product-gallery.thumbnail-slider[data-pos="left"] > .woocommerce-product-gallery .woocommerce-product-gallery__image {
    height: var(--gallery-h) !important;
  }

  .brxe-product-gallery.thumbnail-slider[data-pos="right"] > .woocommerce-product-gallery .woocommerce-product-gallery__image > a,
  .brxe-product-gallery.thumbnail-slider[data-pos="left"] > .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .brxe-product-gallery.thumbnail-slider[data-pos="right"] > .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img,
  .brxe-product-gallery.thumbnail-slider[data-pos="left"] > .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  /* ---------- Cột thumbnail ---------- */
  .brxe-product-gallery.thumbnail-slider[data-pos="right"] > .brx-product-gallery-thumbnail-slider,
  .brxe-product-gallery.thumbnail-slider[data-pos="left"] > .brx-product-gallery-thumbnail-slider {
    position: relative;
    flex: 0 0 var(--thumb-w);
    width: var(--thumb-w);
    height: var(--gallery-h);
  }

  .brxe-product-gallery.thumbnail-slider[data-pos="right"] > .brx-product-gallery-thumbnail-slider .flex-viewport,
  .brxe-product-gallery.thumbnail-slider[data-pos="left"] > .brx-product-gallery-thumbnail-slider .flex-viewport {
    height: 100% !important;
    overflow: hidden;
  }

  /* ---------- Mũi tên lên / xuống ---------- */
  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav li {
    position: absolute !important;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }


  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a,
  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a i {
    color: var(--black, #1a1a1a) !important;
    text-shadow: none !important;
  }

  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a {
    position: static !important;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
    text-indent: 0 !important;
    border: 1px solid #e2e2e2;
    border-radius: 50%;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    opacity: 1 !important;
    pointer-events: auto;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  }

  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a::before {
    content: none !important;
    display: none !important;
  }

  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a i {
    display: block;
    font-size: 16px;
    line-height: 1;
    transform: rotate(90deg);
  }

  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a:hover,
  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a:focus,
  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a:active {
    background: var(--primary, #B29041) !important;
    border-color: var(--primary, #B29041);
    opacity: 1 !important;
    outline: none;
  }

  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a:hover i,
  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a:focus i,
  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a:active i {
    color: #fff !important;
  }

  /* Hết ảnh để trượt: ẩn mũi tên (đặt cuối để thắng opacity:1 ở trên) */
  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav a.flex-disabled {
    opacity: 0 !important;
    pointer-events: none !important;
  }





    /* Cho mũi tên lòi ra ngoài khung một nửa */
  .brxe-product-gallery.thumbnail-slider[data-pos="right"],
  .brxe-product-gallery.thumbnail-slider[data-pos="left"],
  .brxe-product-gallery.thumbnail-slider[data-pos="right"] > .brx-product-gallery-thumbnail-slider,
  .brxe-product-gallery.thumbnail-slider[data-pos="left"] > .brx-product-gallery-thumbnail-slider {
    overflow: visible !important;
  }

  /* Viewport vẫn cắt thumbnail */
  .brxe-product-gallery.thumbnail-slider[data-pos="right"] > .brx-product-gallery-thumbnail-slider .flex-viewport,
  .brxe-product-gallery.thumbnail-slider[data-pos="left"] > .brx-product-gallery-thumbnail-slider .flex-viewport {
    overflow: hidden !important;
  }

  /* Nút 32px → lệch ra 16px = đúng một nửa */
  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-nav-prev {
    top: -16px !important;
    bottom: auto !important;
    transform: none !important;
  }

  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-nav-next {
    top: auto !important;
    bottom: -16px !important;
    transform: none !important;
  }

  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav li {
    z-index: 5;
  }
}

/* =====================================================
   TABLET + MOBILE (<= 991px) – thumbnail ngang bên dưới
   ===================================================== */
@media (max-width: 991px) {
  .brxe-product-gallery.thumbnail-slider {
    --thumb-m: 72px;
    display: flex;
    flex-direction: column !important;
    align-items: stretch;
    gap: 10px;
  }

  /* ---------- Ảnh chính: vuông, full width ---------- */
  .brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery {
    order: 1;
    flex: none;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
    max-height: none !important;
  }

  .brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery .flex-viewport {
    height: auto !important;
  }

  .brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery .woocommerce-product-gallery__image {
    height: auto !important;
  }

  .brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery .woocommerce-product-gallery__image > a {
    display: block;
  }

  .brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  /* ---------- Hàng thumbnail: cuộn ngang ---------- */
  .brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider {
    order: 2;
    position: relative;
    flex: none;
    width: 100% !important;
    height: auto !important;
  }

  .brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider .flex-viewport {
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider .flex-viewport::-webkit-scrollbar {
    display: none;
  }

  /* Tắt transform của slider dọc, xếp ngang bằng flex */
  .brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider .brx-thumbnail-slider-wrapper {
    display: flex !important;
    gap: 8px;
    width: max-content !important;
    transform: none !important;
    transition: none !important;
  }

  .brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider .woocommerce-product-gallery__image {
    float: none !important;
    flex: 0 0 var(--thumb-m);
    width: var(--thumb-m) !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }

  /* Ẩn mũi tên – dùng vuốt */
  .brxe-product-gallery.thumbnail-slider .brx-product-gallery-thumbnail-slider .flex-direction-nav {
    display: none !important;
  }





  /* ---------- Bo góc ảnh chính + thumbnail ---------- */
}



.brxe-product-gallery.thumbnail-slider {
  --gallery-radius: 13px;
}

/* Ảnh chính: bo cả khung trượt để góc không bị vuông khi đang chuyển ảnh */
.brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery .flex-viewport,
.brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery .woocommerce-product-gallery__image,
.brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  border-radius: var(--gallery-radius);
}

.brxe-product-gallery.thumbnail-slider > .woocommerce-product-gallery .woocommerce-product-gallery__image {
  overflow: hidden; /* cắt cả ảnh zoom khi rê chuột */
}

/* Thumbnail */
.brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider .woocommerce-product-gallery__image,
.brxe-product-gallery.thumbnail-slider > .brx-product-gallery-thumbnail-slider .woocommerce-product-gallery__image img {
  border-radius: var(--gallery-radius);
  overflow: hidden;
}

@media (max-width: 991px) {
  .brxe-product-gallery.thumbnail-slider {
    --gallery-radius: 14px; /* thumbnail mobile nhỏ (72px), bo ít hơn cho cân */
  }
}

@media (max-width: 768px) {
  #mega-menu-wrap-max_mega_menu_1 {
    width: max-content !important;
  }
  #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle .mega-toggle-blocks-right {
    justify-content: start;
  }
}


.single-product #gom-all-in-one {
	bottom: 85px;
}


@media (max-width: 767px) {
    .filter-group .brxe-shortcode {
        flex: unset !important;
        min-width: 100px !important;
    }
	
		.filter-group .facetwp-dropdown, .filter-group .facetwp-type-sort select {
			padding: 0 20px 0 10px !important;

	}
	
	.filter-group .facetwp-dropdown, .filter-group .facetwp-type-sort select {
    font-size: 12px !important;
}
}