.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    height: 150px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-price {
    position: absolute;
    bottom: .3rem;
    right: .3rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.2rem .8rem;
    border-radius: 4px;
}

.sale-price-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.sale-price-amount {
    font-weight: bold;
}

.card-content {
    padding: .5rem;
}

.card-category {
    color: #ff9900;
    font-size: 10px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-weight: 600 ;
    margin-bottom: 0.5rem;
    color: #111827;
    font-size: 14px;
}

.card-location {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 10px;
    margin-bottom: 1rem;
}

.location-icon {
    width: 12px;
    height: 12px;
    margin-right: 0.25rem;
}

.view-details {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    display: none;
}

.view-details:hover {
    color: #fbbf24;
}

.view-details::after {
    content: "→";
    margin-left: 0.25rem;
}
@media (max-width: 640px) {
    .grid {
        grid-template-columns: auto auto;
        gap: 0.1rem; /* Increased gap for better mobile spacing */
    }
    
    /* Optionally adjust card styles for better mobile display */
    .card {
        width: 100%;
    }
    
    .card-image {
        height: 120px; /* Slightly reduced image height for mobile */
    }

    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .container {
        width: 98%;
        margin-left: 1%;
        margin: 0 auto;
        padding: 2rem 1rem;
    }
    /* -------this is the start for the hero section css editing---------- */
    .hero{
        width: 98%;
        height: 51vh;
        margin-left: 1%;
        gap: 10px;
        margin-top: 10px;
        display: flex;
    }
    .sidebar{
        display:none;
    
    }
    /* ------------------------- this is the css for the slider asnf other part -------------------------  */
    .advert_div {
        background-color: #fff;
        height: 100%;
        width: 100%;
    }
    .advert_div .top{
        height: 25vh;
    }
    .slider-container {
        height: 25vh;
    }
    
    .slider {
        width: 100%;
        height: 100%;
        position: relative;
    }
    
    .advert_div .bottom{
        width: 100%;
        padding: 10px;
        height: 25vh;
        display: flex;
        flex-direction:column;
        gap: 10px;
    }
    
    
    .gifs_all{
        width: 100%;
        height:50%;
        display: flex;gap: 10px;
    }
    .sell_on_sokoni {
        width: 100%;
        /* padding: 5px; */
        height: 50%;
    }


}