/*
Theme Name: Flatsome Child
Theme URI: https://uxthemes.com/
Description: This is a child theme for Flatsome
Author: UX-Themes
Template: flatsome
Version: 3.0
*/

:root {
    --primary-color: #0092dd;
    --navy-color: #123873;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #E6E2DE !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   1. HEADER TOP BAR
   ========================================================================== */
.ad-top-bar {
    height: 38px;
    background: linear-gradient(135deg, #0092dd 0%, #0092dd 60%, #d11a59 60.1%, #d11a59 100%);
    color: #ffffff;
    font-size: 13px;
    line-height: 38px;
}
.ad-top-bar .container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
}
.ad-top-bar a {
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.ad-top-bar a:hover {
    opacity: 0.9;
}

/* ==========================================================================
   2. MAIN HEADER
   ========================================================================== */
.ad-main-header {
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.ad-main-header .container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ad-logo img {
    max-height: 75px;
    width: auto;
    display: block;
}
.ad-search-box {
    flex: 1;
    max-width: 480px;
    margin: 0 30px;
}
.ad-search-form {
    display: flex;
    position: relative;
    width: 100%;
}
.ad-search-input {
    width: 100%;
    height: 42px;
    border: 2px solid #e67e22;
    border-radius: 4px 0 0 4px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.ad-search-btn {
    width: 50px;
    height: 42px;
    background: #e67e22;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.ad-hotlines {
    display: flex;
    align-items: center;
    gap: 20px;
}
.ad-hotline-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ad-hotline-item img {
    width: 42px;
    height: 42px;
}
.ad-hotline-text {
    line-height: 1.25;
    font-size: 13px;
    font-weight: bold;
}
.ad-hotline-phone {
    color: #d83131;
    font-size: 15px;
    font-weight: 800;
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
.ad-navbar {
    background-color: #123873;
    height: 44px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.ad-navbar .container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}
.ad-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.ad-nav-item {
    position: relative;
    margin: 0;
    padding: 0;
}
.ad-nav-link {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 0 14px;
    line-height: 44px;
    display: block;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.ad-nav-item:hover > .ad-nav-link,
.ad-nav-item.active > .ad-nav-link {
    background-color: rgba(0, 0, 0, 0.2);
}
.ad-nav-item.has-sub > .ad-nav-link:after {
    content: " ▾";
    font-size: 11px;
    margin-left: 2px;
}
.ad-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: none;
    z-index: 9999;
}
.ad-nav-item:hover > .ad-sub-menu {
    display: block;
}
.ad-sub-item a {
    color: #333333 !important;
    padding: 8px 18px;
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-transform: none;
    line-height: 1.4;
}
.ad-sub-item a:hover {
    background: #f4f6f8;
    color: #0092dd !important;
}

/* ==========================================================================
   4. HERO BANNER
   ========================================================================== */
.ad-hero-banner {
    position: relative;
    background-image: url('https://dienmattroisolar.com.vn/wp-content/uploads/2020/10/bn1-1201x800.jpg');
    background-size: cover;
    background-position: center;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}
.ad-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}
.ad-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.ad-hero-title1 {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    color: #ffffff;
    letter-spacing: 1px;
}
.ad-hero-title2 {
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: 1.5px;
}
.ad-hero-subtitle {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    color: #ffffff;
    letter-spacing: 0.5px;
}
.ad-hero-btn {
    background: #d11a59;
    color: #ffffff !important;
    padding: 12px 32px;
    border-radius: 99px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(209, 26, 89, 0.4);
    transition: transform 0.2s;
}
.ad-hero-btn:hover {
    transform: scale(1.04);
}

/* ==========================================================================
   5. FLOATING PILL BUTTONS (LEFT) & ZALO (RIGHT)
   ========================================================================== */
.all_contact {
    position: fixed !important;
    bottom: 30px !important;
    left: 20px !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}
.ad-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 7px 18px !important;
    border-radius: 50px !important;
    font-size: 13.5px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.25) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    width: fit-content !important;
    transition: transform 0.2s !important;
}
.ad-pill-btn:hover {
    transform: translateX(4px) !important;
}
.ad-pill-green { background-color: #7dbb00 !important; }
.ad-pill-blue { background-color: #0066cc !important; }
.ad-pill-pink { background-color: #d61a5b !important; }
.ad-pill-red { background-color: #c4004f !important; }

.zalo_contact {
    position: fixed !important;
    right: 25px !important;
    bottom: 45px !important;
    z-index: 99999 !important;
}
.ad-zalo-btn {
    background-color: #0066cc !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 99px !important;
    height: 46px !important;
    line-height: 46px !important;
    padding: 0 18px 0 6px !important;
    box-shadow: 2px 5px 14px rgba(0,0,0,0.3) !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
}
.ad-zalo-btn img {
    width: 40px !important;
    height: 40px !important;
    margin-right: 8px !important;
}

/* ==========================================================================
   6. 4 SERVICE CARDS & SECTION TITLES
   ========================================================================== */
.ad-section-title {
    color: #d83131;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    margin: 35px 0 15px 0;
}
.ad-section-desc {
    max-width: 980px;
    margin: 0 auto 30px auto;
    text-align: justify;
    line-height: 1.6;
    font-size: 14.5px;
    color: #333333;
}
.ad-service-cards {
    max-width: 1170px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ad-service-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s;
    text-decoration: none;
    display: block;
}
.ad-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.ad-service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.ad-service-card-title {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    padding: 14px 10px;
    text-transform: uppercase;
    margin: 0;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.ad-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 35px 0 20px 0;
    font-size: 13.5px;
    line-height: 1.6;
}
.ad-footer .container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}
.ad-footer a {
    color: #ffffff !important;
    text-decoration: none;
}
.ad-footer a:hover {
    color: #0092dd !important;
}
.ad-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 20px;
    margin-bottom: 25px;
}
.ad-footer-title {
    font-size: 14.5px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
    border-bottom: 2px solid #0092dd;
    padding-bottom: 5px;
    display: inline-block;
}
.ad-footer-branches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-bottom: 25px;
}
.ad-footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 13px;
    color: #aaa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ad-top-bar .container { justify-content: center; }
    .ad-main-header .container { flex-direction: column; gap: 15px; }
    .ad-search-box { width: 100%; margin: 10px 0; }
    .ad-navbar { display: none; }
    .ad-service-cards { grid-template-columns: repeat(2, 1fr); }
    .ad-footer-grid { grid-template-columns: 1fr; }
    .ad-footer-branches { grid-template-columns: 1fr; }
    .all_contact {
        bottom: 0 !important; left: 0 !important; right: 0 !important;
        flex-direction: row !important; justify-content: space-around !important;
        background: #fff !important; padding: 6px 2px !important;
    }
    .ad-pill-btn { font-size: 11px !important; padding: 3px !important; background: transparent !important; color: #333 !important; box-shadow: none !important; }
    .zalo_contact { bottom: 75px !important; right: 15px !important; }
}

/* ==========================================================================
   SECTION TITLES & HEADINGS (PIXEL-PERFECT)
   ========================================================================== */
.section-title {
    position: relative;
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #123873 !important;
    padding-bottom: 0 !important;
}
.section-title b {
    display: none !important;
}
.section-title .section-title-main {
    background-color: #123873 !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 4px 4px 0 0 !important;
    display: inline-block !important;
    margin: 0 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.4 !important;
}
.section-title.section-title-center {
    justify-content: center !important;
}
.section-title.section-title-center .section-title-main {
    border-radius: 4px 4px 0 0 !important;
}
.section-title a {
    color: #333333 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: auto !important;
    padding-bottom: 4px !important;
}
.section-title a:hover {
    color: #0092dd !important;
}

/* Badge sale & discount tags */
.badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}
.badge {
    background-color: #d11a59;
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
}

/* ==========================================================================
   HERO SLIDER BACKGROUND FIX
   ========================================================================== */
.slider-wrapper, .slider, .banner, .banner-bg, .bg.bg-fill, .bg.bg-loaded, .bg {
    background-color: transparent !important;
}
#hero-slider, .hero-slider, .slider .banner, .banner.has-hover {
    background-image: url('https://dienmattroisolar.com.vn/wp-content/uploads/2020/10/bn1-1201x800.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.slider .banner .banner-bg .bg.bg-fill,
.slider .banner .banner-bg .bg {
    background-image: url('https://dienmattroisolar.com.vn/wp-content/uploads/2020/10/bn1-1201x800.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    opacity: 1 !important;
}

/* ==========================================================================
   4 CATEGORY CARDS (EXACT FLATSOME STYLE)
   ========================================================================== */
.box-category {
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    margin-bottom: 20px !important;
    display: block !important;
    text-decoration: none !important;
}
.box-category:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
}
.box-category .box-image {
    position: relative !important;
    overflow: hidden !important;
    padding-top: 100% !important;
    background: #f9f9f9 !important;
}
.box-category .box-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.box-category .box-text {
    padding: 14px 10px !important;
    background: #ffffff !important;
    border-top: 1px solid #f0f0f0 !important;
    text-align: center !important;
}
.box-category .box-text h5 {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
}

/* ==========================================================================
   FLATSOME IMAGE-COVER & BOX STYLING (GLOBAL FIX)
   ========================================================================== */
.image-cover {
    position: relative !important;
    overflow: hidden !important;
}
.image-cover img, 
.box-image .image-cover img,
.product-category .box-image img,
.has-hover .image-cover img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==========================================================================
   INTRO SECTION TITLE (RED COLOR)
   ========================================================================== */
.section h1, 
.section-content h1, 
h1 strong, 
h1 span strong,
.section h1 strong,
.ad-main-content h1,
h1 {
    color: #e51d1d !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

/* ==========================================================================
   4 CATEGORY CARDS (BOX-CATEGORY)
   ========================================================================== */
.product-category .col-inner {
    height: 100% !important;
}
.box-category {
    background: #ffffff !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
}
.box-category:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
}
.box-category .box-image {
    position: relative !important;
    width: 100% !important;
    background: #f4f4f4 !important;
}
.box-category .box-text {
    background: #ffffff !important;
    padding: 12px 10px !important;
    text-align: center !important;
    border-top: 1px solid #f0f0f0 !important;
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.box-category .box-text h5 {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
}

/* ==========================================================================
   HIDE PRODUCT RATING & SOLD COUNT
   ========================================================================== */
.meta_product_box, 
.star-rating, 
.woocommerce-product-rating, 
.product-rating {
    display: none !important;
}

/* ==========================================================================
   FIX 4 CATEGORY CARDS (ELIMINATE DOUBLE PADDING-TOP & GRAY FRAME)
   ========================================================================== */
.box-category .box-image,
.product-category .box-image {
    padding-top: 0 !important;
    background: transparent !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
}

.box-category .image-cover,
.product-category .image-cover {
    position: relative !important;
    width: 100% !important;
    padding-top: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.box-category .image-cover img,
.box-category .box-image img,
.product-category .image-cover img,
.product-category .box-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.box-category .box-text,
.product-category .box-text {
    background: #ffffff !important;
    padding: 14px 10px !important;
    text-align: center !important;
    border-top: 1px solid #f0f0f0 !important;
}

.box-category .box-text h5,
.product-category .box-text h5 {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
}

/* ==========================================================================
   EXACT PRODUCT CARD COLORS & STYLING (MATCHING ANHDUONG24H.COM)
   ========================================================================== */

/* 1. Category label above product title */
.title-wrapper .category, 
.product-cat {
    font-size: 11px !important;
    color: #888888 !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
}

/* 2. Product Title */
p.name.product-title.woocommerce-loop-product__title,
.product-title {
    margin-bottom: 6px !important;
}
p.name.product-title.woocommerce-loop-product__title a,
.product-title a {
    color: #333333 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 36px;
}
p.name.product-title.woocommerce-loop-product__title a:hover,
.product-title a:hover {
    color: #0092dd !important;
}

/* 3. Product Pricing */
.price-wrapper {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}
.price-wrapper span.amount,
.price ins .amount,
.price ins,
.price > .amount {
    color: #f94040 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.price-wrapper del span.amount,
.price del .amount,
.price del {
    color: #e08282 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    margin-right: 6px !important;
}

/* 4. Sale Badges (Orange discount tags) */
.badge-container {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 10 !important;
}
.badge-inner.on-sale, 
.badge-inner, 
.badge,
.callout.badge {
    background-color: #E67E22 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 3px 7px !important;
    border-radius: 3px !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}
.badge-outline .badge-inner {
    border: none !important;
    background-color: #E67E22 !important;
    color: #ffffff !important;
}

/* 5. Rating and Sold Meta Box */
.meta_product_box {
    margin: 6px 0 0px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
    color: #555555 !important;
    font-size: 12px !important;
}
.meta_product_box i.icon-star,
.meta_product_box .icon-star {
    color: #ffbf00 !important;
    font-size: 13px !important;
}
.meta_product_box span {
    display: inline-flex !important;
    align-items: center !important;
}

/* ==========================================================================
   HIDE PRODUCT CATEGORY LABEL ABOVE TITLE
   ========================================================================== */
.title-wrapper .category, 
.product-cat,
.box-text .category,
p.category {
    display: none !important;
}
