/* ==================================
   SHOP PAGE
================================== */

.shop-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* ==================================
   HEADER
================================== */

.shop-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.shop-subtitle {
    color: #64748b;
    margin: 0;
}

/* ==================================
   BREADCRUMB
================================== */

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb a {
    text-decoration: none;
}

/* ==================================
   RESULTS BAR
================================== */

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

/* ==================================
   FILTER SIDEBAR
================================== */

.filter-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    position: sticky;
    top: 90px;
}

.filter-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.filter-card .form-label {
    font-weight: 600;
    color: #334155;
}

.filter-card .form-control,
.filter-card .form-select {
    border-radius: 12px;
}

/* ==================================
   OFFCANVAS
================================== */

.offcanvas {
    width: 320px !important;
}

.offcanvas-header {
    border-bottom: 1px solid #e2e8f0;
}

.offcanvas-title {
    font-weight: 700;
}

/* ==================================
   BOOK CARD
================================== */

.book-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.book-image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #f1f5f9;
}

.book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.book-card:hover .book-image {
    transform: scale(1.08);
}

/* ==================================
   BADGES
================================== */

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;

    background: #16a34a;
    color: white;

    padding: 6px 10px;
    border-radius: 999px;

    font-size: .75rem;
    font-weight: 700;

    z-index: 10;
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;

    background: #dc2626;
    color: white;

    padding: 6px 10px;
    border-radius: 999px;

    font-size: .75rem;
    font-weight: 700;

    z-index: 10;
}

/* ==================================
   CARD BODY
================================== */

.book-body {
    padding: 18px;
}

.category-chip {
    display: inline-block;

    background: #e2e8f0;
    color: #334155;

    padding: 4px 10px;
    border-radius: 999px;

    font-size: .75rem;

    margin-bottom: 12px;
}

.book-title {
    font-weight: 700;
    color: #0f172a;

    margin-bottom: 8px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-author {
    color: #64748b;
    font-size: .9rem;

    margin-bottom: 15px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================================
   PRICE
================================== */

.price-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.old-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: .9rem;
}

.new-price {
    color: #111827;
    font-size: 1.15rem;
    font-weight: 700;
}

/* ==================================
   BUTTONS
================================== */

.btn-dark {
    border-radius: 12px;
    transition: all .3s ease;
}

.btn-dark:hover {
    transform: translateY(-2px);
}

/* ==================================
   PAGINATION
================================== */

.pagination-wrapper {
    margin-top: 40px;
}

.pagination .page-link {
    border: none;
    margin: 0 3px;
    border-radius: 10px;
    color: #111827;

    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.pagination .page-item.active .page-link {
    background: #111827;
    color: white;
}

/* ==================================
   EMPTY STATE
================================== */

.empty-state {
    background: white;
    border-radius: 18px;

    padding: 70px 20px;

    text-align: center;

    box-shadow: 0 8px 25px rgba(0,0,0,.05);
}

.empty-state i {
    font-size: 4rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-state p {
    color: #64748b;
}

/* ==================================
   TABLETS
================================== */

@media (max-width: 991px) {

    .shop-title {
        font-size: 2rem;
    }

    .book-image-wrapper {
        height: 280px;
    }

}

/* ==================================
   MOBILE
================================== */

@media (max-width: 576px) {

    .results-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .book-image-wrapper {
        height: 220px;
    }

    .book-body {
        padding: 12px;
    }

    .book-title {
        font-size: .90rem;
    }

    .book-author {
        font-size: .80rem;
    }

    .new-price {
        font-size: 1rem;
    }

    .old-price {
        font-size: .80rem;
    }

    .discount-badge,
    .stock-badge {
        font-size: .65rem;
        padding: 4px 8px;
    }

    .btn-dark {
        font-size: .85rem;
        padding: 8px;
    }

}

/* ==================================
   SMALL PHONES
================================== */

@media (max-width: 390px) {

    .book-image-wrapper {
        height: 190px;
    }

    .book-title {
        font-size: .85rem;
    }

    .book-author {
        font-size: .75rem;
    }

    .btn-dark {
        font-size: .80rem;
    }

}

/* =========================
   WISHLIST BUTTON
========================= */

.wishlist-btn {

    position: absolute;

    top: 12px;

    right: 12px;

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: rgba(255,255,255,.95);

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    z-index: 20;

    box-shadow:
        0 5px 15px rgba(0,0,0,.12);

    transition: .3s;
}

.wishlist-btn:hover {

    transform: scale(1.1);
}

.wishlist-btn i {

    font-size: 1.1rem;

    color: #dc2626;
}

@media (max-width: 576px) {

    .wishlist-btn {

        width: 36px;

        height: 36px;
    }

}