#hv3-danhmuc {
    width: 100%;
    box-sizing: border-box;

    --hv3-dm-body-pad: 50px;

    --hv3-dm-grid-gap: 45px 35px;

    padding: 24px max(var(--hv3-shell-pad, 24px), calc((100% - var(--hv3-max, 1440px)) / 2)) 60px;
    font-family: var(--hv3-font, Roboto, Arial, sans-serif);
    color: #666;
}

@keyframes hv3-dm-skeleton-shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

@keyframes hv3-dm-content-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#hv3-danhmuc:not(.is-loading) .hv3-dm__skeleton { display: none !important; }

#hv3-danhmuc { position: relative; }

#hv3-danhmuc.is-loading .hv3-dm__content {
    visibility: hidden !important;
    opacity: 0 !important;
}

#hv3-danhmuc.is-loading .hv3-dm__skeleton {
    display: block !important;
    position: absolute;
    left: max(var(--hv3-shell-pad, 24px), calc((100% - var(--hv3-max, 1440px)) / 2));
    right: max(var(--hv3-shell-pad, 24px), calc((100% - var(--hv3-max, 1440px)) / 2));
    top: 24px;
    z-index: 1;
}
#hv3-danhmuc:not(.is-loading) .hv3-dm__content {
    animation: hv3-dm-content-in .24s ease-out both;
}

#hv3-danhmuc .hv3-dm__skel-block {
    position: relative;
    display: block;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #E7EAEE;
}

#hv3-danhmuc .hv3-dm__skel-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent);
    animation: hv3-dm-skeleton-shimmer 1.05s ease-in-out infinite;
}

#hv3-danhmuc .hv3-dm__skel-intro {
    display: grid;

    grid-template-columns: 5.1fr 1.6fr 3.3fr;
    align-items: center;
    min-height: 190px;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

#hv3-danhmuc .hv3-dm__skel-intro-copy { grid-column: 1; }
#hv3-danhmuc .hv3-dm__skel-block--heading { width: 210px; height: 22px; margin-bottom: 16px; }
#hv3-danhmuc .hv3-dm__skel-block--desc { width: min(88%, 620px); height: 10px; margin-bottom: 9px; }
#hv3-danhmuc .hv3-dm__skel-block--desc-short { width: min(62%, 420px); height: 10px; margin-bottom: 22px; }
#hv3-danhmuc .hv3-dm__skel-pills { display: flex; flex-wrap: wrap; gap: 10px; }
#hv3-danhmuc .hv3-dm__skel-block--pill { width: 120px; height: 30px; }
#hv3-danhmuc .hv3-dm__skel-hero {
    grid-column: 3;
    width: 100%;
    height: auto;

    aspect-ratio: 3 / 2;
    border-radius: 12px;

    transform: translateX(-24px);
}

#hv3-danhmuc .hv3-dm__skel-body {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding-top: var(--hv3-dm-body-pad);
    border-top: 1px solid #ececec;
}

#hv3-danhmuc .hv3-dm__skel-sidebar {
    flex: 0 0 220px;
}

#hv3-danhmuc .hv3-dm__skel-sidebar .hv3-dm__skel-block {
    width: 100%;
    height: 11px;
    margin: 0;
}
#hv3-danhmuc .hv3-dm__skel-side-group { margin-bottom: 34px !important; }
#hv3-danhmuc .hv3-dm__skel-side-item  { width: 82% !important; margin-bottom: 25px !important; }
#hv3-danhmuc .hv3-dm__skel-side-item:nth-child(2n) { width: 70% !important; }

#hv3-danhmuc .hv3-dm__skel-grid {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--hv3-dm-grid-gap);
}

#hv3-danhmuc .hv3-dm__skel-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    border-radius: 10px;
}

#hv3-danhmuc .hv3-dm__skel-card-tag { width: 68%; height: 9px; margin-bottom: 11px; }
#hv3-danhmuc .hv3-dm__skel-card-title { width: 84%; height: 11px; margin-bottom: 21px; }
#hv3-danhmuc .hv3-dm__skel-card-price { width: 42%; height: 9px; }

#hv3-danhmuc .hv3-dm__intro {
    display: grid;

    grid-template-columns: 5.1fr 1.6fr 3.3fr;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

#hv3-danhmuc .hv3-dm__intro-text {
    grid-column: 1;
    min-width: 0;
}

#hv3-danhmuc .hv3-dm__title {

    margin: 0 0 22px;

    font-family: 'Arial Web Head', var(--hv3-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--hv3-green-500, #1D8057);
}

#hv3-danhmuc .hv3-dm__desc {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.65;
    color: #666;
}

#hv3-danhmuc .hv3-dm__perks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#hv3-danhmuc .hv3-dm__perk {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

#hv3-danhmuc .hv3-dm__perk:hover {
    color: var(--hv3-green-500, #1D8057);
    border-color: currentColor;
    background: #F3F9F6;
}

#hv3-danhmuc .hv3-dm__perk-ico {
    width: 16px;
    height: 16px;
    flex: none;
    object-fit: contain;
}

#hv3-danhmuc .hv3-dm__hero {
    grid-column: 3;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;

    transform: translateX(-24px);
}

#hv3-danhmuc .hv3-dm__hero img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform .35s ease, opacity .2s ease;
}

#hv3-danhmuc .hv3-dm__hero.is-loading,
#hv3-danhmuc .hv3-dm__hero.is-error {
    position: relative;
    background: #E7EAEE;
}

#hv3-danhmuc .hv3-dm__hero.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent);
    animation: hv3-dm-skeleton-shimmer 1.05s ease-in-out infinite;
}

#hv3-danhmuc .hv3-dm__hero.is-loading img,
#hv3-danhmuc .hv3-dm__hero.is-error img {
    opacity: 0;
}

#hv3-danhmuc .hv3-dm__hero.is-error:hover img {
    transform: none;
}

#hv3-danhmuc .hv3-dm__hero:hover img {
    transform: rotate(-2deg);
}

#hv3-danhmuc .hv3-dm__body {
    display: flex;
    align-items: flex-start;
    gap: 32px;

    padding-top: var(--hv3-dm-body-pad);
    border-top: 1px solid #ececec;
}

#hv3-danhmuc .hv3-dm__sidebar {
    flex: 0 0 220px;
    font-size: 14px;
}

@media (min-width: 901px) {
    #hv3-danhmuc .hv3-dm__sidebar {
        position: sticky;
        top: 16px;
        align-self: flex-start;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
        transition: scrollbar-color .2s ease;
    }

    #hv3-danhmuc .hv3-dm__sidebar:hover {
        scrollbar-color: #CBD1D8 transparent;
    }

    #hv3-danhmuc .hv3-dm__sidebar::-webkit-scrollbar {
        width: 5px;
    }

    #hv3-danhmuc .hv3-dm__sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    #hv3-danhmuc .hv3-dm__sidebar::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: transparent;
        transition: background .2s ease;
    }

    #hv3-danhmuc .hv3-dm__sidebar:hover::-webkit-scrollbar-thumb {
        background: #CBD1D8;
    }

    #hv3-danhmuc .hv3-dm__sidebar:hover::-webkit-scrollbar-thumb:hover {
        background: #AEB5BE;
    }
}

#hv3-danhmuc .hv3-dm__sidegroup {

    margin-bottom: 14px;
}

#hv3-danhmuc .hv3-dm__sidegroup-head {
    display: flex;
    align-items: stretch;

    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

#hv3-danhmuc .hv3-dm__sidegroup-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    min-width: 0;

    padding: 0;
    min-height: 20px;
    line-height: 1.4;
    font-size: 14px;

    font-family: 'Arial Web Head', var(--hv3-font);
    font-weight: 700;
    color: #666;
    text-decoration: none;
    border-bottom: 0;
}

#hv3-danhmuc .hv3-dm__sidegroup-title:hover {
    color: var(--hv3-green-500, #1D8057);
}

#hv3-danhmuc .hv3-dm__sidegroup-title.is-current {
    cursor: default;
    color: var(--hv3-green-500, #1D8057);
}

#hv3-danhmuc .hv3-dm__sidegroup.is-open .hv3-dm__sidegroup-title:not(.is-current) {
    color: var(--hv3-green-500, #1D8057);
}

#hv3-danhmuc .hv3-dm__sidegroup-toggle {
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #A4A4A5;
    cursor: pointer;
}

#hv3-danhmuc .hv3-dm__sidegroup-toggle:hover,
#hv3-danhmuc .hv3-dm__sidegroup.is-open .hv3-dm__sidegroup-toggle {
    color: var(--hv3-green-500, #1D8057);
}

#hv3-danhmuc .hv3-dm__sidegroup-arrow {
    flex: none;
    width: 17px;
    height: 17px;
    color: #A4A4A5;
    transition: transform .2s ease, color .2s ease;
}

#hv3-danhmuc .hv3-dm__sidegroup-title:hover,
#hv3-danhmuc .hv3-dm__sidegroup-head:hover .hv3-dm__sidegroup-title,
#hv3-danhmuc .hv3-dm__sidegroup-toggle:hover,
#hv3-danhmuc .hv3-dm__sidegroup-head:hover .hv3-dm__sidegroup-toggle,
#hv3-danhmuc .hv3-dm__sidegroup-toggle:hover .hv3-dm__sidegroup-arrow,
#hv3-danhmuc .hv3-dm__sidegroup-head:hover .hv3-dm__sidegroup-arrow,
#hv3-danhmuc .hv3-dm__sidegroup.is-open .hv3-dm__sidegroup-arrow {
    color: var(--hv3-green-500, #1D8057);
}

#hv3-danhmuc .hv3-dm__sidegroup.is-open .hv3-dm__sidegroup-arrow {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    #hv3-danhmuc .hv3-dm__sidelist,
    #hv3-danhmuc .hv3-dm__sidegroup-arrow {
        transition: none;
    }
}

#hv3-danhmuc.hv3-dm--khong-chuyen .hv3-dm__sidelist { transition: none !important; }

#hv3-danhmuc .hv3-dm__sidelist {

    max-height: var(--hv3-dm-list-height, 0px);
    margin: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    list-style: none;
    visibility: hidden;
    transition: max-height .36s cubic-bezier(.22, .61, .36, 1), margin .3s ease,
        opacity .24s ease, visibility 0s linear .36s;
}

#hv3-danhmuc .hv3-dm__sidegroup.is-open .hv3-dm__sidelist {
    margin: 10px 0 12px;
    opacity: 1;
    visibility: visible;
    transition: max-height .4s cubic-bezier(.22, .61, .36, 1), margin .3s ease,
        opacity .24s ease;
}

#hv3-danhmuc .hv3-dm__sidelist li {
    margin: 0;
}

#hv3-danhmuc .hv3-dm__sidelist a {
    position: relative;
    display: block;

    padding: 8px 0 8px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    text-decoration: none;
}

#hv3-danhmuc .hv3-dm__sidelist a::before {
    content: "";
    position: absolute;
    left: 2px;

    top: calc(8px + 0.7em);
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;

    background: #CFCFCF;
}

#hv3-danhmuc .hv3-dm__sidelist a:hover {
    color: var(--hv3-green-500, #1D8057);
}

#hv3-danhmuc .hv3-dm__sidelist a:hover::before {
    background: currentColor;
}

#hv3-danhmuc .hv3-dm__main {
    flex: 1 1 0;
    min-width: 0;
}

#hv3-danhmuc .hv3-dm__empty {
    text-align: center;
    color: #888;
}

#hv3-danhmuc .hv3-dm__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--hv3-dm-grid-gap);
}

#hv3-danhmuc .hv3-dm__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;

    min-width: 0;
}

#hv3-danhmuc .hv3-dm__card-img {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #F1F1F1;
    margin-bottom: 12px;
}

#hv3-danhmuc .hv3-dm__card-img.is-error {
    aspect-ratio: 1 / 1;
}

#hv3-danhmuc .hv3-dm__card-img.is-error img {
    display: none !important;
}

#hv3-danhmuc .hv3-dm__card-img img {
    display: block;
    width: 100%;

    height: auto;
    transition: transform .35s ease;
}

#hv3-danhmuc .hv3-dm__card:hover .hv3-dm__card-img img {
    transform: scale(1.04);
}

#hv3-danhmuc .hv3-dm__card-tag {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    color: #A4A4A5;
    margin-bottom: 3px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#hv3-danhmuc .hv3-dm__card-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    line-height: 1.35;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#hv3-danhmuc .hv3-dm__card-price {
    margin-top: 4px;
    font-family: 'Arial Web Head', var(--hv3-font);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hv3-green-500, #1D8057);
}

@media (max-width: 900px) {
    #hv3-danhmuc .hv3-dm__skel-intro {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }
    #hv3-danhmuc .hv3-dm__skel-intro-copy { grid-column: 1; }
    #hv3-danhmuc .hv3-dm__skel-hero {
        grid-column: 1;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    #hv3-danhmuc .hv3-dm__skel-body { flex-direction: column; }
    #hv3-danhmuc .hv3-dm__skel-sidebar { flex: none; width: 100%; }
    #hv3-danhmuc .hv3-dm__skel-grid { width: 100%; grid-template-columns: repeat(2, 1fr); }

    #hv3-danhmuc .hv3-dm__intro {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    #hv3-danhmuc .hv3-dm__body {
        flex-direction: column;
    }

    #hv3-danhmuc .hv3-dm__intro-text {
        grid-column: 1;
    }

    #hv3-danhmuc .hv3-dm__hero {
        grid-column: 1;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    #hv3-danhmuc .hv3-dm__sidebar {
        flex: none;
        width: 100%;
    }

    #hv3-danhmuc .hv3-dm__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    #hv3-danhmuc .hv3-dm__skel-block::after,
    #hv3-danhmuc .hv3-dm__hero.is-loading::after,
    #hv3-danhmuc:not(.is-loading) .hv3-dm__content {
        animation: none;
    }
}

@media (max-width: 520px) {
    #hv3-danhmuc .hv3-dm__grid {
        grid-template-columns: 1fr 1fr;
    }
}

#hv3-danhmuc .hv3-dm__card-img img.hv3-swap__alt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;

    transition: opacity .35s ease, transform .5s ease;
}

#hv3-danhmuc .hv3-dm__card-img.is-ready:hover img.hv3-swap__alt,
#hv3-danhmuc .hv3-dm__card-img.is-ready.is-on img.hv3-swap__alt {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    #hv3-danhmuc .hv3-dm__card-img img.hv3-swap__alt {
        transition: none;
    }
}

@media (max-width: 900px) {
    #hv3-danhmuc .hv3-dm__body > .hv3-dm__main,
    #hv3-danhmuc .hv3-dm__skel-body > .hv3-dm__skel-grid {
        order: 1;
        width: 100%;
    }
    #hv3-danhmuc .hv3-dm__body > .hv3-dm__sidebar,
    #hv3-danhmuc .hv3-dm__skel-body > .hv3-dm__skel-sidebar {
        order: 2;
        margin-top: 8px;
        padding-top: 20px;
        border-top: 1px solid #ececec;
    }
}
@media (min-width: 601px) and (max-width: 900px) {
    #hv3-danhmuc .hv3-dm__grid,
    #hv3-danhmuc .hv3-dm__skel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
