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

/*************** ADD CUSTOM CSS HERE.   ***************/

/* product-detail */
ul.tabs.wc-tabs li a {
  display: inline-block;
  max-width: 10ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* custom product-tabs */
.product-title{
	color: #011f6a;
}

ul.tabs.wc-tabs.product-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
   border-bottom: 2px solid #ccc;
  scrollbar-width: auto;
  overflow-y: hidden; /* Ẩn thanh cuộn dọc */
}
ul.tabs.wc-tabs.product-tabs a{
	color: #011f6a;
}

.myedit-product-detail-left{ /* border ben trai cuar khuyen mai */
	border-left:3px dashed #e9e9e9;
}

.myedit-product-detail-left .col{ /* Thay doi lai padding */
	padding: 0 0 15px 0p;
}
.myedit-product-detail-left p {
  padding-bottom: 0 !important;
  margin-bottom: 6px; /* có thể chỉnh nhỏ lại thay vì bị đè quá sát */
}

/* product card */
.vinfast-product-card a:hover {
    text-decoration: underline;
}

.vinfast-product-card .price ins {
    text-decoration: none !important;
}
.product-name{
	color:#011f6a;
	font-size:18px !important;
	font-weight:bold;
}

body.post-type-archive-product .box-image,
body.woocommerce .box-image {
  padding: 10px !important;
}
/* product page */
.woocommerce ul.products.columns-4 li.product {
    margin-bottom: 20px !important;
    padding: 0 10px;
}
.products .product {
  padding: 10px; /* chỉnh khoảng cách theo chiều dọc */ 
}

/* Home button primary contact */
a.button.primary.lowercase {
  margin:0;
}

/* Blog Page */
.ux-search-submit{
	background-color: #011a6f !important;
}

/* Home page  */
.section-title-normal span{
	margin:0;
}

/* Blog title */
.post-title a{
	display: -webkit-box;
  -webkit-line-clamp: 3;     /* Số dòng muốn hiển thị */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

form.wpcf7-form .form-full:last-of-type p {
    height: 10px !important;
}

/* CSS cho máy tính bảng (tablet) */
@media only screen and (min-width: 48em) and (max-width: 64em) {
  /*************** CSS CHO TABLET  ***************/
	#menu-menu-chinh-1 .menu-item a{
		padding-left: 0 !important;
	}
	#block_widget-2 img{
		width:100px;
	}
	.product-name{
		flex-direction:column;
		text-align: center;
	}
	.product-detail{
		flex-direction:column;
	}
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.myedit-button-chatzalo{
		margin-top:8px !important;
	}
	#menu-menu-chinh-1 .menu-item a{
		padding-left: 0 !important;
	}
	.product-name{
		flex-direction:column;
		text-align: center;
	}
	.product-detail{
		flex-direction:column;
	}
	  .only-desktop { display: none !important; }
  .only-mobile { display: block !important; }
  }
}

.only-desktop { display: block; }
.only-mobile { display: none; }
.product-small.box{
    display: none !important;
}
.img-product-custom img{
 height:190px; object-fit:contain;}

.title-product-custom {
	text-align:end;
}


.section-heading {
    position: relative;
    text-align: center;
    padding: 80px 0;
}

.background-title {
    font-size: 140px;
    color: #f1f1f1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-weight: 900;
    z-index: 1;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.main-title {
    position: relative;
    font-size: 22px;
    color: #000;
    z-index: 2;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .background-title {
        font-size: 60px;
    }
    .main-title {
        font-size: 18px;
    }
	.section-heading {
    padding: 50px 0;
}
}


				 @media (max-width: 768px) {
				 .product-attributes{
					 display:flex;
					 flex-direction: column;
					 gap:20px;
				 }
					 .title-sanpham {
						 margin-top: 10px !important;
        font-size: 78px !important;
        line-height: 80px;
					 }
				 }

.product-chitiet-btn:hover {
	opacity:0.9;
}
