/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* Tiêu đề bên trái - căn giữa chiều cao */
.sp h4 {
  position: absolute;
  top: 5px;
  height: 38px; /* Cùng chiều cao với tab */
  font-size: 25px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  color: #008df2;
}

/* Dãy tab bên phải */
.sp .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Từng tab */
.sp .tab {
  border: 2px solid #008df2;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  line-height: 22px;
  transition: background-color 0.3s;
  height: 38px; /* Chiều cao cố định */
  display: flex;
  align-items: center;
}

/* Hover + Active */
.sp .tab:hover {
  background-color: #008df2;
}

.sp .tab a {
  color: #0066ff;
}

.sp .tab.active {
  background-color: #008df2;
  font-weight: 600;
  color: white;
}

.sp .tab.active a {
  color: white;
}

@media (max-width: 820px) {
  .sp {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    gap: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
	justify-content: flex-start;
  }

  .sp .nav::-webkit-scrollbar {
    display: none; /* Ẩn thanh cuộn */
  }

  .sp .tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 1024px) {
  .sp h4 {
    font-size: 20px; /* Hoặc kích thước phù hợp bạn muốn */
  }
}

.product-small.box {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.product-small.box:hover {
  box-shadow: 0 10px 30px rgba(0, 143, 229, 0.3);
  border-color: transparent;
}

/* Hình ảnh */
.box-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.product-small.box:hover .box-image img {
  transform: scale(1.05);
}

/* Tiêu đề sản phẩm */
.woocommerce-loop-product__title {
  padding: 10px;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 500;
}
.woocommerce-loop-product__title,
.product-small .product-title a {
  color: black !important;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Chỉ cho hiển thị tối đa 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3em; /* Đảm bảo đủ chiều cao cho 2 dòng (tùy vào line-height/font-size) */
}

.woocommerce-loop-product__title,
.product-small .product-title a:hover {
  color: #008df2 !important;
}

/* Giá */
.price,
.woocommerce-Price-amount {
  color: #008df2 !important;
  font-weight: 500;
  font-size: 20px;
}

/* Khối chứa nút */
.custom-buttons-style2 {
  margin-top: 15px;
  text-align: center;
}

/* Nút Mua Ngay */
.btn-outline-gold {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  color: #fff;
  border-color: #008df2;
  border-radius: 5px;
  background-color: #008df2;
  text-decoration: none;
  transition: all 0.3s ease;
}


@media (max-width: 768px) {
   .btn-outline-gold {
     padding: 10px 15px;
   }
	
   .product-small .product-title a {
     font-size: 14px;
   }
}

.box-blog-post {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.box-blog-post .box-text {
  padding: 15px 20px;
}

.box-blog-post .post-title a {
  color: #333333;
  text-decoration: none;
}

.box-blog-post .post-title a:hover {
  color: #008df2;
}

.box-blog-post .post-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf7-custom-email-form .cf7-email-wrapper {
  position: relative;
  border-bottom: 1px solid #000;
  display: flex;
  align-items: center;
  height: 50px;
  margin: auto;
  box-sizing: border-box;
  overflow: visible; /* đảm bảo icon không bị cắt */
}

.cf7-custom-email-form {
	justify-self: left;
}

.cf7-custom-email-form .cf7-email-wrapper input[type="email"] {
  width: 100%;
  background: transparent;
  border: none; /* xóa viền mặc định */
  color: inherit;
  font-size: 16px;
  outline: none;
  box-shadow: none; /* xóa hiệu ứng nổi */
  padding: 0;
  margin: 0;
  height: 100%; /* đảm bảo vừa với khung */
  box-sizing: border-box;
}

.cf7-custom-email-form .cf7-email-wrapper input::placeholder {
  color: currentColor;
  opacity: 0.6;
}

.cf7-custom-email-form .cf7-submit-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  font-size: 0px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}

.cf7-custom-email-form .cf7-submit-icon svg {
  stroke: rgb(0 141 242);;
  display: block;
}

.social-icons-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 20px 0;
}

.social-icons-wrapper a:hover {
	color: white !important;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: #008df2;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.zalo-icon {
  width: 25px;
  height: 25px;
}

.custom-payment-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
}

.custom-payment-icons img {
  height: 32px;
  object-fit: contain;
  display: inline-block;
}

.fixed-contact-icons {
    position: fixed;
    bottom: 100px;
    right: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

.fixed-contact-icons a {
    text-decoration: none;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Messenger icon */
.fixed-contact-icons .messenger-icon i {
    font-size: 30px;
    color: #007aff;
}

.fixed-contact-icons .messenger-icon:hover {
    background-color: #007aff;
}

.fixed-contact-icons .messenger-icon:hover i {
    color: #fff;
}

/* Zalo text */
.fixed-contact-icons .zalo-text {
    font-weight: bold;
    font-size: 16px;
    color: #007aff;
    transition: background 0.3s ease, color 0.3s ease;
}

.fixed-contact-icons .zalo-text:hover {
    background-color: #007aff;
    color: #fff;
}

/* Phone icon */
.fixed-contact-icons .phone-icon i {
    font-size: 30px;
    color: #25d366;
}

.fixed-contact-icons .phone-icon:hover {
    background-color: #25d366;
}

.fixed-contact-icons .phone-icon:hover i {
    color: #fff;
}

/* Separator */
.fixed-contact-icons hr {
    width: 60%;
    border: 0.5px solid #ddd;
    margin: 5px 0;
}

.logo {
  width: auto;
  height: auto;
}

.mrvp-container {
  border-radius: 8px;
  padding: 10px;
  background-color: #fff;
}

.mrvp-title {
  color: #008df2;
}

.nav-pagination>li>.current {
	background-color: #008df2 !important;
    border-color: #008df2 !important;
    color: #fff;
}

ul.links li a {
    color: #008df2 !important;
}