/*
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.16.1
Requires at least:    5.0.0
Requires PHP:         5.6.20
WC requires at least: 4.4.0
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.
***************/
.header-main{
	color: #ffffff;
}

.social-icons{
	color: #000;
}
a#top-link {
	background-color: #000000;
	color: #fff;
}

/* form */
 .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-col {
  flex: 1;
  min-width: 200px;
}

.wpcf7 .wpcf7-submit {
  background-color: #009fe2;
  color: white;
  padding: 6px 10px;
  border: none;
  font-size: 13px
} 
textarea::placeholder {
  /* Canh giữa theo chiều dọc */
  display: flex;
  align-items: center;
  height: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: transparent;
    padding: 10px 5px;
    width: 100%;
    box-shadow: none;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    border-bottom: 1px solid #4a90e2; /* Màu khi focus */
    outline: none;
}
.wpcf7 .btn,
.wpcf7 .btn-primary {
    text-transform: none !important;
}


/* career */
.career-banner {
  position: relative;
  overflow: hidden;
}

.career-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 128, 255, 0.6); /* xanh mờ */
  z-index: 1;
}

.career-banner .ux-container,
.career-banner .ux-inner {
  position: relative;
  z-index: 2;
}

/* single product */
.product-info .product-title{
	font-size: 60px;
	color: #333333
}

.product-full-description p {
    color: #333333;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 1em;
}
.posted_in{
	font-size: 16px;
	color: #333333
}
.posted_in a{
	color: #009fe2
}

.woocommerce-loop-product__title a{
	font-size: 16px;
    color: #333333
}

a.quick-view.quick-view-added {
    display: none !important;
}
.readmore-button {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #333333;
    color: white;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    text-decoration: none;
}

.product-small .box-image {
    position: relative;
}

.product-small .box-image:hover .readmore-button {
	opacity: 1
}
.readmore-button:hover{
	background-color: #009fe2;
	color: #fff
}

nav.woocommerce-breadcrumb.breadcrumbs.uppercase{
    display: none !important;
}


/* portfolio */
.custom-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Căn giữa hàng ảnh */
  gap: 20px; /* Khoảng cách giữa các ảnh */
}

.custom-card img {
  width: 100%; /* Ảnh luôn đầy khung card */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.custom-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
	 flex: 0 1 33.33%; /* Đặt chiều rộng cố định tối đa 300px, không giãn to hơn */
  max-width: 300px;
  box-sizing: border-box;
}

.custom-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.custom-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.custom-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.custom-card-content {
    padding: 15px;
    text-align: center;
}

.custom-card-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.view-more {
    display: inline-block;
    margin-top: 5px;
    font-size: 14px;
    color: #007bff;
    transition: color 0.3s;
}

.view-more:hover {
    color: #0056b3;
}

/* portfolio */
.portfolio-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px; /* padding trái phải */
    margin: 40px 0;
}

@media (max-width: 992px) {
    .portfolio-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-category-grid {
        grid-template-columns: 1fr;
    }
    .product-image {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        border-width: 1px;
        padding: 10px 0;
        object-fit: contain;
    }
    .image-col {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
}

.portfolio-category-item {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 400px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.3s;
    display: block;
}

.portfolio-category-item:hover {
    transform: scale(1.02);
}

.portfolio-category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-category-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
}



/* single portfolio */
/* Căn chỉnh form comment giống ảnh */
.comment-form-comment textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 20px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    float: left;
    width: 32%;
    margin-right: 2%;
    margin-bottom: 20px;
}

.comment-form-url {
    margin-right: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.comment-form .form-submit {
    clear: both;
}

.comment-form .form-submit input[type="submit"] {
    background-color: #009ce0;
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-form .form-submit input[type="submit"]:hover {
    background-color: #007bb3;
}

/* Clear floats */
.comment-form:after {
    content: "";
    display: table;
    clear: both;
}

#comments .comment-respond {
	background-color: #ffffff !important;
}


/* next pev portfolio */
.custom-nav-projects {
  display: flex;
  justify-content: space-between;
  gap: 0;
}

.project-box {
  flex: 1;
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  text-decoration: none;
  transition: filter 0.3s ease;
  align-items: center;
  justify-content: center;
	display: flex;             /* thêm */
  flex-direction: column;    /* thêm */
}

.project-box:before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  transition: background-color 0.3s ease;
}

.project-box .overlay-portfolio {
  position: relative;
  text-align: center;
  z-index: 2;
  transition: transform 0.3s ease;
}

.project-box .label {
  font-size: 14px;
  color: #eee;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}

.project-box .title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.project-box .arrow {
  font-size: 26px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/* Hover effect */
.project-box:hover:before {
  background-color: rgba(0,0,0,0.65);
}

.project-box .arrow {
  font-size: 26px;
  margin-left: 8px;
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-box.next:hover .arrow {
  opacity: 1;
  transform: translateX(8px);
}

.project-box.prev:hover .arrow {
  opacity: 1;
  transform: translateX(-8px);
}

/* banner */
.banner {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.banner:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* product */
.product-box {
    transition: background-color 0.3s ease;
}

.product-box:hover {
    background-color: #777 !important;
}

.product-image{
    width: 120px; height: 120px; border: 1px solid #4a90e2; display: flex; align-items: center; justify-content: center; overflow: hidden;padding: 10px"
}



/* menu */

.header-nav li > a::before{
background-color: #009fe2 !important;
    content: " ";
    height: 2px;
    left: 50%;
    opacity: 1;
    position: absolute;
    top: auto !important;
    bottom: 0 !important;
    transform: translateX(-50%);
    transition: all .3s;
}

/* button product */
.view-product-link {
    position: relative;
    display: inline-block;
    color: white;
    padding-right: 32px; /* tạo không gian cho hình tròn */
    font-weight: 500;
    text-decoration: none;
}

.view-product-link::after {
    content: '>';
    position: absolute;
    top: 50%;
    margin-left: 10px;
    transform: translateY(-50%);
    width: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    text-align: center;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s ease;
}







