body {
    padding-top: 0 !important;
}

.banner_main .banner .banner_slide ul li img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

header .box_header .flex_center .box_category .category ul li .sub-menu {
    height: 500px;
    overflow: auto;
}

header .box_header .flex_right ul.new-top-mobile-menu {
    display: none;
}

.row.az-ft-link.ft-link-row-1 .last-child-col .title {
    padding-bottom: 30px;
}

.ft-link-row-2 .content ul li a {
    color: #fff;
    font-size: 13px;
}

#load-data {
    display: none;
}

ul.list-social li i.fa-facebook {
    border-color: #3B5996;
    color: #3B5996;
}

footer .bg-ft-link .az-ft-link .list-social li i.fa-facebook {
    border-color: #3B5996;
    color: #3B5996;
}

.box_product .img .product-img-frame {
    position: absolute;
    top: 0;
    left: 0;
}

.box_product .img .product-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.aml_pb-bottom-left.mobile {
    bottom: 75px !important;
}

.single-product-block {
    box-shadow: 0 1px 14px rgba(0, 0, 0, .16);
    padding: 20px;
    display: flex;
    gap: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.single-product-block .single-product-image {
    max-width: 250px;
}

.single-product-block .single-product-image img {
    width: 100%;
}

.single-product-block .single-product-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-product-block .single-product-content .single-product-category {
    color: #00ade5;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
}

.single-product-block .single-product-content .single-product-name {
    font-weight: 700;
    margin: 0 0 10px;
    padding: 0;
    font-size: 16px;
    width: 100%;
    line-height: 1.2;
}

.single-product-block .single-product-content .single-product-desc {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.single-product-block .single-product-content .single-product-button {
    border: 1px solid #00ade5;
    padding: 10px 20px;
    border-radius: 35px;
    overflow: hidden;
    display: inline-block;
    color: #00ade5;
    width: fit-content;
}

.single-product-block .single-product-content .single-product-button:hover {
    background: rgba(0, 174, 213, .08);
    transition: all .2s;
}

.sale-countdown-timer {
    font-size: 13px;
    color: #7300ff;
    font-weight: bold;
}

.product-sale-countdown-timer {
    font-size: 15px;
    color: #7300ff;
    font-weight: bold;
    margin: 10px 0;
    font-style: italic;
}

.product-attributes {
    display: flex;
    gap: 5px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.product-attributes span {
    display: block;
    font-size: 12px;
    /*border: 1px solid #d1d5db;*/
    border: 1px solid var(--xanhnuocbien);
    color: var(--xanhnuocbien);
    border-radius: 5px;
    padding: 3px 5px;
}

.single-product-attributes {
    display: flex;
    gap: 7px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.single-product-attributes span {
    display: block;
    font-size: 14px;
    /*border: 1px solid #d1d5db;*/
    border: 1px solid var(--xanhnuocbien);
    color: var(--xanhnuocbien);
    border-radius: 5px;
    padding: 5px;
}

/* Wrapper cho scroll ngang */
.category_content .box_text .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* mượt trên iOS */
}

.category_content .box_text table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.category_content .box_text table thead {
    background: #f5f7fa;
}

.category_content .box_text table th,
.category_content .box_text table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.category_content .box_text table th {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.category_content .box_text table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.category_content .box_text table tbody tr:hover {
    background-color: #f0f9ff;
    transition: background 0.2s;
}

.category_content .box_text h1,
.category_content .box_text h2,
.category_content .box_text h3,
.category_content .box_text h4,
.category_content .box_text h5,
.category_content .box_text h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #111827; /* gray-900 */
}

/* h1: tiêu đề lớn nhất */
.category_content .box_text h1 {
    font-size: 2rem;   /* ~32px */
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    border-bottom: 2px solid #e5e7eb; /* gạch nhẹ dưới H1 */
    padding-bottom: 0.3em;
}

/* h2 */
.category_content .box_text h2 {
    font-size: 1.75rem; /* ~28px */
    font-weight: 700;
}

/* h3 */
.category_content .box_text h3 {
    font-size: 1.5rem;  /* ~24px */
    font-weight: 600;
    margin-top: 0.6em;
    margin-bottom: 0.6em;
    color: #1f2937; /* gray-800 */
}

/* h4 */
.category_content .box_text h4 {
    font-size: 1.25rem; /* ~20px */
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #374151; /* gray-700 */
}

/* h5 */
.category_content .box_text h5 {
    font-size: 1.125rem; /* ~18px */
    font-weight: 500;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
    color: #4b5563; /* gray-600 */
}

/* h6 */
.category_content .box_text h6 {
    font-size: 1rem; /* ~16px */
    font-weight: 500;
    margin-top: 0.6em;
    margin-bottom: 0.3em;
    color: #6b7280; /* gray-500 */
}

.category_content .box_text ul {
    list-style: none !important;
    margin: 1em 0;
    padding: 0;
}

.category_content .box_text li {
    position: relative;
    padding-left: 1.5em;
    margin: 0.5em 0;
    line-height: 1.6;
}

.category_content .box_text li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6; /* xanh brand */
    font-weight: bold;
    font-size: 1.1em;
}

.category_content .az-product-item .az-title-post {
    font-size: 14px;
    font-weight: 400;
}

.main_category .tieuchi {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.main_category .tieuchi .custom_btn {
    margin-right: 0;
}

.brand_slider .slick-prev {
    left: -14px;
    z-index: 99;
    width: 30px;
}

.brand_slider .slick-next {
    right: -14px;
    z-index: 99;
    width: 30px;
}

.brand_slider .slick-prev:before, .brand_slider .slick-next:before {
    color: black;
}

.banner_main .banner .banner_slide li:not(:first-child) {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.banner_main .banner .banner_slide.slick-initialized li {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.dnm_content h1,
.dnm_content h2,
.dnm_content h3,
.dnm_content h4,
.dnm_content h5,
.dnm_content h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
}

/* h1 */
.dnm_content h1 {
    font-size: 1.75rem;  /* ~28px */
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.3em;
}

/* h2 */
.dnm_content h2 {
    font-size: 1.5rem; /* ~24px */
    font-weight: 700;
}

/* h3 */
.dnm_content h3 {
    font-size: 1.25rem;  /* ~20px */
    font-weight: 600;
    margin-top: 0.6em;
    margin-bottom: 0.6em;
    color: #1f2937;
}

/* h4 */
.dnm_content h4 {
    font-size: 1.125rem; /* ~18px */
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #374151;
}

/* h5 */
.dnm_content h5 {
    font-size: 1rem; /* ~16px */
    font-weight: 500;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
    color: #4b5563;
}

/* h6 */
.dnm_content h6 {
    font-size: 0.9375rem; /* ~15px */
    font-weight: 500;
    margin-top: 0.6em;
    margin-bottom: 0.3em;
    color: #6b7280;
}

/* POPUP */
.jm-category-popup {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999999999;
}

/* OVERLAY */
.jm-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* CONTAINER */
.jm-popup-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.jm-popup-header {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #eee;
}

.jm-popup-title {
    font-size: 18px;
    font-weight: 600;
}

.jm-popup-close {
    font-size: 22px;
    cursor: pointer;
}

/* BODY */
.jm-popup-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #f3f4f6;
}

/* LEFT MENU */
.jm-parent-list {
    width: 25%;
    background: #eaecf0;
    overflow-y: auto;
    margin-top: 12px;
    /* Firefox */
    scrollbar-width: none;

    /* IE, Edge cũ */
    -ms-overflow-style: none;
}

/* Chrome, Safari */
.jm-parent-list::-webkit-scrollbar {
    display: none;
}

.jm-parent-list ul {
    list-style: none;
    padding: 0;
}

.jm-parent-list li {
    padding: 14px 12px;
    border-bottom: 1px solid #bfbfbfbd;
    font-size: 12px;
    cursor: pointer;
    position: relative;
}

.jm-parent-list li.active {
    background: #fff;
    font-weight: 600;
}

.jm-parent-list li.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3b82f6;
    border-radius: 2px;
}

/* RIGHT CONTENT */
.jm-child-list {
    width: 75%;
    background: #f3f4f6;
    padding: 12px 0 12px 12px;
    overflow-y: auto;
}

/* GROUP BOX */
.jm-child-group {
    display: none;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
}

.jm-child-group.active {
    display: block;
}


/* SECTION TITLE */
.jm-child-section-title {
    grid-column: span 3;
    font-weight: 600;
    font-size: 14px;
    margin: 6px 0;
}

/* button xem thêm */
.jm-section-more {
    font-size: 14px;
    background-color: #3b82f6;
    color: #ffff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
    margin: 10px 0;
    padding: 4px 6px;
    display: inline-block;
}

.jm-child-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}


/* ITEM */
.jm-child-card {
    text-align: center;
    padding: 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    min-height: 90px;
}

.jm-child-card:active {
    background: #f2f2f2;
    transform: scale(0.96);
}

/* IMAGE */
.jm-child-img {
    width: 56px;
    height: 56px;
    margin: 0 auto 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jm-child-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* FALLBACK */
.jm-child-img.no-image::after {
    content: "📦";
    font-size: 20px;
    color: #bbb;
}

/* TEXT */
.jm-child-card span {
    font-size: 12px;
    color: #333;
    display: block;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .menu_mobile .category_mb ul li {
        height: auto;
        padding: 10px 0;
    }

    .menu_mobile {
        z-index: 9999;
    }

    header .box_header .flex_right ul.new-top-mobile-menu {
        display: flex;
        justify-content: flex-end;
    }

    header .box_header .flex_right ul.new-top-menu {
        display: none;
    }

    header .box_header .flex_right ul li a img {
        width: 35px;
    }

}

@media (max-width: 765px) {
    .single-product-block {
        flex-direction: column;
    }

    .single-product-block .single-product-image img {
        width: 65%;
    }

    .single-product-block .single-product-image {
        display: flex;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .product-attributes span {
        font-size: 10px;
    }

    footer .ft-link-row-1 div{
        margin-bottom: 15px;
    }

    footer .ft-link-row-1 > div:last-child {
        order: -1;
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        flex: 0 0 100%;
        max-width: 100%;
    }

    footer .ft-link-row-1 .d-sm-block {
        display: block !important;
    }

    footer .az-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 500px) {
    header .box_header .flex_right ul li a img {
        width: 30px;
    }

    .brand_slider .slick-prev {
        left: -5px;
    }

    .brand_slider .slick-next {
        right: -5px;
    }

}

@media (max-width: 400px) {
    footer .az-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

