
.categories-bottom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: none;
    pointer-events: none;
}

.categories-bottom-modal.show {
    pointer-events: auto;
}

.categories-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categories-bottom-modal.show .categories-modal-overlay {
    opacity: 1;
}

.categories-modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
    max-height: 85vh;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    box-sizing: border-box;
}

.categories-modal-body {
    max-height: calc(70vh - 80px);
    overflow-y: auto;
    padding: 0 1rem 1rem;
}

.categories-bottom-modal.show .categories-modal-content {
    transform: translateY(0);
}

.categories-modal-header {
    color: rgb(43, 42, 42);
    border-radius: 20px 20px 0 0;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: between;
    align-items: center;
    border-bottom: none;
}

.categories-modal-header .modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.categories-modal-header .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.categories-modal-header .btn-close:hover {
    opacity: 1;
}

.categories-modal-body {
    padding: 0;
    max-height: calc(85vh - 50px);
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.categories-bottom-modal .list-group-item {
    border: none;
    padding: 0.65rem 1.25rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.categories-bottom-modal .list-group-item:last-child {
    border-bottom: none;
}

.categories-bottom-modal .list-group-item:hover {
    background: #f8f9fa;
    transform: translateX(8px);
}

.categories-bottom-modal .list-group-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.categories-bottom-modal .list-group-item a:hover {
    color: #10afdf;
}

.categories-bottom-modal .badge {
    background: #10afdf;
    color: white;
}

/* Mobile filter action buttons at bottom */
.categories-bottom-modal #mobile-clear-filters,
.categories-bottom-modal #mobile-apply-filters {
    margin-bottom: 1.5rem;
}

.categories-bottom-modal .mobile-attributes-filters .mt-4 {
    margin-bottom: 1.5rem;
}
