/* =========================================================
   ĐỒNG BỘ MÀU VÀNG ĐỒNG ĐẬM HƠN 2 ĐƠN VỊ (#9E7B35)
========================================================= */

/* 1. Ép các nút bấm, banner, khung nền sang vàng đồng đậm */
.bg-color,
.button.button-rounded,
.button:not(.button-border):not(.button-white),
input[type="submit"],
button[type="submit"],
.button.button-dark:hover,
.promo.promo-light .button,
.promo .button {
    background-color: #9E7B35 !important;
    border-color: #9E7B35 !important;
    color: #ffffff !important;
}

/* 2. Cập nhật màu chữ hoặc điểm nhấn sang vàng đồng đậm */
.text-gold,
.footer-big-contacts span {
    color: #9E7B35 !important;
}
/* =========================================================
   ĐỒNG BỘ MÀU VÀNG ĐỒNG ĐẬM HƠN 2 ĐƠN VỊ (#9E7B35)
========================================================= */

/* 1. Ép các nút bấm, banner, khung nền sang vàng đồng đậm */
.bg-color,
.button.button-rounded,
.button:not(.button-border):not(.button-white),
input[type="submit"],
button[type="submit"],
.button.button-dark:hover,
.promo.promo-light .button,
.promo .button {
    background-color: #9E7B35 !important;
    border-color: #9E7B35 !important;
    color: #ffffff !important;
}

/* 2. Cập nhật màu chữ hoặc điểm nhấn sang vàng đồng đậm */
.text-gold,
.footer-big-contacts span {
    color: #9E7B35 !important;
}
/* =========================================================
   ÉP ĐỔI TOÀN BỘ CHỮ MÀU CAM TRÊN HEADER SANG VÀNG ĐỒNG ĐẬM (#9E7B35)
========================================================= */
#header .he-text span,
#header .header-extras span,
.header-extras span,
.primary-menu .menu-container > .menu-item.current > .menu-link,
.primary-menu .menu-container > .menu-item.current > .menu-link div,
.top-links-item a,
.text-orange,
.text-warning {
    color: #9E7B35 !important;
}

/* Đảm bảo khi rê chuột vào menu cũng chuyển sang vàng đồng đậm */
.primary-menu .menu-container > .menu-item:hover > .menu-link,
.primary-menu .menu-container > .menu-item:hover > .menu-link div {
    color: #9E7B35 !important;
}
/* Trạng thái mặc định của nút (màu xanh ngọc/emerald đậm) */
.scroll-top-btn {
    background-color: #0b2d20; /* Hoặc màu nền hiện tại của anh/chị */
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    /* Trạng thái khi rê chuột vào (mouseover / hover) chuyển sang màu vàng đồng */
    .scroll-top-btn:hover {
        background-color: #D4AF37; /* Mã màu vàng đồng (Metallic Gold) */
        color: #111111; /* Đổi màu chữ/icon sang tối để dễ nhìn trên nền vàng, hoặc giữ #ffffff tùy chọn */
    }
/* =========================================================
   ĐỒNG BỘ MÀU ĐỒNG (BRONZE) CHO HEADER (TEMPLATE CANVAS)
   ========================================================= */
:root {
    --dpl-bronze: #b8864b; /* Màu đồng chủ đạo */
    --dpl-bronze-dark: #946732; /* Màu đồng đậm khi hover */
}

/* 1. Thông tin liên hệ trên Header (CALL US, EMAIL US, WE'RE OPEN) */
#header .header-extras li .he-text span,
.header-extras li .he-text span,
.header-extras li .he-text a {
    color: var(--dpl-bronze) !important;
}

#header .header-extras li i {
    color: var(--dpl-bronze) !important;
}

/* 2. Menu đang chọn (Active) & hiệu ứng rê chuột (Hover) */
.primary-menu .menu-container > .menu-item.current > .menu-link,
.primary-menu .menu-container > .menu-item:hover > .menu-link,
.primary-menu .sub-menu-container .menu-item:hover > .menu-link,
#top-search a:hover {
    color: var(--dpl-bronze) !important;
}

/* 3. Đường gạch nhấn & viền của menu con (Dropdown) nếu có */
.primary-menu .sub-menu-container {
    border-top-color: var(--dpl-bronze) !important;
}
/* Ghi đè biến màu gốc của template Canvas */
:root,
body,
#header {
    --cnvs-themecolor: #b8864b !important;
    --themecolor: #b8864b !important;
}

    /* Ép toàn bộ text màu cam & class .color trong Header sang màu đồng */
    #header .color,
    #header .header-extras li .he-text span,
    #header .header-extras li .he-text a,
    .primary-menu .menu-container > .menu-item.current > .menu-link,
    .primary-menu .menu-container > .menu-item.current > .menu-link div,
    .primary-menu .menu-container > .menu-item:hover > .menu-link,
    .primary-menu .menu-container > .menu-item:hover > .menu-link div,
    .primary-menu .sub-menu-container .menu-item:hover > .menu-link,
    #top-search a:hover {
        color: #b8864b !important;
    }
/* Tối ưu Header & Sticky Menu + Search trên điện thoại */
@media (max-width: 991.98px) {
    /* 1. Ẩn thanh Top Bar phía trên logo */
    #top-bar {
        
    }

    /* 2. Khi cuộn trang (sticky-header), ẩn phần Logo đi, chỉ giữ lại thanh Menu + Search */
    #header.sticky-header #logo {
        display: none !important;
    }

    /* 3. Cố định thanh Menu + Search gọn gàng ở mép trên màn hình khi vuốt */
    #header.sticky-header #header-wrap {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
        border-top: 2px solid #B8944D;
    }
}
/* Ẩn thanh Top Bar phía trên logo trên điện thoại & máy tính bảng */
@media (max-width: 991.98px) {
    #top-bar {
        display: none !important;
    }
}
@media (max-width: 767.98px) {
    /* Kéo nhân vật bên phải của slide 1 (ảnh 2.jpg) vào giữa màn hình điện thoại */
    #slider .swiper-slide:first-child .swiper-slide-bg,
    #slider .swiper-slide-bg[style*="slider/2.jpg"] {
        background-position: 82% top !important;
        background-size: cover !important;
    }
}
@media (max-width: 767.98px) {
    /* Đưa khung chữ "ĐẠI PHÚC LONG GROUP" vào giữa phía dưới màn hình điện thoại */
    #slider .slider-caption {
        left: 16px !important;
        right: 16px !important;
        bottom: 20px !important;
        top: auto !important;
        width: auto !important;
        max-width: calc(100% - 32px) !important;
        margin: 0 auto !important;
        padding: 12px 16px !important;
        text-align: center !important;
        transform: none !important;
    }

        #slider .slider-caption h2 {
            font-size: 16px !important;
            margin-bottom: 0 !important;
        }
}
/* Đảm bảo logo luôn nổi lên trên các vùng trống của header và nhận click mượt mà */
#header #logo {
    position: relative;
    z-index: 25 !important;
    pointer-events: auto !important;
}

    #header #logo a {
        display: inline-flex;
        align-items: center;
        position: relative;
        z-index: 26 !important;
        pointer-events: auto !important;
        cursor: pointer;
    }

/* Tránh vùng trống của cụm icon bên phải (.header-misc) đè ngang qua logo ở giữa */
@media (max-width: 991.98px) {
    #header .header-misc {
        position: relative;
        z-index: 20;
    }
}
/* =========================================================
   TINH CHỈNH MINI CART (GIỎ HÀNG NHANH) - ĐẠI PHÚC LONG
   ========================================================= */
.top-cart-content {
    width: 360px !important; /* Mở rộng nhẹ chiều ngang để đủ không gian cho nút xóa */
    border-radius: 16px !important;
    border: 1px solid #d1e7dd !important;
    box-shadow: 0 14px 35px rgba(13, 74, 47, 0.16) !important;
    overflow: hidden;
}

.top-cart-title h4 {
    color: #0d4a2f !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Chừa khoảng trống bên phải để thanh cuộn không đè lên nút xóa */
.top-cart-items {
    padding-right: 12px !important;
    max-height: 310px !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

    /* Làm thanh cuộn mảnh & tinh tế trên Chrome/Edge */
    .top-cart-items::-webkit-scrollbar {
        width: 5px;
    }

    .top-cart-items::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 10px;
    }

/* Căn chỉnh từng dòng sản phẩm */
.top-cart-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 12px 6px !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    transition: background-color 0.2s ease;
}

    .top-cart-item:hover {
        background-color: #f8faf9;
        border-radius: 10px;
    }

.top-cart-item-desc {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1;
    min-width: 0;
    gap: 8px;
}

/* Khu vực số lượng (x3) + Nút xóa xếp gọn thành 1 cụm bên phải */
.top-cart-item-quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
    color: #475569;
}

    /* Thiết kế nút Xóa tròn tinh tế, không bao giờ bị che */
    .top-cart-item-remove,
    .top-cart-item .remove,
    .top-cart-item a[data-remove],
    .top-cart-item-quantity a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        border-radius: 50% !important;
        background-color: #f1f5f9 !important;
        color: #64748b !important;
        font-size: 13px !important;
        line-height: 1 !important;
        text-decoration: none !important;
        position: static !important; /* Gỡ bỏ position: absolute cũ gây lệch/che nút */
        opacity: 1 !important;
        visibility: visible !important;
        transition: all 0.2s ease !important;
    }

        .top-cart-item-remove:hover,
        .top-cart-item .remove:hover,
        .top-cart-item a[data-remove]:hover,
        .top-cart-item-quantity a:hover {
            background-color: #fee2e2 !important;
            color: #dc2626 !important;
            transform: scale(1.08);
        }

/* Tinh chỉnh nút Thanh toán & Tổng tiền đồng bộ màu thương hiệu */
.top-cart-action {
    background-color: #f8faf9 !important;
    border-top: 1px solid #d1e7dd !important;
    padding: 14px 18px !important;
}

    .top-cart-action .button {
        background: linear-gradient(135deg, #14532d 0%, #166534 100%) !important;
        border-radius: 8px !important;
        border: 1px solid #d4af37 !important;
        color: #fef08a !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 10px rgba(20, 83, 45, 0.2);
    }

.top-checkout-price {
    color: #0d4a2f !important;
    font-weight: 800 !important;
    font-size: 18px !important;
}
.dpl-social-btn .dpl-social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
}