section.all-products-page {
    padding: 4vw 2vw;
    min-height: 100vh;
    align-items: start !important;
    position: relative;
}

.all-products-container {
    width: 100%;
    padding: 1vw;
    min-height: 60vw;
    position: relative;
    gap: 2vw;
    justify-content: start !important;
    /*border: 2px solid red;*/
}

.sorters {
    padding: 3vw 1vw 1vw 1vw;
    width: 95%;
    gap: 1vw;
    border-bottom: 2px solid silver;
    justify-content: start !important;
}

button.filter {
    margin: 0 2vw;
    min-width: 10vw;
    background-color: var(--dark-gold);
    color: var(--dark-blue);
    font-size: 0.9vw;
    font-weight: bolder;
    border-radius: 0.5vw;
    box-shadow: 0 0.1vw 0.4vw rgba(0, 0, 0, 0.5);
    transition: all 0.25s;
}

button.filter:hover {
    background-color: var(--light-gold);
}

.sorter-dropdown-group {
    width: 10vw;
    position: relative;
}

.sorter-dropdown {
    width: 100%;
    padding: 0.5vw 1vw;
    box-shadow: 0 0.1vw 0.4vw rgba(0, 0, 0, 0.5);
    border-radius: 0.5vw;
    background-color: #2b3341;
    color: var(--light-gold);
    gap: 0.4vw;
    cursor: pointer;
    justify-content: start !important;
    position: relative;
    z-index: 12;
    transition: all 0.3s;
}

.sorter-dropdown:hover {
    color: #97e7ff;
}

.sorter-dropdown-group .sorter-dropdown i {
    transition: all 0.3s;
    font-size: 1vw;
}

.sorter-dropdown-group.open .sorter-dropdown i {
    transform: rotate(-180deg);
}

.sorter-dropdown-group-options {
    width: 100%;
    height: 0;
    transition: all 0.3s;
    position: absolute;
    top: 88%;
    z-index: 11;
    background-color: #666b73;
    box-shadow: 0 0.2vw 0.6vw rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border-bottom-left-radius: 0.5vw;
    border-bottom-right-radius: 0.5vw;
}

.sorter-dropdown-group.open .sorter-dropdown-group-options {
    height: 11vw;
}

.sorter-dropdown-group.open:nth-child(3) .sorter-dropdown-group-options {
    height: 7vw;
}

.sorter-dropdown-group ul {
    padding-top: 1vw;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.sorter-dropdown-group ul li {
    padding: 0.5vw;
    font-size: 0.9vw;
    cursor: pointer;
    transition: all 0.1s;
}

.sorter-dropdown-group ul li:hover {
    background-color: #1D2C42;
    color: var(--light-gold);
    overflow: hidden;
}


.all-products-cards-container {
    padding: 1vw 3vw;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1vw;
}

.all-products-cards-container > div.product-card {
    padding: 1vw;
    height: 32vw;
    border-radius: 0.65vw;
    box-shadow: 0 0 0.7vw rgba(0, 0, 0, 0.35);
    background: #e8e8e8;
    justify-content: start !important;
    position: relative;
    transition: all 0.25s;
}

.all-products-cards-container > div.product-card:hover {
    transform: scale(1.03);
}

.product-card a.car-photo-frame {
    width: 100%;
    height: 65%;
    background-image: url("../images/vector-card.webp");
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.product-card a.car-photo-frame img {
    margin-top: 4vw;
    width: 100%;
}

.product-card .details-card {
    width: 100%;
    height: 30%;
    border-bottom: 0.1vw solid silver;
    position: relative;
    gap: 1vw;
    justify-content: start;
    overflow: hidden;
}

.product-card .details-card .division1-card {
    width: 100%;
    height: 50%;
    justify-content: space-between;
    position: relative;
}

.product-card .details-card .division1-card img {
    height: 100%;
    position: absolute;
    right: -5vw;
    z-index: 1;
}

.product-card .details-card .division1-card h3 {
    width: 36%;
    height: 75%;
    color: #e3e3e3;
    position: relative;
    z-index: 2;
    font-size: 0.9vw;
    text-align: center;
    font-weight: 500;
    font-family: "Vazir Medium FD", sans-serif;
}

.product-card .details-card .division1-card h4 {
    min-width: 60%;
    height: 75%;
    color: var(--dark-gold);
    position: relative;
    z-index: 2;
    font-size: 1.2vw;
    text-align: center;
    font-weight: bold;
    align-items: end;
}

.product-card .details-card .division1-card h4 span {
    font-size: 0.95vw;
    color: var(--dark-blue);
}

.product-card .details-card ul {
    width: 100%;
    font-family: "Vazir Medium FD", sans-serif;
    font-weight: 500;
    font-size: 0.85vw;
}

.product-card .details-card ul li {
    width: 100%;
    color: #545454;
    justify-content: start;
    gap: 0.35vw;
}

.product-card .details-card ul li:nth-child(1) i {
    color: #e00b0b;
    font-size: 1vw;
}

.product-card .details-card ul li:nth-child(2) i {
    color: #118080;
    font-size: 1vw;
}

.pop-products-card-icons {
    width: 100%;
    height: 6%;
    position: relative;
    gap: 1vw;
    font-weight: normal;
    font-size: 0.9vw;
    align-items: end !important;
}

.pop-products-card-icons figure {
    width: 3vw;
    overflow: hidden;
    position: relative;
    gap: 0.2vw;
}

.pop-products-card-icons figure img {
    width: 1vw;
}

.discount-label {
    width: 3.4vw;
    height: 8vw;
    position: absolute;
    top: -0.25vw;
    right: 0.6vw;
    z-index: 5;
}

.discount-label img {
    width: 100%;
    height: 100%;
}

.discount-label span {
    width: 5vw;
    height: 3.5vw;
    position: absolute;
    transform: rotate(-90deg) translateX(-1.4vw);
    font-family: "Vazir Bold FD", sans-serif;
    font-size: 0.9vw;
    color: goldenrod;
}

.reserved-stamp {
    width: 36%;
    position: absolute;
    left: 1.8vw;
    top: 3.2vw;
    transform: rotate(-20deg);
}

.reserved-stamp img {
    width: 100%;
}

.not-found {
    padding: 2vw;
    width: 30%;
    position: relative;
    gap: 1.5vw;
}

.not-found img {
    width: 100%;
}

.not-found a.btn {
    min-width: 18vw;
    font-size: 1.2vw;
    background-color: var(--dark-blue);
    color: var(--light-gold);
    text-align: center;
}

nav.pagination {
    margin: 4vw;
    gap: 0.6vw;
}

nav.pagination button {
    padding: 0.2vw;
    width: 2.5vw;
    height: 2.5vw;
    background: #bcc6d9;
    border-radius: 0.5vw;
    cursor: pointer;
    transition: all 0.25s;
}

nav.pagination button i {
    font-size: 1.35vw;
    transform: translateY(0.1vw);
}

nav.pagination button:hover {
    background: #7688a8;
}

nav.pagination button:disabled {
    opacity: 0.8;
}

nav.pagination button:disabled:hover {
    background: #bcc6d9;
}

nav.pagination ul {
    gap: 0.6vw;
}

nav.pagination ul li {
    width: 2.5vw;
    height: 2.5vw;
    background: #bcc6d9;
    border-radius: 0.5vw;
    cursor: pointer;
    font-weight: bolder;
    transition: all 0.25s;
    font-family: "Vazir Black FD", sans-serif;
}

nav.pagination ul li:hover {
    background: #7688a8;
}

nav.pagination ul li.active {
    background-color: var(--dark-blue);
    color: var(--light-gold);
}

@media screen and (max-width: 992px) {
    .all-products-container {
        padding: 12px;
        min-height: 60vw;
        gap: 30px;
    }

    .sorters {
        padding: 30px 14px 14px 14px;
        gap: 12px;
    }

    .sorter-dropdown-group {
        width: 19vw;
        font-size: 1.8vw;
        position: relative;
    }

    .sorter-dropdown {
        width: 100%;
        padding: 1vw 2vw;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
        border-radius: 0.9vw;
        gap: 1vw;
        cursor: pointer;
        justify-content: start !important;
        position: relative;
        z-index: 12;
        transition: all 0.3s;
    }

    .sorter-dropdown-group .sorter-dropdown i {
        font-size: 1.8vw;
    }

    .sorter-dropdown-group-options {
        box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, 0.5);
        border-bottom-left-radius: 1vw;
        border-bottom-right-radius: 1vw;
    }

    .sorter-dropdown-group.open .sorter-dropdown-group-options {
        height: 22vw;
    }

    .sorter-dropdown-group.open:nth-child(3) .sorter-dropdown-group-options {
        height: 12vw;
    }

    .sorter-dropdown-group ul {
        padding-top: 2vw;
    }

    .sorter-dropdown-group ul li {
        padding: 1vw;
        font-size: 1.7vw;
    }

    .all-products-cards-container {
        padding: 1.5vw;
        min-height: 80vh;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5vw;
    }

    .all-products-cards-container > div.product-card {
        padding: 1.5vw;
        height: 43vw;
        border-radius: 0.9vw;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    }

    .product-card a.car-photo-frame {
        height: 65%;
    }

    .product-card a.car-photo-frame img {
        margin-top: 6vw;
    }

    .product-card .details-card {
        height: 30%;
        border-bottom: 0.2vw solid silver;
        gap: 1vw;
    }

    .product-card .details-card .division1-card img {
        right: -6vw;
    }

    .product-card .details-card .division1-card h3 {
        font-size: 1.2vw;
    }

    .product-card .details-card .division1-card h4 {
        min-width: 60%;
        height: 75%;
        font-size: 1.5vw;
    }

    .product-card .details-card .division1-card h4 span {
        font-size: 1.3vw;
    }

    .product-card .details-card ul {
        font-size: 1.2vw;
    }

    .product-card .details-card ul li {
        gap: 0.55vw;
    }

    .product-card .details-card ul li:nth-child(1) i {
        font-size: 1.4vw;
    }

    .product-card .details-card ul li:nth-child(2) i {
        font-size: 1.4vw;
    }

    .pop-products-card-icons {
        gap: 1.5vw;
        font-size: 1.3vw;
    }

    .pop-products-card-icons figure {
        width: 4.5vw;
        gap: 0.5vw;
    }

    .pop-products-card-icons figure img {
        width: 1.5vw;
    }

    .discount-label {
        width: 5vw;
        height: 12vw;
        top: -0.5vw;
        right: 1vw;
    }

    .discount-label span {
        width: 9vw;
        height: 5vw;
        transform: rotate(-90deg) translateX(-2vw);
        font-size: 1.3vw;
    }

    .reserved-stamp {
        width: 36%;
        position: absolute;
        left: 2.5vw;
        top: 4.2vw;
    }

    .reserved-stamp img {
        width: 100%;
    }

}

@media screen and (max-width: 450px) {
    .all-products-container {
        gap: 6vw;
    }

    .sorters {
        flex-direction: column;
        padding: 6vw 2vw 6vw 2vw;
        gap: 2.5vw;
    }

    button.filter {
        padding: 3vw;
        margin: 3vw;
        min-width: 80vw;
        font-size: 4vw;
        border-radius: 10px;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
    }

    button.filter:hover {
        background-color: var(--light-gold);
    }

    .sorter-dropdown-group {
        width: 80vw;
        position: relative;
    }

    .sorter-dropdown {
        padding: 2.5vw 4vw;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        gap: 2vw;
        z-index: 12;
        font-size: 4vw;
        justify-content: center !important;
    }

    .sorter-dropdown-group:nth-child(1) .sorter-dropdown {
        z-index: 16;
    }

    .sorter-dropdown-group:nth-child(2) .sorter-dropdown {
        z-index: 14;
    }

    .sorter-dropdown-group:nth-child(3) .sorter-dropdown {
        z-index: 12;
    }

    .sorter-dropdown-group .sorter-dropdown i {
        transition: all 0.3s;
        font-size: 3.5vw;
    }

    .sorter-dropdown-group.open .sorter-dropdown i {
        transform: rotate(-180deg);
    }

    .sorter-dropdown-group-options {
        top: 86%;
        z-index: 11;
        background-color: #666b73;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .sorter-dropdown-group:nth-child(1) .sorter-dropdown-group-options {
        z-index: 15;
    }

    .sorter-dropdown-group:nth-child(2) .sorter-dropdown-group-options {
        z-index: 13;
    }

    .sorter-dropdown-group:nth-child(3) .sorter-dropdown-group-options {
        z-index: 11;
    }

    .sorter-dropdown-group.open .sorter-dropdown-group-options {
        height: 42vw;
    }

    .sorter-dropdown-group.open:nth-child(3) .sorter-dropdown-group-options {
        height: 23vw;
    }


    .sorter-dropdown-group ul {
        padding-top: 3vw;
        overflow: auto;
    }

    .sorter-dropdown-group ul::-webkit-scrollbar {
        width: 7px;
        border-radius: 7px;
    }

    .sorter-dropdown-group ul li {
        padding: 1.5vw;
        font-size: 3.9vw;
    }

    .all-products-cards-container {
        padding: 3vw;
        min-height: 80vh;
        grid-template-columns: repeat(1, 1fr);
        gap: 4vw;
    }

    .all-products-cards-container > div.product-card {
        padding: 15px;
        height: 126vw;
        border-radius: 10px;
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
    }

    .product-card a.car-photo-frame {
        height: 65%;
    }

    .product-card a.car-photo-frame img {
        margin-top: 15vw;
    }

    .product-card .details-card {
        height: 30%;
        border-bottom: 0.5vw solid silver;
        gap: 1vw;
    }

    .product-card .details-card .division1-card img {
        right: -16vw;
    }

    .product-card .details-card .division1-card h3 {
        font-size: 3.5vw;
    }

    .product-card .details-card .division1-card h4 {
        min-width: 60%;
        height: 75%;
        font-size: 4.5vw;
    }

    .product-card .details-card .division1-card h4 span {
        font-size: 4.3vw;
    }

    .product-card .details-card ul {
        margin-top: 1.5vw;
        font-size: 3.4vw;
    }

    .product-card .details-card ul li {
        gap: 2.55vw;
    }

    .product-card .details-card ul li:nth-child(1) i {
        font-size: 3.6vw;
    }

    .product-card .details-card ul li:nth-child(2) i {
        font-size: 3.6vw;
    }

    .pop-products-card-icons {
        gap: 2vw;
        font-size: 4vw;
    }

    .pop-products-card-icons figure {
        width: 15.5vw;
        gap: 1.5vw;
    }

    .pop-products-card-icons figure img {
        width: 3.5vw;
    }

    .discount-label {
        width: 14vw;
        height: 32vw;
        top: -1.2vw;
        right: 3vw;
    }

    .discount-label span {
        width: 22vw;
        height: 14vw;
        transform: rotate(-90deg) translateX(-5vw);
        font-size: 3.3vw;
    }

    .reserved-stamp {
        width: 36%;
        left: 5vw;
        top: 11vw;
        transform: rotate(-20deg);
    }

    .not-found {
        padding: 8vw;
        width: 90%;
        gap: 8.5vw;
    }

    .not-found h1 {
        font-size: 6vw;
    }

    .not-found a.btn {
        padding: 2vw;
        min-width: 50vw;
        font-size: 4.2vw;
        border-radius: 9px;
    }

    nav.pagination {
        margin: 8vw;
        gap: 1.2vw;
    }

    nav.pagination button {
        padding: 0.2vw;
        width: 9vw;
        height: 9vw;
        border-radius: 5px;
        font-size: 3.5vw;
    }

    nav.pagination button i {
        font-size: 4.5vw;
    }

    nav.pagination button:hover {
        background: #7688a8;
    }

    nav.pagination button:disabled {
        opacity: 0.8;
    }

    nav.pagination button:disabled:hover {
        background: #bcc6d9;
    }

    nav.pagination ul {
        gap: 1vw;
    }

    nav.pagination ul li {
        width: 9vw;
        height: 9vw;
        border-radius: 5px;
        font-size: 4vw;
    }
}


/*pagination*/
