﻿
.ellipsis_block {
    max-height: none !important;
    overflow: visible !important;
}

.pd_summerys {
    overflow: hidden;
    position: relative;
}

.description_text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    position: relative;
}

    .description_text.expanded {
        -webkit-line-clamp: unset;
        max-height: none;
        overflow: visible;
    }

.group-border {
    padding-left: 10px;
}

    .group-border svg:not(:host).svg-inline--fa,
    .group-border svg:not(:root).svg-inline--fa {
        color: #ffc107;
    }

.box {
    max-width: 460px;
    width: 100%;
    text-align: left;
    background: #f2f2f2;
    padding: 50px;
    border-radius: 10px;
}

h1 {
    margin: 0 0 6px;
    font-size: 32px;
    font-weight: 700;
}

.sub {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 16px;
}

h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

ul {
    margin: 0 0 28px;
    padding-left: 20px;
}

.btn-404 {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    background: #2f7af8;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(47,122,248,0.25);
    transition: 0.2s ease;
}

    .btn-404:hover {
        background: #1f5edb;
    }

    .btn-404:focus-visible {
        outline: 3px solid rgba(47,122,248,0.35);
        outline-offset: 2px;
    }

.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* ================================🔹 Mobile Responsive Section================================= */
@media (max-width: 768px) {

    .box {
        padding: 25px 15px;
        max-width: 100%;
        border-radius: 8px;
    }

    h1 {
        font-size: 22px;
    }

    .sub {
        font-size: 14px;
        margin-bottom: 16px;
    }

    h3 {
        font-size: 16px;
    }

    ul {
        padding-left: 16px;
        margin-bottom: 18px;
    }

    .btn-404 {
        display: block;
        text-align: center;
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 8px;
    }

    .description_text {
        -webkit-line-clamp: 4;
        max-height: 6em;
        font-size: 14px;
        line-height: 1.5em;
    }

    .group-border {
        padding-left: 6px;
    }

    /* ================================ 📱 Mobile Filter / Apply-Reset Button Fix ================================= */
    .mobile-filter-buttons,
    .filter-action-buttons,
    .apply-reset-container {
        position: fixed !important; /* always visible */
        bottom: 70px; /* mobile action bar এর ওপরে */
        left: 0;
        width: 100%;
        padding: 10px 12px;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
        z-index: 9999 !important;
        display: flex;
        justify-content: space-around;
        gap: 10px;
    }

        .mobile-filter-buttons button,
        .filter-action-buttons button,
        .apply-reset-container button {
            flex: 1;
            padding: 10px 16px;
            font-size: 15px;
            border-radius: 6px;
            z-index: 10000 !important;
        }

    /* Apply button color */
    #mApplyFiltersBtn {
        background: #2f7af8;
        color: #fff;
    }

    /* Reset / Sort button color */
    #mApplySortBtn {
        background: #2f7af8;
        color: #fff;
    }

    /* Ensure mobile action bar stays under buttons */
    .mobile-action-bar {
        z-index: 1000 !important;
    }
}

/* Extra Small (below 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }

    .description_text {
        -webkit-line-clamp: 3;
        font-size: 13px;
    }

    .btn-404 {
        font-size: 14px;
        padding: 10px 15px;
    }

    /* Make Apply / Reset buttons smaller on very small screens */
    .mobile-filter-buttons,
    .filter-action-buttons,
    .apply-reset-container {
        bottom: 65px;
        padding: 8px 10px;
    }

        .mobile-filter-buttons button,
        .filter-action-buttons button,
        .apply-reset-container button {
            font-size: 14px;
            padding: 8px 12px;
        }
}
