@charset "UTF-8";
.searchform .flex-row .flex-col .ux-search-submit {
  background-color: #81d742 !important;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  padding: 7px 20px;
}
.searchform .flex-row .flex-col .ux-search-submit:hover {
  background-color: #53af12;
}
.searchform .flex-row .flex-col input[type="search"] {
  height: 47px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border: 1px solid #81d742;
  color: #81d742;
  box-shadow: none !important;
  outline: none;
}
.searchform .flex-row .flex-col input[type="search"]::placeholder {
  color: #81d742;
}
body.search .sidebar {
  display: none !important;
}
body.search .large-3 {
  display: none !important;
}
body.search .page-right-sidebar .content-area {
  width: 100% !important;
}
body.search h3.widget-title {
  display: none !important;
}
body.search .widget {
  display: none !important;
}
body.search .page-title {
  margin: 0 73px;
  padding-left: 15px;
}
body.search h4.uppercase, body.search hr {
  display: none !important;
}
/* ===== CUSTOM PRODUCT ITEM STYLE ===== */
.custom-product-item {
  list-style: none;
  padding: 10px;
  box-sizing: border-box;
}
.custom-product-wrapper {
  border: 1px solid #e0e0e0;
  padding: 15px;
  border-radius: 10px;
  background-color: #fafff5;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.custom-product-wrapper:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.custom-product-image img {
  max-width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  height: auto;
}
.custom-product-wrapper:hover .custom-product-image img {
  transform: scale(1.05);
}
.custom-sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5252;
  color: white;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 2;
}
.custom-product-title {
  font-size: 18px;
  margin-top: 12px;
  color: #81d742;
  font-weight: 600;
  line-height: 1.3;
}
.custom-product-price {
  display: block;
  font-size: 16px;
  color: #333;
  margin: 10px 0;
}
.custom-product-cart a.button {
  background: #81d742;
  color: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
  margin-right: 0px;
  transition: background 0.3s ease;
  text-transform: uppercase;
  font-size: 13px;
}
.custom-product-cart a.button:hover {
  background: #6cbf36;
}
/* ===== RESPONSIVE FIX ===== */
@media (max-width: 767px) {
  .custom-product-wrapper {
    padding: 12px;
  }
  .custom-product-title {
    font-size: 16px;
  }
  .custom-product-cart a.button {
    font-size: 12px;
    padding: 6px 12px;
  }
}
/* ===== PRODUCT GRID GAP FIX ===== */
.woocommerce ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.woocommerce ul.products li.product {
  margin: 0 !important;
  flex: 1 1 calc(25% - 20px);
  /* 4 cột */
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .woocommerce ul.products li.product {
    flex: 1 1 calc(33.33% - 20px);
    /* 3 cột */
  }
}
@media (max-width: 767px) {
  .woocommerce ul.products li.product {
    flex: 1 1 calc(50% - 20px);
    /* 2 cột */
  }
}
@media (max-width: 480px) {
  .woocommerce ul.products li.product {
    flex: 1 1 100%;
    /* 1 cột */
  }
}
/* ===== CĂN GIỮA DANH SÁCH SẢN PHẨM ===== */
.woocommerce ul.products {
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  /* bạn có thể điều chỉnh theo mong muốn */
}
/* Áp dụng flex + căn giữa cho khối bao ngoài (row của Flatsome) */
.woocommerce .row.large-columns-4, .woocommerce .row.large-columns-3, .woocommerce .row.large-columns-2 {
  justify-content: center !important;
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
}
/* Bắt từng sản phẩm co giãn hợp lý */
.woocommerce ul.products li.product {
  flex: 1 1 250px;
  max-width: 300px;
  box-sizing: border-box;
}
/* FLATSOME: Căn giữa danh sách sản phẩm */
.row.equalize-box.large-columns-4, .row.equalize-box.large-columns-3, .row.equalize-box.large-columns-2, .row.row-large {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding-left: 0;
  margin-left: auto;
  margin-right: auto;
}
/* Các item sản phẩm */
.row .product {
  flex: 1 1 250px;
  max-width: 300px;
  box-sizing: border-box;
  margin: 0;
  /* bỏ margin nếu có */
}
.custom-single-product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}
.custom-product-gallery img {
  border-radius: 12px;
  max-width: 100%;
}
.custom-product-summary h1.product_title {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}
.custom-product-summary .price {
  font-size: 22px;
  color: #81d742;
  margin-bottom: 10px;
}
.custom-product-summary .woocommerce-product-details__short-description {
  margin-bottom: 20px;
  color: #555;
}
.custom-product-icons {
  margin-top: 30px;
  font-size: 14px;
  color: #444;
}
.custom-product-icons i {
  color: #81d742;
  margin-right: 6px;
}
/* Responsive */
@media (max-width: 768px) {
  .custom-single-product-container {
    grid-template-columns: 1fr;
  }
}
/* Tiêu đề sản phẩm */
.single-product h1.product_title {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  position: relative;
}
.single-product div.is-divider {
  display: none;
}
/* Gạch ngang mảnh phía dưới */
.single-product h1.product_title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #81d742;
  margin-top: 8px;
}
/* Metadata: danh mục và tag */
.single-product .product_meta {
  margin-top: 15px;
  border-top: 1px dashed #ddd;
  padding-top: 12px;
  font-size: 14px;
  color: #555;
}
/* Label ví dụ "Danh mục:" */
.single-product .product_meta > span {
  display: block;
  margin-bottom: 5px;
  line-height: 1.6;
}
/* Link danh mục / tag */
.single-product .product_meta a {
  color: #81d742;
  text-decoration: none;
  transition: 0.3s ease;
}
.single-product .product_meta a:hover {
  text-decoration: underline;
}
/* Thêm icon FontAwesome cho label */
.single-product .product_meta .posted_in::before {
  content: "";
  /* icon folder */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #81d742;
}
.single-product .product_meta .tagged_as::before {
  content: "";
  /* icon tag */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #81d742;
}
.custom-button-best-seller {
  background-color: #81d742;
}
.custom-button-best-seller:hover {
  background: #6cbf36;
}
.hover-scale-product {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}
.hover-scale-product:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  z-index: 5;
  position: relative;
}
.hot-product-heading {
  display: flex;
  align-items: center;
  position: relative;
  margin: 40px 0;
}
.hot-product-heading .label {
  background-color: #81d742;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  position: relative;
  z-index: 1;
}
.hot-product-heading .label::after {
  content: "";
  position: absolute;
  right: -15px;
  top: -7px;
  width: 0;
  height: 0;
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  border-left: 15px solid #81d742;
  z-index: -1;
}
.hot-product-heading .line {
  flex-grow: 1;
  height: 3px;
  background-color: #81d742;
  margin-left: 10px;
  border-radius: 3px;
}
.green-button:before, .green-button span {
  color: #81d742 !important;
}
.border-curve-4px .box-text {
  border-radius: 4px;
}
.green-back-ground-button {
  display: inline-block;
  border-radius: 4px;
  background-color: #81d742;
}
/* Contact From */
/* ----- LABEL ----- */
.my-contact-form label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #81d742;
  /* Màu xanh lá non */
}
/* ----- INPUT & TEXTAREA ----- */
.my-contact-form input[type="text"], .my-contact-form input[type="email"], .my-contact-form input[type="tel"], .my-contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 2px solid #81d742;
  border-radius: 6px;
  background-color: #fff;
  color: #81d742;
  font-size: 15px;
}
/* ----- PLACEHOLDER ----- */
.my-contact-form ::placeholder {
  color: rgba(129, 215, 66, 0.7);
}
/* ----- FOCUS ----- */
.my-contact-form input:focus, .my-contact-form textarea:focus {
  border-color: #81d742;
  outline: none;
  box-shadow: 0 0 5px rgba(129, 215, 66, 0.3);
}
/* ----- SUBMIT BUTTON ----- */
.my-contact-form input[type="submit"] {
  background-color: #81d742;
  color: white;
  border: 4px solid #81d742;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
/* ----- HOVER BUTTON ----- */
.my-contact-form input[type="submit"]:hover {
  background-color: #ffffff;
  color: #81d742;
}
/*--------FOOTER-BAR-------*/
/* Wrapper để căn giữa toàn bộ */
.info-bar-wrapper {
  background-color: #008651;
  /* xanh lá đậm */
  padding: 12px 0;
}
.info-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1140px;
  margin: 0 auto;
  gap: 0;
  /* không cần khoảng cách thêm */
}
/* Mỗi item */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 270px;
  flex: 1 1 270px;
  padding: 0 15px;
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}
/* Xóa border cho item cuối */
.info-item:last-child {
  border-right: none;
}
.info-item i {
  font-size: 20px;
  color: white;
}
.info-item strong {
  font-weight: 700;
  display: block;
}
.info-item span {
  font-size: 13px;
  display: block;
}
.hotline .phone {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}
.hotline small {
  font-size: 12px;
  color: #f1f1f1;
}
/* Responsive xuống dòng và căn giữa */
@media (max-width: 768px) {
  .info-bar {
    justify-content: center;
  }
  .info-item {
    border-right: none;
    margin-bottom: 15px;
    justify-content: flex-start;
  }
}
/* Căn giữa toàn bộ cụm số lượng + nút */
.single-product form.cart div.sticky-add-to-cart-wrapper div.sticky-add-to-cart {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  max-width: 300px;
}
/* Nút MUA NGAY */
.single-product form.cart button.single_add_to_cart_button {
  background-color: #81d742 !important;
  color: white !important;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 0;
}
.single-product form.cart button.single_add_to_cart_button:hover {
  background-color: #6ab130 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Số lượng sản phẩm - giữ khối ổn định */
.single-product .quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  height: 42px;
}
.single-product .quantity input.qty {
  border: none;
  width: 50px;
  text-align: center;
  font-size: 16px;
  padding: 0 8px;
}
.single-product .quantity .minus, .single-product .quantity .plus {
  background-color: #f7f7f7;
  border: none;
  padding: 0 14px;
  font-size: 20px;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.single-product .quantity .minus:hover, .single-product .quantity .plus:hover {
  background-color: #81d742;
  color: white;
}
/*CSS Giở Hàng*/
/* Tổng thể popup */
.widget_shopping_cart_content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
/* Tên sản phẩm */
.woocommerce-mini-cart-item__title {
  font-weight: bold;
  color: #222;
  font-size: 16px;
}
/* Giá tiền */
.woocommerce-Price-amount {
  color: #81d742;
  font-weight: bold;
}
/* Nút xoá (X) */
.widget_shopping_cart_content .remove {
  color: #aaa;
}
.widget_shopping_cart_content .remove:hover {
  color: #e74c3c;
}
/* Tổng phụ */
.woocommerce-mini-cart__total strong, .woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-size: 18px;
  color: #000;
}
/* Nút Xem giỏ hàng và Thanh toán */
.woocommerce-mini-cart__buttons .button {
  display: block;
  margin-top: 10px;
  text-align: center;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
}
.woocommerce-mini-cart__buttons .button.wc-forward {
  background-color: #2c3e50;
  color: white;
}
.woocommerce-mini-cart__buttons .button.checkout {
  background-color: #81d742;
  color: white;
}
.woocommerce-mini-cart__buttons .button:hover {
  opacity: 0.9;
}
/* Khối sản phẩm bao ngoài */
.custom-product-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.custom-product-card {
  background: #f9fdf5;
  border-radius: 12px;
  overflow: hidden;
  padding: 15px;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
/* Khi hover vào khối sản phẩm */
.custom-product-item:hover {
  transform: translateY(-8px);
}
.custom-product-item:hover .custom-product-card {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  background-color: #ffffff;
}
.custom-product-card .product-thumb img {
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
}
/* Ảnh sản phẩm phóng nhẹ */
.product-thumb img {
  transition: transform 0.4s ease;
  width: 100%;
  height: auto;
  display: block;
}
.custom-product-item:hover .product-thumb img {
  transform: scale(1.05);
}
.product-sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f39c12;
  color: white;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 4px;
}
.product-title {
  font-size: 18px;
  margin: 12px 0 6px;
  font-weight: bold;
  color: #2d2d2d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 48px;
}
.product-price {
  color: #e74c3c;
  font-size: 12px;
  margin-bottom: 10px;
}
.product-price .woocommerce-Price-amount {
  color: #e74c3c;
  font-size: 16px;
}
.product-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.product-actions form {
  display: flex;
  margin: 0;
  justify-content: center;
  align-items: center;
}
.product-actions .btn-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #555;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}
.product-actions .btn-icon:hover {
  background: #81d742;
  color: #fff;
}
.product-actions .btn-buy {
  flex: 1;
  background: #81d742;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0px 12px;
  font-weight: bold;
  cursor: pointer;
  margin: 0;
  height: 38px;
  font-size: 12px;
}
.product-actions .btn-buy:hover {
  background: #6dbf36;
}
