/* premium stories */
.shop-grid-desktop{
    margin-top: 20px;
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 10px 60px;
}

.shop-grid-mb{
    padding: 40px 0;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 10px 60px;
}

.shop-grid-desktop .card{
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    flex-direction: column;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-s);
    transition: 0.3s ease;
    line-height: 30px;
}
.shop-grid-desktop .card-image img{
    width: 100%;
    height: 200px;          /* smaller height */
    object-fit: contain;    /* keeps full image without stretching */
    border-radius: var(--border-radius-s);
    display: block;
    background: #111; 
    margin-bottom: 5px;
}




 .shop-grid-desktop .card .title{
    display: flex;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: white;
}

.shop-grid-desktop .card .genre{
    display: flex;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #ff14b8cb;
}

.shop-grid-desktop .card p{
    display: flex;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-grid-mb .card{
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    flex-direction: column;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-s);
    transition: 0.3s ease;
}

 .shop-grid-mb .card .title{
    display: flex;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: white;
}

.shop-grid-mb .card .genre{
    display: flex;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #ff14b8cb;
}

.shop-filters{
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    flex-direction: column;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-s);
    padding: 20px;
    margin: 15px;
}

.shop-search{
    background: var(--white-color);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-s);
    padding: 8px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.shop-search input{
    border: none;
    outline: none;
    box-shadow: none;
    width: 100%;
    padding-left: 10px;
}

.shop-controls{
    display: flex;
    margin-top: 20px;
    gap: 16px;           /* space between sort & price */
    align-items: center;
    justify-content: center;
}

.shop-author,
.shop-genre{
    position: relative;
    width: 150px;
}

/* Select box */

.shop-author select,
.shop-genre select{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;
    padding: 12px 16px 12px 16px;

    border: none;
    outline: none;

    border-radius: 12px;

    background: linear-gradient(180deg,#7a56e5,#6a44d6);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* Dropdown menu (works in some browsers) */

.shop-author select option,
.shop-genre select option{
    background: #1f1f26;
    color: #fff;
}

/* Custom arrow */

.shop-author::after,
.shop-genre::after{
    content: "▼";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
    font-size: 12px;
}

@media screen and (max-width:980px){

    /* premium stories */


    .shop-grid-desktop{
        display: none;
    }

    .shop-grid-mb{
        display: grid;
        grid-template-columns: repeat(2, 1fr);   /* 2 products per row */
        padding: 10px 15px;
    }


    .shop-grid-mb .card{
        padding: 5px;
    }

    .shop-grid-mb .card .card-title{
        font-weight: 500;
    }

    .shop-grid-mb .card .genre{
        margin-bottom: 10px;
    }
    

    .shop-grid-mb .card-image img{
        padding: 5px;
    }

    .shop-grid-mb .card-image img{
        width: 100%;
        height: 200px;          /* smaller height */
        object-fit: contain;    /* keeps full image without stretching */
        border-radius: var(--border-radius-s);
        display: block;
        background: #111; 
        margin-bottom: 5px;
    }

}

@media screen and (max-width:680px) {
    .shop-grid-mb{
        display: grid;
        grid-template-columns: repeat(1, 1fr);   /* 2 products per row */
        padding: 10px 15px;
    }


    .shop-grid-mb .card-image img{
        width: 100%;
        height: 200px;          /* smaller height */
        object-fit: contain;    /* keeps full image without stretching */
        border-radius: var(--border-radius-s);
        display: block;
        background: #111; 
        margin-bottom: 5px;
    }
}