/* --- Carousel Styling --- */
.myfc-container {
    padding: 15px 15px;
}

.myfc-carousel.swiper {
    padding: 5px;
    margin-left: -5px;
    margin-right: -5px;
}

.myfc-carousel .swiper-slide {
    width: auto;
}

.myfc-slide-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    /* --- THAY ĐỔI TẠI ĐÂY --- */
    border-radius: 8px; /* Đổi từ 20px thành 8px để bo tròn 4 góc */
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
    white-space: nowrap;
}

.myfc-slide-trigger:hover {
    background-color: #333;
    color: #fff !important;
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.myfc-slide-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* --- Popup Styling --- */
.myfc-popup-open {
    overflow: hidden;
}

.myfc-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.myfc-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.myfc-popup-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 380px;
    max-height: 90vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.myfc-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.myfc-popup-title {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.myfc-popup-close {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    color: #888;
    transition: color 0.2s;
}

.myfc-popup-close:hover {
    color: #333;
}

.myfc-popup-body {
    padding: 20px;
    overflow-y: auto;
}

.myfc-filter-block {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.myfc-filter-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.myfc-filter-block-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #333;
}

.myfc-filter-block-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.myfc-filter-block-title a:hover {
    color: #000;
}

.myfc-toggle-icon {
    position: relative;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.myfc-toggle-icon::before,
.myfc-toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #888;
    transition: transform 0.3s ease;
}
.myfc-toggle-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}
.myfc-toggle-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}
.myfc-filter-block.is-open .myfc-toggle-icon::after {
    transform: rotate(90deg);
}

.myfc-filter-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}
.myfc-filter-block.is-open .myfc-filter-items {
    display: block;
}

.myfc-filter-items li a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 13px;
    transition: color 0.2s, font-weight 0.2s;
    cursor: pointer;
}

.myfc-filter-items li a:hover {
    color: #000;
    font-weight: 600;
}

.myfc-popup-footer {
    display: none;
}

/* --- BẮT ĐẦU PHẦN RESPONSIVE CHO MOBILE --- */
@keyframes myfc-slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .myfc-popup-wrapper {
        align-items: flex-end;
    }

    .myfc-popup-content {
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
        animation: myfc-slide-up 0.35s ease-out forwards;
    }

    /* Các CSS cho footer và button đã được xóa khỏi đây */
}