@import url("app.css");

.title-container {
    padding: 1.5rem 2rem;
}
.title-container > .breadcrumb {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    font-size: 0.8rem;
}
.title-container > h2 {
    margin-top: 1rem;
    font-size: 30px;
    font-weight: 600;
}
.content-page {
    display: flex;
    align-items: start;
    position: relative;
}
.content-page > .products {
    /* border-left: 1px solid var(--bg-color); */
    padding: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.content-page > .products > .product {
    margin-bottom: 1rem;
}
.product {
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 245px;
}
.content-page > .products > .product > .product-image {
    display: flex;
    height: 160px;
    border: 2px solid #dedede;
    padding: 1px;
}
.content-page > .products > .product > .product-image > img {
    width: 100%;
    object-fit: cover;
}
.content-page > .products > .product > .product-content {
    margin-top: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.content-page > .products > .product > .product-content > div:first-child {
    display: flex;
    align-items: center;
    gap: 2px;
}
.total-rating {
    font-size: 0.8rem;
    margin-left: 0.4rem;
}
.content-page > .products > .product > .product-content > p {
    font-size: 16px;
    font-weight: 400;
}
.content-page > .products > .product > .product-content > .action-button {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 0.5rem;
}
.subtitle {
    height: 3.3rem;
}
.content-page
    > .products
    > .product
    > .product-content
    > .action-button
    button {
    padding: 0.4rem;
    border-radius: 12px;
    border: 1.5px solid var(--primary);
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}
.view-button {
    background: var(--primary);
    color: #fff;
}
.compare-button {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: #fff;
}
.filters > .category-filter,
.compatibility-filter,
.price-filter,
.rating-filter {
    padding: 1rem 2rem;
    transition: all 0.3s ease-in;
    overflow: hidden;
}
.filters h5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.filters ul {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
    margin-top: 1rem;
    max-height: 10rem;
    overflow-y: auto;
    padding-bottom: 1rem;
}
.filters ul > li {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.reset {
    background-color: var(--primary);
    color: #fff;
    padding: 0.7rem;
    border: none;
    margin: 1rem 1.5rem;
    width: calc(100% - 3rem);
    border-radius: 0.8rem;
    cursor: pointer;
}
.nameCards {
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 600;
}
.subtitle::first-letter {
    text-transform: uppercase;
}
.headTitle {
    font-size: 40px;
}
.filters ul li input[type="checkbox"] {
    accent-color: #009adc;
}

.no-data-message {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 20px;
    margin: 50px auto;
    position: absolute;
    left: 44%;
    top: 26%;
}
.transformArrow {
    transform: rotate(90deg);
}

@media screen and (max-width: 768px) {
    .content-page {
        display: block;
    }

    .content-page > .products {
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }
    .product {
        padding: 0rem;
        width: 100%;
    }
    .title-container > h2 {
        font-size: 22px;
    }
    .headTitle {
        font-size: 22px;
    }
    .no-data-message {
        display: block;
        position: relative;
        left: 0;
    }
    .reset {
        width: 91%;
        margin: 1rem;
    }
    .content-page > .products > .product > .product-image {
        height: 220px;
    }
}

@media screen and (min-width: 1400px) {
    .headTitle {
        font-size: 50px;
    }
    .search > button {
        right: 115px;
    }
    .title-container > .breadcrumb {
        font-size: 14px;
    }
    .title-container > h2 {
        font-size: 36px;
    }
    .filters h5 {
        font-size: 14px;
    }
    .filters ul > li {
        gap: 0.5rem;
        font-size: 14px;
        font-weight: 400;
        color: #000;
    }
    .filters ul li input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    .product {
        width: 270px;
    }
}


/* Loader CSS */
#loader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#loader > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#loader > div > div {
    width: 64px;
    height: 64px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}
/* Loader CSS */