.view-toggle .grid-list-btn:hover,
.view-toggle .grid-list-btn:focus {
    border-color: var( --primary-color);
    color: var( --primary-color);
    box-shadow: none;
}

.view-toggle .grid-list-btn.active {
    background-color: var( --primary-color);
    color: white;
    border-color: var( --primary-color);
     box-shadow: none;
}

.total-count {
    margin-bottom: 10px;
    font-weight: 500;
}

.product-grid,
.product-list-view {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-img-wrapper {
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.badges {
    position: absolute;
    bottom: 5px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    background: var(--neutral-light);
    color: var(--primary-color);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    box-shadow: 5px 2px 18px #737373;
}

/* product below data start */
.product-info {
    padding: 12px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.product-uses {
    display: flex;
    flex-wrap: wrap;    
}

.product-uses span {
    background-color: var( --primary-color);
    /* Adjust to match your brand theme if needed */
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
}

.price {
    font-size: 16px;
    font-weight: bold;
    color: #1f3c78;
    margin-bottom: 12px;
}

.price del {
    color: #999;
    font-size: 14px;
    margin-left: 8px;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.btn {
  text-decoration: none !important;
  border-radius: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 25px;
  padding-right: 25px;
  border-width: 2px;
  border-color: transparent;
  border: none !important;
  top: 0;
  position: relative;
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease;
}


.btn-cart {
    background: #1f3c78;
    color: white;
}

.btn-cart:hover {
    background: #163060;
}

.btn-wishlist {
    background: #f0f0f0;
}

.btn-wishlist:hover {
    background: #ddd;
}

/* product below data end */

.pagination {
    display: flex;
    margin-top: 2rem;
    justify-content: center;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid #ccc;
    margin: 0 3px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: 0.3s ease;
}

.pagination button:hover {
    background: #f2f2f2;
}

.pagination .active {
    background: var( --primary-color);
    color: white;
    border-color: var( --primary-color);
}

/* List view */
.product-list-view .product-card {
    flex-direction: row;
    height: auto;
    width: 100%;
    max-width: 1300px;
}

.product-list-view .product-card img {
    width: 270px;
    height: 100%;
    max-height:200px;
    margin-right: 20px;
}

@media (min-width: 576px) {
    .product-list-view{
        display: none;
    }
}
@media (max-width: 991px) {
    .product-list-view .product-card {
        max-width: 100%;
    }

    .product-list-view .product-card img {
        margin-right: 10px;
        object-fit: cover;
    }

}