<style>
/* ==========================================
   AOBONGRO.VN - DANH MỤC KHUNG CHÉO THEO ẢNH 2
   Desktop + Tablet + Mobile
========================================== */

.abr-cat-section,
.abr-cat-section * {
    box-sizing: border-box;
}

.abr-cat-section {
    --abr-orange: #ff650b;
    --abr-orange-light: #ff751b;
    --abr-black: #050505;
    --abr-card-bg: #100d0b;
    --abr-white: #f5f5f5;

    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 0 14px;
    overflow: visible;
    background: var(--abr-black);
    color: var(--abr-white);
    font-family: Arial, Helvetica, sans-serif;
}

/* Đảm bảo section không bị giới hạn bởi container bên ngoài */
.abr-cat-section .abr-cat-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 15px;
}

/* ==========================================
   HEADER
========================================== */

.abr-cat-section .abr-cat-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin: 0 0 17px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(255, 101, 11, 0.2);
}

.abr-cat-section .abr-cat-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.abr-cat-section .abr-cat-grid-icon {
    display: grid;
    grid-template-columns: repeat(2, 10px);
    grid-template-rows: repeat(2, 10px);
    gap: 3px;
    flex: 0 0 auto;
}

.abr-cat-section .abr-cat-grid-icon i {
    display: block;
    width: 10px;
    height: 10px;
    background: var(--abr-orange);
}

.abr-cat-section .abr-cat-heading h2 {
    margin: 0;
    padding: 0;
    color: #f5f5f5;
    font-size: clamp(17px, 2vw, 29px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.1px;
    text-transform: uppercase;
}

.abr-cat-section .abr-cat-heading h2 span {
    color: var(--abr-orange);
}

.abr-cat-section .abr-cat-watermark {
    position: absolute;
    top: -8px;
    right: 0;
    z-index: 0;
    color: rgba(130, 91, 62, 0.22);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(25px, 3.5vw, 48px);
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

/* ==========================================
   CATEGORY GRID
========================================== */

.abr-cat-section .abr-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

/* ==========================================
   CATEGORY CARD
========================================== */

.abr-cat-section .abr-cat-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 0.99 / 1;
    padding: 2px;
    overflow: hidden;
    color: #fff;
    text-decoration: none !important;
    background: linear-gradient(
        135deg,
        #ff781b 0%,
        #b84708 42%,
        #ff7514 100%
    );

    /* Cắt chéo rõ như ảnh tham chiếu: góc trái trên 25%, góc phải dưới 14%. */
    clip-path: polygon(25% 0%, 98% 0%, 100% 1.5%, 100% 81%, 99% 84%, 86% 99%, 84% 100%, 2% 100%, 0% 98%, 0% 26%, 1% 23%, 22% 1%);
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.abr-cat-section .abr-cat-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 8px 8px 12px;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 50% 42%,
            rgba(255, 102, 12, 0.13) 0,
            rgba(255, 102, 12, 0.035) 40%,
            transparent 70%
        ),
        linear-gradient(145deg, #1b120d, #080808 75%);
    clip-path: polygon(25% 0%, 98% 0%, 100% 1.5%, 100% 81%, 99% 84%, 86% 99%, 84% 100%, 2% 100%, 0% 98%, 0% 26%, 1% 23%, 22% 1%);
}

/* Vòng tròn cam trang trí sau ảnh */
.abr-cat-section .abr-cat-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 auto;
    isolation: isolate;
}

.abr-cat-section .abr-cat-image::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 8%;
    left: 50%;
    width: 76%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateX(-50%);
    background: linear-gradient(
        145deg,
        #ff7a1a 0%,
        #ff5a08 65%,
        #c33d00 100%
    );
    box-shadow: 0 0 20px rgba(255, 92, 5, 0.12);
}

.abr-cat-section .abr-cat-image img {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* ==========================================
   CARD FOOTER
========================================== */

.abr-cat-section .abr-cat-card-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
    min-height: 39px;
    margin: auto 0 0;
    padding: 5px 2px 0;
}

.abr-cat-section .abr-cat-card-bottom h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #f7f7f7;
    font-size: clamp(10px, 0.92vw, 15px);
    font-weight: 800;
    font-style: italic;
    line-height: 1.3;
    letter-spacing: -0.15px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.abr-cat-section .abr-cat-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 2px solid var(--abr-orange);
    border-radius: 50%;
    color: #fff;
    background: #080808;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* Hiệu ứng khi rê chuột */
@media (hover: hover) {
    .abr-cat-section .abr-cat-card:hover {
        filter: brightness(1.12);
        transform: translateY(-3px);
    }

    .abr-cat-section .abr-cat-card:hover .abr-cat-arrow {
        color: #fff;
        background: var(--abr-orange);
        transform: translateX(2px);
    }
}

.abr-cat-section .abr-cat-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* ==========================================
   DESKTOP MÀN HÌNH RỘNG
========================================== */

@media (min-width: 1400px) {
    .abr-cat-section .abr-cat-container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .abr-cat-section .abr-cat-grid {
        gap: 12px;
    }

    .abr-cat-section .abr-cat-card-inner {
        padding: 10px 12px 13px;
    }

    .abr-cat-section .abr-cat-arrow {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }
}

/* ==========================================
   LAPTOP / TABLET NGANG
========================================== */

@media (max-width: 1100px) {
    .abr-cat-section .abr-cat-container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .abr-cat-section .abr-cat-grid {
        gap: 9px;
    }

    .abr-cat-section .abr-cat-card-inner {
        padding: 7px 6px 9px;
    }

    .abr-cat-section .abr-cat-card-bottom h3 {
        font-size: clamp(9px, 1.15vw, 13px);
    }

    .abr-cat-section .abr-cat-arrow {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
        font-size: 20px;
        border-width: 1.5px;
    }
}

/* ==========================================
   TABLET 768 - 1100: 3 COT
========================================== */
@media (min-width: 768px) and (max-width: 1100px) {
    .abr-cat-section .abr-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .abr-cat-section .abr-cat-card-bottom h3 {
        font-size: 13px;
    }
}

/* ==========================================
   TABLET DỌC
========================================== */

@media (max-width: 767px) {
    .abr-cat-section {
        padding: 12px 0;
    }

    .abr-cat-section .abr-cat-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .abr-cat-section .abr-cat-header {
        min-height: 34px;
        margin-bottom: 13px;
        padding-bottom: 8px;
    }

    .abr-cat-section .abr-cat-heading {
        gap: 8px;
    }

    .abr-cat-section .abr-cat-heading h2 {
        font-size: clamp(16px, 4.3vw, 23px);
    }

    .abr-cat-section .abr-cat-grid-icon {
        grid-template-columns: repeat(2, 8px);
        grid-template-rows: repeat(2, 8px);
        gap: 2px;
    }

    .abr-cat-section .abr-cat-grid-icon i {
        width: 8px;
        height: 8px;
    }

    .abr-cat-section .abr-cat-watermark {
        top: 1px;
        font-size: clamp(18px, 4.5vw, 28px);
        opacity: 0.7;
    }

    /* Cuộn ngang thay vì ép 6 thẻ vào màn hình nhỏ */
    .abr-cat-section .abr-cat-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        margin: 0;
        padding: 0 0 8px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: #8c3b0c #151515;
    }

    .abr-cat-section .abr-cat-card {
        flex: 0 0 38%;
        width: 38%;
        min-width: 0;
        aspect-ratio: 0.99 / 1;
        scroll-snap-align: start;
    }

    .abr-cat-section .abr-cat-card-inner {
        padding: 7px 7px 9px;
    }

    .abr-cat-section .abr-cat-image {
        flex: 1 1 auto;
    }

    .abr-cat-section .abr-cat-card-bottom {
        gap: 4px;
        min-height: 30px;
        padding-top: 4px;
    }

    .abr-cat-section .abr-cat-card-bottom h3 {
        font-size: clamp(10px, 2.5vw, 13px);
        line-height: 1.25;
    }

    .abr-cat-section .abr-cat-arrow {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
        font-size: 18px;
    }
}

/* ==========================================
   ĐIỆN THOẠI NHỎ
========================================== */

@media (max-width: 420px) {
    .abr-cat-section .abr-cat-container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .abr-cat-section .abr-cat-header {
        margin-bottom: 11px;
    }

    .abr-cat-section .abr-cat-heading {
        gap: 7px;
    }

    .abr-cat-section .abr-cat-heading h2 {
        font-size: 16px;
    }

    .abr-cat-section .abr-cat-watermark {
        font-size: 17px;
        top: 3px;
    }

    .abr-cat-section .abr-cat-grid {
        gap: 8px;
    }

    .abr-cat-section .abr-cat-card {
        flex-basis: 43%;
        width: 43%;
    }

    .abr-cat-section .abr-cat-card-inner {
        padding: 6px 6px 8px;
    }

    .abr-cat-section .abr-cat-card-bottom h3 {
        font-size: 10px;
    }

    .abr-cat-section .abr-cat-arrow {
        flex-basis: 23px;
        width: 23px;
        height: 23px;
        font-size: 17px;
    }
}

/* ==========================================
   ĐIỆN THOẠI RẤT NHỎ
========================================== */

@media (max-width: 340px) {
    .abr-cat-section .abr-cat-watermark {
        display: none;
    }

    .abr-cat-section .abr-cat-card {
        flex-basis: 48%;
        width: 48%;
    }
}

/* Hỗ trợ người dùng giảm hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
    .abr-cat-section .abr-cat-card,
    .abr-cat-section .abr-cat-arrow {
        transition: none;
    }
}


/* ==========================================================
   TINH CHINH KHUNG: MONG, NGHIENG HAI CANH, BO GOC
   Dat cuoi CSS de ghi de kieu clip-path cu.
   ========================================================== */
.abr-cat-section .abr-cat-grid {
    column-gap: 17px;
    padding: 3px 9px 5px;
}
.abr-cat-section .abr-cat-card {
    /* Skew tao hai canh ben cheo THUC SU, border-radius bo goc */
    clip-path: none !important;
    -webkit-clip-path: none !important;
    transform: skewX(-9deg);
    transform-origin: center;
    border: 1.4px solid #ff650b;
    border-radius: 8px;
    background: #110d0b;
    padding: 0;
    aspect-ratio: 1.12 / 1;
    overflow: hidden;
}
.abr-cat-section .abr-cat-card-inner {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    background: linear-gradient(145deg,#20140e,#080808 80%);
    padding: 7px 13px 9px;
    border-radius: 7px;
}
/* Bu lai do nghieng cho hinh anh, vong tron va chu khong meo */
.abr-cat-section .abr-cat-image,
.abr-cat-section .abr-cat-card-bottom {
    transform: skewX(9deg);
}
.abr-cat-section .abr-cat-image::before {
    top: 6%;
    width: 79%;
}
.abr-cat-section .abr-cat-image img {
    object-fit: contain;
}
.abr-cat-section .abr-cat-card-bottom {
    min-height: 30px;
    padding: 2px 3px 0;
}
.abr-cat-section .abr-cat-card-bottom h3 {
    font-size: clamp(10px, .86vw, 13px);
    line-height: 1.22;
}
.abr-cat-section .abr-cat-arrow {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
    font-size: 20px;
    border-width: 1.5px;
}
@media (hover:hover) {
    .abr-cat-section .abr-cat-card:hover {
        transform: skewX(-9deg) translateY(-3px);
    }
}
@media (min-width: 768px) and (max-width: 1100px) {
    .abr-cat-section .abr-cat-grid { gap: 18px; }
}
@media (max-width: 767px) {
    .abr-cat-section .abr-cat-grid { gap: 17px; padding: 3px 9px 9px; }
    .abr-cat-section .abr-cat-card { aspect-ratio: .95 / 1; }
    .abr-cat-section .abr-cat-card-inner { padding: 6px 11px 8px; }
    .abr-cat-section .abr-cat-card-bottom h3 { font-size: 10px; }
    .abr-cat-section .abr-cat-arrow { flex-basis: 24px; width: 24px; height: 24px; font-size: 17px; }
}
/* VIỀN KHUNG DANH MỤC MỎNG HƠN */
.abr-cat-section .abr-cat-card {
    border: 0.7px solid #ff650b !important;
    border-radius: 8px !important;
    padding: 0 !important;
}

/* Giữ bo góc bên trong */
.abr-cat-section .abr-cat-card-inner {
    border-radius: 7px !important;
}

/* ==========================================
   AOBONGRO.VN - DANH MUC SAN PHAM
   CSS BO SUNG - DESKTOP + MOBILE
========================================== */

/* 1. BO NEN DEN SECTION */
.abr-cat-section,
.abr-cat-section .abr-cat-container {
    background: transparent !important;
}

/* 2. XOA VONG CAM PHU SAU AVATAR */
.abr-cat-section .abr-cat-image::before,
.abr-cat-section .abr-cat-image::after {
    display: none !important;
    content: none !important;
}

/* 3. BO NEN LOT BEN TRONG CARD */
.abr-cat-section .abr-cat-card,
.abr-cat-section .abr-cat-card-inner {
    background: transparent !important;
}

/* 4. CHU DANH MUC GON, THOANG HON */
.abr-cat-section .abr-cat-card-bottom {
    gap: 7px;
    padding: 5px 3px 3px;
}

.abr-cat-section .abr-cat-card-bottom h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(10px, 0.82vw, 12px);
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: 0.1px;
    overflow-wrap: normal;
    word-break: normal;
}

/* ==========================================
   MOBILE - 2 DANH MUC / MAN HINH
========================================== */

@media (max-width: 767px) {

    /* SECTION */
    .abr-cat-section {
        background: transparent !important;
        padding: 12px 0 16px !important;
        overflow: hidden;
    }

    .abr-cat-section .abr-cat-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        background: transparent !important;
    }

    /* THANH DANH MUC VUOT NGANG */
    .abr-cat-section .abr-cat-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;

        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 2px 1px 8px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1px;
        scroll-behavior: smooth;

        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    /* AN THANH CUON */
    .abr-cat-section .abr-cat-grid::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* CARD THANG, VUONG, BO GOC */
    .abr-cat-section .abr-cat-card {
        flex: 0 0 calc((100% - 12px) / 2) !important;
        width: calc((100% - 12px) / 2) !important;
        min-width: 0 !important;

        aspect-ratio: 1 / 1 !important;
        height: auto !important;

        transform: none !important;
        -webkit-transform: none !important;

        clip-path: none !important;
        -webkit-clip-path: none !important;

        border: 1px solid #ff650b !important;
        border-radius: 10px !important;

        background: transparent !important;
        overflow: hidden !important;

        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* KHONG NGHIENG KHI HOVER */
    .abr-cat-section .abr-cat-card:hover {
        transform: none !important;
    }

    /* PHAN BEN TRONG CARD */
    .abr-cat-section .abr-cat-card-inner {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        width: 100%;
        height: 100%;

        padding: 7px 8px 9px !important;

        transform: none !important;
        -webkit-transform: none !important;

        clip-path: none !important;
        -webkit-clip-path: none !important;

        border-radius: 9px !important;
        background: transparent !important;
    }

    /* AVATAR KHONG BI NGHIENG */
    .abr-cat-section .abr-cat-image {
        transform: none !important;
        -webkit-transform: none !important;

        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
    }

    .abr-cat-section .abr-cat-image::before,
    .abr-cat-section .abr-cat-image::after {
        display: none !important;
        content: none !important;
    }

    .abr-cat-section .abr-cat-image img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;

        object-fit: contain;
        object-position: center;

        background: transparent !important;
    }

    /* TEN DANH MUC VA MUI TEN */
    .abr-cat-section .abr-cat-card-bottom {
        transform: none !important;
        -webkit-transform: none !important;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 5px !important;
        min-height: 34px;

        margin-top: auto;
        padding: 5px 1px 0 !important;
    }

    /* TEN DANH MUC */
    .abr-cat-section .abr-cat-card-bottom h3 {
        flex: 1 1 auto;
        min-width: 0;

        margin: 0 !important;
        padding: 0 !important;

        font-family: Arial, Helvetica, sans-serif;
        font-size: 10px !important;
        font-weight: 700 !important;
        font-style: normal !important;

        line-height: 1.35 !important;
        letter-spacing: 0 !important;

        overflow-wrap: normal;
        word-break: normal;
    }

    /* MUI TEN GIU NGUYEN CHUC NANG */
    .abr-cat-section .abr-cat-arrow {
        flex: 0 0 24px !important;
        width: 24px !important;
        height: 24px !important;

        font-size: 17px !important;
        border-radius: 50%;
    }
}

/* ==========================================
   DIEN THOAI RAT NHO
========================================== */

@media (max-width: 360px) {

    .abr-cat-section .abr-cat-container {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .abr-cat-section .abr-cat-grid {
        gap: 8px !important;
    }

    .abr-cat-section .abr-cat-card {
        flex-basis: calc((100% - 10px) / 2) !important;
        width: calc((100% - 10px) / 2) !important;
    }

    .abr-cat-section .abr-cat-card-bottom h3 {
        font-size: 9px !important;
    }
}

</style>





