/* ============================================
   ATMT THEME - WORDPRESS FIX CSS
   Fix các vấn đề khi chuyển từ Haravan sang WP
   ============================================ */

/* --- CSS Variables (từ Haravan theme) --- */
:root {
    --shop-color-bg: #ffffff;
    --shop-color-main: #ffce0e;
    --shop-color-text: #0B2341;
    --shop-color-hover: #e6c01c;
    --shop-color-button: #ffce0e;
    --shop-color-button-text: #0B2341;
    --shop-color-border: #e6e6e6;
    --shop-bg-header: #ffffff;
    --shop-color-header: #0B2341;
    --shop-color-title: #0B2341;
}

/* --- Fix SVG icons bị to --- */
.box-icon svg,
.header-action svg { width: 20px !important; height: 20px !important; }
.svg-ico-search    { width: 20px !important; height: 20px !important; }
.box-icon--close svg { width: 18px !important; height: 18px !important; }
.menuList-main > li > a > svg { width: 12px !important; height: 12px !important; }
.menuList-submain li a svg    { width: 15px !important; height: 15px !important; }

/* --- Logo --- */
.logoimg { max-height: 75px !important; width: auto !important; display: block; }

/* --- Menu cấp 2: Fix hover hiển thị --- */
.mainHeader .header-wrap-menu .menuList-main li.has-submenu:hover > .menuList-submain,
.mainHeader .header-wrap-menu .menuList-main li.has-submenu:focus-within > .menuList-submain {
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    top: 100% !important;
}

/* --- Search dropdown --- */
.header-action_search:not(.active) .header-action_dropdown { display: none !important; }
.header-action_search.active .header-action_dropdown        { display: block !important; }
.sitenav-search .boxtitle { font-weight: 600; margin-bottom: 10px; }

/* --- Slider images --- */
.slider-owl .slide--image { overflow: hidden; }
.slider-owl .slide--image img,
.slider-owl .slide--image source { width: 100%; display: block; }
.slider-owl img { opacity: 1 !important; }

/* --- Section images --- */
.section-home-service img,
.section-home-about1 img,
.section-home-counter img,
.section-home-blog img,
.section-home-partner img { opacity: 1 !important; }

/* --- Lazyload fix --- */
img.lazyload,
img[data-src] { opacity: 1 !important; }

/* --- Fix WordPress admin bar khi sticky --- */
.admin-bar .mainHeader.header-sticky { top: 32px !important; }
@media screen and (max-width: 782px) {
    .admin-bar .mainHeader.header-sticky { top: 46px !important; }
}

/* --- Owl Carousel nav buttons --- */
.owl-nav .owl-prev,
.owl-nav .owl-next {
    background: rgba(0,0,0,0.35) !important;
    border-radius: 50% !important;
    width: 44px !important; height: 44px !important;
    display: flex !important; align-items: center; justify-content: center;
}
.owl-nav button span { font-size: 0 !important; }

/* ============================================
   FIX: Menu cấp 2 bị che bởi slider
   ============================================ */
.mainHeader--height {
    position: relative;
    z-index: 1000;
}
.mainHeader {
    position: relative;
    z-index: 1000;
}
.mainHeader .header-wrap-menu .menuList-main li.has-submenu .menuList-submain {
    z-index: 9999 !important;
}
/* Slider phải có z-index thấp hơn header */
.section-home-slider,
.slider-owl,
.owl-carousel {
    z-index: 1 !important;
    position: relative;
}

/* ============================================
   FIX: Footer - nền vàng + floating buttons
   ============================================ */

/* Footer background vàng từ file gốc */
footer.mainFooter {
    background-color: #ffce0e !important;
    color: #0B2341 !important;
}
footer.mainFooter .title-footer,
footer.mainFooter h4 {
    color: #0B2341 !important;
    font-weight: 700;
}
footer.mainFooter .content-footer,
footer.mainFooter .address-footer li,
footer.mainFooter p {
    color: #0B2341 !important;
    font-weight: 600;
}
footer.mainFooter .address-footer a {
    color: #0B2341 !important;
}
footer.mainFooter .footer-copyright {
    background: rgba(0,0,0,0.1);
    color: #0B2341 !important;
    font-weight: 600;
    padding: 15px 0;
    margin-top: 20px;
}
.footerNav-social li a {
    color: #0B2341 !important;
    background: rgba(0,0,0,0.1) !important;
}
.footerNav-social li a:hover {
    background: rgba(0,0,0,0.2) !important;
}

/* ============================================
   FIX: Floating social buttons - bên phải cố định
   ============================================ */
.addThis_listSharing {
    position: fixed !important;
    right: 16px !important;
    bottom: 80px !important;
    left: auto !important;
    z-index: 9000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}
.addThis_listSharing .addThis_listing {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0; margin: 0;
}
.addThis_listSharing .tooltip-text {
    display: none !important;
}
/* Ẩn label text bên cạnh buttons */
.addThis_item a span.tooltip-text { display: none !important; }
