﻿/*==========================
 HERO SECTION
==========================*/

.hero-section {
    margin-top: 15px;
    margin-bottom: 40px;
}

.hero-slider {
    height: 100%;
    min-height: 520px;
    overflow: hidden;
    border-radius: 18px;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 100%;
}

.hero-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card img {
    width: 100%;
    border-radius: 18px;
    transition: .35s;
    box-shadow: 0 5px 20px rgba(0,0,0,.12);
}

.hero-card:hover img {
    transform: scale(1.02);
}

/*Hero Side Card*/
.hero-side-card {
    height: 100%;
}

.hero-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}


/*=========================================
    SECTION TITLE
=========================================*/

.section-title {
    margin-bottom: 50px;
}

    .section-title span {
        color: var(--secondary);
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 38px;
        color: var(--primary);
        margin-top: 8px;
    }

    .section-title p {
        color: #777;
        max-width: 600px;
        margin: auto;
    }

/*=========================================
    HIGHLIGHTS
=========================================*/

.highlights-section {
    padding: 70px 0;
}

.highlight-card {
    background: #fff;
    border-radius: 18px;
    padding: 40px 20px;
    text-align: center;
    transition: .35s;
    height: 100%;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

    .highlight-card:hover {
        transform: translateY(-8px);
    }

    .highlight-card i {
        font-size: 46px;
        color: var(--primary);
        margin-bottom: 18px;
    }

    .highlight-card h3 {
        font-size: 34px;
        color: var(--primary);
    }

    .highlight-card p {
        margin: 0;
        color: #666;
    }



/*=========================================
    FEATURED CATEGORIES
=========================================*/

.categories-section {
    padding: 80px 0;
}

.category-card {
    display: block;
    background: #fff;
    border-radius: 18px;
    padding: 45px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: .35s;
    height: 100%;
    color: var(--text);
}

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,.12);
    }

.category-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    border-radius: 50%;
    background: #eef5fb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

    .category-icon i {
        font-size: 40px;
        color: var(--primary);
    }

.category-card h4 {
    margin-bottom: 12px;
    color: var(--primary);
}

.category-card p {
    color: #777;
    margin: 0;
}

/*=========================================
    BOOK CARD
=========================================*/

.book-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transition: .35s;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    height: 100%;
}

    .book-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,.15);
    }

.book-badge {
    position: absolute;
    left: 15px;
    top: 15px;
    background: #dc3545;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    z-index: 10;
}

.book-image {
    padding: 25px;
    background: #fff;
    text-align: center;
}

    .book-image img {
        width: 100%;
        aspect-ratio: 3/4;
        object-fit: contain;
    }

.book-content {
    padding: 20px;
}

.book-category {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
}

.book-title {
    margin: 12px 0;
    line-height: 1.4;
    min-height: 55px;
}

.book-rating {
    color: #FFC107;
    font-size: 15px;
}

    .book-rating span {
        color: #777;
    }

.book-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.book-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-cart {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
}

.btn-buy {
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    padding: 12px;
    border-radius: 8px;
}

/*=========================================
    BOOK SECTION
=========================================*/

.book-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

    .section-header h2 {
        margin-top: 8px;
    }

.view-all {
    color: var(--primary);
    font-weight: 600;
}