.custom-brands-main-content {
    width: 100%;
}

/* .custom-brands-main-content .brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}


@media (max-width: 768px) {
    .custom-brands-main-content .brands-grid {
        grid-template-columns: 1fr;
    }
}


.custom-brands-main-content .brand-card {
    background-color: transparent;
    border-radius: 2px;

    text-align: center;
   
    border: 1px solid #e2e2e2;
    cursor: pointer;
    
}

.custom-brands-main-content .brand-card .brand-content {
    padding: 15px;
    text-align: left;
}

.custom-brands-main-content .brand-card .brand-img {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
   
} */

.custom-brands-main-content .brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

@media (max-width: 768px) {
    .custom-brands-main-content .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.custom-brands-main-content .brand-card {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border-radius: 2px;
    /* border: 1px solid #e2e2e2; */
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
	justify-content: center

}

.custom-brands-main-content .brand-card a {
    position: relative;
    z-index: 1;
    display: block;
    text-decoration: none;
}

.custom-brands-main-content .brand-card .brand-img {
    width: 100%;
    height: 200px; /* Keep this as is or adjust according to your design */
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; */
   
}

.custom-brands-main-content .brand-card .brand-img img {
    max-width: 100%;
    max-height: 100%;
    /* object-fit: contain; */
	 pointer-events: none;
}

.custom-brands-main-content .brand-card .brand-content {
    /* flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; */
    padding: 15px;
    text-align: left;
}

.custom-brands-main-content .brand-card:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
    .custom-brands-main-content .brand-card .brand-img {
        height: auto;
    }
}

.custom-brands-main-content .brand-card img {
    width: 100%;
    height: auto;
}

.custom-brands-main-content .brand-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-style: italic;
    font-weight: bold;
}



.custom-brands-main-content .brand-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
    padding: 0;
    
    line-height: 20px;
}

.custom-brands-main-content .sale-label {
    display: inline-block;
    padding: 4px 10px;
    line-height: normal;
    background-color: #ce171e;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}



/* Filter Button Styles */
.custom-brands-main-content .brand-filter {
    display: flex;
    /* gap: 10px; */
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: start;
    width: 100%;
}

.custom-brands-main-content .category-filter-button {
    padding: 10px 20px;
    border: 0.5px solid #e9e9e9;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-brands-main-content .category-filter-button.active {
    background-color: #dbdbdb;
    color: black;
    border: 0.5px solid #d2cdcd;
}


.custom-brands-loader {
    display: none;
    /* position: fixed; */
    /* left: 50%; */
    /* top: 50%; */
    /* transform: translate(-50%, -50%); */
    z-index: 9999;
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #363636;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-top: 4px;
    margin-left: 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.custom-brands-overlay {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(236, 236, 236, 0.7);
    /* Semi-transparent black background */
    z-index: 9998;
    /* Ensure the overlay is behind the loader */
}



/* Pagination CSS */
.custom-brands-main-content .pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.custom-brands-main-content .brand-page-number {
    margin: 0 3px;
    padding: 5px 12px;
    background-color: #f1f1f1;
    text-decoration: none;
    color: #333;
}

.custom-brands-main-content .brand-page-number.active {
    background-color: #0073aa;
    color: #fff;
}

