/* ===========================================================
   Custom Tabs + Woo Variations + Product Cards (Flatsome)
   Author: HUrra
   Note: Mobile chia 2 cột cho nav-simple; Variations chọn màu xanh lá
   =========================================================== */

/* Tabs kiểu Simple: PC giữ nguyên, Mobile chia 2 cột */

/* 1) Style cơ bản cho tablist */
[role="tablist"].nav-simple li.tab a {
  display: inline-block;
  border: 2px solid #28a745;
  background-color: #28a745;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  margin-right: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

[role="tablist"].nav-simple li.tab.active a,
[role="tablist"].nav-simple li.tab a:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
  color: #fff;
}

[role="tablist"].nav-simple {
  border-bottom: none;
}

/* 3) Mobile: chia 2 cột đều nhau */
@media (max-width: 768px) {
  [role="tablist"].nav-simple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
  }

  [role="tablist"].nav-simple li.tab { margin: 0; }
  [role="tablist"].nav-simple li.tab a { margin: 0; }
}




/* =====================================
   Tabs + Product grid/cards (Flatsome)
   ===================================== */

.product-tabs-wrapper {
  margin: 40px 0;
  font-family: Arial, sans-serif;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.category-title {
  font-size: 22px;
  color: #0d47a1;
  font-weight: bold;
  margin: 0;
}

.tab-titles {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tab-titles li {
  cursor: pointer;
  font-weight: bold;
  padding: 6px 14px;
  background: #f0f0f0;
  border-radius: 6px;
  transition: 0.3s;
  font-size: 14px;
}

.tab-titles li:hover { background: #ddd; }

.tab-titles li.active {
  background: #0073aa;
  color: white;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.product-grid { display: grid; gap: 20px; }
.product-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }
.product-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }

.product-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.product-item:hover { transform: translateY(-4px); }

/* Ảnh sản phẩm */
.product-thumb { position: relative; overflow: hidden; }

.product-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Nút giữa ảnh */
.btn-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #ec7439;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  opacity: 0;
  transition: 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.product-item:hover .btn-overlay {
  opacity: 1;
  pointer-events: auto;
}

.product-info { padding: 10px 14px; }

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  min-height: 38px;
}

.product-title a { color: #333; text-decoration: none; }
.product-title a:hover { color: #0073aa; text-decoration: underline; }

.product-price {
  font-size: 16px;
  color: #e53935;
  font-weight: bold;
}

@media (max-width: 768px) {
  .tab-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tab-titles { justify-content: flex-start; flex-wrap: wrap; }
  .product-grid.columns-5 { grid-template-columns: repeat(2, 1fr); }
}

/* Khối sản phẩm trong product-tabs-wrapper */
.product-tabs-wrapper .product-item {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.product-tabs-wrapper .product-thumb { flex-shrink: 0; }

.product-tabs-wrapper .product-info {
  padding: 12px 14px;
  flex: 1;
  background: #fff;
  transition: background 0.25s ease;
}

/* Hover: đổi nền phần info thành xanh */
.product-tabs-wrapper .product-item:hover .product-info { background: #5cb617; }

/* Tên sản phẩm khi hover: trắng, đậm, gạch chân */
.product-tabs-wrapper .product-item:hover .product-title a {
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Giá giữ nguyên màu/gạch ngang mặc định */
.product-tabs-wrapper .product-price del {
  color: #9aa0a6;
  text-decoration-color: #000;
}

/* Khi hover vào sản phẩm: đổi toàn bộ giá thành trắng */
.product-tabs-wrapper .product-item:hover .product-price,
.product-tabs-wrapper .product-item:hover .product-price *,
.product-tabs-wrapper .product-item:hover .product-price del,
.product-tabs-wrapper .product-item:hover .product-price ins {
  color: #fff !important;
}

/* Hover: giá sale trắng đậm */
.product-tabs-wrapper .product-item:hover .product-price ins .woocommerce-Price-amount.amount,
.product-small.box:hover .box-text .price ins .woocommerce-Price-amount.amount {
  color: #fff !important;
  font-weight: 700;
}

/* Hover: giá gốc trắng mờ */
.product-tabs-wrapper .product-item:hover .product-price del .woocommerce-Price-amount.amount,
.product-small.box:hover .box-text .price del .woocommerce-Price-amount.amount {
  color: rgba(255,255,255,0.7) !important;
  text-decoration-color: rgba(255,255,255,0.7) !important;
}

/* Giá bình thường không giảm (hover) */
.product-tabs-wrapper .product-item:hover .product-price > .woocommerce-Price-amount.amount,
.product-small.box:hover .box-text .price > .woocommerce-Price-amount.amount {
  color: #fff !important;
  text-decoration-color: rgba(255,255,255,0.7) !important;
}

/* Box mặc định của Flatsome (product-small box) */
.product-small.box .box-text {
  background: #fff;
  transition: background 0.25s ease;
  padding: 12px;
}
.product-small.box:hover .box-text { background: #5cb617; }

.product-small.box:hover .box-text .product-title a {
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Khi hover: ký hiệu tiền tệ màu trắng */
.product-small.box:hover .box-text .price .woocommerce-Price-currencySymbol {
  color: #fff !important;
}

/* Gallery: vùng zoom panel nếu bạn dùng JS bổ sung */
.woocommerce-product-gallery { position: relative; }
.hurra-zoom-panel {
  position: absolute;
  top: 0; left: 100%;
  margin-left: 20px;
  width: 380px; height: 380px;
}



/* ===========================================================
   Custom Tabs + Woo Variations + Product Cards (Flatsome)
   Author: HUrra
   Note: Mobile chia 2 cột cho nav-simple; Variations chọn màu xanh lá
   =========================================================== */

/* Tabs kiểu Simple: PC giữ nguyên, Mobile chia 2 cột */

/* 1) Style cơ bản cho tablist */
[role="tablist"].nav-simple li.tab a {
  display: inline-block;
  border: 2px solid #28a745;
  background-color: #28a745;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  margin-right: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

[role="tablist"].nav-simple li.tab.active a,
[role="tablist"].nav-simple li.tab a:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
  color: #fff;
}

[role="tablist"].nav-simple {
  border-bottom: none;
}

/* 3) Mobile: chia 2 cột đều nhau */
@media (max-width: 768px) {
  [role="tablist"].nav-simple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
  }

  [role="tablist"].nav-simple li.tab { margin: 0; }
  [role="tablist"].nav-simple li.tab a { margin: 0; }
}


/* =====================================
   Tabs + Product grid/cards (Flatsome)
   ===================================== */

.product-tabs-wrapper {
  margin: 40px 0;
  font-family: Arial, sans-serif;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.category-title {
  font-size: 22px;
  color: #0d47a1;
  font-weight: bold;
  margin: 0;
}

.tab-titles {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tab-titles li {
  cursor: pointer;
  font-weight: bold;
  padding: 6px 14px;
  background: #f0f0f0;
  border-radius: 6px;
  transition: 0.3s;
  font-size: 14px;
}

.tab-titles li:hover { background: #ddd; }

.tab-titles li.active {
  background: #0073aa;
  color: white;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.product-grid { display: grid; gap: 20px; }
.product-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }
.product-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }

.product-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.product-item:hover { transform: translateY(-4px); }

/* Ảnh sản phẩm */
.product-thumb { position: relative; overflow: hidden; }

.product-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Nút giữa ảnh */
.btn-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #ec7439;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  opacity: 0;
  transition: 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.product-item:hover .btn-overlay {
  opacity: 1;
  pointer-events: auto;
}

.product-info { padding: 10px 14px; }

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  min-height: 38px;
}

.product-title a { color: #333; text-decoration: none; }
.product-title a:hover { color: #0073aa; text-decoration: underline; }

.product-price {
  font-size: 16px;
  color: #e53935;
  font-weight: bold;
}

@media (max-width: 768px) {
  .tab-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tab-titles { justify-content: flex-start; flex-wrap: wrap; }
  .product-grid.columns-5 { grid-template-columns: repeat(2, 1fr); }
}

/* Khối sản phẩm trong product-tabs-wrapper */
.product-tabs-wrapper .product-item {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.product-tabs-wrapper .product-thumb { flex-shrink: 0; }

.product-tabs-wrapper .product-info {
  padding: 12px 14px;
  flex: 1;
  background: #fff;
  transition: background 0.25s ease;
}

/* Hover: đổi nền phần info thành xanh */
.product-tabs-wrapper .product-item:hover .product-info { background: #5cb617; }

/* Tên sản phẩm khi hover: trắng, đậm, gạch chân */
.product-tabs-wrapper .product-item:hover .product-title a {
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Giá giữ nguyên màu/gạch ngang mặc định */
.product-tabs-wrapper .product-price del {
  color: #9aa0a6;
  text-decoration-color: #000;
}

/* Khi hover vào sản phẩm: đổi toàn bộ giá thành trắng */
.product-tabs-wrapper .product-item:hover .product-price,
.product-tabs-wrapper .product-item:hover .product-price *,
.product-tabs-wrapper .product-item:hover .product-price del,
.product-tabs-wrapper .product-item:hover .product-price ins {
  color: #fff !important;
}

/* Hover: giá sale trắng đậm */
.product-tabs-wrapper .product-item:hover .product-price ins .woocommerce-Price-amount.amount,
.product-small.box:hover .box-text .price ins .woocommerce-Price-amount.amount {
  color: #fff !important;
  font-weight: 700;
}

/* Hover: giá gốc trắng mờ */
.product-tabs-wrapper .product-item:hover .product-price del .woocommerce-Price-amount.amount,
.product-small.box:hover .box-text .price del .woocommerce-Price-amount.amount {
  color: rgba(255,255,255,0.7) !important;
  text-decoration-color: rgba(255,255,255,0.7) !important;
}

/* Giá bình thường không giảm (hover) */
.product-tabs-wrapper .product-item:hover .product-price > .woocommerce-Price-amount.amount,
.product-small.box:hover .box-text .price > .woocommerce-Price-amount.amount {
  color: #fff !important;
  text-decoration-color: rgba(255,255,255,0.7) !important;
}

/* Box mặc định của Flatsome (product-small box) */
.product-small.box .box-text {
  background: #fff;
  transition: background 0.25s ease;
  padding: 12px;
}
.product-small.box:hover .box-text { background: #5cb617; }

.product-small.box:hover .box-text .product-title a {
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Khi hover: ký hiệu tiền tệ màu trắng */
.product-small.box:hover .box-text .price .woocommerce-Price-currencySymbol {
  color: #fff !important;
}

/* Gallery: vùng zoom panel nếu bạn dùng JS bổ sung */
.woocommerce-product-gallery { position: relative; }
.hurra-zoom-panel {
  position: absolute;
  top: 0; left: 100%;
  margin-left: 20px;
  width: 380px; height: 380px;
}


.variations label {
  display: none !important;
}