/*
Theme Name: Flatsome Child
Theme URI: https://uxthemes.com/themes/flatsome/
Description: Child theme for Flatsome
Author: UX-Themes
Author URI: https://uxthemes.com/
Template: flatsome
Version: 1.0.0
Text Domain: flatsome-child
*/

/* ViÃƒÂ¡Ã‚ÂºÃ‚Â¿t CSS custom bÃƒÆ’Ã‚Âªn dÃƒâ€ Ã‚Â°ÃƒÂ¡Ã‚Â»Ã¢â‚¬Âºi */
/* Ãƒâ€žÃ‚ÂÃƒÂ¡Ã‚Â»Ã¢â‚¬Å“ng bÃƒÂ¡Ã‚Â»Ã¢â€žÂ¢ mÃƒÆ’Ã‚Â u link trong footer */
.is-large {
    display: none !important;
}
.page-title {
    text-align: center;
}

/* ===== WORKFLOW ===== */

.bbdr-workflow{
    display:flex;
    justify-content:space-between;
    gap:20px;
    position:relative;
    margin:40px 0;
    flex-wrap:wrap;
}

.bbdr-step{
    flex:1;
    min-width:180px;
    position:relative;
}

.bbdr-step-top{
    position:relative;
    height:70px;
}

.bbdr-line{
    position:absolute;
    top:31px;
    left:0;
    width:100%;
    height:2px;
    background:#d9d9d9;
}

.bbdr-dot{
    position:absolute;
    top:27px;
    right:22%;
    width:10px;
    height:10px;
    border-radius:50%;
    z-index:2;
}

.bbdr-circle{
    width:64px;
    height:64px;
    border-radius:50%;
    color:#fff;
    font-size:26px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    z-index:3;
    background:#002e5b;
}

.bbdr-step h4{
    font-size:28px;
    font-weight:800;
    margin:18px 0 10px;
    line-height:1.3;
}

.bbdr-step p{
    font-size:18px;
    line-height:1.7;
    color:#444;
}

.bbdr-arrow{
    position:absolute;
    top:20px;
    right:-4px;
    color:#002e5b;
    font-size:26px;
    font-weight:bold;
}

/* ===== FACTORY VIDEO ===== */

.factory-video-wrap{
    width:100%;
}

.factory-video-box{
    position:relative;
    overflow:hidden;
    border-radius:14px 14px 0 0;
    height:340px;
    background:#000;
}

.factory-video-box iframe{
    position:absolute;
    top:50%;
    left:50%;
    width:120%;
    height:120%;
    transform:translate(-50%,-50%) scale(1.18);
    border:0;
}

.factory-video-stats{
    display:flex;
    background:#00264d;
    border-radius:0 0 14px 14px;
    overflow:hidden;
}

.factory-video-stat{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:14px 10px;
    border-right:1px solid rgba(255,255,255,0.1);
}

.factory-video-stat:last-child{
    border-right:none;
}

.factory-video-icon img{
    width:30px;
    height:30px;
    filter:brightness(0) invert(1);
}

.factory-video-text strong{
    display:block;
    color:#fff;
    font-size:22px;
    line-height:1;
    margin-bottom:4px;
}

.factory-video-text span{
    display:block;
    color:#fff;
    font-size:8px;
    line-height:1.5;
}

/* ===== STAT BAR ===== */

.bbdr-stat-bar{
    display:flex;
    gap:20px;
    margin:30px 0;
    flex-wrap:wrap;
}

.bbdr-stat-item{
    flex:1;
    background:#00264d;
    color:#fff;
    border-radius:12px;
    padding:25px;
    text-align:center;
}

.bbdr-stat-item strong{
    display:block;
    font-size:34px;
    margin-bottom:8px;
}

.bbdr-stat-item span{
    font-size:15px;
    opacity:0.9;
}

@media(max-width:768px){

    .bbdr-workflow{
        flex-direction:column;
    }

    .bbdr-line,
    .bbdr-dot,
    .bbdr-arrow{
        display:none;
    }

    .factory-video-stats{
        flex-wrap:wrap;
    }

    .factory-video-stat{
        min-width:50%;
    }

    .factory-video-box{
        height:240px;
    }

    .bbdr-stat-item{
        min-width:45%;
    }
}


/* ===== 100% MATCH CSS TWEAKS ===== */
/* Top Header Bar */
.header-top {
    background-color: #022d6d !important;
}
.header-top, .header-top a {
    color: #ffffff !important;
}

/* NÃƒÆ’Ã‚Âºt NhÃƒÂ¡Ã‚ÂºÃ‚Â­n BÃƒÆ’Ã‚Â¡o GiÃƒÆ’Ã‚Â¡ */
.header-main .button.primary {
    background-color: #e50000 !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    padding: 0 25px !important;
    border: 2px solid #e50000 !important;
    color: #ffffff !important;
}
.header-main .button.primary:hover {
    background-color: transparent !important;
    color: #e50000 !important;
}

/* NÃƒÆ’Ã‚Âºt NhÃƒÂ¡Ã‚ÂºÃ‚Â­n TÃƒâ€ Ã‚Â° VÃƒÂ¡Ã‚ÂºÃ‚Â¥n & BÃƒÆ’Ã‚Â¡o GiÃƒÆ’Ã‚Â¡ / Xem GiÃƒÂ¡Ã‚ÂºÃ‚Â£i PhÃƒÆ’Ã‚Â¡p */
.hero-banner-btn-1 {
    background-color: #e50000 !important;
    border-radius: 6px !important;
    border: 2px solid #e50000 !important;
    color: #ffffff !important;
    padding: 10px 30px !important;
    font-weight: bold;
}
.hero-banner-btn-2 {
    background-color: transparent !important;
    border-radius: 6px !important;
    border: 2px solid #022d6d !important;
    color: #022d6d !important;
    padding: 10px 30px !important;
    font-weight: bold;
}

/* Tabs SÃƒÂ¡Ã‚ÂºÃ‚Â£n PhÃƒÂ¡Ã‚ÂºÃ‚Â©m NÃƒÂ¡Ã‚Â»Ã¢â‚¬Â¢i BÃƒÂ¡Ã‚ÂºÃ‚Â­t */
.nav-tabs {
    justify-content: center;
    border: none !important;
    gap: 15px;
    margin-bottom: 30px;
}
.nav-tabs > li > a {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border-radius: 30px !important;
    padding: 8px 25px !important;
    font-weight: 600 !important;
    border: none !important;
    text-transform: uppercase;
    font-size: 13px;
}
.nav-tabs > li.active > a, .nav-tabs > li > a:hover {
    background-color: #022d6d !important;
    color: #fff !important;
}

/* Typography & Titles */
h2.section-title {
    color: #022d6d !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}


/* ===== REVIEW FIXES ===== */

/* NÃƒÆ’Ã‚Âºt XEM GIÃƒÂ¡Ã‚ÂºÃ‚Â¢I PHÃƒÆ’Ã‚ÂP (Hero Banner) */
.hero-banner-btn-2 {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}
.hero-banner-btn-2:hover {
    background-color: #ffffff !important;
    color: #022d6d !important;
}

/* Tabs SÃƒÂ¡Ã‚ÂºÃ‚Â£n PhÃƒÂ¡Ã‚ÂºÃ‚Â©m (Update) */
.nav-tabs > li > a {
    background-color: #ffffff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}
.nav-tabs > li.active > a, .nav-tabs > li > a:hover {
    background-color: #022d6d !important;
    color: #fff !important;
    border-color: #0044cc;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE (Giao diÃƒÂ¡Ã‚Â»Ã¢â‚¬Â¡n 100% ÃƒÂ¡Ã‚ÂºÃ‚Â¢nh)
   ========================================================================== */

.bbdr-single-breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.bbdr-single-product-main {
    max-width: 1440px !important;
    width: 95%;
    margin: 0 auto;
    background: #fff;
    padding: 30px 0;
}

/* Category Badge */
.bbdr-product-cat-badge {
    display: inline-block;
    background: #003399;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Title & Meta */
.bbdr-product-summary .product-title {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.3;
}
.bbdr-product-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Rating & Sales */
.bbdr-product-rating-sales {
    display: flex;
    align-items: center; /* flex clipping issue */
    margin-bottom: 15px;
    font-size: 14px;
}
.bbdr-product-rating-sales .bbdr-stars {
    color: #ffb800;
    margin-right: 5px;
}
.bbdr-product-rating-sales .rating-text {
    color: #555;
}
.bbdr-product-rating-sales .sales-divider {
    margin: 0 10px;
    color: #ccc;
}
.bbdr-product-rating-sales .sales-text {
    color: #555;
}

/* Price Block */
.bbdr-product-price {
    display: flex;
    align-items: center; /* flex clipping issue */
    margin-bottom: 20px;
}
.bbdr-product-price .price-wrapper ins {
    text-decoration: none;
}
.bbdr-product-price .price-wrapper ins .amount {
    font-size: 32px;
    font-weight: bold;
    color: #e32636; /* MÃƒÆ’Ã‚Â u Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚Â»Ã‚Â nÃƒÂ¡Ã‚Â»Ã¢â‚¬Â¢i bÃƒÂ¡Ã‚ÂºÃ‚Â­t */
}
.bbdr-product-price .price-wrapper del {
    color: #999;
    font-size: 18px;
    margin-left: 15px;
}
.bbdr-sale-badge {
    background: #e32636;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

/* Short Description */
.bbdr-product-short-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

/* BiÃƒÂ¡Ã‚ÂºÃ‚Â¿n thÃƒÂ¡Ã‚Â»Ã†â€™ dÃƒÂ¡Ã‚ÂºÃ‚Â¡ng Pills (thay vÃƒÆ’Ã‚Â¬ Select) */
.bbdr-variation-row {
    margin-bottom: 15px;
}
.bbdr-variation-label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}
.bbdr-variation-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bbdr-variation-pill {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.bbdr-variation-pill:hover {
    border-color: #003399;
}
.bbdr-variation-pill.active {
    border-color: #003399;
    color: #003399;
    font-weight: bold;
    background: #f0f6fc;
}
.variations select {
    display: none !important; /* Hide original selects when JS creates pills */
}
.reset_variations {
    display: none !important;
}

/* Add to cart / Quantity / Buy Now */
.bbdr-add-to-cart-wrapper form.cart,
.bbdr-add-to-cart-wrapper .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* flex clipping issue */
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}
.bbdr-add-to-cart-wrapper .woocommerce-variation-add-to-cart {
    margin-bottom: 0;
}
.bbdr-add-to-cart-wrapper .quantity {
    display: flex;
    align-items: center; /* flex clipping issue */
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
}
.bbdr-add-to-cart-wrapper .quantity input[type="button"] {
    background: #f9f9f9;
    border: none;
    color: #003399;
    font-weight: bold;
    width: 36px;
    height: 100%;
    cursor: pointer;
}
.bbdr-add-to-cart-wrapper .quantity input[type="number"] {
    width: 40px;
    height: 100%;
    border: none;
    text-align: center;
    font-weight: bold;
    -moz-appearance: textfield;
}
.bbdr-add-to-cart-wrapper .single_add_to_cart_button {
    background: #e32636 !important;
    color: #fff !important;
    border-radius: 4px;
    height: 44px;
    padding: 0 20px;
    font-weight: bold;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* flex clipping issue */
    border: none;
}
.bbdr-add-to-cart-wrapper .bbdr-buy-now-btn {
    background: #003399 !important;
    color: #fff !important;
    border-radius: 4px;
    height: 44px;
    padding: 0 20px;
    font-weight: bold;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* flex clipping issue */
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* Trust Badges */
.bbdr-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.bbdr-trust-badges .bbdr-badge-item {
    display: flex;
    align-items: flex-start;
    width: calc(50% - 10px);
}
.bbdr-trust-badges .bbdr-badge-item .icon {
    margin-right: 10px;
    flex-shrink: 0;
}
.bbdr-trust-badges .bbdr-badge-item .text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}
.bbdr-trust-badges .bbdr-badge-item .text strong {
    color: #333;
    font-size: 13px;
}

/* BOTTOM TABS */
.bbdr-product-tabs-section {
    max-width: 1440px !important;
    width: 95%;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 0;
    overflow: hidden;
}
.bbdr-product-tabs-section .woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.bbdr-product-tabs-section .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}
.bbdr-product-tabs-section .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 30px;
    color: #555;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    font-size: 14px;
}
.bbdr-product-tabs-section .woocommerce-tabs ul.tabs li.active a {
    color: #003399;
    border-bottom-color: #003399;
    background: #fff;
}
.bbdr-product-tabs-section .woocommerce-Tabs-panel {
    padding: 30px;
}

/* 2-Column layout inside Description Tab */
.bbdr-desc-specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.bbdr-desc-specs-grid .bbdr-desc-col {
    flex: 1 1 55%;
}
.bbdr-desc-specs-grid .bbdr-specs-col {
    flex: 1 1 40%;
}

/* Applications Row */
.bbdr-apps-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}
.bbdr-app-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center; /* flex clipping issue */
    gap: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}
.bbdr-app-card svg {
    color: #003399;
}

/* Custom Spec Table */
.bbdr-specs-heading {
    color: #003399;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 16px;
}
.bbdr-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.bbdr-specs-table th, .bbdr-specs-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    font-size: 13px;
}
.bbdr-specs-table th {
    background: #fafafa;
    color: #555;
    font-weight: normal;
    width: 30%;
}
.bbdr-specs-table td {
    color: #333;
    font-weight: bold;
}

/* Main Menu Header */
.header-nav .nav > li > a {
    font-weight: 800 !important;
    color: #333333 !important;
    text-transform: uppercase !important;
}
.header-nav .nav > li.active > a, 
.header-nav .nav > li.current-menu-item > a, 
.header-nav .nav > li > a:hover {
    color: #e50000 !important;
}

/* Product Price */
.price .amount {
    color: #e50000 !important;
    font-weight: bold !important;
}

/* Ãƒâ€žÃ‚ÂÃƒÂ¡Ã‚Â»Ã¢â‚¬Å“ng bÃƒÂ¡Ã‚Â»Ã¢â€žÂ¢ chiÃƒÂ¡Ã‚Â»Ã‚Âu cao khÃƒÂ¡Ã‚Â»Ã¢â‚¬Ëœi sÃƒÂ¡Ã‚ÂºÃ‚Â£n phÃƒÂ¡Ã‚ÂºÃ‚Â©m nÃƒÂ¡Ã‚Â»Ã¢â‚¬Â¢i bÃƒÂ¡Ã‚ÂºÃ‚Â­t */
.product-small .title-wrapper {
    min-height: 60px; /* Ãƒâ€žÃ‚ÂÃƒÂ¡Ã‚ÂºÃ‚Â£m bÃƒÂ¡Ã‚ÂºÃ‚Â£o Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚Â»Ã‚Â§ khÃƒÆ’Ã‚Â´ng gian cho tiÃƒÆ’Ã‚Âªu Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚Â»Ã‚Â 2 dÃƒÆ’Ã‚Â²ng */
}
.product-small .name.product-title {
    min-height: 40px; /* ChiÃƒÂ¡Ã‚Â»Ã‚Âu cao tÃƒÂ¡Ã‚Â»Ã¢â‚¬Ëœi thiÃƒÂ¡Ã‚Â»Ã†â€™u cho 2 dÃƒÆ’Ã‚Â²ng text */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Banner */
.bbdr-cat-hero {
    /* Mimic the light blue factory/warehouse background from the design */
    background-color: #f0f6fc;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9)),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(0, 51, 153, 0.03) 40px, rgba(0, 51, 153, 0.03) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(0, 51, 153, 0.03) 40px, rgba(0, 51, 153, 0.03) 41px);
    background-position: center top;
    background-size: 100% 100%, 40px 40px, 40px 40px;
    padding: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    overflow: hidden;
}
.bbdr-cat-hero .hero-inner {
    padding: 40px 0;
    max-width: 1440px !important;
    width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center; /* flex clipping issue */
    justify-content: space-between;
}
.bbdr-cat-hero .hero-text {
    flex: 1;
    max-width: 60%;
    padding-right: 30px;
}
.bbdr-cat-hero h1 {
    color: #003399;
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.05);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.bbdr-cat-hero p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}
.hero-images {
    display: flex;
    gap: 15px;
    align-items: center; /* flex clipping issue */
    justify-content: flex-end;
}
.hero-img-box {
    width: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bbdr-icon-boxes {
    background: #fff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}
.icon-box-container {
    padding: 20px 0;
    max-width: 1440px !important;
    width: 95%;
}
.icon-box-item {
    display: flex;
    align-items: center; /* flex clipping issue */
    gap: 12px;
    padding: 0 10px;
    border-right: 1px solid #eee;
}
.icon-box-item:last-child {
    border-right: none;
}
.icon-box-item .icon {
    font-size: 30px;
}
.icon-box-item h4 {
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    color: #003399;
}
.icon-box-item p {
    margin: 0;
    font-size: 11px;
    color: #666;
}

/* Main Catalog Row */
.bbdr-main-catalog-row {
    max-width: 1440px !important;
    width: 95%;
}

/* Sidebar */
.bbdr-catalog-sidebar .widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.bbdr-catalog-sidebar .widget .widget-title {
    background: linear-gradient(90deg, #003399 0%, #0044cc 100%);
    color: #fff !important;
    padding: 12px 15px;
    margin-top: -20px;
    margin-left: -20px;
    margin-bottom: 20px;
    width: calc(100% + 40px);
    max-width: none;
    border-radius: 10px 10px 0 0;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    box-sizing: border-box;
}
.bbdr-catalog-sidebar .widget ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}
.bbdr-catalog-sidebar .widget ul li {
    list-style-type: none !important;
    background-image: none !important;
}
.bbdr-catalog-sidebar .widget ul li::before,
.bbdr-catalog-sidebar .widget ul li::after,
.bbdr-catalog-sidebar .widget ul li a::before,
.bbdr-catalog-sidebar .widget ul li a::after {
    display: none !important;
    content: none !important;
}
.bbdr-catalog-sidebar .widget ul.product-categories li,
.bbdr-catalog-sidebar .widget ul.product_list_widget li {
    display: flex;
    justify-content: space-between;
    align-items: center; /* flex clipping issue */
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    flex-wrap: nowrap;
}
.bbdr-catalog-sidebar .widget ul.product-categories li a,
.bbdr-catalog-sidebar .widget ul.product_list_widget li a {
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center; /* flex clipping issue */
    gap: 8px;
    flex: 1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Bullet icon for standard categories */
.bbdr-catalog-sidebar .widget ul.product-categories li a::before {
    content: '\25B6';
    color: #003399;
    font-size: 16px;
    margin-right: 5px;
}
.bbdr-catalog-sidebar .widget ul.product-categories li .count {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    margin-left: 5px;
}
.filter-group {
    margin-bottom: 15px;
}
.filter-group h4 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}
.filter-group label {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center; /* flex clipping issue */
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}
.filter-group label input[type="checkbox"],
.filter-group label input[type="radio"] {
    margin: 0 !important;
}

/* Orange Banner */
.bbdr-orange-banner {
    background: linear-gradient(135deg, #f16821 0%, #e0550d 100%);
    color: #fff;
    text-align: center;
    padding: 16px 0;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 3px solid #fff;
    outline: 2px solid #f16821;
    box-shadow: 0 6px 20px rgba(241, 104, 33, 0.25);
    position: relative;
    overflow: hidden;
}
.bbdr-orange-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -50%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
}
.bbdr-orange-banner h1 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}


/* =========================================================
   CATEGORY GRID - HOÀN CHỈNH
   Áp dụng tự động cho TẤT CẢ danh mục
   Không giới hạn 12 danh mục
========================================================= */


/* =========================================================
   1. GRID
========================================================= */

.bbdr-subcats-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}


/* =========================================================
   2. COLUMN CATEGORY
   Tự động áp dụng cho mọi category được thêm vào
========================================================= */

.bbdr-subcats-grid > * {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}


/* =========================================================
   3. CARD
========================================================= */

.bbdr-subcats-grid .bbdr-cat-inner {
    width: 100% !important;
    height: 100% !important;
    min-height: 245px !important;

    box-sizing: border-box !important;

    background: #fff !important;

    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;

    padding: 12px !important;

    display: flex !important;
    flex-direction: column !important;

    transition: all 0.25s ease;
}


/* Hover */

.bbdr-subcats-grid .bbdr-cat-inner:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}


/* =========================================================
   4. HEADER
   ICON + TÊN + SỐ LƯỢNG
========================================================= */

.bbdr-subcats-grid .bbdr-cat-header {
    width: 100% !important;

    min-height: 60px !important;

    display: flex !important;
    align-items: center !important;

    gap: 12px !important;

    margin: 0 0 10px 0 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   5. ICON CATEGORY
========================================================= */

.bbdr-subcats-grid .bbdr-cat-icon {
    width: 60px !important;
    height: 60px !important;

    min-width: 60px !important;
    min-height: 60px !important;

    flex: 0 0 60px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;
}


.bbdr-subcats-grid .bbdr-cat-icon img {
    display: block !important;

    width: 60px !important;
    height: 60px !important;

    max-width: 60px !important;
    max-height: 60px !important;

    object-fit: contain !important;

    margin: 0 !important;
}


/* =========================================================
   6. CATEGORY INFO
========================================================= */

.bbdr-subcats-grid .bbdr-cat-info {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}


.bbdr-subcats-grid .bbdr-cat-info h3 {
    margin: 0 0 5px 0 !important;

    font-size: 14px !important;
    line-height: 1.25 !important;

    font-weight: 700 !important;

    color: #333 !important;

    text-transform: uppercase;
}


.bbdr-subcats-grid .bbdr-cat-info .count {
    margin: 0 !important;

    font-size: 12px !important;
    line-height: 1.3 !important;

    color: #666 !important;
}


/* =========================================================
   7. VÙNG ẢNH ĐẠI DIỆN
========================================================= */

.bbdr-subcats-grid .bbdr-cat-products {
    width: 100% !important;

    margin: 0 0 12px 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    flex: 0 0 auto !important;
}


/* =========================================================
   8. KHUNG ẢNH
   Tất cả category có cùng chiều cao
========================================================= */

.bbdr-subcats-grid .bbdr-cat-product-thumb {
    width: 100% !important;

    height: 110px !important;

    min-height: 110px !important;
    max-height: 110px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #fff !important;

    border: 1px solid #e5e5e5 !important;

    border-radius: 4px !important;
}


/* =========================================================
   9. ẢNH ĐẠI DIỆN
========================================================= */

.bbdr-subcats-grid .bbdr-cat-product-thumb img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;

    padding: 5px !important;

    margin: 0 !important;

    box-sizing: border-box !important;

    transition: transform 0.2s ease;
}


/* Hover ảnh */

.bbdr-subcats-grid .bbdr-cat-product-thumb:hover img {
    transform: scale(1.04);
}


/* =========================================================
   10. KHU VỰC BUTTON
========================================================= */

.bbdr-subcats-grid .bbdr-cat-action {
    width: 100% !important;

    margin-top: auto !important;

    padding: 0 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   11. NÚT XEM CHI TIẾT
========================================================= */

.bbdr-subcats-grid .bbdr-btn-xemsp {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;

    height: 42px !important;
    min-height: 42px !important;

    box-sizing: border-box !important;

    margin: 0 !important;

    padding: 0 15px !important;

    border: 1px solid #003399 !important;

    border-radius: 22px !important;

    background: #fff !important;

    color: #003399 !important;

    font-size: 13px !important;

    font-weight: 600 !important;

    line-height: 1 !important;

    text-decoration: none !important;

    text-transform: none !important;

    transition: all 0.25s ease;
}


/* Hover */

.bbdr-subcats-grid .bbdr-btn-xemsp:hover {
    background: #003399 !important;
    color: #fff !important;

    border-color: #003399 !important;
}


/* =========================================================
   12. ĐẢM BẢO CARD ĐỒNG ĐỀU
========================================================= */

.bbdr-subcats-grid .bbdr-custom-cat,
.bbdr-subcats-grid .bbdr-cat-card,
.bbdr-subcats-grid .product-category {
    height: auto !important;

    align-self: stretch !important;
}


.bbdr-subcats-grid .bbdr-cat-inner {
    flex: 1 1 auto !important;
}


/* =========================================================
   13. TABLET
========================================================= */

@media (max-width: 1024px) {

    .bbdr-subcats-grid .bbdr-cat-inner {
        min-height: 240px !important;
    }

    .bbdr-subcats-grid .bbdr-cat-product-thumb {
        height: 105px !important;

        min-height: 105px !important;
        max-height: 105px !important;
    }

}


/* =========================================================
   14. MOBILE
========================================================= */

@media (max-width: 768px) {

    .bbdr-subcats-grid .bbdr-cat-inner {
        min-height: 0 !important;

        padding: 12px !important;
    }


    .bbdr-subcats-grid .bbdr-cat-icon {
        width: 55px !important;
        height: 55px !important;

        min-width: 55px !important;
        min-height: 55px !important;

        flex-basis: 55px !important;
    }


    .bbdr-subcats-grid .bbdr-cat-icon img {
        width: 55px !important;
        height: 55px !important;

        max-width: 55px !important;
        max-height: 55px !important;
    }


    .bbdr-subcats-grid .bbdr-cat-product-thumb {
        height: 120px !important;

        min-height: 120px !important;
        max-height: 120px !important;
    }


    .bbdr-subcats-grid .bbdr-btn-xemsp {
        height: 42px !important;
        min-height: 42px !important;
    }

}

/* ===== WORKFLOW (FROM FUNCTIONS.PHP) ===== */
.workflow-container{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    width:100%;
    max-width:1600px;
    margin:0 auto;
    padding:50px 20px;
    font-family:Arial,sans-serif;
}

.workflow-container .step{
    flex:1 1 0;
    min-width:0;
    text-align:center;
    position:relative;
}

.workflow-container .step-num{
    width:46px;
    height:46px;
    border-radius:50%;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:700;
    margin:0 auto 22px;
    position:relative;
    z-index:5;
}

.workflow-container .step:not(:last-child)::before{
    content:"";
    position:absolute;
    top:22px;
    left:50%;
    width:100%;
    height:2px;
    z-index:1;
}

.workflow-container .step:not(:last-child)::after{
    content:"";
    position:absolute;
    top:18px;
    right:-5px;
    width:10px;
    height:10px;
    border-radius:50%;
    z-index:3;
}

.workflow-container .step-1 .step-num{ background:#002e5b; }
.workflow-container .step-1::before{ background:linear-gradient(to right, #002e5b 0%, #002e5b 50%, #0057d9 50%, #0057d9 100%); }
.workflow-container .step-1::after{ background:#002e5b; }

.workflow-container .step-2 .step-num{ background:#0057d9; }
.workflow-container .step-2::before{ background:linear-gradient(to right, #0057d9 0%, #0057d9 50%, #9b9b9b 50%, #9b9b9b 100%); }
.workflow-container .step-2::after{ background:#0057d9; }

.workflow-container .step-3 .step-num{ background:#9b9b9b; }
.workflow-container .step-3::before{ background:linear-gradient(to right, #9b9b9b 0%, #9b9b9b 50%, #f1b400 50%, #f1b400 100%); }
.workflow-container .step-3::after{ background:#9b9b9b; }

.workflow-container .step-4 .step-num{ background:#f1b400; }
.workflow-container .step-4::before{ background:linear-gradient(to right, #f1b400 0%, #f1b400 50%, #002e5b 50%, #002e5b 100%); }
.workflow-container .step-4::after{ background:#f1b400; }

.workflow-container .step-5 .step-num{ background:#002e5b; }
.workflow-container .step-5::before{
    content:"";
    position:absolute;
    top:22px; left:50%; width:52%; height:2px;
    background:#002e5b; z-index:1;
}
.workflow-container .step-5::after{
    content: '\27A4';
    position:absolute;
    top:23px; left:calc(50% + 51%);
    transform:translate(-1px,-50%);
    color:#002e5b; font-size:11px;
    width:10px; height:10px;
    display:flex; align-items:center; justify-content:center;
    line-height:0; z-index:5;
}

.workflow-container .step-title{
    font-size:14px; font-weight:700; text-transform:uppercase; margin-bottom:10px; color:#111;
}
.workflow-container .step-desc{
    font-size:12px; color:#555; line-height:1.7; padding:0 10px;
}

@media(max-width:768px){
    .workflow-container{ flex-direction:column; gap:35px; }
    .workflow-container .step::before, .workflow-container .step::after{ display:none; }
}

/* ===== FACTORY VIDEO (FROM FUNCTIONS.PHP) ===== */
.factory-video-wrap{ width:100%; }
.factory-video-box{
    position:relative; overflow:hidden; border-radius:14px 14px 0 0; background:#000; line-height:0; height:340px;
}
.factory-video-box iframe{
    position:absolute; top:50%; left:50%; width:115%; height:115%;
    transform:translate(-50%,-50%) scale(1.18); display:block; border:0;
}
.factory-video-stats{
    display:flex; background:#0A33A5; border-radius:0 0 14px 14px; overflow:hidden;
}
.factory-video-stat{
    flex:1; color:#fff; padding:14px 10px; border-right:1px solid rgba(255,255,255,0.12);
    display:flex; align-items:center; justify-content:center; gap:10px;
}
.factory-video-stat:last-child{ border-right:none; }
.factory-video-icon{ flex-shrink:0; }
.factory-video-icon img{ width:34px; height:34px; }
.factory-video-text strong{
    display:block; font-size:22px; font-weight:800; line-height:1; margin-bottom:4px; color:#fff;
}
.factory-video-text span{
    display:block; font-size:12px; font-weight:500; opacity:0.88; line-height:1.45; color:#fff;
}

@media(max-width:768px){
    .factory-video-stats{ flex-wrap:wrap; }
    .factory-video-stat{ min-width:50%; justify-content:flex-start; }
    .factory-video-box iframe{ height:260px !important; }
    .factory-video-text strong{ font-size:22px; }
}

/*
Theme Name: Flatsome Child
Theme URI: https://uxthemes.com/themes/flatsome/
Description: Child theme for Flatsome
Author: UX-Themes
Author URI: https://uxthemes.com/
Template: flatsome
Version: 9.6
Text Domain: flatsome-child
*/

/* ViÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â¿t CSS custom bÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Âªn dÃƒÆ’Ã¢â‚¬Â Ãƒâ€šÃ‚Â°ÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»ÃƒÂ¢Ã¢â€šÂ¬Ã‚Âºi */
/* ÃƒÆ’Ã¢â‚¬Å¾Ãƒâ€šÃ‚ÂÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œng bÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ mÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â u link trong footer */
/* .is-large {
    display: none !important;
} */
.page-title {
    text-align: center;
}

/* ===== WORKFLOW ===== */

.bbdr-workflow{
    display:flex;
    justify-content:space-between;
    gap:20px;
    position:relative;
    margin:40px 0;
    flex-wrap:wrap;
}

.bbdr-step{
    flex:1;
    min-width:180px;
    position:relative;
}

.bbdr-step-top{
    position:relative;
    height:70px;
}

.bbdr-line{
    position:absolute;
    top:31px;
    left:0;
    width:100%;
    height:2px;
    background:#d9d9d9;
}

.bbdr-dot{
    position:absolute;
    top:27px;
    right:22%;
    width:10px;
    height:10px;
    border-radius:50%;
    z-index:2;
}

.bbdr-circle{
    width:64px;
    height:64px;
    border-radius:50%;
    color:#fff;
    font-size:26px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    z-index:3;
    background:#002e5b;
}

.bbdr-step h4{
    font-size:28px;
    font-weight:800;
    margin:18px 0 10px;
    line-height:1.3;
}

.bbdr-step p{
    font-size:18px;
    line-height:1.7;
    color:#444;
}

.bbdr-arrow{
    position:absolute;
    top:20px;
    right:-4px;
    color:#002e5b;
    font-size:26px;
    font-weight:bold;
}

/* ===== FACTORY VIDEO ===== */

.factory-video-wrap{
    width:100%;
}

.factory-video-box{
    position:relative;
    overflow:hidden;
    border-radius:14px 14px 0 0;
    height:340px;
    background:#000;
}

.factory-video-box iframe{
    position:absolute;
    top:50%;
    left:50%;
    width:120%;
    height:120%;
    transform:translate(-50%,-50%) scale(1.18);
    border:0;
}

.factory-video-stats{
    display:flex;
    background:#00264d;
    border-radius:0 0 14px 14px;
    overflow:hidden;
}

.factory-video-stat{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:14px 10px;
    border-right:1px solid rgba(255,255,255,0.1);
}

.factory-video-stat:last-child{
    border-right:none;
}

.factory-video-icon img{
    width:30px;
    height:30px;
    filter:brightness(0) invert(1);
}

.factory-video-text strong{
    display:block;
    color:#fff;
    font-size:22px;
    line-height:1;
    margin-bottom:4px;
}

.factory-video-text span{
    display:block;
    color:#fff;
    font-size:8px;
    line-height:1.5;
}

/* ===== STAT BAR ===== */

.bbdr-stat-bar{
    display:flex;
    gap:20px;
    margin:30px 0;
    flex-wrap:wrap;
}

.bbdr-stat-item{
    flex:1;
    background:#00264d;
    color:#fff;
    border-radius:12px;
    padding:25px;
    text-align:center;
}

.bbdr-stat-item strong{
    display:block;
    font-size:34px;
    margin-bottom:8px;
}

.bbdr-stat-item span{
    font-size:15px;
    opacity:0.9;
}

@media(max-width:768px){

    .bbdr-workflow{
        flex-direction:column;
    }

    .bbdr-line,
    .bbdr-dot,
    .bbdr-arrow{
        display:none;
    }

    .factory-video-stats{
        flex-wrap:wrap;
    }

    .factory-video-stat{
        min-width:50%;
    }

    .factory-video-box{
        height:240px;
    }

    .bbdr-stat-item{
        min-width:45%;
    }
}


/* ===== 100% MATCH CSS TWEAKS ===== */
/* Top Header Bar */
.header-top {
    background-color: #022d6d !important;
}
.header-top, .header-top a {
    color: #ffffff !important;
}

/* NÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Âºt NhÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â­n BÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¡o GiÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¡ */
.header-main .button.primary {
    background-color: #e50000 !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    padding: 0 25px !important;
    border: 2px solid #e50000 !important;
    color: #ffffff !important;
}
.header-main .button.primary:hover {
    background-color: transparent !important;
    color: #e50000 !important;
}

/* NÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Âºt NhÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â­n TÃƒÆ’Ã¢â‚¬Â Ãƒâ€šÃ‚Â° VÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â¥n & BÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¡o GiÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¡ / Xem GiÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â£i PhÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¡p */
.hero-banner-btn-1 {
    background-color: #e50000 !important;
    border-radius: 6px !important;
    border: 2px solid #e50000 !important;
    color: #ffffff !important;
    padding: 10px 30px !important;
    font-weight: bold;
}
.hero-banner-btn-2 {
    background-color: transparent !important;
    border-radius: 6px !important;
    border: 2px solid #022d6d !important;
    color: #022d6d !important;
    padding: 10px 30px !important;
    font-weight: bold;
}

/* Tabs SÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â£n PhÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â©m NÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¢i BÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â­t */
.nav-tabs {
    justify-content: center;
    border: none !important;
    gap: 15px;
    margin-bottom: 30px;
}
.nav-tabs > li > a {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border-radius: 30px !important;
    padding: 8px 25px !important;
    font-weight: 600 !important;
    border: none !important;
    text-transform: uppercase;
    font-size: 13px;
}
.nav-tabs > li.active > a, .nav-tabs > li > a:hover {
    background-color: #022d6d !important;
    color: #fff !important;
}

/* Typography & Titles */
h2.section-title {
    color: #022d6d !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}


/* ===== REVIEW FIXES ===== */

/* NÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Âºt XEM GIÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â¢I PHÃƒÆ’Ã†â€™Ãƒâ€šÃ‚ÂP (Hero Banner) */
.hero-banner-btn-2 {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}
.hero-banner-btn-2:hover {
    background-color: #ffffff !important;
    color: #022d6d !important;
}

/* Tabs SÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â£n PhÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â©m (Update) */
.nav-tabs > li > a {
    background-color: #ffffff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}
.nav-tabs > li.active > a, .nav-tabs > li > a:hover {
    background-color: #022d6d !important;
    color: #fff !important;
    border-color: #0044cc;
}


/* ===== WORKFLOW (FROM FUNCTIONS.PHP) ===== */
.workflow-container{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    width:100%;
    max-width:1600px;
    margin:0 auto;
    padding:50px 20px;
    font-family:Arial,sans-serif;
}

.workflow-container .step{
    flex:1 1 0;
    min-width:0;
    text-align:center;
    position:relative;
}

.workflow-container .step-num{
    width:46px;
    height:46px;
    border-radius:50%;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:700;
    margin:0 auto 22px;
    position:relative;
    z-index:5;
}

.workflow-container .step:not(:last-child)::before{
    content:"";
    position:absolute;
    top:22px;
    left:50%;
    width:100%;
    height:2px;
    z-index:1;
}

.workflow-container .step:not(:last-child)::after{
    content:"";
    position:absolute;
    top:18px;
    right:-5px;
    width:10px;
    height:10px;
    border-radius:50%;
    z-index:3;
}

.workflow-container .step-1 .step-num{ background:#002e5b; }
.workflow-container .step-1::before{ background:linear-gradient(to right, #002e5b 0%, #002e5b 50%, #0057d9 50%, #0057d9 100%); }
.workflow-container .step-1::after{ background:#002e5b; }

.workflow-container .step-2 .step-num{ background:#0057d9; }
.workflow-container .step-2::before{ background:linear-gradient(to right, #0057d9 0%, #0057d9 50%, #9b9b9b 50%, #9b9b9b 100%); }
.workflow-container .step-2::after{ background:#0057d9; }

.workflow-container .step-3 .step-num{ background:#9b9b9b; }
.workflow-container .step-3::before{ background:linear-gradient(to right, #9b9b9b 0%, #9b9b9b 50%, #f1b400 50%, #f1b400 100%); }
.workflow-container .step-3::after{ background:#9b9b9b; }

.workflow-container .step-4 .step-num{ background:#f1b400; }
.workflow-container .step-4::before{ background:linear-gradient(to right, #f1b400 0%, #f1b400 50%, #002e5b 50%, #002e5b 100%); }
.workflow-container .step-4::after{ background:#f1b400; }

.workflow-container .step-5 .step-num{ background:#002e5b; }
.workflow-container .step-5::before{
    content:"";
    position:absolute;
    top:22px; left:50%; width:52%; height:2px;
    background:#002e5b; z-index:1;
}
.workflow-container .step-5::after{
    content: '\27A4';
    position:absolute;
    top:23px; left:calc(50% + 51%);
    transform:translate(-1px,-50%);
    color:#002e5b; font-size:11px;
    width:10px; height:10px;
    display:flex; align-items:center; justify-content:center;
    line-height:0; z-index:5;
}

.workflow-container .step-title{
    font-size:14px; font-weight:700; text-transform:uppercase; margin-bottom:10px; color:#111;
}
.workflow-container .step-desc{
    font-size:12px; color:#555; line-height:1.7; padding:0 10px;
}

  @media(max-width:768px){
      .workflow-container{ flex-direction:column; gap:35px; align-items: center; /* flex clipping issue */ }
      .workflow-container .step::before, .workflow-container .step::after{ display:none !important; }
  }

/* ===== FACTORY VIDEO (FROM FUNCTIONS.PHP) ===== */
.factory-video-wrap{ width:100%; }
.factory-video-box{
    position:relative; overflow:hidden; border-radius:14px 14px 0 0; background:#000; line-height:0; height:340px;
}
.factory-video-box iframe{
    position:absolute; top:50%; left:50%; width:115%; height:115%;
    transform:translate(-50%,-50%) scale(1.18); display:block; border:0;
}
.factory-video-stats{
    display:flex; background:#0A33A5; border-radius:0 0 14px 14px; overflow:hidden;
}
.factory-video-stat{
    flex:1; color:#fff; padding:14px 10px; border-right:1px solid rgba(255,255,255,0.12);
    display:flex; align-items:center; justify-content:center; gap:10px;
}
.factory-video-stat:last-child{ border-right:none; }
.factory-video-icon{ flex-shrink:0; }
.factory-video-icon img{ width:34px; height:34px; }
.factory-video-text strong{
    display:block; font-size:22px; font-weight:800; line-height:1; margin-bottom:4px; color:#fff;
}
.factory-video-text span{
    display:block; font-size:12px; font-weight:500; opacity:0.88; line-height:1.45; color:#fff;
}

@media(max-width:768px){
    .factory-video-stats{ flex-wrap:wrap; }
    .factory-video-stat{ min-width:50%; justify-content:flex-start; }
    .factory-video-box iframe{ height:260px !important; }
    .factory-video-text strong{ font-size:22px; }
}


/* ================= HOMEPAGE CUSTOM BOXES ================= */

.bbdr-checklist-box, .bbdr-ehs-box {
    width: 100%;
    max-width: 540px;
    height: 285px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 26px 24px 24px 26px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.bbdr-checklist-content, .bbdr-ehs-content {
    width: 56%;
    position: relative;
    z-index: 2;
}

.bbdr-checklist-content h3, .bbdr-ehs-content h3 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    color: #0A33A5;
    font-family: "Roboto", "Montserrat", sans-serif;
    white-space: nowrap;
}

.bbdr-checklist-content p, .bbdr-ehs-content p {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.75;
    color: #444;
    font-family: "Roboto", "Montserrat", sans-serif;
}

.bbdr-checklist-btn, .bbdr-ehs-btn {
    display: inline-flex;
    align-items: center; /* flex clipping issue */
    justify-content: center;
    height: 42px;
    line-height: 0px;
    padding: 0 24px;
    border-radius: 6px;
    background: #0A33A5;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    font-family: "Roboto", "Montserrat", sans-serif;
    box-sizing: border-box;
}

.bbdr-checklist-btn:hover, .bbdr-ehs-btn:hover {
    background: #00397a;
}

.bbdr-checklist-image, .bbdr-ehs-image {
    position: absolute;
    right: -55px;
    bottom: -42px;
    width: 78%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.bbdr-checklist-image img, .bbdr-ehs-image img {
    width: 100%;
    display: block;
    transform: scale(1.82);
    transform-origin: bottom right;
}

@media(max-width: 768px) {
    .bbdr-checklist-box, .bbdr-ehs-box {
        max-width: 100%;
        height: auto; min-height: 240px;
        padding: 22px;
    }
    .bbdr-checklist-content, .bbdr-ehs-content {
        width: 58%;
    }
    .bbdr-checklist-content h3, .bbdr-ehs-content h3 {
        font-size: 16px;
    }
    .bbdr-checklist-content p, .bbdr-ehs-content p {
        font-size: 14px;
    }
    .bbdr-checklist-image, .bbdr-ehs-image {
        width: 76%;
        right: -40px;
        bottom: -30px;
    }
    .bbdr-checklist-image img, .bbdr-ehs-image img {
        transform: scale(1.55);
    }
}

/* QUOTE BOX */
.bbdr-quote-box {
    width: 100%;
    max-width: 540px;
    height: auto;
    min-height: 285px;
    background: #ffcb05;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: center; /* flex clipping issue */
}

.bbdr-quote-worker {
    position: absolute;
    left: -50px;
    bottom: -8px;
    width: 46%;
    z-index: 5;
    pointer-events: none;
}

.bbdr-quote-worker img {
    width: 100%;
    display: block;
}

.bbdr-quote-content {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    width: 68%;
    padding: 20px 28px 18px 10px;
    position: relative;
    z-index: 3;
}

.bbdr-quote-content h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    font-family: "Roboto", "Montserrat", sans-serif;
}

.bbdr-quote-content input {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 6px;
    background: #fff;
    padding: 0 15px;
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
    box-sizing: border-box;
}

.bbdr-quote-content a,
.bbdr-quote-content input.bbdr-submit {
    width: 100%;
    height: 44px;
    background: #e60012;
    color: #fff !important;
    text-decoration: none !important;
    display: flex;
    align-items: center; /* flex clipping issue */
    justify-content: center;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 800;
    line-height: 0;
    margin-bottom: 10px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.bbdr-quote-content a:hover,
.bbdr-quote-content input.bbdr-submit:hover {
    background: #c80010;
}

.bbdr-quote-content .wpcf7 { margin-bottom: 10px; }
.bbdr-quote-content .wpcf7-form-control-wrap { display: block; margin-bottom: 0px; }
.bbdr-quote-content .wpcf7-not-valid-tip { font-size: 12px; margin-top: -10px; margin-bottom: 10px; color: #e60012; }
.bbdr-quote-content .wpcf7-response-output { font-size: 13px; margin: 10px 0 0 0 !important; padding: 10px !important; }

.bbdr-quote-content p {
    margin: 0;
    text-align: center;
    font-size: 15px;
    color: #111;
    font-weight: 500;
    font-family: "Roboto", "Montserrat", sans-serif;
}
.bbdr-quote-content p strong { font-weight: 900; }

@media(max-width: 768px) {
    /* --- PERFECT YELLOW QUOTE BOX ON MOBILE --- */
    .bbdr-quote-box {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 0 !important;
    }
    
    .bbdr-quote-content {
    margin-top: auto;
    margin-bottom: auto;
        width: 100% !important;
        margin-left: 0 !important;
        padding: 20px 15px 0px 15px !important;
        text-align: center !important;
        order: 1 !important;
        position: relative !important;
    }
    
    .bbdr-quote-content h3 {
        font-size: 19px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    /* Inputs */
    .bbdr-quote-content input.bbdr-input,
    .bbdr-quote-content input.bbdr-submit {
        width: 100% !important;
        height: 44px !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }
    
    .bbdr-quote-content input.bbdr-submit {
        margin-bottom: 0 !important; 
    }
    
    /* FIX THE HUGE GAP: The invisible CF7 spinner wraps to a new line because the button is 100% width! */
    .bbdr-quote-content .wpcf7-spinner {
        position: absolute !important;
        bottom: 10px !important;
        right: 10px !important;
        margin: 0 !important;
    }
    
    /* NUKE margins */
    .bbdr-quote-content .wpcf7 { margin-bottom: 0 !important; }
    .bbdr-quote-content p { margin-bottom: 0 !important; }
    .bbdr-quote-content .bbdr-form-fields p { margin: 0 !important; padding: 0 !important; line-height: 0 !important; }
    
    /* Hide empty response output */
    .bbdr-quote-content .wpcf7-response-output { display: none !important; }
    .bbdr-quote-content .wpcf7 form.invalid .wpcf7-response-output,
    .bbdr-quote-content .wpcf7 form.sent .wpcf7-response-output,
    .bbdr-quote-content .wpcf7 form.failed .wpcf7-response-output {
        display: block !important;
        margin: 5px 0 0 0 !important;
        padding: 5px !important;
        font-size: 13px !important;
    }
    
    /* The 'HoÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â·c gÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»Ãƒâ€šÃ‚Âi ngay' text */
    .bbdr-quote-content > p {
        margin: 15px 0 5px 0 !important;
        font-size: 14px !important;
        text-align: center !important;
        position: relative !important;
        z-index: 10 !important; /* Keep it above the worker */
    }
    
    /* Hide any empty P tags generated by wpautop */
    .bbdr-quote-content p:empty { display: none !important; }
    
    /* The 3D worker image */
    .bbdr-quote-worker {
        position: relative !important;
        width: 140px !important;
        left: auto !important;
        bottom: auto !important;
        order: 2 !important;
        margin: -15px auto -5px auto !important; /* -15px is enough. -35px caused overlap. */
        z-index: 1 !important;
        pointer-events: none !important;
    }
}



.flash-banner{
    position:relative;
}

.flash-banner img{
    display:block;
    width:100%;
}

/* KhÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“i countdown */
.flash-overlay{
    position:absolute;
    right:55px;
    top:54%;
    transform:translateY(-50%);
    width:300px;
    text-align:center;
    z-index:99;
}

/* TiÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Âªu ÃƒÆ’Ã¢â‚¬Å¾ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“ÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»Ãƒâ€šÃ‚Â */
.flash-title{
    font-size:18px;
    font-weight:500;
    color:#000;
    margin-bottom:15px;
}

/* HÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â ng ÃƒÆ’Ã¢â‚¬Å¾ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“ÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œng hÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ */
.flash-row{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:10px;
}

/* Box giÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»Ãƒâ€šÃ‚Â phÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Âºt giÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢y */
.flash-row .box{
    width:78px;
}

/* SÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚Â»ÃƒÂ¢Ã¢â€šÂ¬Ã‹Å“ */
.flash-row .num{
    width:78px;
    height:58px;

    background:#fff;
    border-radius:10px;

    display:flex;
    align-items:center;
    justify-content:center;

}

@media (max-width: 549px) {
    /* Center category items on mobile */
    .bbdr-cat-header {
        flex-direction: column;
        align-items: center; /* flex clipping issue */
        text-align: center;
        gap: 10px;
    }
}
/* TÃƒÂ¡Ã‚Â»Ã¢â‚¬Ëœi Ãƒâ€ Ã‚Â°u khÃƒÂ¡Ã‚Â»Ã¢â‚¬Ëœi Icon Service ÃƒÂ¡Ã‚Â»Ã…Â¸ trang chÃƒÂ¡Ã‚Â»Ã‚Â§ */
.service-grid-custom {
    display: flex;
    justify-content: space-between;
    align-items: center; /* flex clipping issue */
    background: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
}
.service-item-custom {
    display: flex;
    align-items: center; /* flex clipping issue */
    gap: 12px;
    flex: 1;
    padding: 0 15px;
    border-right: 1px solid #eaeaea;
}
.service-item-custom:last-child {
    border-right: none;
}
.service-item-custom img {
    width: 38px !important;
    height: auto !important;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}
.service-content-custom {
    display: flex;
    flex-direction: column;
}
.service-title-custom {
    font-size: 14px;
    font-weight: 700;
    color: #0A33A5;
    margin-bottom: 2px;
}
.service-desc-custom {
    font-size: 12px;
    color: #555;
    line-height: 1.3;
}

@media(max-width: 768px) {
    .service-grid-custom {
        flex-direction: column;
        padding: 20px;
    }
    .service-item-custom {
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        padding: 15px 0;
        width: 100%;
        justify-content: flex-start;
    }
    .service-item-custom:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
/* Styling cho GiÃƒÂ¡Ã‚ÂºÃ‚Â£i phÃƒÆ’Ã‚Â¡p khu vÃƒÂ¡Ã‚Â»Ã‚Â±c */
.factory-item {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-decoration: none !important;
}
.factory-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.factory-item:hover img {
    transform: scale(1.08);
}
.factory-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding: 30px 10px 15px 10px;
}
@media (max-width: 768px) {
    .factory-item span {
        font-size: 13px;
        padding: 20px 5px 10px 5px;
    }
}
@media(max-width: 768px) {
/* --- OPTIMIZE 2-COLUMN ICON BOXES ON MOBILE --- */
    .small-6 .icon-box.icon-box-left {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        padding: 15px 10px !important;
        background: #f8f9fa !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
        height: 100% !important;
    }
    .small-6 .icon-box.icon-box-left .icon-box-img {
        margin: 0 auto 10px auto !important;
        width: 40px !important;
    }
    .small-6 .icon-box.icon-box-left .icon-box-text {
        padding: 0 !important;
        width: 100% !important;
    }
    .small-6 .icon-box.icon-box-left .icon-box-text p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        color: #555 !important;
    }
    .small-6 .icon-box.icon-box-left .icon-box-text strong {
        display: block !important;
        font-size: 14px !important;
        color: #0A33A5 !important;
    }
}
/* ===== LÃƒâ€ Ã‚Â¯ÃƒÂ¡Ã‚Â»Ã…Â¡I GIÃƒÂ¡Ã‚ÂºÃ‚Â¢I PHÃƒÆ’Ã‚ÂP KHU VÃƒÂ¡Ã‚Â»Ã‚Â°C ===== */
.section-khuvuc .factory-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 40px;
    transform: translateY(-30px);
}
@media(max-width: 1024px) {
    .section-khuvuc .factory-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 15px;
        row-gap: 15px;
    }
}
@media(max-width: 768px) {
    .section-khuvuc .factory-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 12px;
        row-gap: 12px;
    }
}
/* ===== FLOATING ACTION BUTTONS ===== */
.bbdr-fab-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.bbdr-fab-item {
    display: flex;
    align-items: center; /* flex clipping issue */
    text-decoration: none !important;
    border-radius: 50px;
    padding: 5px 15px 5px 5px;
    color: #fff !important;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.bbdr-fab-item:hover {
    transform: scale(1.05);
}
.bbdr-fab-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center; /* flex clipping issue */
    justify-content: center;
    background: rgba(255,255,255,0.2);
    margin-right: 10px;
}
.bbdr-fab-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}
.bbdr-fab-call { background: #e50000; }
.bbdr-fab-zalo { background: #0068ff; }
.bbdr-fab-mess { background: #fbbc05; color: #000 !important; }
.bbdr-fab-mess .bbdr-fab-icon { background: rgba(0,0,0,0.1); }
.bbdr-fab-mess .bbdr-fab-icon svg { fill: #000; }

@media (max-width: 768px) {
    .bbdr-fab-item span { display: none; }
    .bbdr-fab-item { padding: 5px; }
    .bbdr-fab-icon { margin-right: 0; }
}
/* ========================================= */
/* FIX LOI GIAO DIEN MOBILE (STATS, FLASH SALE, TABS) */
/* ========================================= */
@media (max-width: 768px) {
    /* 1. Fix Stats Box (10+ Nam kinh nghiem, etc.) */
    .bbdr-stats {
        flex-direction: column !important;
        margin-top: -30px !important;
        height: auto !important;
    }
    .bbdr-stats > div {
        width: 100% !important;
        border-bottom: 1px solid #eaeaea;
        padding: 15px !important;
        margin-left: 0 !important;
        clip-path: none !important;
        border-radius: 0 !important;
    }
    .bbdr-stats > div:first-child {
        border-radius: 6px 6px 0 0 !important;
    }
    .bbdr-stats > div:last-child {
        border-bottom: none;
        border-radius: 0 0 6px 6px !important;
    }

    /* 2. Fix Flash Sale Overlay */
    .flash-overlay {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 20px !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center; /* flex clipping issue */
        justify-content: center;
    }
    .flash-row .box {
        width: 55px !important;
    }
    .flash-row .num {
        width: 55px !important;
        height: 45px !important;
        font-size: 22px !important;
    }
    .flash-row .txt {
        font-size: 11px !important;
    }
    .flash-title {
        text-align: center;
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    /* 3. Fix Product Tabs Overlap ("Tat ca san pham" button) */
    .tabbed-content .nav-pills {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px !important;
    }
    .tabbed-content .nav > li {
        width: auto !important;
        margin: 0 !important;
    }
    .tabbed-content .nav > li > a {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
    #col-1453984299 {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        display: block !important;
        width: 100% !important;
        text-align: center;
    }
    #col-1453984299 .button {
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ========================================= */
/* FIX STATS BOX MOBILE LAYOUT (2x2 GRID) */
/* ========================================= */
@media (max-width: 768px) {
    .bbdr-stats {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    .bbdr-stats > div {
        width: 50% !important;
        flex: none !important;
        padding: 15px 5px !important;
        box-sizing: border-box;
    }
    .bbdr-stats > div:not(:last-child) {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center;
    }
    /* Select the text wrapper inside the first 4 items */
    .bbdr-stats > div:not(:last-child) > div {
        align-items: center !important;
    }
    /* Add borders for the grid */
    .bbdr-stats > div:nth-child(odd):not(:last-child) {
        border-right: 1px solid #eaeaea;
    }
    .bbdr-stats > div:nth-child(1), .bbdr-stats > div:nth-child(2) {
        border-bottom: 1px solid #eaeaea;
    }
    .bbdr-stats > div:nth-child(3), .bbdr-stats > div:nth-child(4) {
        border-bottom: none !important;
    }
    /* The 5th item (Blue box) */
    .bbdr-stats > div:last-child {
        width: 100% !important;
        padding: 15px !important;
        justify-content: center !important;
    }
}

/* ========================================= */
/* FIX MARGIN STATS BOX & RE-DECLARE FLASH TIMER STYLES */
/* ========================================= */
@media (max-width: 768px) {
    .bbdr-stats {
        margin-top: 5px !important; /* NgÃƒâ€žÃ†â€™n khÃƒÆ’Ã‚Â´ng cho Ãƒâ€žÃ¢â‚¬ËœÃƒÆ’Ã‚Â¨ lÃƒÆ’Ã‚Âªn chÃƒÂ¡Ã‚Â»Ã‚Â¯ cÃƒÂ¡Ã‚Â»Ã‚Â§a Hero Banner */
    }
}
.flash-row .num {
    background: #fff !important;
    border-radius: 10px !important;
    color: #f16821 !important;
}

/* ========================================= */
/* FIX FLASH SALE OVERLAY ON MOBILE */
/* ========================================= */
@media (max-width: 768px) {
    .flash-overlay {
        position: absolute !important;
        right: -60px !important;
        top: 50% !important;
        transform: translateY(-50%) scale(0.45) !important;
        width: 300px !important;
        margin-top: 0 !important;
        display: block !important;
    }
    .flash-title {
        color: #fff !important; /* Make title white to contrast with yellow banner */
    }
}

@media (max-width: 768px) {
    .flash-overlay {
        transform-origin: right center !important;
        transform: translateY(-50%) scale(0.4) !important;
        right: 15px !important;
    }
}

/* ========================================= */
/* FIX FLASH SALE OVERLAY ON MOBILE - REVERT TO RELATIVE AND BEAUTIFY */
/* ========================================= */
@media (max-width: 768px) {
    .flash-overlay {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 20px !important;
        padding: 15px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: #fffaf0 !important; /* MÃƒÆ’Ã‚Â u nÃƒÂ¡Ã‚Â»Ã‚Ân vÃƒÆ’Ã‚Â ng nhÃƒÂ¡Ã‚ÂºÃ‚Â¡t Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚Â»Ã†â€™ phÃƒÆ’Ã‚Â¢n biÃƒÂ¡Ã‚Â»Ã¢â‚¬Â¡t vÃƒÂ¡Ã‚Â»Ã¢â‚¬Âºi nÃƒÂ¡Ã‚Â»Ã‚Ân trÃƒÂ¡Ã‚ÂºÃ‚Â¯ng cÃƒÂ¡Ã‚Â»Ã‚Â§a trang */
        border-radius: 12px !important;
        border: 1px dashed #f16821 !important; /* ViÃƒÂ¡Ã‚Â»Ã‚Ân Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚Â»Ã‚Â©t nÃƒÆ’Ã‚Â©t mÃƒÆ’Ã‚Â u cam */
    }
    .flash-title {
        color: #f16821 !important; 
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
        text-align: center;
    }
    .flash-row .box {
        width: 65px !important;
    }
    .flash-row .num {
        width: 65px !important;
        height: 50px !important;
        font-size: 24px !important;
        background: #fff !important;
        color: #f16821 !important;
        box-shadow: 0 4px 10px rgba(241,104,33,0.15) !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .flash-row .txt {
        font-size: 12px !important;
        color: #666 !important;
        margin-top: 5px !important;
    }
    .flash-row .dot {
        font-size: 24px !important;
        color: #f16821 !important;
        margin: 0 8px !important;
        line-height: 50px !important;
        align-self: flex-start !important; /* CÃƒâ€žÃ†â€™n thÃƒÂ¡Ã‚ÂºÃ‚Â³ng vÃƒÂ¡Ã‚Â»Ã¢â‚¬Âºi hÃƒÂ¡Ã‚Â»Ã¢â€žÂ¢p sÃƒÂ¡Ã‚Â»Ã¢â‚¬Ëœ */
    }
}

/* ========================================= */
/* FIX TABS OVERLAPPING BUTTON ON MOBILE */
/* ========================================= */
@media (max-width: 768px) {
    /* Push the tabs row down so it doesn't overlap the button */
    #row-1025599367 {
        margin-top: 60px !important;
    }
    /* Ensure the button column takes up proper space */
    #col-1453984299 {
        display: flex !important;
        align-items: center; /* flex clipping issue */
        justify-content: center;
        min-height: 50px;
        margin-bottom: 20px !important;
    }
}

/* ========================================= */
/* FIX TABS OVERLAP BY HIDING REDUNDANT BUTTON */
/* ========================================= */
@media (max-width: 768px) {
    /* ÃƒÂ¡Ã‚ÂºÃ‚Â¨n nÃƒÆ’Ã‚Âºt "Xem tÃƒÂ¡Ã‚ÂºÃ‚Â¥t cÃƒÂ¡Ã‚ÂºÃ‚Â£ sÃƒÂ¡Ã‚ÂºÃ‚Â£n phÃƒÂ¡Ã‚ÂºÃ‚Â©m" trÃƒÆ’Ã‚Âªn mobile vÃƒÆ’Ã‚Â¬ Ãƒâ€žÃ¢â‚¬ËœÃƒÆ’Ã‚Â£ cÃƒÆ’Ã‚Â³ Tab "TÃƒÂ¡Ã‚ÂºÃ‚Â¥t cÃƒÂ¡Ã‚ÂºÃ‚Â£" ngay bÃƒÆ’Ã‚Âªn dÃƒâ€ Ã‚Â°ÃƒÂ¡Ã‚Â»Ã¢â‚¬Âºi, trÃƒÆ’Ã‚Â¡nh gÃƒÆ’Ã‚Â¢y lÃƒÂ¡Ã‚Â»Ã¢â‚¬â€i Ãƒâ€žÃ¢â‚¬ËœÃƒÆ’Ã‚Â¨ layout */
    #col-1453984299 {
        display: none !important;
    }
    /* Ãƒâ€žÃ‚ÂÃƒÂ¡Ã‚ÂºÃ‚Â·t lÃƒÂ¡Ã‚ÂºÃ‚Â¡i khoÃƒÂ¡Ã‚ÂºÃ‚Â£ng cÃƒÆ’Ã‚Â¡ch cho hÃƒÆ’Ã‚Â ng Tab */
    #row-1025599367 {
        margin-top: 10px !important;
    }
}

/* ========================================= */
/* FIX OVERLAP - ULTRA HIGH SPECIFICITY HIDE */
/* ========================================= */
@media (max-width: 768px) {
    /* ÃƒÆ’Ã¢â‚¬Â°p buÃƒÂ¡Ã‚Â»Ã¢â€žÂ¢c ÃƒÂ¡Ã‚ÂºÃ‚Â©n hoÃƒÆ’Ã‚Â n toÃƒÆ’Ã‚Â n cÃƒÂ¡Ã‚Â»Ã¢â€žÂ¢t chÃƒÂ¡Ã‚Â»Ã‚Â©a nÃƒÆ’Ã‚Âºt "Xem tÃƒÂ¡Ã‚ÂºÃ‚Â¥t cÃƒÂ¡Ã‚ÂºÃ‚Â£ sÃƒÂ¡Ã‚ÂºÃ‚Â£n phÃƒÂ¡Ã‚ÂºÃ‚Â©m" bÃƒÂ¡Ã‚ÂºÃ‚Â±ng Specificity cao nhÃƒÂ¡Ã‚ÂºÃ‚Â¥t */
    html body div#col-1453984299,
    html body div#col-1453984299 * {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* TrÃƒÂ¡Ã‚ÂºÃ‚Â£ lÃƒÂ¡Ã‚ÂºÃ‚Â¡i khoÃƒÂ¡Ã‚ÂºÃ‚Â£ng cÃƒÆ’Ã‚Â¡ch chuÃƒÂ¡Ã‚ÂºÃ‚Â©n cho hÃƒÆ’Ã‚Â ng Tabs bÃƒÆ’Ã‚Âªn dÃƒâ€ Ã‚Â°ÃƒÂ¡Ã‚Â»Ã¢â‚¬Âºi */
    html body div#row-1025599367 {
        margin-top: 15px !important;
    }
}

/* ========================================= */
/* FIX SERVICE GRID MOBILE LAYOUT (2-COLUMN) */
/* ========================================= */
@media (max-width: 768px) {
    .service-grid-custom {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .service-item-custom {
        width: 50% !important;
        flex: none !important;
        flex-direction: column !important;
        text-align: center !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 15px 5px !important;
        border-bottom: 1px solid #eaeaea !important;
        border-right: none !important;
        gap: 10px !important;
    }
    .service-item-custom:nth-child(odd):not(:last-child) {
        border-right: 1px solid #eaeaea !important;
    }
    .service-item-custom:last-child {
        width: 100% !important;
        border-bottom: none !important;
        border-right: none !important;
    }
    .service-item-custom .service-text {
        text-align: center !important;
        font-size: 12px !important;
    }
}

/* ========================================= */
/* FIX FACTORY VIDEO & STATS MOBILE LAYOUT */
/* ========================================= */
@media (max-width: 768px) {
    /* 1. Remove huge black bars on video */
    .factory-video-box {
        height: 220px !important; /* Scale down height to match mobile width 16:9 ratio */
    }
    
    /* 2. Fix Stats grid (5 items -> 2x2 + 1 full width) */
    .factory-video-stats {
        flex-wrap: wrap !important;
    }
    .factory-video-stat {
        width: 50% !important;
        min-width: 50% !important;
        flex: none !important;
        padding: 15px 10px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        box-sizing: border-box !important;
    }
    /* Left column borders */
    .factory-video-stat:nth-child(odd):not(:last-child) {
        border-right: 1px solid rgba(255,255,255,0.1) !important;
    }
    /* Right column borders */
    .factory-video-stat:nth-child(even) {
        border-right: none !important;
    }
    /* 5th item (24/7 Support) takes full width */
    .factory-video-stat:last-child {
        width: 100% !important;
        min-width: 100% !important;
        border-right: none !important;
        border-bottom: none !important;
        justify-content: center !important;
    }
    /* Adjust text and icon sizes to fit mobile nicely */
    .factory-video-text strong {
        font-size: 18px !important;
        margin-bottom: 2px !important;
    }
    .factory-video-text span {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    .factory-video-icon img {
        width: 28px !important;
        height: 28px !important;
    }
}

/* ========================================= */
/* FIX PROJECT SLIDER MOBILE LAYOUT */
/* ========================================= */
@media (max-width: 768px) {
    /* 1. ÃƒÆ’Ã¢â‚¬Â°p Slider chÃƒÂ¡Ã‚Â»Ã¢â‚¬Â° hiÃƒÂ¡Ã‚Â»Ã†â€™n thÃƒÂ¡Ã‚Â»Ã¢â‚¬Â¹ 2 dÃƒÂ¡Ã‚Â»Ã‚Â± ÃƒÆ’Ã‚Â¡n trÃƒÆ’Ã‚Âªn mÃƒÆ’Ã‚Â n hÃƒÆ’Ã‚Â¬nh (thay vÃƒÆ’Ã‚Â¬ 5) */
    .blog-posts .flickity-slider > .col {
        width: 50% !important;
        max-width: 50% !important;
    }
    
    /* 2. CÃƒâ€žÃ†â€™n trÃƒÆ’Ã‚Â¡i nÃƒÆ’Ã‚Âºt "Xem tÃƒÂ¡Ã‚ÂºÃ‚Â¥t cÃƒÂ¡Ã‚ÂºÃ‚Â£ dÃƒÂ¡Ã‚Â»Ã‚Â± ÃƒÆ’Ã‚Â¡n" cho Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚Â»Ã¢â‚¬Å“ng bÃƒÂ¡Ã‚Â»Ã¢â€žÂ¢ vÃƒÂ¡Ã‚Â»Ã¢â‚¬Âºi tiÃƒÆ’Ã‚Âªu Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚Â»Ã‚Â */
    .btn-du-an .text-right {
        text-align: left !important;
    }
    .btn-du-an {
        margin-bottom: 20px !important;
        margin-top: 15px !important;
    }
}

/* ========================================= */
/* FIX PARTNER LOGOS GRID ON MOBILE */
/* ========================================= */
@media (max-width: 768px) {
    /* CÃƒâ€žÃ†â€™n giÃƒÂ¡Ã‚Â»Ã‚Â¯a hÃƒÆ’Ã‚Â ng logo cuÃƒÂ¡Ã‚Â»Ã¢â‚¬Ëœi cÃƒÆ’Ã‚Â¹ng (bÃƒÂ¡Ã‚Â»Ã¢â‚¬Â¹ lÃƒÂ¡Ã‚ÂºÃ‚Â» 1 cÃƒÆ’Ã‚Â¡i) trong phÃƒÂ¡Ã‚ÂºÃ‚Â§n KhÃƒÆ’Ã‚Â¡ch hÃƒÆ’Ã‚Â ng tiÃƒÆ’Ã‚Âªu biÃƒÂ¡Ã‚Â»Ã†â€™u */
    #col-301961437 .row {
        justify-content: center !important;
    }
    /* GiÃƒÂ¡Ã‚ÂºÃ‚Â£m nhÃƒÂ¡Ã‚ÂºÃ‚Â¹ khoÃƒÂ¡Ã‚ÂºÃ‚Â£ng cÃƒÆ’Ã‚Â¡ch dÃƒÂ¡Ã‚Â»Ã‚Âc giÃƒÂ¡Ã‚Â»Ã‚Â¯a cÃƒÆ’Ã‚Â¡c hÃƒÆ’Ã‚Â ng logo cho cÃƒÆ’Ã‚Â¢n Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚Â»Ã¢â‚¬Ëœi hÃƒâ€ Ã‚Â¡n trÃƒÆ’Ã‚Âªn mÃƒÆ’Ã‚Â n hÃƒÆ’Ã‚Â¬nh nhÃƒÂ¡Ã‚Â»Ã‚Â */
    #col-301961437 .gallery-col {
        padding-bottom: 10px !important;
    }
}

/* ========================================= */
/* FIX SLIDER COLUMN SHRINKING BUG (DESKTOP) */
/* ========================================= */
/* Force Flickity items to respect Flatsome column grid widths */
.large-columns-5 .flickity-slider > .col {
    width: 20% !important;
    max-width: 20% !important;
}
.large-columns-4 .flickity-slider > .col {
    width: 25% !important;
    max-width: 25% !important;
}
.large-columns-3 .flickity-slider > .col {
    width: 33.333% !important;
    max-width: 33.333% !important;
}
@media (max-width: 849px) {
    .medium-columns-3 .flickity-slider > .col {
        width: 33.333% !important;
        max-width: 33.333% !important;
    }
}

/* ========================================= */
/* FIX SLIDER COLUMN WIDTH ON DESKTOP */
/* ========================================= */
/* Prevent the parent column from shrink-wrapping due to justify-content: center on the row */
#col-1150466801 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* ========================================= */
/* FIX SLIDER COLUMN WIDTH ON DESKTOP */
/* ========================================= */
/* Prevent the parent column from shrink-wrapping due to justify-content: center on the row */
.project-slider-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* ========================================= */
/* FIX INNER SLIDER ROW MAX-WIDTH BUNG */
/* ========================================= */
/* Flatsome caps .row at 1080px by default. Since this is an inner row inside a custom 90% wrapper, we MUST force it to 100% so it doesn't shrink on wide screens. */
.project-slider-col .row {
    max-width: 100% !important;
    width: 100% !important;
}

/* ========================================= */
/* HIGHLIGHT CLOCK ON DESKTOP */
/* ========================================= */
@media (min-width: 769px) {
    .flash-title {
        font-size: 26px !important;
        font-weight: 800 !important;
        color: #111 !important;
        margin-bottom: 20px !important;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .flash-row .box {
        width: 95px !important;
    }

    .flash-row .num {
        width: 95px !important;
        height: 80px !important;
        font-size: 40px !important;
        font-weight: 900 !important;
        color: #d12027 !important; /* Red for urgency */
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 -4px 0 rgba(0,0,0,0.05) !important;
    }

    .flash-row .txt {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #333 !important;
        margin-top: 10px !important;
    }

    .flash-row .dot {
        font-size: 36px !important;
        color: #111 !important;
        font-weight: bold !important;
        line-height: 80px !important;
        align-self: flex-start !important;
    }
}

/* ========================================= */
/* FIX PROJECT SLIDER TITLES CLARITY */
/* ========================================= */
.project-slider-col .post-title a {
    color: #111111 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-shadow: none !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.project-slider-col .cat-label {
    color: #f16821 !important;
    opacity: 1 !important;
    font-weight: bold !important;
    font-size: 12px !important;
    letter-spacing: 0.5px;
    margin-bottom: 5px !important;
}

.project-slider-col .box-text {
    background-color: transparent !important;
    padding-top: 15px !important;
    padding-bottom: 10px !important;
}

.project-slider-col .post-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 5px !important;
    height: auto !important;
    overflow: visible !important;
}
/* ========================================= */
/* BÃƒÆ’Ã‚Â¡n ChÃƒÂ¡Ã‚ÂºÃ‚Â¡y Badge */
/* ========================================= */
.bbdr-banchay-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #00a651;
    color: #fff;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,166,81,0.3);
}

/* ========================================= */
/* Gallery Feature Icons & Support Block */
/* ========================================= */
.bbdr-gallery-blocks { display: block;
    margin-top: 25px;
}
.gallery-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.gallery-features .g-feature {
    text-align: center;
}
.gallery-features img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.8;
}
.gallery-features strong {
    display: block;
    font-size: 11px;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.gallery-features span {
    display: block;
    font-size: 10px;
    color: #666;
}

.gallery-support {
    display: flex;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 15px 10px;
    justify-content: space-between;
}
.gallery-support .g-supp {
    text-align: center;
    flex: 1;
    padding: 0 5px;
    border-right: 1px dashed #ffe082;
}
.gallery-support .g-supp:last-child {
    border-right: none;
}
.gallery-support img {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
}
.gallery-support strong {
    display: block;
    font-size: 13px;
    color: #d84315;
    line-height: 1.2;
}
.gallery-support span {
    display: block;
    font-size: 11px;
    color: #555;
    line-height: 1.2;
    margin-top: 2px;
}

/* ========================================= */
/* Product Header (Title, SKU, Rating) */
/* ========================================= */
.product-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}
.bbdr-product-meta-row {
    display: flex;
    align-items: center; /* flex clipping issue */
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.bbdr-meta-sku strong { color: #222; }
.bbdr-meta-rating { display: flex; align-items: center; /* flex clipping issue */ }
.bbdr-meta-rating .star-rating {
    font-size: 12px;
    margin: 0 5px 0 0;
    color: #f59e0b;
}
.bbdr-meta-rating .rating-score {
    font-weight: bold;
    color: #222;
    margin-right: 5px;
}
.bbdr-meta-rating .review-count { color: #666; }
.bbdr-meta-sold {
    border-left: 1px solid #ccc;
    padding-left: 15px;
}

/* ========================================= */
/* Price Block */
/* ========================================= */
.bbdr-price-wrapper {
    margin-bottom: 25px;
}
.bbdr-main-price {
    font-size: 32px;
    font-weight: bold;
    color: #d12027;
    display: inline-block;
    margin-right: 15px;
}
.bbdr-main-price .woocommerce-Price-currencySymbol {
    font-size: 20px;
    vertical-align: top;
    margin-left: 2px;
}
.bbdr-old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    display: inline-block;
    margin-right: 15px;
}
.bbdr-price-badge {
    display: inline-block;
    background: #ffeee6;
    color: #d12027;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
}
.bbdr-save-text {
    font-size: 14px;
    color: #d12027;
    font-weight: 600;
    margin-top: 5px;
}
.bbdr-delivery-info {
    margin-top: 15px;
}
.bbdr-delivery-info .del-item {
    display: flex;
    align-items: center; /* flex clipping issue */
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
}
.bbdr-delivery-info .del-item svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: #555;
}

/* ========================================= */
/* Variation Swatches */
/* ========================================= */
.variations th {
    text-align: left;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    padding-bottom: 10px;
    border: none;
}
.bbdr-variation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.bbdr-var-btn {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.bbdr-var-btn:hover {
    border-color: #0A33A5;
    color: #0A33A5;
}
.bbdr-var-btn.selected {
    border-color: #0A33A5;
    color: #0A33A5;
    background: #f0f4f8;
}
.bbdr-var-btn .var-check {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
}
.bbdr-var-btn.selected .var-check {
    display: block;
}

/* ========================================= */
/* Promo Box */
/* ========================================= */
.bbdr-promo-box {
    border: 1px dashed #2eac4a;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    margin: 25px 0;
    background: #f4fbf5;
}
.bbdr-promo-box .promo-header {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #fff;
    padding: 0 10px;
    font-weight: bold;
    font-size: 13px;
    color: #333;
}
.bbdr-promo-box .promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* flex clipping issue */
}
.bbdr-promo-box .promo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bbdr-promo-box .promo-list li {
    display: flex;
    align-items: center; /* flex clipping issue */
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
}
.bbdr-promo-box .promo-list li:last-child { margin-bottom: 0; }
.bbdr-promo-box .promo-list svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}
.bbdr-promo-box .promo-icon img {
    width: 60px;
    opacity: 0.9;
}

/* ========================================= */
/* Action Buttons */
/* ========================================= */
.bbdr-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}
.bbdr-btn {
    border: none;
    border-radius: 6px;
    color: #fff;
    display: flex;
    align-items: center; /* flex clipping issue */
    justify-content: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
}
.bbdr-btn svg { width: 24px; height: 24px; margin-right: 10px; }
.bbdr-btn .btn-text { display: flex; flex-direction: column; align-items: flex-start; }
.bbdr-btn .btn-text strong { font-size: 16px; line-height: 1.2; }
.bbdr-btn .btn-text span { font-size: 11px; font-weight: 400; opacity: 0.9; }

.bbdr-btn-buy-now { background: #d12027; }
.bbdr-btn-buy-now:hover { background: #b01a20; }

.single_add_to_cart_button {
    background: #0A33A5 !important;
    border-radius: 6px !important;
    width: 100% !important;
    margin-top: 15px !important;
    font-size: 16px !important;
    padding: 15px !important;
}
.single_add_to_cart_button:hover { background: #082885 !important; }

.bbdr-btn-bulk {
    background: #f16821;
    width: 100%;
    margin-top: 15px;
}
.bbdr-btn-bulk:hover { background: #d15619; }

/* ========================================= */
/* Zalo Widget */
/* ========================================= */
.bbdr-zalo-widget {
    display: flex;
    align-items: center; /* flex clipping issue */
    border: 1px solid #0068ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
    background: #f0f6ff;
}
.bbdr-zalo-widget .zalo-logo { margin-right: 15px; }
.bbdr-zalo-widget .zalo-logo img { width: 50px; }
.bbdr-zalo-widget .zalo-info { flex: 1; display: flex; flex-direction: column; }
.bbdr-zalo-widget .zalo-title { font-weight: bold; color: #333; font-size: 14px; }
.bbdr-zalo-widget .zalo-desc { font-size: 12px; color: #666; margin-bottom: 5px; }
.bbdr-zalo-widget .zalo-phone { font-size: 18px; color: #0068ff; }
.bbdr-zalo-widget .zalo-qr img { width: 60px; height: 60px; border-radius: 4px; }

/* ========================================= */
/* Trust Badges Bar */
/* ========================================= */
.bbdr-trust-bar-wrapper {
    width: 100%;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    margin: 40px 0;
    clear: both;
}
.bbdr-trust-bar {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.bbdr-trust-bar .trust-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.bbdr-trust-bar .trust-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.bbdr-trust-bar .trust-item {
    display: flex;
    align-items: center; /* flex clipping issue */
    text-align: left;
    flex: 1;
    min-width: 200px;
}
.bbdr-trust-bar .trust-item img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}
.bbdr-trust-bar .trust-item strong {
    display: block;
    font-size: 13px;
    color: #222;
}
.bbdr-trust-bar .trust-item span {
    display: block;
    font-size: 11px;
    color: #666;
}

/* ========================================= */
/* Custom Tabs Styling */
/* ========================================= */
.woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #eee !important;
    display: flex;
    justify-content: space-between;
    padding: 0 !important;
    margin-bottom: 30px !important;
}
.woocommerce-tabs ul.tabs li {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
    text-align: center;
}
.woocommerce-tabs ul.tabs li a {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #555 !important;
    padding: 15px 0 !important;
    display: block;
    border-bottom: 3px solid transparent !important;
    text-transform: uppercase;
}
.woocommerce-tabs ul.tabs li.active a {
    color: #0A33A5 !important;
    border-bottom-color: #0A33A5 !important;
}

/* ========================================= */
/* Review Breakdown Styling */
/* ========================================= */
.bbdr-review-breakdown {
    display: flex;
    justify-content: space-between;
    align-items: center; /* flex clipping issue */
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    background: #fafafa;
}
.bbdr-review-breakdown .rev-left {
    text-align: center;
    min-width: 150px;
    border-right: 1px solid #ddd;
    padding-right: 20px;
}
.bbdr-review-breakdown .rev-score {
    font-size: 48px;
    font-weight: bold;
    color: #222;
    line-height: 1;
}
.bbdr-review-breakdown .rev-score span {
    font-size: 24px;
    color: #999;
}
.bbdr-review-breakdown .rev-stars {
    color: #f59e0b;
    font-size: 20px;
    margin: 10px 0;
}
.bbdr-review-breakdown .rev-count {
    font-size: 13px;
    color: #666;
}

.bbdr-review-breakdown .rev-middle {
    flex: 1;
    padding: 0 40px;
}
.bbdr-review-breakdown .rev-bar-row {
    display: flex;
    align-items: center; /* flex clipping issue */
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}
.bbdr-review-breakdown .rev-bar-row:last-child { margin-bottom: 0; }
.bbdr-review-breakdown .rev-bar-row span { width: 30px; }
.bbdr-review-breakdown .rev-bar-row span:last-child { width: 40px; text-align: right; }
.bbdr-review-breakdown .bar-bg {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}
.bbdr-review-breakdown .bar-fill {
    height: 100%;
    background: #f59e0b;
}

.bbdr-review-breakdown .rev-right {
    min-width: 150px;
    text-align: center;
}
.bbdr-write-review-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.bbdr-write-review-btn:hover {
    border-color: #0A33A5;
    color: #0A33A5;
}

/* Related products styling */
.related.products h3 {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid #0A33A5;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}
/* ========================================= */
/* Action Buttons Redesign (Neat & Clean) */
/* ========================================= */
.bbdr-action-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}
.bbdr-action-buttons .bbdr-btn-buy-now {
    grid-column: 1 / -1; /* Full width */
    background: #d12027 !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    display: flex;
    justify-content: center;
    align-items: center; /* flex clipping issue */
    box-shadow: 0 4px 10px rgba(209,32,39,0.2);
}
.bbdr-action-buttons .bbdr-btn-buy-now .btn-text strong {
    font-size: 18px;
    text-transform: uppercase;
}
.bbdr-action-buttons .bbdr-btn-buy-now .btn-text span {
    font-size: 13px;
    opacity: 0.9;
}
.bbdr-action-buttons .single_add_to_cart_button {
    grid-column: span 1;
    background: #fff !important;
    color: #0A33A5 !important;
    border: 2px solid #0A33A5 !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    margin: 0 !important;
    height: 100% !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}
.bbdr-action-buttons .single_add_to_cart_button:hover {
    background: #f0f4f8 !important;
}
.bbdr-action-buttons .bbdr-btn-bulk {
    grid-column: span 1;
    background: #f16821 !important;
    color: #fff !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border: none !important;
    margin: 0 !important;
    height: 100% !important;
    box-shadow: 0 4px 10px rgba(241,104,33,0.2);
    display: flex;
    justify-content: center;
    align-items: center; /* flex clipping issue */
}
.bbdr-action-buttons .bbdr-btn-bulk .btn-text strong {
    font-size: 14px;
    text-transform: uppercase;
}
.bbdr-action-buttons .bbdr-btn-bulk .btn-text span {
    font-size: 11px;
}
/* Hide the default WooCommerce margin on Add to cart wrapper */
.woocommerce-variation-add-to-cart { margin-bottom: 0 !important; }

/* ========================================= */
/* Zalo Widget Redesign (Aligned & Spaced) */
/* ========================================= */
.bbdr-zalo-widget {
    background: #f4f8ff !important;
    border: 1px solid #cce0ff !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    margin-top: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.bbdr-zalo-widget .zalo-logo {
    margin-right: 15px !important;
}
.bbdr-zalo-widget .zalo-logo img {
    width: 55px !important;
}
.bbdr-zalo-widget .zalo-info {
    flex: 1 !important;
}
.bbdr-zalo-widget .zalo-title {
    font-weight: 700 !important;
    color: #333 !important;
    font-size: 15px !important;
    margin-bottom: 2px !important;
}
.bbdr-zalo-widget .zalo-desc {
    font-size: 13px !important;
    color: #555 !important;
    margin-bottom: 5px !important;
}
.bbdr-zalo-widget .zalo-phone {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0068ff !important;
    letter-spacing: 1px !important;
}
.bbdr-zalo-widget .zalo-qr img {
    width: 75px !important;
    height: 75px !important;
    border-radius: 6px !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    object-fit: cover !important;
}
/* ========================================= */
/* Exact Layout Match - Action Buttons */
/* ========================================= */
.bbdr-action-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}
.bbdr-action-buttons .bbdr-btn-buy-now {
    width: 100% !important;
    background: #e51d20 !important; /* Bright red matching mockup */
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    border: none !important;
    display: flex;
    justify-content: center;
    align-items: center; /* flex clipping issue */
    box-shadow: none !important;
}
.bbdr-action-buttons .bbdr-btn-buy-now .btn-text strong {
    font-size: 18px;
    font-weight: bold;
}
.bbdr-action-buttons .bbdr-btn-buy-now .btn-text span {
    font-size: 14px;
    opacity: 0.95;
    font-weight: normal;
}
.bbdr-action-buttons .single_add_to_cart_button {
    width: 100% !important;
    background: #0046b0 !important; /* Solid blue matching mockup */
    color: #fff !important;
    border: none !important;
    padding: 14px 20px !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    margin: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center;
    align-items: center; /* flex clipping issue */
}
.bbdr-action-buttons .single_add_to_cart_button:hover {
    background: #003380 !important;
    color: #fff !important;
}
.bbdr-action-buttons .bbdr-btn-bulk {
    width: 100% !important;
    background: #f17819 !important; /* Orange matching mockup */
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    border: none !important;
    margin: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    align-items: center; /* flex clipping issue */
}
.bbdr-action-buttons .bbdr-btn-bulk .btn-text strong {
    font-size: 18px;
    font-weight: bold;
}
.bbdr-action-buttons .bbdr-btn-bulk .btn-text span {
    font-size: 14px;
    opacity: 0.95;
    font-weight: normal;
}

/* ========================================= */
/* Exact Layout Match - Zalo Widget */
/* ========================================= */
.bbdr-zalo-widget {
    background: #fff !important; /* White background */
    border: 1px solid #e0e0e0 !important; /* Light gray border */
    border-radius: 10px !important;
    padding: 15px 20px !important;
    margin-top: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.bbdr-zalo-widget .zalo-logo {
    margin-right: 15px !important;
}
.bbdr-zalo-widget .zalo-logo img {
    width: 65px !important;
}
.bbdr-zalo-widget .zalo-info {
    flex: 1 !important;
}
.bbdr-zalo-widget .zalo-title {
    font-weight: 700 !important;
    color: #222 !important;
    font-size: 15px !important;
    margin-bottom: 2px !important;
}
.bbdr-zalo-widget .zalo-desc {
    font-size: 13px !important;
    color: #0068ff !important; /* Blue description */
    margin-bottom: 5px !important;
}
.bbdr-zalo-widget .zalo-phone {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0068ff !important;
    letter-spacing: 0.5px !important;
}
.bbdr-zalo-widget .zalo-qr img {
    width: 65px !important;
    height: 65px !important;
    border-radius: 4px !important;
    border: none !important;
    box-shadow: none !important;
    object-fit: cover !important;
}
/* ========================================= */
/* Exact Layout Match - Gallery Features & Support */
/* ========================================= */
.bbdr-gallery-blocks { display: block;
    margin-top: 25px;
}
.gallery-features {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa !important; /* Light gray background */
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 15px 10px !important;
    margin-bottom: 15px !important;
}
.gallery-features .g-feature {
    text-align: center;
    flex: 1;
}
.gallery-features img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}
.gallery-features strong {
    display: block;
    font-size: 11px;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.gallery-features span {
    display: block;
    font-size: 10px;
    color: #666;
}

.gallery-support {
    display: flex;
    background: #fff8e1 !important; /* Pale yellow */
    border: 1px solid #ffecb3 !important;
    border-radius: 8px !important;
    padding: 15px 10px !important;
    justify-content: space-between;
}
.gallery-support .g-supp {
    text-align: center;
    flex: 1;
    padding: 0 5px;
    border-right: 1px dashed #ffe082 !important;
}
.gallery-support .g-supp:last-child {
    border-right: none !important;
}
.gallery-support img {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
}
.gallery-support strong {
    display: block;
    font-size: 13px;
    color: #222;
    line-height: 1.2;
}
.gallery-support span {
    display: block;
    font-size: 11px;
    color: #555;
    line-height: 1.2;
    margin-top: 2px;
}
/* ========================================= */
/* Two-Column Bottom Layout */
/* ========================================= */
.bbdr-bottom-layout-wrapper {
    background: #f9f9f9;
    padding: 30px 0;
}
.bbdr-bottom-layout-wrapper .row {
    margin-bottom: 0 !important;
}
.bbdr-left-col {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.bbdr-right-col {
    padding-left: 20px;
}
@media (max-width: 849px) {
    .bbdr-right-col {
        padding-left: 15px; /* default flatsome gutter */
        margin-top: 30px;
    }
}
.bbdr-review-summary-box .button.outline {
    border-color: #ddd;
    color: #333;
    font-weight: 600;
}
.bbdr-review-summary-box .button.outline:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #000;
}
/* Fix product tabs in left column */
.bbdr-left-col .woocommerce-tabs {
    padding: 0 !important;
    border: none !important;
}
.bbdr-left-col .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.bbdr-left-col .woocommerce-tabs ul.tabs li {
    margin: 0 20px 0 0 !important;
}
.bbdr-left-col .woocommerce-tabs ul.tabs li a {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}
.bbdr-left-col .woocommerce-tabs ul.tabs li.active a {
    color: #0A33A5;
    border-bottom-color: #0A33A5;
}
/* Ensure product grid in right col looks tight */
.bbdr-related-box .product-small {
    margin-bottom: 0;
}
.bbdr-related-box .product-title a {
    color: #333;
}
.bbdr-related-box .product-title a:hover {
    color: #0A33A5;
}

/* Fix Price display */
.bbdr-price-badge {
    position: relative;
    top: -5px;
}

/* ========================================= */
/* Mockup Pixel-Perfect Refinements */
/* ========================================= */

/* Fix Price Currency Symbol (remove Flatsome superscript) */
.bbdr-main-price .woocommerce-Price-currencySymbol {
    vertical-align: baseline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-decoration: underline !important;
}
.bbdr-old-price .woocommerce-Price-currencySymbol {
    vertical-align: baseline !important;
    font-size: inherit !important;
    text-decoration: underline !important;
}

/* Hide Quantity box to match mockup exactly */
.quantity, .bbdr-quantity-label {
    display: none !important;
}

/* Force tabs to look exactly like mockup (no box, bottom blue line) */
.bbdr-left-col .woocommerce-tabs {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.bbdr-left-col .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #eee !important;
    margin-bottom: 20px !important;
    display: flex !important;
}
.bbdr-left-col .woocommerce-tabs ul.tabs li {
    margin: 0 30px 0 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
.bbdr-left-col .woocommerce-tabs ul.tabs li::before,
.bbdr-left-col .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}
.bbdr-left-col .woocommerce-tabs ul.tabs li a {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #666 !important;
    padding: 0 0 15px 0 !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 3px solid transparent !important;
    text-transform: uppercase !important;
}
.bbdr-left-col .woocommerce-tabs ul.tabs li.active a {
    color: #0A33A5 !important;
    border-bottom-color: #0A33A5 !important;
}
.bbdr-left-col .woocommerce-tabs ul.tabs li:hover a {
    color: #333 !important;
}

/* Fix product table borders in tabs */
.bbdr-specs-table tr {
    border-bottom: 1px solid #eee;
}
.bbdr-specs-table th, .bbdr-specs-table td {
    padding: 15px 0;
    border: none !important;
}
.bbdr-specs-table th {
    color: #333;
    font-weight: 600;
}
.bbdr-specs-table td {
    color: #555;
}

/* Related products Grid padding fix */
.bbdr-related-box .col {
    padding-bottom: 0 !important;
}

/* ========================================= */
/* Mockup Pixel-Perfect Final Adjustments */
/* ========================================= */

/* Remove background and shadow from bottom layout to match mockup */
.bbdr-bottom-layout-wrapper {
    background: transparent !important;
    padding-top: 30px !important;
}
.bbdr-left-col {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Fix "ViÃƒÂ¡Ã‚ÂºÃ‚Â¿t Ãƒâ€žÃ¢â‚¬ËœÃƒÆ’Ã‚Â¡nh giÃƒÆ’Ã‚Â¡" button text case */
.bbdr-review-summary-box .button.is-outline {
    text-transform: none !important;
}


/* ========================================= */
/* Gallery Feature & Support Blocks */
/* ========================================= */
.bbdr-gallery-blocks { display: block;
    margin-top: 20px;
    width: 100%;
}

/* Top Block - White */
.gallery-features {
    display: flex;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 10px;
}
.gallery-features .g-feature {
    flex: 1;
    text-align: center;
    padding: 0 5px;
}
.gallery-features .g-feature img {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}
.gallery-features .g-feature strong {
    display: block;
    font-size: 11px;
    color: #333;
    margin-bottom: 2px;
    text-transform: uppercase;
}
.gallery-features .g-feature span {
    display: block;
    font-size: 10px;
    color: #666;
    line-height: 1.2;
}

/* Bottom Block - Yellow */
.gallery-support {
    display: flex;
    justify-content: space-between;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 15px 10px;
}
.gallery-support .g-supp {
    flex: 1;
    display: flex;
    align-items: center; /* flex clipping issue */
    gap: 8px;
    padding: 0 5px;
}
.gallery-support .g-supp .supp-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center; /* flex clipping issue */
    justify-content: center;
    flex-shrink: 0;
}
.gallery-support .g-supp .supp-icon img {
    width: 100%;
    height: auto;
}
.gallery-support .g-supp .supp-text {
    flex: 1;
}
.gallery-support .g-supp .supp-text strong {
    display: block;
    font-size: 11px;
    color: #333;
    line-height: 1.2;
}
.gallery-support .g-supp .supp-text span {
    display: block;
    font-size: 10px;
    color: #555;
    line-height: 1.2;
}

/* Final Mockup Polish */
.product-images .badge-container { display: none !important; }
.woocommerce-variation-add-to-cart .quantity, .ux-quantity { display: none !important; }
.bbdr-btn-bulk { margin-top: 10px !important; }
.gallery-support .g-supp .supp-text strong { font-weight: 700 !important; font-size: 12px !important; }

/* Fix Tabs Top Border Issue */
.product-page-sections .nav-tabs li.active a {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
}

/* FINAL KILL ALL FLATSOME NATIVE BORDERS */
.bbdr-left-col .woocommerce-tabs ul.tabs li.active > a {
    border-top: none !important;
    box-shadow: none !important;
}
.bbdr-left-col .woocommerce-tabs ul.tabs li > a::before,
.bbdr-left-col .woocommerce-tabs ul.tabs li > a::after {
    display: none !important;
}

/* Offset margin to make the active blue line overlap the gray bottom border */
.bbdr-left-col .woocommerce-tabs ul.tabs li > a {
    margin-bottom: -2px !important; 
    border-bottom: 3px solid transparent !important;
}
.bbdr-left-col .woocommerce-tabs ul.tabs li.active > a {
    border-bottom: 3px solid #0A33A5 !important;
}

/* OPTIMIZE BUTTONS SIZES AND ALIGNMENT */
.bbdr-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bbdr-action-buttons .bbdr-btn,
.bbdr-action-buttons .single_add_to_cart_button {
    width: 100% !important;
    min-height: 60px !important; /* Make all buttons identical height */
    padding: 10px !important;
    border-radius: 6px !important;
    border: none !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: none !important;
    text-transform: none !important;
}

/* Fix text block alignment inside buttons */
.bbdr-action-buttons .btn-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* flex clipping issue */ /* Center the text horizontally */
    text-align: center;
}

/* Specifically for Red Button */
.bbdr-action-buttons .bbdr-btn-buy-now .btn-text {
    align-items: flex-start; /* Keep text left-aligned relative to the icon, but the whole group is centered */
    text-align: left;
}

/* Specifically for Orange Button */
.bbdr-action-buttons .bbdr-btn-bulk .btn-text {
    align-items: center !important;
    text-align: center !important;
    width: 100%;
}

/* Remove Flatsome's native cart icon to fix duplicate icons */
.bbdr-action-buttons .single_add_to_cart_button i,
.bbdr-action-buttons .single_add_to_cart_button::before,
.bbdr-action-buttons .single_add_to_cart_button::after {
    display: none !important;
    content: none !important;
}

/* Fix SVG sizing and alignment */
.bbdr-action-buttons svg {
    width: 24px !important;
    height: 24px !important;
    margin-right: 12px !important;
    flex-shrink: 0;
}

/* Blue button text */
.bbdr-action-buttons .single_add_to_cart_button {
    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}


/* CLEANED FLEX STRETCH */

/* FIX BLUE BUTTON (THÃŠM VÃ€O GIá»Ž HÃ€NG) */
.product-info .cart .single_add_to_cart_button {
    width: 100% !important;
    min-height: 60px !important;
    background: #0046b0 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    margin: 0 0 10px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: none !important;
}

/* Remove Flatsome's native cart icon */
.product-info .cart .single_add_to_cart_button i,
.product-info .cart .single_add_to_cart_button::before,
.product-info .cart .single_add_to_cart_button::after {
    display: none !important;
    content: none !important;
}

/* Inject Custom Cart SVG via CSS background */
.product-info .cart .single_add_to_cart_button::before {
    display: inline-block !important;
    content: "" !important;
    width: 24px !important;
    height: 24px !important;
    margin-right: 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* FIX BUTTON ORDERING USING FLEXBOX */
.woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
}
.woocommerce-variation-add-to-cart .quantity {
    display: none !important; /* Ensure quantity is hidden as per mockup */
}

/* 1. RED BUTTON (MUA NGAY) */
.bbdr-btn-buy-now {
    order: 1;
    margin-bottom: 10px !important;
}

/* 2. BLUE BUTTON (THÃŠM VÃ€O GIá»Ž HÃ€NG) */
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    order: 2;
    margin-bottom: 10px !important;
}

/* 3. ORANGE BUTTON (MUA Sá» LÆ¯á»¢NG Lá»šN) */
.bbdr-btn-bulk {
    order: 3;
    margin-bottom: 0 !important;
}

/* 4. BBDR Action Buttons Container */
/* The container wraps Red and Orange. We must make it display: contents so they participate in the parent's flex layout! */
.bbdr-action-buttons {
    display: contents !important;
}

/* FIX TEXT ALIGNMENT IN RED BUTTON */
.bbdr-action-buttons .bbdr-btn-buy-now .btn-text {
    align-items: center !important;
    text-align: center !important;
}

/* FIX BLUE BUTTON NATIVE ICON OVERRIDE */
button.single_add_to_cart_button i,
.woocommerce-variation-add-to-cart button.single_add_to_cart_button i {
    display: none !important;
}

button.single_add_to_cart_button::before,
.woocommerce-variation-add-to-cart button.single_add_to_cart_button::before {
    display: inline-block !important;
    content: "" !important;
    width: 24px !important;
    height: 24px !important;
    margin-right: 8px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
}

/* Ensure blue button has flex layout so margin-right works */
.woocommerce-variation-add-to-cart button.single_add_to_cart_button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* THINNER BUTTONS REDESIGN */
/* Make all buttons much shorter to balance the layout */

.bbdr-action-buttons .bbdr-btn,
.woocommerce-variation-add-to-cart button.single_add_to_cart_button {
    min-height: 48px !important; /* Reduced from 60px */
    padding: 6px 10px !important; /* Tighter padding */
}

/* Adjust text sizes to fit the thinner buttons */
.bbdr-action-buttons .btn-text strong {
    font-size: 15px !important; /* Smaller main text */
    line-height: 1.2 !important;
}

.bbdr-action-buttons .btn-text span {
    font-size: 11px !important; /* Smaller subtext */
    line-height: 1.2 !important;
    font-weight: 400 !important;
    margin-top: 1px !important;
}

/* Blue button specific text */
.product-info .cart button.single_add_to_cart_button {
    font-size: 15px !important; /* Match red button strong size */
}

/* Smaller Icons */
.bbdr-action-buttons svg,
button.single_add_to_cart_button::before,
.woocommerce-variation-add-to-cart button.single_add_to_cart_button::before {
    width: 20px !important;
    height: 20px !important;
    margin-right: 6px !important;
}

/* Tighter gaps between buttons */
.bbdr-btn-buy-now,
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    margin-bottom: 8px !important; /* Reduced from 10px */
}

/* PERFECT BALANCE REDESIGN */
/* Increase button thickness and gaps to naturally push the right column down by ~35px, perfectly aligning its bottom with the left column. */

.bbdr-action-buttons .bbdr-btn,
.woocommerce-variation-add-to-cart button.single_add_to_cart_button {
    min-height: 58px !important; /* Increased from 48px */
    padding: 10px 15px !important; /* More generous padding */
}

/* Adjust text sizes to look premium */
.bbdr-action-buttons .btn-text strong {
    font-size: 16px !important; 
    line-height: 1.3 !important;
}

.bbdr-action-buttons .btn-text span {
    font-size: 12px !important; 
    line-height: 1.3 !important;
    margin-top: 2px !important;
}

/* Blue button specific text */
.product-info .cart button.single_add_to_cart_button {
    font-size: 16px !important; 
}

/* Slightly larger Icons */
.bbdr-action-buttons svg,
button.single_add_to_cart_button::before,
.woocommerce-variation-add-to-cart button.single_add_to_cart_button::before {
    width: 22px !important;
    height: 22px !important;
    margin-right: 8px !important;
}

/* Restore gaps between buttons */
.bbdr-btn-buy-now,
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    margin-bottom: 12px !important; /* Increased from 8px */
}

/* Zalo Widget Top Margin to fine-tune alignment */
.bbdr-zalo-widget {
    margin-top: 25px !important; 
}

/* OPTIMIZE MAIN PRODUCT IMAGE HEIGHT */
/* The user requested to reduce the height of the tall main product image by 1/3. 
   We force a 1:1 (square) or 5:4 aspect ratio with object-fit: cover so it crops cleanly 
   without distorting, saving significant vertical space. */

.product-gallery-slider .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img,
.product-gallery-slider img.wp-post-image {
    aspect-ratio: 5 / 4 !important; /* Slightly landscape/square to reduce height */
    object-fit: cover !important;
    width: 100% !important;
    max-height: 500px !important; /* Hard cap to prevent massive images on large screens */
}

/* OPTIMIZE RELATED PRODUCTS BLOCK (SẢN PHẨM THƯỜNG MUA CÙNG) */
/* Override Flatsome's aggressive typography that makes the product cards look clunky */

.bbdr-related-box .product-small.box {
    text-align: left !important; /* Left alignment looks more modern/delicate */
}

/* Force delicate, precise typography on the title */
.bbdr-related-box .product-title a {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    color: #333 !important;
}

/* Force precise typography on the price, including WooCommerce inner spans */
.bbdr-related-box .price-wrapper,
.bbdr-related-box .price-wrapper * {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #e51d20 !important;
}

/* If it's a variable product price range (e.g. 180.000đ - 200.000đ), ensure the dash is also colored and sized correctly */
.bbdr-related-box .price-wrapper {
    margin-top: 5px !important;
}

/* Tighten the gap between image and title */
.bbdr-related-box .box-image {
    margin-bottom: 8px !important;
}

/* ========================================================= */
/* WOOCOMMERCE SUCCESS MESSAGE REDESIGN                      */
/* ========================================================= */
.woocommerce-message.message-wrapper {
    background-color: #f0fdf4 !important; /* Nền xanh mint rất nhạt, sang trọng */
    border: 1px solid #bbf7d0 !important;
    border-left: 6px solid #22c55e !important; /* Viền trái nhấn mạnh */
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.12) !important; /* Đổ bóng xanh lá mờ */
    margin-bottom: 30px !important;
    padding: 15px 20px !important;
}

.woocommerce-message .message-container {
    color: #166534 !important; /* Chữ xanh lá đậm để nổi bật trên nền nhạt */
    font-size: 16px !important;
    font-weight: 600 !important;
    display: block !important;
    text-align: left !important;
    padding: 0 !important;
    line-height: 1.6 !important;
}

/* Icon Checkmark */
.woocommerce-message .icon-checkmark {
    color: #22c55e !important;
    font-size: 22px !important;
    margin-right: 12px !important;
    vertical-align: text-bottom !important;
}

/* Nút Xem giỏ hàng */
.woocommerce-message .button {
    float: right !important; /* Đẩy nút sang phải */
    background-color: #22c55e !important;
    color: #fff !important;
    border-radius: 5px !important;
    text-transform: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
    margin: -3px 0 0 0 !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3) !important;
    transition: all 0.3s ease !important;
}

.woocommerce-message .button:hover {
    background-color: #16a34a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.4) !important;
}

/* Clearfix */
.woocommerce-message .message-container::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive: Đẩy nút xuống dưới nếu màn hình quá nhỏ */
@media screen and (max-width: 550px) {
    .woocommerce-message .button {
        float: none !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 15px 0 0 0 !important;
    }
}

/* ========================================================= */








/* ========================================================= */
/* UNIVERSAL BUTTON LAYOUT (SIDE-BY-SIDE RED & ORANGE)       */
/* ========================================================= */

/* 1. Ensure the container is a flex row that wraps */
form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

/* 2. Quantity input (Left) */
form.cart .quantity {
    margin-right: 15px !important;
    margin-bottom: 15px !important;
}

/* 3. Blue Add to Cart Button (Right, fills remaining space) */
form.cart button.single_add_to_cart_button {
    flex: 1 !important;
    min-width: 200px !important;
    margin-bottom: 15px !important;
    height: 40px !important; /* Standard height */
}

/* 4. Custom Action Buttons Wrapper (Drops to next line, full width) */
.bbdr-action-buttons {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
}

/* 5. Red and Orange Buttons (50% each) */
.bbdr-action-buttons .bbdr-btn {
    flex: 1 !important;
    margin: 0 !important;
    height: 48px !important; /* Slightly taller for emphasis */
}

/* Fix mobile to stack if screen is too narrow */
@media screen and (max-width: 550px) {
    .bbdr-action-buttons {
        flex-direction: column !important;
    }
    .bbdr-action-buttons .bbdr-btn {
        width: 100% !important;
    }
}

/* ========================================================= */
/* PREMIUM PRODUCT CARD REDESIGN (SẢN PHẨM Ở TRANG DANH MỤC) */
/* ========================================================= */

/* Container styling */
.product-small.box {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #f0f0f0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
}

.product-small.box:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important;
    transform: translateY(-5px) !important;
    border-color: #e2e2e2 !important;
}

/* Image Aspect Ratio */
.product-small.box .box-image {
    background: #fcfcfc !important;
    border-bottom: 1px solid #f5f5f5 !important;
    overflow: hidden !important;
}

.product-small.box .box-image img {
    aspect-ratio: 1 / 1 !important; /* Force square */
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    transition: transform 0.5s ease !important;
}

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

/* Text Padding and Typography */
.product-small.box .box-text {
    padding: 15px 15px 20px 15px !important;
    text-align: left !important;
}

/* Product Category Name (if exists) */
.product-small.box .category {
    font-size: 11px !important;
    text-transform: uppercase !important;
    color: #888 !important;
    margin-bottom: 5px !important;
    display: block !important;
}

/* Product Title */
.product-small.box .product-title {
    margin-bottom: 8px !important;
}

.product-small.box .product-title a {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #222 !important;
    text-transform: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Max 2 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.product-small.box .product-title a:hover {
    color: #0A33A5 !important;
}

/* Price */
.product-small.box .price-wrapper {
    margin-top: 10px !important;
}

.product-small.box .price-wrapper * {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #e51d20 !important;
}

/* Original price (Giá gốc gạch ngang) */
.product-small.box .price-wrapper del * {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #999 !important;
}

/* Sale Badge Redesign */
.product-small.box .badge-container .badge-inner.on-sale {
    background: #e51d20 !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    padding: 4px 8px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 5px rgba(229,29,32,0.3) !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    display: inline-block !important;
}

/* Hide the default bubble layout of the badge */
.products .badge-container {
    top: 10px !important;
    left: 10px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

/* ========================================================= */
/* FIX EQUAL HEIGHT FOR PRODUCT CARDS & BADGE                */
/* ========================================================= */

/* Đảm bảo cột chứa sản phẩm cao 100% */
.row:has(.product-small) > .col .col-inner {
    height: 100% !important;
}

/* Biến thẻ sản phẩm thành flex column để đẩy thẻ giãn ra */
.product-small.box {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Phần hình ảnh giữ nguyên chiều cao */
.product-small.box .box-image {
    flex-shrink: 0 !important;
}

/* Phần chữ tự động giãn lấp đầy không gian còn trống */
.product-small.box .box-text {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Đẩy giá tiền (hoặc nút bấm) xuống dưới cùng, giúp thẻ luôn đều nhau dù tên sản phẩm dài/ngắn hay có sao đánh giá */
.product-small.box .price-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ép buộc tem Giảm giá thành hình chữ nhật gọn gàng (Ghi đè triệt để Flatsome) */
.badge-container .badge-inner {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    background: #e51d20 !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    display: inline-block !important;
}
.badge-container {
    top: 10px !important;
    left: 10px !important;
    margin: 0 !important;
}

/* ========================================================= */
/* FIX GAP BETWEEN TITLE AND PRICE                           */
/* ========================================================= */

/* Set a fixed height for the title so 1-line and 2-line titles take the same space */
.product-small.box .product-title {
    min-height: 40px !important; /* Approx 2 lines */
    margin-bottom: 5px !important;
}

/* Remove the margin-top: auto that was pushing the price away */
.product-small.box .price-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Let the empty space naturally fall to the bottom of the card */
.product-small.box .box-text {
    flex: 1 1 auto !important;
    display: block !important; /* Remove flex column so elements stack naturally */
}

/* Ensure the star rating (if any) doesn't add too much margin */
.product-small.box .star-rating {
    margin-bottom: 5px !important;
    margin-top: 0 !important;
}


/* ========================================================= */
/* FORCE FLEXBOX ON FLATSOME PRODUCT ROWS (GLOBAL EQUAL HEIGHT) */
/* ========================================================= */

/* Biến dòng chứa sản phẩm thành Flexbox */
.row:has(.product-small) {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Tắt clearfix vì đã dùng Flexbox */
.row:has(.product-small)::after, 
.row:has(.product-small)::before {
    display: none !important;
}

/* Đảm bảo khung bên trong (col-inner) cũng giãn hết cột */
.row:has(.product-small) > .col > .col-inner {
    height: 100% !important; /* Tự giãn theo flex */
    display: flex !important;
    flex-direction: column !important;
}

/* Khối box sản phẩm giãn lấp đầy col-inner */
.product-small.box {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
}

/* Phần Text giãn nốt phần không gian trống */
.product-small.box .box-text {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Cuối cùng đẩy giá xuống đáy */
.product-small.box .price-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ========================================================= */
/* FIX GAP BETWEEN TITLE AND PRICE                           */
/* ========================================================= */

/* Set a fixed height for the title so 1-line and 2-line titles take the same space */
.product-small.box .product-title {
    min-height: 40px !important; /* Approx 2 lines */
    margin-bottom: 5px !important;
}

/* ========================================================= */
/* TIKI-STYLE COMPACT RELATED PRODUCTS SLIDER                */
/* ========================================================= */

/* Giảm khoảng cách giữa các cột trong slider */
.bbdr-compact-slider .col {
    padding-bottom: 0 !important;
}

/* Gỡ bỏ các box-shadow hoặc viền mặc định của Flatsome */
.bbdr-compact-slider .product-small.box {
    border: none !important;
    box-shadow: none !important;
    padding: 10px !important;
    border-right: 1px solid #f0f0f0; /* Viền mờ giữa các sản phẩm */
    border-radius: 0 !important;
}
.bbdr-compact-slider .col:last-child .product-small.box {
    border-right: none !important;
}

/* Ảnh sản phẩm */
.bbdr-compact-slider .box-image {
    margin-bottom: 10px !important;
}
.bbdr-compact-slider .box-image img {
    border-radius: 4px !important;
}

/* Tiêu đề sản phẩm */
.bbdr-compact-slider .product-title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    min-height: 36px !important;
    margin-bottom: 5px !important;
    color: #333 !important;
    font-weight: 500 !important;
}

/* Giá hiện tại */
.bbdr-compact-slider .price-wrapper {
    text-align: left !important;
    padding-top: 0 !important;
    margin-bottom: 5px !important;
}
.bbdr-compact-slider .price-wrapper ins .amount,
.bbdr-compact-slider .price-wrapper > .amount {
    font-size: 15px !important;
    color: #ff424e !important; /* Đỏ Tiki */
    font-weight: 600 !important;
}

/* Giá cũ và phần trăm giảm giá */
.bbdr-compact-slider .price-wrapper del {
    display: inline-block !important;
    margin-right: 5px !important;
}
.bbdr-compact-slider .price-wrapper del .amount {
    font-size: 12px !important;
    color: #808089 !important;
    font-weight: normal !important;
}

/* Nút MUA LẠI giả lập */
.bbdr-compact-slider .product-small.box::after {
    content: "MUA NGAY";
    display: block;
    text-align: center;
    border: 1px solid #0d5cb6; /* Xanh Tiki */
    color: #0d5cb6;
    border-radius: 4px;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 500;
    margin-top: auto !important;
    cursor: pointer;
    transition: all 0.2s;
}
.bbdr-compact-slider .product-small.box:hover::after {
    background: #f0f8ff;
}

/* Ẩn các thành phần thừa của thiết kế Premium cũ */
.bbdr-compact-slider .add-to-cart-button,
.bbdr-compact-slider .bbdr-banchay-badge,
.bbdr-compact-slider .badge-container,
.bbdr-compact-slider .image-tools {
    display: none !important;
}

/* Đảm bảo thẻ a bao trùm cả ô */
.bbdr-compact-slider .product-small.box > a {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
}
.bbdr-compact-slider .product-small.box {
    position: relative;
}

/* Mũi tên slider nhỏ gọn */
.bbdr-compact-related-container .flickity-prev-next-button {
    width: 30px !important;
    height: 30px !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}


/* Ẩn danh mục sản phẩm thừa */
.bbdr-compact-slider .category {
    display: none !important;
}

/* Ép các hộp sát vào nhau hơn */
.bbdr-compact-slider .col {
    padding: 0 !important;
}

/* Căn chỉnh tuyệt đối nút MUA NGAY xuống đáy */
.bbdr-compact-slider .product-small.box {
    padding-bottom: 45px !important; 
    position: relative !important;
    height: 100% !important;
}
.bbdr-compact-slider .product-small.box::after {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    margin-top: 0 !important;
}

/* Thu nhỏ cỡ chữ giá tiền một chút để tránh bị rớt dòng (VD: 180.000đ - 200.000đ) */
.bbdr-compact-slider .price-wrapper ins .amount,
.bbdr-compact-slider .price-wrapper > .amount,
.bbdr-compact-slider .price-wrapper .amount {
    font-size: 14px !important;
}


/* Hide cart text to prevent header wrapping */
.header-cart-title, .cart-price, .cart-item .header-button-title { display: none !important; }


/* Hide empty bottom header space */
.header-bottom { display: none !important; }

/* Fix grid stretching when column is tall */
.section-khuvuc .factory-grid { align-content: center !important; }
.factory-item { margin-bottom: 0 !important; }


/* Remove translateY to fix vertical centering offset */
.section-khuvuc .factory-grid { transform: none !important; }


/* ==========================================
   MOBILE FIXES FOR SINGLE PRODUCT PAGE TABS
   ========================================== */
@media (max-width: 768px) {
    .bbdr-product-tabs-section {
        width: 100% !important;
        margin: 15px auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .bbdr-product-tabs-section .woocommerce-tabs ul.tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 0 10px !important;
    }
    
    .bbdr-product-tabs-section .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        height: 3px;
    }
    
    .bbdr-product-tabs-section .woocommerce-tabs ul.tabs li {
        flex: 0 0 auto;
    }
    
    .bbdr-product-tabs-section .woocommerce-tabs ul.tabs li a {
        padding: 12px 15px !important;
        font-size: 13px !important;
    }
    
    .bbdr-product-tabs-section .woocommerce-Tabs-panel {
        padding: 20px 15px !important;
    }
    
    .bbdr-specs-table th, 
    .bbdr-specs-table td {
        padding: 10px !important;
        font-size: 12px !important;
    }
    
    .bbdr-desc-specs-grid {
        flex-direction: column;
        gap: 20px !important;
    }
}

/* ========================================================
   5 TIỆN ÍCH - STYLE GIỐNG KHỐI THỐNG KÊ
======================================================== */

.bbdr-icon-boxes {
    width: 90% !important;
    max-width: 1440px !important;
    margin: 25px auto !important;

    background: #fff;

    border: 1px solid #e1e1e1;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    overflow: hidden;
}


/* Container 5 tiện ích */

.bbdr-icon-boxes .bbdr-icon-inner {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: stretch;
}


/* Từng tiện ích */

.bbdr-icon-boxes .icon-box-item {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 92px;

    padding: 15px 20px !important;

    border-right: 1px solid #e1e5eb;
}


/* Bỏ đường chia ở mục cuối */

.bbdr-icon-boxes .icon-box-item:last-child {
    border-right: none;
}


/* Icon */

.bbdr-icon-boxes .icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 12px;
}


/* SVG */

.bbdr-icon-boxes .icon svg {
    width: 32px !important;
    height: 32px !important;
}


/* Nội dung */

.bbdr-icon-boxes .text {
    text-align: left;
}


.bbdr-icon-boxes .text h4 {
    margin: 0 0 4px !important;

    color: #003399;

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1.25;
}


.bbdr-icon-boxes .text p {
    margin: 0 !important;

    color: #555;

    font-size: 11px !important;

    line-height: 1.35;
}


/* ========================================================
   DESKTOP
======================================================== */

@media (min-width: 1024px) {

    .bbdr-icon-boxes {
        width: 90% !important;
        max-width: 1440px !important;
    }

}


/* ========================================================
   TABLET
======================================================== */

@media (max-width: 1023px) and (min-width: 550px) {

    .bbdr-icon-boxes {
        width: 94% !important;
    }

    .bbdr-icon-boxes .icon-box-item {
        padding: 12px 10px !important;
    }

    .bbdr-icon-boxes .icon {
        margin-right: 7px;
    }

    .bbdr-icon-boxes .icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    .bbdr-icon-boxes .text h4 {
        font-size: 12px !important;
    }

    .bbdr-icon-boxes .text p {
        font-size: 9px !important;
    }

}


/* ========================================================
   MOBILE
======================================================== */

@media (max-width: 549px) {

    .bbdr-icon-boxes {
        width: 94% !important;
        margin: 15px auto !important;
    }

    .bbdr-icon-boxes .bbdr-icon-inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .bbdr-icon-boxes .icon-box-item {
        min-height: 75px;

        padding: 10px !important;

        border-right: 1px solid #e1e5eb;
        border-bottom: 1px solid #e1e5eb;
    }

    .bbdr-icon-boxes .icon-box-item:nth-child(2n) {
        border-right: none;
    }

    .bbdr-icon-boxes .icon-box-item:last-child {
        grid-column: 1 / -1;
        border-right: none;
    }

    .bbdr-icon-boxes .icon {
        margin-right: 7px;
    }

    .bbdr-icon-boxes .icon svg {
        width: 26px !important;
        height: 26px !important;
    }

    .bbdr-icon-boxes .text h4 {
        font-size: 10px !important;
    }

    .bbdr-icon-boxes .text p {
        font-size: 8px !important;
    }

}

/* ========================================================
   CATEGORY HERO - BANNER + TEXT
======================================================== */

.bbdr-cat-hero {
    width: 100%;
    height: 280px;

    background-image: url("https://bienbaodayroi.vn/wp-content/uploads/2026/08/bane-ngang.png");
    background-repeat: no-repeat;

    /*
     * Giữ đúng tỷ lệ ảnh theo chiều ngang
     */
    background-size: cover;

    /*
     * Ảnh dịch xuống
     */
    background-position: center 70%;

    position: relative;
    overflow: hidden;
}


/* ========================================================
   KHUNG NỘI DUNG
======================================================== */

.bbdr-cat-hero-inner {
    width: 90%;
    max-width: 1400px;
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;

    position: relative;
}


/* ========================================================
   TEXT NẰM TRÊN BANNER
======================================================== */

.bbdr-cat-hero-text {
    width: 52%;

    position: relative;
    z-index: 5;

    padding-left: 20px;
}


/* TIÊU ĐỀ */

.bbdr-cat-hero-text h1 {
    margin: 0 0 15px 0;

    color: #003399;

    font-size: 32px;
    font-weight: 800;

    line-height: 1.2;
}


/* MÔ TẢ */

.bbdr-cat-hero-text p {
    margin: 0;

    max-width: 650px;

    color: #333;

    font-size: 15px;
    line-height: 1.8;
}


/* ========================================================
   DESKTOP
======================================================== */

@media (min-width: 1200px) {

    .bbdr-cat-hero {
        width: 100%;
        height: 280px;

        background-size: cover;

        /*
         * QUAN TRỌNG:
         * Không dùng center center ở đây
         * vì sẽ ghi đè vị trí ảnh.
         */
        background-position: center 40%;
    }

    .bbdr-cat-hero-inner {
        width: 90%;
        max-width: 1400px;
    }

    .bbdr-cat-hero-text {
        width: 52%;
        padding-left: 20px;
    }

    .bbdr-cat-hero-text h1 {
        font-size: 32px;
    }

    .bbdr-cat-hero-text p {
        font-size: 15px;
        line-height: 1.8;
    }

}


/* ========================================================
   TABLET
======================================================== */

@media (max-width: 1199px) and (min-width: 768px) {

    .bbdr-cat-hero {
        height: 250px;

        background-size: cover;

        /*
         * Dịch ảnh xuống
         */
        background-position: center 70%;
    }

    .bbdr-cat-hero-inner {
        width: 94%;
    }

    .bbdr-cat-hero-text {
        width: 55%;
        padding-left: 10px;
    }

    .bbdr-cat-hero-text h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .bbdr-cat-hero-text p {
        font-size: 14px;
        line-height: 1.6;
    }

}


/* ========================================================
   MOBILE
======================================================== */

@media (max-width: 767px) {

    .bbdr-cat-hero {
        width: 100%;
        height: 330px;

        /*
         * Mobile dùng chiều cao cố định
         */
        background-size: auto 330px;

        background-position: right 70%;
    }

    .bbdr-cat-hero-inner {
        width: 94%;
        height: 100%;

        display: block;

        padding-top: 40px;
    }

    .bbdr-cat-hero-text {
        width: 100%;

        padding: 0 15px;

        position: relative;
        z-index: 5;
    }

    .bbdr-cat-hero-text h1 {
        font-size: 25px;
        line-height: 1.2;

        margin-bottom: 10px;
    }

    .bbdr-cat-hero-text p {
        font-size: 13px;
        line-height: 1.6;
    }

}