/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.19.9
Requires at least:    6.4
Requires PHP:         7.4
WC requires at least: 8.3
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/
.is-selected .col-inner {
    background: white;
	border-radius: 20px;
}

.box-image img {
	border-radius: 10px;
}

.primary.is-outline {
	background-color: white;
	border: 1px solid #406ac0;
	color: #406ac0;
}

.primary.is-outline:hover {
	background-color: #406ac0;
	color: white;
}

.banner-bg img {
	border-radius: 25px;
}

.product-small.box {
    border: solid 1px white;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 2px 4px 13px white;
}

.tabbed-content .nav {
	gap: 20px;
}

.nav>li.active>a {
	color: #406ac0;
}

.nav-line-bottom>li>a:before {
	background-color: #406ac0;
}

.primary.is-link, .primary.is-link:hover {
	color: #406ac0;
}

.col-inner ul li {
	margin-left: 0;
  list-style: none;
}

.absolute-footer.dark {
	display: none;
}

.button.icon.round {
	background-color: #406ac0;
  color: white;
}

.button.icon.round:hover {
	background-color: #3c3c3c;
}

#mega-menu-wrap-primary {
    background: none;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
	background: #e8f0ff !important;
	color: black !important;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover {
	background: none;
	color: black;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu {
    background: #e8f0ff;
}

.nav1{
   display: flex;
   font-size: 14px;
   font-weight: bold;
   cursor: pointer;
}

.nav-item {
   position: relative;
   left: 40px;
   padding: 10px 0px;
	color: black;
}

.nav-item::after {
   content: "";
   position: absolute;
   left: 0;
   bottom: 0;
   width: 100%;
   height: 2px;
   background-color: #406ac0;
   transform: scaleX(0);
   transition: transform 0.3s ease-in-out;
}

.nav-item:hover::after {
   transform: scaleX(1);
}

/* Ẩn navigation khi ở mobile */
@media (max-width: 768px) {
  .nav1 {
     display: none;
   }
}

.modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100%;
    background: #e8f0fe;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.5s ease;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e8f0ff;
    font-weight: bold;
    color: #406ac0;
    font-size: 16px;
}

.modal-content {
    overflow-y: auto;
    padding: 20px;
    flex-grow: 1;
}

.product {
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-content {
    margin-bottom: 10px;
    font-weight: bold;
}

.modal-footer {
    padding: 10px;
    text-align: center;
    background: #e8f0ff;
    position: sticky;
    bottom: 0;
}

.product button, .modal-footer button {
    background: #406ac0;
    color: white;
    width: 100%;
    border: none;
    cursor: pointer;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product button:hover, .modal-footer button:hover {
    background-color: white;
    color: #406ac0;
    border: 1px solid #406ac0;
}

.form-container1 {
    display: flex;
    align-items: center;
    gap: 10px; /* Khoảng cách giữa các phần tử */
}

.form-container1 label {
    white-space: nowrap; /* Giữ nhãn trên một dòng */
}
.product-title {
    overflow: hidden;  /* Ẩn phần chữ dư */
    text-overflow: ellipsis;  /* Thêm dấu "..." nếu bị cắt */
    width: 100%;  /* Đảm bảo không tràn ra ngoài */
    display: block; /* Đảm bảo hoạt động đúng */
}

/* Ẩn popup khi ở mobile */
@media (max-width: 768px) {
  .offers {
      display: none;
   }
}

.khung-form {
   background: #e8f0ff;
   padding: 20px;
   border-radius: 10px;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.khung-form h2 {
   text-align: center;
}

.nhom-input {
   margin-bottom: 15px;
}

.nhom-input label {
   display: block;
   margin-bottom: 5px;
}

.nhap-lieu {
   width: 95% !important;
   padding: 8px;
   border: 1px solid #ccc;
   border-radius: 4px;
}

.nut-gui {
   background: #ffcfcf;
   color: #63a7e9;
   border: none;
   border-radius: 8px;
   cursor: pointer;
}

input[type=email] {
	width: 95%;
}