/* ============================================================
   INH MEGA MENU
   ============================================================ */

.inh-menu > li {
    position: relative;
}

.inh-mega-menu {
    position: fixed;
    top: var(--inh-mega-top, 100px);
    left: 50%;

    width: 1200px;
    max-width: 96vw;
    box-sizing: border-box;

    padding: 28px 32px;

    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0 0 8px 8px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);

    display: flex;
    gap: 32px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Luôn canh giữa màn hình (left: 50% + translateX(-50%)),
       không phụ thuộc vị trí của mục menu đang hover. */
    transform: translateX(-50%) translateY(8px);

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;

    z-index: 999999;

    /* QUAN TRỌNG */
    max-height: none;
    overflow: visible;
}


/* ============================================================
   HIỆN MEGA MENU KHI HOVER
   ============================================================ */

.inh-menu > li.inh-has-mega-menu:hover > .inh-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(-50%) translateY(0);
}


/* ============================================================
   KHU VỰC ẢNH
   ============================================================ */

.inh-mega-preview {
    width: 240px;
    min-width: 240px;
    height: 280px;

    background: #f6f6f6;

    border-radius: 6px;

    overflow: hidden;

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

.inh-mega-preview-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: none;
}

.inh-mega-preview-image.is-visible {
    display: block;
}

.inh-mega-preview-placeholder {
    font-size: 13px;
    color: #999;
    text-align: center;
}


/* ============================================================
   CONTENT
   ============================================================ */

.inh-mega-content {
    flex: 1;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    column-gap: 36px;
    row-gap: 24px;

    align-content: start;
}


/* ============================================================
   MỖI NHÓM CẤP 2
   ============================================================ */

.inh-mega-column {
    min-width: 0;
}


/* ============================================================
   TÊN CATEGORY CẤP 2
   ============================================================ */

.inh-mega-category-title {
    display: block;

    padding-bottom: 8px;
    margin-bottom: 10px;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.3;

    color: #08265B;

    border-bottom: 1px solid #e8e8e8;

    text-decoration: none;

    /* text-transform: uppercase; */
}

.inh-mega-category-title:hover {
    color: #061A42;
}


/* ============================================================
   CATEGORY CẤP 3
   ============================================================ */

.inh-mega-category-list {
    list-style: none;

    margin: 0;
    padding: 0;
}

.inh-mega-category-item {
    margin: 0;
    padding: 0;
}

/* Chữ + nhãn "In nhanh" cùng một hàng */
.inh-mega-category-list a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    padding: 5px 0;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.6;

    color: #444;

    text-decoration: none;
}

.inh-mega-category-list a:hover {
    color: #08265B;
}

.inh-mega-category-list a .inh-mega-fast-badge {
    flex-shrink: 0;
    margin-left: 0;
    padding: 1px 10px;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    color: #b45309;

    background: #fef3c7;
    border-radius: 999px;

    white-space: nowrap;
}


/* ============================================================
   CATEGORY CẤP 4
   ============================================================ */

.inh-mega-sub-list {
    list-style: none;

    margin: 2px 0 5px 10px;
    padding: 0;
}

.inh-mega-sub-list a {
    font-size: 11px;
    line-height: 1.4;
    color: #888;
}


/* ============================================================
   KHÔNG CHO MEGA MENU TẠO THANH SCROLL
   ============================================================ */

.inh-mega-menu,
.inh-mega-content {
    overflow: visible;
}


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

@media (max-width: 900px) {

    .inh-mega-menu {
        width: 92vw;
        max-width: 92vw;
    }

    .inh-mega-preview {
        display: none;
    }

    .inh-mega-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 20px;
    }
}


@media (max-width: 600px) {

    .inh-mega-menu {
        width: 95vw;
        max-width: 95vw;

        padding: 18px;
    }

    .inh-mega-content {
        grid-template-columns: 1fr 1fr;
    }

}