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

/*************** ADD CUSTOM CSS HERE.   ***************/
a.nav-top-link {
    font-size: 15px !important;
    font-weight: normal !important;
    color: #282828 !important;
}
a.nav-top-link:hover {
    font-size: 15px !important;
    font-weight: normal !important;
    color: #531D12 !important;
}
ul.header-nav.header-nav-main.nav.nav-left.nav-divided {
    background: #EBEBEB;
    display: inline;
    padding: 14px;
}
.header-button-1 a {
    padding: 4px 11px;
    font-size: 14px;
    font-weight: 600;
    line-height: 34px;
}
.header-bottom-nav > li > a,.header-bottom-nav > li:hover > a {
    font-weight: 700 !important;
    font-size: 14px !important;
}
.tieude-home p {
    font-weight: 700;
    font-size: 30px;
    line-height: 45px;
    border-left: 8px solid #F9D40A;
    padding: 0 0 0 15px;
    margin-bottom: 0;
}
.menu-san-pham-home {
    display: inline-grid !important; /* co lại theo nội dung */
    grid-template-columns: repeat(8, auto);
    justify-content: end;
    margin-left: auto; /* đẩy cả khối sang phải */
}
.menu-san-pham-home {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr);
    gap: 0; /* không khoảng trống */
}
.menu-san-pham-home .menu-item a:hover {
    color: #531D12;
}
.header-bottom {
    border-bottom: 1px solid #000;
}
@media (min-width: 1024px) {
    .menu-san-pham-home.stack-col {
    display: inline-grid !important;
}
    .menu-san-pham-home .menu-item a {
        position: relative;
    }

    .menu-san-pham-home .menu-item a::after {
        content: "|";
        position: absolute;
        right: -2px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(0,0,0,0.2);
    }

    /* bỏ dấu cuối mỗi hàng */
    .menu-san-pham-home .menu-item:nth-child(8n) a::after {
        content: "";
    }
}

@media (max-width: 1024px) {
.hero-slider .flickity-prev-next-button {
    position: absolute;
    bottom: 40px;
    top: 35% !important;
    transform: none;
}
.icon-box.featured-box.icon-box-left.text-left h5.uppercase {
    text-transform: none;
    top: 6px;
    position: relative;
    line-height: 23px;
}
.hero-slider .flickity-prev-next-button.previous {
    left: -10px !important;
    opacity: 1;
}
.hero-slider .flickity-prev-next-button.next {
    left: inherit !important;
    right: -11px !important;
}
    .menu-san-pham-home {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

/* Mobile */
@media (max-width: 600px) {
    .menu-san-pham-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Box vuông */
.menu-san-pham-home .menu-item {
    border: 1px solid #eee;
    border-radius: 0;
    background: #fff;
    aspect-ratio: 1 / 0; /* 🔥 vuông */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nội dung */
.menu-san-pham-home .menu-item a {
    display: block;
    font-size: 13px;
    text-align: center;
    padding: 5px;
}
}
.menu-san-pham-home .menu-item {
    text-align: center;
}

.menu-san-pham-home .menu-item a {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 7px;
    line-height: 25px;
}
.menu-san-pham-home.stack-col {
    display: grid !important;
}
@media only screen and (min-width: 500px) {
.header-search-form-wrapper {
    position: absolute;
    right: 185px;
    width: 200px;
    margin-right: 10px;
}
input#woocommerce-product-search-field-0 {
    height: 44px;
    border-radius: 0;
    border: 1px solid #333 !important;
    background: #fff !important;
}
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
input#woocommerce-product-search-field-1 {
    border: 1px solid #000;
    background: #fff;
    border-radius: 0;
}
.header-top {
    background-color: #eee !important;
    margin-bottom: 10px;
}
.tieude-home p {
    font-weight: 700;
    font-size: 27px;
    line-height: 55px;
    margin: 0;
    border-left: 8px solid #F9D40A;
    padding: 0 0 0 15px;
}

}
.title-danh-muc,
h2, h3 {
    letter-spacing: 0 !important;
}

.hm-filter {
    float:right;
    position:relative;
}

.hm-toggle {
    padding: 4px 11px;
    border: 1px solid #333;
    background: #fff;
    border-radius: 0;
    cursor: pointer;
}

.hm-dropdown {
    display:none;
    position:absolute;
    right:0;
    top:110%;
    background:#fff;
    border:1px solid #333;
    border-radius:0;
    padding:10px;
    min-width:220px;
    /* max-height:260px; */
    overflow:auto;
    box-shadow:0 6px 20px rgba(0,0,0,0.1);
    z-index:999;
}

.hm-item {
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 0;
    cursor:pointer;
}

.hm-item input { display:none; }

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #333;
    border-radius: 0;
    position: relative;
}

.hm-item input:checked + .checkmark {
    background:#ee4d2d;
    border-color:#ee4d2d;
}

.hm-item input:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.count {
    margin-left:auto;
    font-size:12px;
    color:#999;
}

.hm-no-product {
    text-align:center;
    padding:40px;
    color:#666;
}
/* FIX dropdown không mở */
.hm-filter {
    position: relative;
    z-index: 9999;
}

.hm-dropdown {
    position: absolute;
    z-index: 99999 !important;
}

/* FIX bị cắt dropdown */
.shop-container,
.products,
.row,
.row-divided {
    overflow: visible !important;
}

/* FIX bị layer đè (Flatsome hay bị) */
.woocommerce-page .shop-container {
    position: relative;
    z-index: 1;
}

.wrap-loc {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}
.title-hangmuc {
    margin-right: 10px;
}
a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    font-weight: 600;
    font-size: 16px;
    min-height: 45px;
}
.product-sku,.product-sku-single {
    background: #F9D40A;
    display: inline-block;
    padding: 0 7px;
}
.hang-muc {
    margin-bottom: 15px;
}
.hang-muc a:hover {
    background: #F9D40A;
    color: #222;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 14px;
}
.hang-muc a {
    color: #fff;
    background: #333;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
}
.product-short-description p {
    margin-bottom: 6px;
}
.product-short-description {
    margin-top: 11px;
}

/* ===== HERO SLIDER ===== */

.hero-inner {
    display: flex;
    align-items: center;
}

/* TEXT */
.hero-text {
    width: 50%;
    padding-right: 40px;
    padding-left: 40px;
    padding-top: 50px;
}
.hero-text h2 {
    font-size: 36px;
    font-weight: 700;
}

.hero-text p {
    margin: 15px 0;
    color: #555;
}

/* IMAGE */
.hero-image {
    width: 50%;
    height: 610px;
}
.hero-image a {
    width: 100%;
    height: 100%;
    display: inline-block;
}
.hero-image img {
    height: 100%;
    width: 100%;
}
.title-cong-trinh {
        position: absolute;
    top: 45px;
    left: 40px;
}
/* ===== MOVE BUTTONS TO BOTTOM LEFT ===== */
.hero-slider .flickity-prev-next-button {
    position: absolute;
    bottom: 40px;
    top: auto;
    transform: none;
}

/* nút prev */
.hero-slider .flickity-prev-next-button.previous {
    left: 40px;
    opacity: 1;
}

/* nút next nằm sát bên phải prev */
.hero-slider .flickity-prev-next-button.next {
    left: 90px; /* chỉnh khoảng cách tại đây */
    opacity: 1;
}

/* style lại nút cho đẹp */
.hero-slider .flickity-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(0, 0, 0);
}

.hero-slider .flickity-button:hover {
    background: #F9D40A;
}

/* icon màu trắng */
.flickity-prev-next-button .arrow, .flickity-prev-next-button svg {
    fill: #fff;
}
/* ===== MOBILE + TABLET ===== */
@media (max-width: 1024px) {
    .col-left-chung-toi {
        padding-right: 15px !important;
        text-align: justify !important;
    }
    .col-right-lienhe {
    padding-left: 15px !important;
        padding-top: 40px;
}
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text,
    .hero-image {
        width: 100%;
        padding: 0;
    }

    .hero-text h2 {
        font-size: 24px;
    }
    .title-cong-trinh {
    position: relative;
    top: 30px;
    left: 15px;
}
.slider-wrapper.relative.hero-slider {
    margin-top: 40px;
}

.hero-slider{
    padding: 15px;
}
}

.button.is-underline:before {
    width: 100%;
    background-color: #000;
    left: 0;
    height: 1px;
    opacity: 1;
}
.hero-text h4 {
    font-size: 26px;
    line-height: 33px;
}
.breadcrumbs {
    color: #222;
    font-weight: normal;
    letter-spacing: 0;
    padding: 0;
    font-size: 15px;
}
.no-bottom {
    padding-bottom: 0;
}
.counter-item {
    font-size: 18px;
    text-align: center;
    color: #fff;
}
.counter {
    font-size: 40px;
    font-weight: 700;
    color: #F9D40A;
    display: block;
}
.counter-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .counter-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}
.flickity-slider .icon-box.testimonial-box {
    width: 25% !important;
    padding: 0 1% !important;
}
.flickity-slider .icon-box.testimonial-box .icon-box-text {
    background: #eee;
    padding: 15px;
}
.flickity-slider .icon-box.testimonial-box:hover .icon-box-text {
    background: #000;
    padding: 15px;
    color: #fff;
}
.flickity-prev-next-button {
  display: block !important;
  opacity: 1 !important;
}
.my-testimonial-slider .flickity-prev-next-button.previous {
  left: -50px; /* 👈 đẩy ra ngoài bên trái */
}

.my-testimonial-slider .flickity-prev-next-button.next {
  right: -50px; /* 👈 đẩy ra ngoài bên phải */
}
.flickity-prev-next-button .arrow, .flickity-prev-next-button svg {
    fill: #fff;
    background: #000;
    border-radius: 100%;
}
.flickity-prev-next-button:hover .arrow, .flickity-prev-next-button:hover svg {
    fill: #000 !important;
    background: #F9D40A !important;
    border-radius: 100%;
    border-color: #F9D40A !important;
}
.lh form .wpcf7-form-control-wrap {
    display: inline-block;
    width: 100%;
}
.lh form input {
    border-radius: 0;
    border: unset;
    height: 56px;
    margin-bottom: 0;
    padding: 0 16px 0 50px;
    font-size: 16px;
    line-height: 28px;
    color: #4f4f4f;
    transition: 0.3s;
    width: 100%;
    background: #eee;
    box-shadow: none;
}
.lh form div {
    margin: 15px 0;
    position: relative;
}
.lh img {
    position: absolute;
    z-index: 100;
    top: calc(50% - 12px);
    left: 16px;
    width: 24px;
}
.lh form .sub input {
    border: none;
    border-radius: 0;
    background: #000;
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0 16px 0 16px;
    font-weight: 700;
    font-size: 20px;
    text-transform: unset;
    color: #fff;
    transition: 0.3s;
}
.lh form .sub input:hover {
    border: none;
    border-radius: 0;
    background: #F9D40A;
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0 16px 0 16px;
    font-weight: 700;
    font-size: 20px;
    text-transform: unset;
    color: #fff;
    transition: 0.3s;
}
.lh .sub img {
    top: calc(50% - 61px);
    left: calc(50% - -130px);
    transform: rotate(347deg) translateY(45px) translateX(-30px);
    transition: 0.3s;
    opacity: 1;
}
.wpcf7-spinner {
    display: none;
}
form.wpcf7-form.init {
    margin-bottom: 0;
}
.icon-box.featured-box.icon-box-left.text-left h5.uppercase {
    text-transform: none;
    top: 12px;
    position: relative;
}
.icon-box.featured-box.icon-box-left.text-left {
    margin-bottom: 11px;
}
.col-right-lienhe {
    padding-left: 100px;
}
.col-left-chung-toi {
    padding-right: 150px;
    text-align: justify;
}
.slider-doi-tac .flickity-prev-next-button {
    display: none !important ;
}
.slider-doi-tac .box-image {
    border: 1px solid #ccc;
    padding: 7px;
}
.lh-footer .icon-box.featured-box.icon-box-left.text-left h5.uppercase {
    text-transform: none;
    top: 8px;
    position: relative;
    font-weight: normal;
    font-size: 15px;
}
.slider-nav-reveal .flickity-prev-next-button, .slider-nav-reveal .flickity-prev-next-button:hover {
    box-shadow: none;
    background-color: transparent;
}
.icon-box.featured-box.izalo-chat {
    background: #0065F7;
    align-items: center;
    padding: 2px;
    color: #fff !important;
    border-radius: 12px;
}
.icon-box.featured-box.izalo-hotline {
    background: #E60023;
    align-items: center;
    padding: 2px;
    color: #fff !important;
    border-radius: 12px;
}
.portfolio-summary.entry-summary.pb {
    display: none;
}
.icon-box.featured-box.izalo-chat .icon-box-img ,
.icon-box.featured-box.izalo-hotline .icon-box-img {
    margin-bottom: 3px !important;
}
.product-main {
    padding: 20px 0;
}