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

/*************** ADD CUSTOM CSS HERE.   ***************/
@import url('https://fonts.googleapis.com/css2?family=Playball&display=swap');

.product-small.box .box-text .title-wrapper .category {
    display: none;
}

.product-main .product-info .woocommerce-breadcrumb {
    display: none;
}

#top-bar.header-top {
    display: none;
}

.brc_cus {
    font-size: 130%;
    /* Cỡ chữ dễ đọc */
    margin-top: 32px;
    /* Cách trên dưới so với các section khác */
    line-height: 1.6;
    /* Giãn dòng */
    color: #555;
    /* Màu chữ nhẹ nhàng */
}

.blog-single .box-shadow-1-hover {
    box-shadow: none !important;
}

.brc_cus a {
    color: #333;
    /* Màu link */
    text-decoration: none;
    /* Bỏ gạch chân */
    transition: color 0.3s;
}

.brc_cus p {
    margin-bottom: 0px;
}

.brc_cus a:hover {
    color: #f7941d;
    /* Màu vàng cam khi hover */
}

.brc_cus .separator {
    margin: 0 8px;
    /* Khoảng cách giữa các cấp */
    color: #999;
    /* Màu nhạt hơn cho dấu phân cách */
}

.section-contact .col-inner p {
    margin-bottom: 10px;
}

.has-dropdown .icon-angle-down {
    margin-left: .4em !important;
}

.bg-black {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.text-black {
    color: #000000 !important;
}

.p-4 {
    padding: 16px;
}

.product-meta-info {
    max-width: 500px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.text.mb-0 p {
    margin-bottom: 0 !important;
}

.button.secondary span {
    color: #000000;
}

.home-button span {
    color: #ffffff !important;
}

.flickity-page-dots {
    bottom: 0 !important;
}

.flickity-page-dots .dot {
    width: 20px !important;
    height: 5px !important;
    border-radius: 0 !important;
}

.header-main {
    margin-top: 10px;
}

.section-p0 p {
    margin-bottom: 0 !important;
}

.header-main .searchform input.search-field,
.header-main .searchform .submit-button {
    font-size: 1.1em !important;
}

.section-title-container {
    margin-bottom: 2em;
}

.section-title-center span {
    margin: 0 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    color: #333;
}

.section-title-center.section-title b {
    height: 0 !important;
}

/* .section-title-center span::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(90deg, transparent, #333, transparent);
} */

.section-title.section-title-center {
    text-align: center;
    /* padding-bottom: 30px; */
    position: relative;
}

/* .section-title.section-title-center::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(51,51,51,0.5), transparent);
} */


/* CSS cho Mega Menu */

.woo-megamenu {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    z-index: 999;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.megamenu-inner {
    display: flex;
    flex-wrap: nowrap;
}

.megamenu-categories {
    width: 220px;
    background: #f4f7fa;
    /* padding: 24px 0 24px 24px; */
    border-right: 1px solid #e0e6ed;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    margin-bottom: 14px;
    /* border-radius: 6px; */
    transition: background 0.2s;
}

.category-item.active,
.category-item:hover {
    background: #e5e5e5;
}

.category-item a {
    display: block;
    padding: 8px 16px;
    color: #222;
    text-decoration: none;
    font-size: 17px;
    /* border-radius: 6px; */
    transition: color 0.2s;
}

.category-item.active a,
.category-item:hover a {}

.megamenu-columns {
    flex: 1;
    padding: 24px 0 24px 24px;
    overflow-x: auto;
    display: flex;
}

.columns-wrapper {
    display: flex;
    gap: 40px;
    flex: 1;
}

.megamenu-column {
    min-width: 220px;
    max-width: 260px;
    display: none;
}

.megamenu-column .column-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 16px;
    color: #222;
    text-transform: uppercase;
}

.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subcategory-item {
    margin-bottom: 12px;
    transition: background 0.2s;
    border-radius: 6px;
    position: relative;
}

.subcategory-item:hover {
    background: #e6f2fa;
}

.subcategory-item>a {
    color: #000000 !important;
    font-weight: bold;
}

.subcategory-item a {
    display: block;
    padding: 4px 16px;
    color: #0073aa;
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
}

.subcategory-products-simple {
    position: relative;
    z-index: 10;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-top: 4px;
    padding: 10px 8px 8px 8px;
}

.subcategory-item.show-products>.subcategory-products-simple {
    display: block;
}

.simple-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #222;
}

.simple-products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.simple-products-list li {
    margin-bottom: 4px;
}

.simple-products-list a {
    color: #333333;
    text-decoration: none;
    font-size: 15px;
}

.simple-products-list a:hover {
    text-decoration: underline;
}

.no-products {
    color: #888;
    font-size: 14px;
}

.megamenu-thumbnail {
    width: 220px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
}

.thumb-container {
    display: none;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    width: 100%;
}

.thumb-container img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.no-thumb {
    width: 160px;
    height: 160px;
    background: #e0e6ed;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 16px;
}



/* Product styling */
.product-small {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.product-small .box-image {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-small:hover .box-image img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.product-small .col-inner {
    background-color: #ffffff;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.product-small:hover .col-inner {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-small .box-text {
    text-align: center;
    padding: 15px 15px 30px 15px;
    position: relative;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
}

.product-small .product-title {
    font-size: 1.1em;
    margin-bottom: 8px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-small .product-title a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-small:hover .product-title a {
    color: #0056b3;
}

.price-wrapper {
    /* display: none; */
    opacity: 0;
    margin-bottom: 12px;
}

.product-small .price {
    color: #e03232;
    font-weight: 600;
    font-size: 1.2em;
}

.product-small .price del {
    color: #999;
    font-size: 0.85em;
    margin-right: 8px;
}

.product-small .price ins {
    text-decoration: none;
}

.product-small .add-to-cart-button {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-small:hover .add-to-cart-button {
    opacity: 1;
    transform: translateY(0);
}

.product-small .add-to-cart-button a {
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.5px;
    background-color: #000000;
    color: #ffffff;
    padding: 8px 15px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Quick View button styling */
.quick-view-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 90%;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0;
}

.product-small:hover .quick-view-button {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quick-view-button a {
    margin: 0;
    width: 100%;
    background: #000000;
    color: #ffffff;
    padding: 4px 15px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-view-button a:hover {
    color: #000000;
    background: var(--fs-color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.add-to-cart-button a:not(.added_to_cart):hover {
    background: #0056b3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ẩn nút Quick View đã thêm (nếu có) */
.box-image .quick-view.quick-view-added {
    display: none;
}

/* Product badge styling */
.badge-container {
    margin: 10px;
}

.badge {
    height: 2.2em;
    border-radius: 4px;
}

.badge-inner {
    border-radius: 4px;
    padding: 5px 10px;
}

.badge-inner.on-sale {
    background-color: #e03232;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(224, 50, 50, 0.3);
    transition: all 0.3s ease;
}

.badge-inner.on-sale:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(224, 50, 50, 0.4);
}

.badge-inner.new-bubble {
    background-color: #47a447;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(71, 164, 71, 0.3);
    transition: all 0.3s ease;
}

.badge-inner.new-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(71, 164, 71, 0.4);
}

.add-to-cart-button a:not(.added_to_cart):hover {
    background: var(--fs-color-secondary);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.row-partner>div:first-child {
    margin-bottom: 30px;
}

.col-pd {
    background-color: #f7f7f7;
    padding: 25px !important;
}

.col-pd .col-inner .row>.col {
    padding: 20px !important;
}

.col-pd .col-inner .row>.col .icon-box {
    border-right: 1px solid #000000;
}

/* CSS REWARDS BOX */

.reward-box {
    border: 1px solid #000000;
    border-radius: 16px;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.reward-box:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 10px 20px rgba(0,0,0,0.1); */
    border-color: #333;
}

.reward-box .reward-title {
    font-size: 1.6em;
    text-align: center;
    margin-bottom: 6px;
    padding: 0 20px;
}

.driver-reward {
    margin: 10px 20px;
    height: 1px;
    background: #000000;
}

.black-box .driver-reward {
    background-color: #ffffff;
}

.reward-box .reward-subtitle {
    text-transform: uppercase;
    font-size: 1.4em;
    text-align: center;
    padding: 0 20px;
}

.bg-reward-1 {
    background-color: #ffb85f6b;
}

.bg-reward-2 {
    background-color: #8ed2c9;
}

.bg-reward-3 {
    background-color: #f9a844;
}

.black-box {
    background-color: #000000;
    color: #ffffff;
}

.black-box .reward-content {
    color: #000000;
}

.black-box .reward-subtitle,
.black-box .reward-title {
    color: #ffffff;
}

.reward-box .reward-content {
    font-size: 1.13em;
    text-align: center;
    padding: 12px 12px;
    margin-bottom: 16px;
}

.featured-box ul {
    padding: 0 20px;
}

/* CSS CONTACT FORM */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form p {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.contact-form select {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
    width: 100%;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

.contact-form textarea {
    height: 100px;
    resize: vertical;
}

.contact-form input[type="file"] {
    padding: 10px 0;
    font-size: 14px;
}

.contact-form .wpcf7-submit {
    background-color: #1a1a1a;
    color: #fff;
    padding: 5px 20px;
    border: none;
    border-radius: 4px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .wpcf7-submit:hover {
    background-color: #333;
}

.contact-form label>span {
    color: #ff4d4d;
    margin-left: 3px;
}

.contact-form label[for="your-files"]::after {
    content: none;
}

.contact-form p:last-of-type small {
    font-size: 12px;
    color: #666;
}

/* CSS GG TRANSLATE */

.gtranslate_wrapper .gt_switcher {
    width: 60px !important;
}

.gtranslate_wrapper .gt_switcher .gt_selected a {
    color: #000000 !important;
    border: none !important;
}

.gtranslate_wrapper .gt_switcher .gt_selected {
    background: none !important;
}

/* NEWSLETTER FORM */

.form-flat {
    justify-items: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.form-flat input[type="text"],
.form-flat input[type="email"],
.form-flat input[type="tel"] {
    background-color: #fff;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-flat .form-content p {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.form-flat .button.primary {
    height: auto;
    line-height: 1;
}

.ml-half>p .wpcf7-spinner {
    display: none;
}

/* CART CSS */

.cart-subtotal {
    display: none;
}

.order-total {
    display: none;
}

/* .checkout-page-title.page-title {
    display: none;
} */

.woocommerce-mini-cart__buttons.buttons .checkout.wc-forward {
    display: none;
}

.woocommerce-mini-cart__total.total {
    display: none;
}

.ux-mini-cart-qty .quantity {
    display: none !important;
}

.product-total .woocommerce-Price-amount.amount {
    display: none;
}

.shop_table.woocommerce-checkout-review-order-table th.product-total {
    display: none;
}

.woocommerce-table--order-details tfoot {
    display: none;
}

li.woocommerce-order-overview__total.total {
    display: none;
}

@media only screen and (max-width: 48em) {
    .quick-view-button {
        width: 90%;
        bottom: 0px;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .product-small .add-to-cart-button {
        opacity: 1;
        transform: translateY(0);
    }

    .product-small .product-title {
        min-height: auto;

    }

    .product-small:hover .box-image img {
        transform: scale(1.03);
    }

    .quick-view-button a {
        padding: 6px 4px;
        font-size: 11px;
    }

    .col-pd .col-inner .row>.col {
        padding: 10px 36px !important;
    }

    .col-pd .col-inner .row>.col .icon-box {
        border-right: none;
    }

    .form-flat .form-content p {
        flex-direction: column;
    }

    .form-flat input[type="text"],
    .form-flat input[type="email"],
    .form-flat input[type="tel"] {
        background-color: #fff;
        width: 96%;
    }
}

@media (max-width: 900px) {
    .megamenu-inner {
        flex-direction: column;
    }

    .megamenu-categories,
    .megamenu-columns,
    .megamenu-thumbnail {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e6ed;
    }

    .megamenu-thumbnail {
        border-bottom: none;
    }
}

.stars a+a {
    border-left: 1px solid #ececec;
    margin-left: .3em;
    padding-left: 0.3em !important;
}

.form-flat>p {
    display: none;
}

.comment-form-rating label { 
display: none;
}
.stars a {  
margin-left: 0px !important;
}
.swiper-button-next:after, .swiper-button-prev:after { 
font-size: 22px;
}

.title_form h2 { 
margin-bottom: 0px;
}