/* Danh Muc Popup Modal */
.dm-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dm-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dm-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.dm-popup-overlay.active .dm-popup {
    transform: translateY(0);
}

.dm-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.dm-popup-close:hover {
    background: #fff;
}

.dm-popup-close svg {
    width: 20px;
    height: 20px;
    color: #3a2916;
}

.dm-popup-images {
    position: relative;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dm-popup-images::-webkit-scrollbar {
    display: none;
}

.dm-popup-images img {
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
    object-fit: cover;
    max-height: 360px;
}

.dm-popup-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 4px;
}

.dm-popup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4b896;
    transition: background 0.3s, transform 0.3s;
}

.dm-popup-dots span.active {
    background: #3a2916;
    transform: scale(1.2);
}

.dm-popup-body {
    padding: 16px 24px 24px;
}

.dm-popup-body h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #3a2916;
    margin-bottom: 8px;
}

.dm-popup-body p {
    color: #6b5f4f;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.dm-popup-body .dm-xem-them {
    display: inline-flex;
    align-items: center;
    color: #b86b3e;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.dm-popup-body .dm-xem-them:hover {
    color: #9a5a33;
}

.dm-popup-body .dm-xem-them svg {
    width: 18px;
    height: 18px;
    margin-left: 6px;
    transition: transform 0.2s;
}

.dm-popup-body .dm-xem-them:hover svg {
    transform: translateX(4px);
}

/* Carousel item image */
.carousel-item .cat-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-item:hover .cat-img {
    transform: scale(1.08);
}
