/*
Theme Name: Astra Child
Theme URI: https://anucart.com
Description: Custom Astra Child Theme for Anucart
Author: Anucart
Template: astra
Version: 1.0
Text Domain: astra-child
*/

/* ==========================
   SEARCH PAGE
========================== */

.search{
    background:#f4f6f9;
}

.anucart-search-wrapper{
    max-width:1400px;
    margin:30px auto;
    padding:0 20px;
}

/* Search Header */

.anucart-search-top{
    background:#fff;
    padding:30px;
    border-radius:15px;
    margin-bottom:30px;
    box-shadow:0 3px 15px rgba(0,0,0,.08);
}

.anucart-search-top h1{
    margin:0;
    font-size:34px;
    font-weight:700;
}

.anucart-search-top p{
    margin-top:10px;
    color:#666;
}

/* GRID */

.anucart-book-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

/* CARD */

.anucart-book-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.3s;
    display:flex;
    flex-direction:column;
    height:100%;
}

.anucart-book-card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

/* IMAGE */

.anucart-book-card > a{
    display:block;
    text-align:center;
    padding:15px;
    background:#fff;
}

.anucart-book-card img{
    width:100%;
    max-width:200px;
    height:300px;
    object-fit:contain;
    margin:auto;
    display:block;
    transition:.3s;
}

.anucart-book-card:hover img{
    transform:scale(1.03);
}

/* CONTENT */

.anucart-card-content{
    padding:15px;
    display:flex;
    flex-direction:column;
    flex-grow:1;
}

/* PRODUCT TITLE */

.anucart-card-content h3{
    margin:0 0 12px;
    font-size:16px;
    line-height:1.5;
    font-weight:600;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;
    text-overflow:ellipsis;

    min-height:48px;
    max-height:48px;
}

.anucart-card-content h3 a{
    color:#222;
    text-decoration:none;
}

.anucart-card-content h3 a:hover{
    color:#0057ff;
}

/* PRICE */

.book-price{
    font-size:18px;
    font-weight:700;
    color:#111;
    margin-bottom:12px;
}

.book-price del{
    color:#999;
    font-size:14px;
    margin-right:6px;
}

.book-price ins{
    text-decoration:none;
    color:#e63946;
}

/* DESCRIPTION */

.book-desc{
    display:none;
}

/* ADD TO CART BUTTON */

.book-btn{
    display:block;
    width:100%;
    text-align:center;
    background:#ff6b00;
    color:#fff !important;
    text-decoration:none;
    padding:12px;
    border-radius:8px;
    font-weight:700;
    font-size:14px;
    margin-top:auto;
    transition:.3s;
    box-shadow:0 4px 12px rgba(255,107,0,.25);
}

.book-btn:hover{
    background:#e45f00;
    color:#fff !important;
}

/* VIEW CART BUTTON */

.added_to_cart{
    display:flex !important;
    justify-content:center;
    align-items:center;
    gap:8px;
    width:100%;
    margin-top:10px;
    padding:12px;
    border-radius:8px;
    text-decoration:none !important;
    background:#1e293b;
    color:#fff !important;
    font-weight:700;
    font-size:14px;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
    transition:.3s;
}

.added_to_cart::before{
    content:"🛒";
}

.added_to_cart:hover{
    background:#0f172a;
    color:#fff !important;
}

/* PAGINATION */

.anucart-pagination{
    margin-top:40px;
    text-align:center;
}

.anucart-pagination .page-numbers{
    display:inline-block;
    padding:10px 15px;
    margin:0 3px;
    background:#fff;
    border-radius:6px;
    text-decoration:none;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}

.anucart-pagination .current{
    background:#0057ff;
    color:#fff;
}

/* TABLET */

@media(max-width:1024px){

    .anucart-book-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .anucart-book-card img{
        max-width:170px;
        height:250px;
    }

}

/* MOBILE */

@media(max-width:768px){

    .anucart-search-wrapper{
        padding:0 10px;
    }

    .anucart-search-top{
        padding:20px;
        margin-bottom:20px;
    }

    .anucart-search-top h1{
        font-size:22px;
        line-height:1.4;
    }

    .anucart-book-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .anucart-book-card img{
        max-width:120px;
        height:180px;
    }

    .anucart-card-content{
        padding:10px;
    }

    .anucart-card-content h3{
        font-size:12px;
        line-height:1.4;
        margin-bottom:10px;

        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;

        overflow:hidden;
        text-overflow:ellipsis;

        min-height:34px;
        max-height:34px;
    }

    .book-price{
        font-size:14px;
    }

    .book-btn{
        font-size:11px;
        padding:8px;
    }

    .added_to_cart{
        font-size:11px;
        padding:8px;
    }

}

/* EXTRA SMALL DEVICES */

@media(max-width:480px){

    .anucart-book-grid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .anucart-book-card img{
        max-width:100px;
        height:150px;
    }

}