    /* FIX: Product pages must not use centered flex layout */
    .products-body {
        display: block;
        height: auto;
        align-items: unset;
        justify-content: unset;
        background-color: #d1cdd1;
    }

    /* Main layout */
    .listing-layout {
        display: flex;
        gap: 30px;
        padding: 40px 60px;
        align-items: flex-start;
    }

    /* Filter sidebar */
    .filter-sidebar {
        display: hidden;
        width: 260px;
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
        font-family: "Roboto", sans-serif;
    }

    .filter-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .filter-header h3 {
        font-size: 18px;
    }

    .clear-all {
        font-size: 13px;
        color: #ad1457;
        text-decoration: none;
    }

    .filter-section {
        margin-bottom: 20px;
    }

    .filter-section h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .filter-section label {
        display: block;
        font-size: 13px;
        margin-bottom: 6px;
        cursor: pointer;
    }

    .filter-section input {
        margin-right: 8px;
        accent-color: #ad1457;
    }

    .more {
        font-size: 12px;
        color: #ad1457;
        text-decoration: none;
    }

    /* Product section should take remaining space */
    .product-listing-section {
        flex: 1;
    }

    /* Filter hidden initially */
    .filter-sidebar {
        display: none;
    }

    /* When active */
    .filter-sidebar.active {
        display: block;
    }

    /* Smooth animation (optional but nice) */
    .filter-sidebar {
        animation: slideIn 0.3s ease;
    }

    /* Sort Box */
    .sort-box {
        display: none;
        position: absolute;
        top: 150px;
        right: 20px;
        width: 220px;
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .sort-box.active {
        display: block;
    }

    .sort-box h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .sort-box ul {
        list-style: none;
        padding: 0;
    }

    .sort-box li button {
        width: 100%;
        padding: 8px 10px;
        border: none;
        background: none;
        text-align: left;
        cursor: pointer;
        border-radius: 6px;
    }

    .sort-box li button:hover {
        background: #f3d0d8;
    }
    .listing-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.listing-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Discount */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* Wishlist */
.wishlist-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wishlist-heart i {
    color: #333;
}

.listing-info {
    padding: 15px;
}

.rating {
    font-size: 14px;
    color: #f5a623;
    margin: 6px 0;
}

.rating span {
    color: #777;
    font-size: 13px;
    margin-left: 5px;
}

.price {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.add-cart-btn {
  background: #e91e63;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  margin: 15px auto 20px auto;
  display: inline-block;   /* IMPORTANT for center */
  width: 80%;
  font-weight: 600;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 40px;
}

.product-card {
  background: #f3f3f3;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
}

.product-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-price {
  color: #d81b60;
  font-weight: bold;
  font-size: 18px;
}

.add-cart-btn {
  background: #d81b60;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  margin: 15px;
  cursor: pointer;
}
.image-wrapper {
  position: relative;
}


.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #999; /* default grey */
    transition: 0.3s ease;
}

.wishlist-icon.active {
    color: red; /* when added */
    transform: scale(1.2);

}

.wishlist-icon:hover {
  color: #e91e63;
}


    @keyframes slideIn {
        from {
            transform: translateX(-20px);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }