/*
Theme Name: Flastsome Child
Theme URI: https://example.com/
Description: Child theme for the Flatsome theme
Author: Your Name
Author URI: https://example.com/
Template: flatsome
Version: 1.0.0
*/
/* Khung sản phẩm */
.product-small.box {
    border: 1px solid #ddd; 
    border-radius: 8px; 
    padding: 10px;
    text-align: center; 
    transition: all 0.3s ease;
    background: var(--color-white); 
}

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

.product-small.box .box-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* căn giữa ảnh */
    object-fit: contain; /* ảnh không bị méo */
}

/* Tiêu đề sản phẩm */
.product-small.box .product-title a {
    font-size: 14px;
	text-transform: uppercase;
	text-align: left;
    color: var(--color-black);
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 2.8em; 
    margin-top: 10px;
    transition: color 0.3s ease;
}

.product-small.box .product-title a:hover {
    color: var(--Crimson-Red); 
}

/* Giá sản phẩm */
.product-small.box .price-wrapper {
    margin-top: 5px;
	text-align: center;
    font-size: 14px;
}

/* Ẩn giá gốc (giảm giá) */
.product-small.box .price del {
    display: none !important;
}

/* Chữ "Liên hệ" màu đỏ */
.product-small.box .price ins {
    font-size: 17px;
}

.badge-circle {
	display: none; !important;
}

/* CSS cho phần blog post class phaply */
.phaply .post-item {
  margin-bottom: 20px;
}

.phaply .box {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phaply .box:hover {
  transform: translateY(-6px); /* Nổi lên khi hover */
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Ảnh */
.phaply .box-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;   /* Giữ tỷ lệ */
}

/* Tiêu đề */
.phaply .post-title a {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* Giới hạn 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
  min-height: 48px;  
}

.phaply .post-title a:hover {
  color: var(--Crimson-Red); /* Vàng khi hover */
}

/* Thanh ngăn */
.phaply .is-divider {
  width: 50px;
  height: 3px;
  background: var(--Crimson-Red);
  margin: 10px auto;
  border-radius: 3px;
}

/* Đoạn trích */
.phaply .from_the_blog_excerpt {
  font-size: 15px;
  color: var(--color-black);
  line-height: 1.6;
  padding: 0 12px 15px;
}
.custom-product-address {
	display: -webkit-box;
  -webkit-line-clamp: 1; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-box {
  display: flex;
  flex-direction: row;   /* ngang */
  gap: 12px;             /* khoảng cách giữa 2 nút */
  flex-wrap: wrap;       /* nếu màn hình nhỏ thì tự xuống hàng */
}

/* style chung cho cả 2 nút */
.contact-button, .number-button {   
    padding: 10px 21px;
    margin-right: 139px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    background-color: #004a8f !important;
    min-width: 160px;
    text-align: center;
}
.product-title.product_title{
	font-size: 26px;
}
/* Responsive: 3 cột trên desktop, 2 cột tablet, 1 cột mobile */
@media (min-width: 1025px) {
  .phaply .large-columns-3 .col {
    width: 33.333%;
    float: left;
    padding: 10px;
  }
}
.product-short-description{
	margin-top:25px;
}
.social-icons {
	font-size: 1.2em;
	margin: 23px 0 23px 0;
}
@media (max-width: 1024px) and (min-width: 768px) {
  .phaply .medium-columns-1 .col {
    width: 50%;
    float: left;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .phaply .small-columns-1 .col {
    width: 100%;
    padding: 10px 0;
  }
	
  .product-small.box .product-title a {
	  font-size: 13px;
    display: -webkit-box;          
    -webkit-box-orient: vertical;  
    -webkit-line-clamp: 3;         
    text-overflow: ellipsis;
  }
	
  .custom-product-address {
	-webkit-line-clamp: 2;
  }
	
  .custom-product-bottom {
	white-space: normal;
    word-wrap: break-word; 
    overflow-wrap: break-word;		
  }
	
	.amount {
		font-size: 13px;
	}
}

.call-box {
  display: flex !important;
  align-items: center !important;
  line-height: unset !important;
/*   padding: 10px 15px; */
  border-radius: 8px;
  color: var(--color-black);
  max-width: 220px;
}

.call-icon {
/*   width: 50px;
  height: 50px;
  background-color: var(--color-white); */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}
.call-icon i {
  animation: ring 1s infinite ease-in-out; 
}
@keyframes ring {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}
.call-icon i {
  font-size: 24px;
  color: var(--Crimson-Red); 
}

.call-info {
  display: flex;
  flex-direction: column;
}

.call-text {
  font-size: 14px;
  margin: 0;
  color: var(--Crimson-Red);
}

.call-number {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: var(--Crimson-Red);
}

.an {
	margin-top: -50px;
}

@media (max-width: 768px) {
	.header-block {
		margin: 10px !important;
	}
	.searchform-wrapper {
    	width: 100% !important;
	}
	
	.row .row-small:not(.row-collapse) {
		margin-left: -20px !important;
	}
}

/* Nút Liên hệ */
.btn-lienhe {
    display: inline-block;
    padding: 8px 20px;
    background: var(--Crimson-Red);
    color: var(--color-white);
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s;
}
.btn-lienhe:hover {
    background: var(--Crimson-Red);
	color: var(--color-white);
}

/* Nút Mua hàng */
.btn-muahang {
    display: inline-block;
    padding: 8px 20px;
    background: var(--Bright-Yellow);
    color: var(--color-white);
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s;
}
.btn-muahang:hover {
    background: var(--Bright-Yellow);
	color: var(--color-white);
}

/* Container nút */
.product-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
	justify-content: center;
}

/* Chỉ áp dụng khi ở trang archive danh mục sản phẩm */
@media (max-width: 768px) {
	body.tax-product_cat .product-small.box {
    	width: 185px;
	}
}

.dt-social-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

.dt-social-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--color-white);
  padding: 5px;
  transition: transform 0.3s;
}

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

/* Mobile: vẫn 1 hàng nhưng icon nhỏ lại */
@media (max-width: 480px) {
  .dt-social-icon img {
    width: 35px;
    height: 35px;
  }
}

.ht-form-wrapper {
    width: 100%;
}

.ht-form-title {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: bold;
}

/* Hàng chứa Họ tên – Số ĐT – Nút */
.ht-form-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Họ tên & Số điện thoại */
.ht-form-field {
    flex: 1;
}

/* Trường input */
.ht-form-field input {
    width: 100%;
    border-radius: 50px !important;
    border: 2px solid var(--Bright-Yellow) !important;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.ht-form-field textarea {
	width: 100%;
    padding: 14px 18px;
	height: 80px;
    border: 2px solid var(--Bright-Yellow) !important;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

/* Nút gửi */
.ht-form-submit input[type="submit"] {
	padding: 5px 20px;
    background: var(--Bright-Yellow);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.ht-form-submit {
    text-align: center;
    width: 100%;
}

.ht-form-submit input[type="submit"] {
    margin: 0 auto;
    display: block;
}

@media (max-width: 767px) {
    .ht-form-row {
        flex-direction: column;
    }

    /* Cho textarea nhảy lên trước nút */
    .ht-form-textarea {
        order: 2;
    }

    .ht-form-submit {
        order: 3;
        width: 100%;
    }

    .ht-form-submit input[type="submit"] {
        width: 100%;
    }
}

.an {
	margin-top: -50px;
}