.listings-section {


    .grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 28px;
        line-height: 1.5;
    }

    /* Product Card Del 3 Style */
    .card {
        cursor: pointer;
        transition: transform 0.2s;
        position: relative;
    }

    .card:hover {
        transform: translateY(-4px);
    }

    .card_img_wrap {
        width: 100%;
        aspect-ratio: 1 / 1;
        background-color: #f0f0f0;
        overflow: hidden;
        position: relative;
        margin-bottom: 12px;
        border-radius: 4px;
    }

    .card_img_wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* 2. Position the heart button correctly */
    .like-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 1;
        
        /* Reset button styles */
        background: white;
        border: none;
        border-radius: 50%;
        width: 31px;
        height: 31px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        transition: transform 0.2s ease;
        padding: 0; /* Important to prevent overflow */
    }

    .like-btn:hover {
        transform: scale(1.1);
    }

    .like-btn svg {
        display: block;
  
        width: 19px;
        height: 19px;
        stroke: #222;
        fill: transparent;
        stroke-width: 1.8;
    }


    /* --- Liked State Styles --- */

    /* 1. Change the colors of the SVG */
    .like-btn.liked svg {
        fill: #ff4b55; /* Modern soft red */
        stroke: #ff4b55;
        /* Add a subtle glow for depth */
        filter: drop-shadow(0 2px 4px rgba(255, 75, 85, 0.3));
    }

    /* 2. Professional "Pop" animation when the class is added */
    .like-btn.liked {
        animation: like-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background: white; /* Keeps the background consistent */
    }




    /* 3. Animation Keyframes */
    @keyframes like-pop {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.3); /* The "bounce" up */
        }
        100% {
            transform: scale(1.1); /* Settles slightly larger than normal or back to 1 */
        }
    }

    /* 4. Optional: Subtle hover effect even when liked */
    .like-btn.liked:hover {
        transform: scale(1.15);
        background: #fffafa; /* Extremely light pink tint */
    }


    .card_price {
        font-weight: 700;
        font-size: 16px;
        margin-bottom: 2px;
        display: block;
    }

    .card_title {
        font-size: 14px;
        color: #0b1220;
        margin-bottom: 4px;
        font-weight: 400;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        a::after {
            content: "";
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }
    }

    .card_meta {
        font-size: 12px;
        color: #6b7280;
        display: flex;
        gap: 8px;

        span {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        address {
            font-style: normal;
        }
        small {
            font-size: inherit;
        }
    }


    @media (max-width: 1100px) {
        .grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
        }
    
    }

    @media (max-width: 850px) {
        .grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    
        .hub-layout {
            gap: 40px;
        }
    }

    @media (max-width: 600px) {


        .grid {

            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            row-gap: 18px;
        }

        .card_title {
            font-size: 14px;
            line-height: 18.5px;
            white-space: normal;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card_price {
            font-size: 16px;
        }

        .card_meta {
            font-size: 13px;
        }
    }

    @media (max-width: 280px) {
        .grid {
            grid-template-columns: repeat(1, minmax(0, 1fr));
        }
    }

}
