.category-content a.button.white {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 0px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-content a.button.white:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.category-content {
    position: absolute;
    bottom: 10px;
    right: 10px;
    text-align: right;
}

.product-list-popup {
    display: none;
    position: absolute;
    bottom: 50px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-list {
    max-height: 300px;
    overflow-y: auto;
}

.product-list p {
    color: #333 !important;
    font-weight: 400;
}

.product-list .item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}


/* Nút Download Fixed Bottom với nền đen mờ và icon SVG */
/* .fixed-download-button {
    position: fixed;
    bottom: 115px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: background 0.3s;
    backdrop-filter: blur(5px);
}

.fixed-download-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.fixed-download-button .icon-download {
    width: 24px;
    height: 24px;
    color: #ffffff;
    fill: none;
    stroke: #ffffff;
} */

.download-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.4s;
    z-index: 9999;
}

.download-sidebar.open {
    right: 0;
}

.sidebar-content {
    padding: 10px;
    height: 100%;
}

.sidebar-content h2 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.close-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-right: 0;
}

.image-list-wrapper {
    max-height: 100%;
    /* Chiều cao cố định với Scroll */
    overflow-y: auto;
    padding-right: 10px;
}

.image-list,
.pdf-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 0 0;
    border-bottom: 1px solid #333;
}

.header-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.image-item {
    width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image-wrapper img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

.image-wrapper .download-single {
    bottom: 8px;
    color: #333;
    padding: 5px 0px;
    font-size: 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0px;
    text-decoration: none;
    transition: background 0.3s;
}

.image-wrapper .download-single:hover {
    color: #00bcd4;
}

.image-wrapper .download-single:hover svg {
    stroke: #00bcd4;
}

.image-wrapper .download-single svg {
    width: 18px;
    height: 18px;
    stroke: #333;
}

.file-title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #333;
}

/* Nút Download All với SVG Icon */
.download-all {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
    background: none;
    width: 200px;
}

.download-all svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    transition: stroke 0.3s;
}

.download-all:hover {
    color: #00bcd4;
}

.download-all:hover svg {
    stroke: #00bcd4;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .slider-slide {
        width: 90% !important;
        margin: 0 auto !important;
    }

    .category-slide {
        height: 250px !important;
    }

    .product-list-popup {
        max-width: 100% !important;
        left: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    .slider-slide {
        width: 100% !important;
    }

    .category-slide {
        height: 200px !important;
    }

    .product-list-popup {
        width: 95% !important;
        margin: auto;
    }

    .tc_overflow .flickity-viewport {
        overflow: visible;
    }

    .product-list .item {
        padding: 5px 0;
    }

    .product-list p {
        font-size: 12px;
    }
}