/* =====================================================
   BOOK STORE
   GLOBAL STYLE
===================================================== */

:root {
    --dark: #0b1f42;
    --medium: #c3933f;
    --light: #f1d5b0;
    --white: #f9f5ea;

    --dark-2: #102a53;
    --dark-3: #173762;

    --gold-light: #d9b66d;

    --text: #27364f;
    --muted: #788398;

    --border: #e8dfd2;

    --success: #198754;
    --danger: #dc3545;

    --radius: 16px;

    --shadow:
        0 10px 35px rgba(11, 31, 66, .09);

    --shadow-hover:
        0 20px 45px rgba(11, 31, 66, .16);

    --transition: all .3s ease;
}


/* =====================================================
   GLOBAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Tajawal", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

img {
    max-width: 100%;
}

.section-padding {
    padding: 90px 0;
}


/* =====================================================
   TOP BAR
===================================================== */

.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,.85);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar i {
    color: var(--medium);
    margin-left: 5px;
}


/* =====================================================
   NAVBAR
===================================================== */

.main-navbar {
    background: rgba(249,245,234,.97);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(11,31,66,.08);
    min-height: 82px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
}

.brand-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--dark);
    color: var(--medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.brand-text,
.footer-brand > div:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
    font-size: 22px;
    font-weight: 800;
}

.brand-text span,
.footer-brand span {
    color: var(--medium);
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 4px;
}

.navbar-nav {
    gap: 8px;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    padding: 28px 14px !important;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 17px;
    right: 14px;
    left: 14px;
    height: 2px;
    background: var(--medium);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nav-action {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 19px;
    transition: var(--transition);
    cursor: pointer;
}

.nav-action:hover {
    background: var(--light);
    color: var(--medium);
}

.nav-counter {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--medium);
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.account-btn {
    background: var(--dark);
    color: var(--white);
    border-radius: 10px;
    padding: 5px 7px;
    margin-right: 7px;
    font-weight: 500;
    transition: var(--transition);
}

.account-btn:hover {
    background: var(--medium);
    color: white;
}


/* =====================================================
   HERO
===================================================== */

.hero-section {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(195,147,63,.16),
            transparent 30%
        ),
        var(--dark);

    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(195,147,63,.15);
    border-radius: 50%;
    left: -180px;
    top: -180px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-small-title {
    color: var(--gold-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero-content h1 span {
    color: var(--medium);
    display: block;
}

.hero-content p {
    color: rgba(255,255,255,.72);
    max-width: 570px;
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-gold {
    background: var(--medium);
    border-color: var(--medium);
    color: white;
    font-weight: 700;
    padding: 12px 24px;
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--dark);
}

.hero-buttons .btn-outline-light {
    border-color: rgba(255,255,255,.35);
}

.hero-stats {
    display: flex;
    gap: 45px;
    margin-top: 50px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat strong {
    font-size: 25px;
    color: var(--light);
}

.hero-stat span {
    color: rgba(255,255,255,.55);
    font-size: 13px;
}


/* =====================================================
   HERO BOOK
===================================================== */

.hero-book-area {
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-book {
    position: relative;
    z-index: 2;
    transform: rotate(-7deg);
    transition: var(--transition);
}

.hero-book:hover {
    transform: rotate(-3deg) translateY(-10px);
}

.book-cover {
    position: relative;
    width: 220px;
    height: 315px;
    overflow: hidden;
    border-radius: 5px 12px 12px 5px;
    box-shadow:
        -10px 15px 30px rgba(0,0,0,.25),
        inset 8px 0 10px rgba(0,0,0,.12);
}

.hero-cover {
    background:
        linear-gradient(
            145deg,
            #c3933f,
            #8e6727
        );
}

.hero-cover::after,
.cover-1::after,
.cover-2::after,
.cover-3::after,
.cover-4::after {
    content: "";
    position: absolute;
    top: 0;
    left: 13px;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,.3);
}

.book-cover-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.book-cover-content small {
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 35px;
}

.book-cover-content h3 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.book-cover-content span {
    font-size: 11px;
    opacity: .8;
}

.book-line {
    width: 50px;
    height: 2px;
    background: var(--light);
    margin: 15px 0;
}

.book-shadow {
    position: absolute;
    width: 260px;
    height: 30px;
    background: rgba(0,0,0,.3);
    filter: blur(20px);
    bottom: -45px;
    left: -20px;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(195,147,63,.25);
}

.decoration-1 {
    width: 390px;
    height: 390px;
}

.decoration-2 {
    width: 280px;
    height: 280px;
}

/* =====================================================
   SECTION HEADING
===================================================== */

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.section-subtitle {
    display: block;
    color: var(--medium);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-heading h2 {
    color: var(--dark);
    font-size: 34px;
    font-weight: 800;
    margin: 0;
}

.view-all {
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

.view-all i {
    color: var(--medium);
    margin-right: 6px;
}

.view-all:hover {
    color: var(--medium);
}


/* =====================================================
   CATEGORIES
===================================================== */

.categories-section {
    background: white;
}

.category-card {
    height: 165px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-7px);
    border-color: var(--medium);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 13px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--dark);
    color: var(--medium);
}

.category-card h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--dark);
}

.category-card span {
    font-size: 12px;
    color: var(--muted);
}


/* =====================================================
   BOOKS
===================================================== */

.books-section {
    background: var(--white);
}

.book-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.book-image {
    height: 250px;
    background: #f2eee6;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.book-badge {
    position: absolute;
    right: 13px;
    top: 13px;
    background: var(--medium);
    color: white;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
}

.book-badge.bestseller {
    background: var(--dark);
}

.wishlist-btn {
    position: absolute;
    left: 13px;
    top: 13px;
    width: 38px;
    height: 38px;
    border: 0;
    background: white;
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transition: var(--transition);
    cursor: pointer;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: var(--dark);
    color: #ef6b73;
}

.book-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,31,66,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.quick-view {
    background: white;
    color: var(--dark);
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
}

.quick-view:hover {
    background: var(--medium);
    color: white;
}

.cover-1 {
    background: linear-gradient(145deg,#274d74,#102b4d);
}

.cover-2 {
    background: linear-gradient(145deg,#a87932,#684719);
}

.cover-3 {
    background: linear-gradient(145deg,#385a56,#1e3634);
}

.cover-4 {
    background: linear-gradient(145deg,#73524a,#3c2825);
}

.book-info {
    padding: 10px;
}

.book-category {
    color: var(--medium);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.book-info h4 {
    font-size: 18px;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 2px;
}

.book-author {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 9px;
}

.book-rating {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-bottom: 15px;
}

.stars,
.mini-rating {
    color: var(--medium);
    letter-spacing: 1px;
    font-size: 13px;
}

.book-rating small {
    color: var(--muted);
    font-size: 11px;
}

.book-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.book-price {
    color: var(--dark);
    font-weight: 800;
}

.book-price del {
    color: var(--muted);
    font-size: 11px;
    margin-right: 5px;
    font-weight: 400;
}

.add-cart-btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--dark);
    color: var(--medium);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: var(--transition);
    cursor: pointer;
}

.add-cart-btn:hover {
    background: var(--medium);
    color: white;
    transform: translateY(-2px);
}


/* =====================================================
   PROMO
===================================================== */

.promo-section {
    padding: 30px 0 90px;
    background: var(--white);
}

.promo-box {
    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(195,147,63,.2),
            transparent 35%
        ),
        var(--dark);

    border-radius: 22px;
    padding: 55px 65px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-content > span {
    color: var(--gold-light);
    font-weight: 700;
}

.promo-content h2 {
    font-size: 38px;
    font-weight: 800;
    margin: 10px 0;
}

.promo-content p {
    color: rgba(255,255,255,.7);
    margin-bottom: 22px;
}

.btn-light-gold {
    background: var(--light);
    color: var(--dark);
    border: 0;
    font-weight: 700;
    padding: 11px 22px;
}

.btn-light-gold:hover {
    background: var(--medium);
    color: white;
}

.promo-icon {
    font-size: 180px;
    color: rgba(195,147,63,.2);
    transform: rotate(-15deg);
    margin-left: 70px;
}


/* =====================================================
   MINI BOOKS
===================================================== */

.mini-book-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    gap: 17px;
    height: 100%;
    transition: var(--transition);
}

.mini-book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.mini-book-cover {
    flex: 0 0 95px;
    height: 130px;
    border-radius: 5px 8px 8px 5px;
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

.mini-cover-1 {
    background: var(--dark);
}

.mini-cover-2 {
    background: var(--medium);
}

.mini-cover-3 {
    background: #705148;
}

.mini-cover-4 {
    background: #3e5d59;
}

.mini-book-info {
    padding: 7px 0;
}

.mini-book-info span {
    color: var(--medium);
    font-size: 11px;
    font-weight: 700;
}

.mini-book-info h4 {
    color: var(--dark);
    font-size: 16px;
    font-weight: 800;
    margin: 6px 0;
}

.mini-book-info strong {
    display: block;
    color: var(--dark);
    font-size: 14px;
    margin-top: 7px;
}


/* =====================================================
   FEATURES
===================================================== */

.features-section {
    background: white;
    padding: 45px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.feature-icon {
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
    border-radius: 12px;
    background: var(--light);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.feature-item h5 {
    color: var(--dark);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
}

.feature-item p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}


/* =====================================================
   NEWSLETTER
===================================================== */

.newsletter-section {
    background: var(--white);
    padding: 75px 0;
}

.newsletter-box {
    background: var(--light);
    border-radius: 20px;
    padding: 35px 45px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    color: var(--dark);
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 3px;
}

.newsletter-content p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    width: 390px;
}

.newsletter-form .form-control {
    height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 0 15px;
}

.newsletter-form .btn {
    white-space: nowrap;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background: var(--dark);
    color: rgba(255,255,255,.65);
    padding: 70px 0 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    margin-bottom: 20px;
}

.footer-description {
    max-width: 400px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--medium);
    color: white;
}

.footer h5 {
    color: white;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--medium);
    padding-right: 5px;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-list i {
    color: var(--medium);
    font-size: 17px;
}

.footer-line {
    border-color: rgba(255,255,255,.1);
    margin: 40px 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    margin-right: 20px;
}

.footer-bottom a:hover {
    color: var(--medium);
}


/* =====================================================
   SEARCH MODAL
===================================================== */

.search-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.search-modal .modal-header {
    background: var(--dark);
    color: white;
    border: 0;
}

.search-modal .modal-header .btn-close {
    filter: invert(1);
}

.search-modal .modal-body {
    padding: 30px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form .form-control {
    height: 50px;
}

.search-form .btn {
    min-width: 80px;
}


/* =====================================================
   TOAST
===================================================== */

.toast {
    border: 0;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
}

.toast-body {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 600;
}

.toast-body i {
    color: var(--success);
    font-size: 20px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {

    .navbar-nav {
        padding-top: 15px;
    }

    .nav-link {
        padding: 10px !important;
    }

    .nav-link::after {
        display: none;
    }

    .navbar-actions {
        padding: 15px 0;
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-book-area {
        height: 420px;
    }

    .promo-icon {
        font-size: 120px;
    }

    .newsletter-box {
        flex-wrap: wrap;
    }

    .newsletter-form {
        width: 100%;
    }

}


@media (max-width: 767px) {

    .top-bar-content {
        justify-content: center;
    }

    .top-bar-content > div:not(:first-child) {
        display: none;
    }

    .section-padding {
        padding: 65px 0;
    }

    .section-heading {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 25px;
    }

    .hero-book-area {
        height: 380px;
    }

    .book-cover {
        width: 190px;
        height: 275px;
    }

    .hero-content h1 {
        font-size: 43px;
    }

    .promo-box {
        padding: 40px 25px;
    }

    .promo-content h2 {
        font-size: 30px;
    }

    .promo-icon {
        display: none;
    }

    .newsletter-box {
        padding: 30px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

}


@media (max-width: 400px) {

    .account-btn span {
        display: none;
    }

    .hero-stats {
        gap: 18px;
    }

    .hero-stat strong {
        font-size: 21px;
    }

}
/*===========================================
 cart 
 =========================================== */
 /* =========================================================
   CART PAGE
========================================================= */

/* Page Header */

.page-header {
    background: var(--dark);
    padding: 60px 0;
    color: var(--white);
}

.page-header h1 {
    margin: 0 0 10px;
    font-size: 38px;
    font-weight: 800;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(249, 245, 234, .65);
    font-size: 14px;
}

.breadcrumb-custom a {
    color: var(--light);
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: var(--medium);
}

.breadcrumb-custom i {
    color: var(--medium);
    font-size: 11px;
}


/* Cart Section */

.cart-section {
    min-height: 600px;
    padding: 70px 0;
    background: var(--white);
}


/* Cart Card */

.cart-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 25px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    margin: 0 0 4px;
    color: var(--dark);
    font-size: 20px;
    font-weight: 800;
}

.cart-header span {
    color: var(--muted);
    font-size: 13px;
}

.clear-cart {
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--danger);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.clear-cart:hover {
    background: #fff0f0;
}


/* Cart Item */

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 25px;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: 0;
}


/* Book Cover */

.cart-book-cover {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 90px;
    height: 120px;
    flex: 0 0 90px;

    border-radius: 5px 9px 9px 5px;

    color: rgba(255,255,255,.9);
    font-size: 30px;

    box-shadow: 0 8px 18px rgba(11,31,66,.15);
}

.cart-cover-1 {
    background: linear-gradient(
        145deg,
        #274d74,
        #102b4d
    );
}

.cart-cover-2 {
    background: linear-gradient(
        145deg,
        #a87932,
        #684719
    );
}

.cart-cover-3 {
    background: linear-gradient(
        145deg,
        #385a56,
        #1e3634
    );
}

.cart-cover-4 {
    background: linear-gradient(
        145deg,
        #73524a,
        #3c2825
    );
}


/* Book Information */

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-category {
    display: inline-block;
    margin-bottom: 3px;

    color: var(--medium);

    font-size: 11px;
    font-weight: 800;
}

.cart-item-info h4 {
    margin: 0 0 4px;

    color: var(--dark);

    font-size: 18px;
    font-weight: 800;
}

.cart-item-author {
    color: var(--muted);
    font-size: 12px;
}


/* Quantity */

.quantity-control {
    display: flex;
    align-items: center;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #fff;
}

.quantity-control button {
    width: 34px;
    height: 34px;

    padding: 0;

    border: 0;

    background: var(--white);
    color: var(--dark);

    font-size: 14px;

    cursor: pointer;

    transition: var(--transition);
}

.quantity-control button:hover {
    background: var(--light);
    color: var(--medium);
}

.quantity-control input {
    width: 40px;
    height: 34px;

    padding: 0;

    border: 0;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);

    outline: none;

    background: #fff;

    color: var(--dark);

    text-align: center;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
}


/* Price */

.cart-item-price {
    width: 100px;
    flex: 0 0 100px;

    text-align: center;
}

.cart-item-price strong {
    color: var(--dark);
    font-size: 16px;
    font-weight: 800;
}


/* Remove */

.remove-item {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #a5acb7;

    cursor: pointer;

    transition: var(--transition);
}

.remove-item:hover {
    background: #fff0f0;
    color: var(--danger);
}


/* Summary */

.summary-card {
    position: sticky;
    top: 105px;

    padding: 25px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.summary-card h3 {
    margin: 0 0 22px;

    color: var(--dark);

    font-size: 20px;
    font-weight: 800;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;

    font-size: 14px;
}

.summary-row span {
    color: var(--muted);
}

.summary-row strong {
    color: var(--dark);
    font-weight: 800;
}

.discount-row strong {
    color: var(--success);
}

.summary-divider {
    height: 1px;
    margin: 20px 0;

    background: var(--border);
}


/* Total */

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.total-row span {
    color: var(--dark);
    font-size: 17px;
    font-weight: 800;
}

.total-row strong {
    color: var(--medium);
    font-size: 23px;
    font-weight: 800;
}


/* Checkout Button */

.checkout-btn {
    width: 100%;

    padding: 14px 20px;

    border: 0;
    border-radius: 9px;

    background: var(--dark);
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--medium);
    transform: translateY(-2px);
}

.checkout-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}


/* Continue Shopping */

.continue-shopping {
    display: block;

    margin-top: 15px;

    color: var(--dark);

    text-align: center;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: var(--transition);
}

.continue-shopping:hover {
    color: var(--medium);
}


/* Coupon */

.coupon-box {
    margin-top: 25px;
    padding-top: 22px;

    border-top: 1px solid var(--border);
}

.coupon-box label {
    display: block;

    margin-bottom: 9px;

    color: var(--dark);

    font-size: 13px;
    font-weight: 800;
}

.coupon-form {
    display: flex;
    gap: 7px;
}

.coupon-form input {
    min-width: 0;
    flex: 1;

    height: 42px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 7px;

    outline: none;

    color: var(--dark);

    font-family: inherit;
    font-size: 13px;

    transition: var(--transition);
}

.coupon-form input:focus {
    border-color: var(--medium);
    box-shadow: 0 0 0 3px rgba(195,147,63,.1);
}

.coupon-form button {
    height: 42px;

    padding: 0 16px;

    border: 0;
    border-radius: 7px;

    background: var(--light);
    color: var(--dark);

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition: var(--transition);
}

.coupon-form button:hover {
    background: var(--medium);
    color: #fff;
}


/* Empty Cart */

.empty-cart {
    padding: 80px 20px;

    text-align: center;
}

.empty-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 90px;
    height: 90px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: var(--light);
    color: var(--dark);

    font-size: 38px;
}

.empty-cart h3 {
    margin-bottom: 8px;

    color: var(--dark);

    font-size: 22px;
    font-weight: 800;
}

.empty-cart p {
    margin-bottom: 25px;

    color: var(--muted);

    font-size: 14px;
}


/* Mobile */

@media (max-width: 991px) {

    .summary-card {
        position: static;
    }

}


@media (max-width: 767px) {

    .page-header {
        padding: 45px 0;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .cart-section {
        padding: 45px 0;
    }

    .cart-header {
        padding: 18px;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 15px;
        padding: 18px;
    }

    .cart-book-cover {
        width: 70px;
        height: 95px;
        flex-basis: 70px;
    }

    .cart-item-info {
        width: calc(100% - 90px);
        flex: 1;
    }

    .cart-item-info h4 {
        font-size: 16px;
    }

    .quantity-control {
        margin-right: 85px;
    }

    .cart-item-price {
        width: auto;
        flex: 1;

        text-align: right;
    }

    .remove-item {
        margin-right: auto;
    }

    .summary-card {
        padding: 20px;
    }

}


@media (max-width: 480px) {

    .cart-header {
        align-items: flex-start;
    }

    .clear-cart {
        font-size: 11px;
    }

    .quantity-control {
        margin-right: 0;
    }

    .cart-item-price {
        flex: 0 0 auto;
    }

}

/* =====================================================
   MOBILE HEADER
   LOGO + MENU
   ACTIONS BELOW
===================================================== */

@media (max-width: 991px) {

    .main-navbar .container {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    /* First row */
    .navbar-brand {
        flex: 1;
        margin: 0;
    }

    .navbar-toggler {
        flex-shrink: 0;
        margin-left: auto;
    }

    /* Menu opens underneath */
    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
    }

    .navbar-nav {
        width: 100%;
        padding-top: 15px;
        padding-bottom: 10px;
    }

    .nav-link {
        padding: 10px 5px !important;
    }

    .nav-link::after {
        display: none;
    }

    /* =========================================
       ACTIONS BELOW HEADER
    ========================================= */

    .navbar-actions {
        order: 3;
        flex-basis: 100%;
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: space-around;

        padding: 10px 20px;
        margin: 0;

        border-top: 1px solid var(--border);
    }

    .navbar-actions .nav-action {
        width: 42px;
        height: 42px;
    }

    .navbar-actions .language-btn,
    .navbar-actions .account-btn {
        height: 42px;
        min-width: 42px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0;
        padding: 5px 10px;
    }

}


/* =====================================================
   MOBILE PHONE
===================================================== */

@media (max-width: 575px) {

    .main-navbar {
        min-height: 70px;
    }

    .navbar-actions {
        justify-content: space-around;
        padding: 9px 25px;
    }

    .navbar-actions .nav-action,
    .navbar-actions .language-btn,
    .navbar-actions .account-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
    }

    /* Hide English / العربية text */
    .navbar-actions .language-btn span,
    .navbar-actions .account-btn span {
        display: none;
    }

    .navbar-actions .nav-action {
        font-size: 18px;
    }

}


/* =====================================================
   VERY SMALL PHONE
===================================================== */

@media (max-width: 400px) {

    .navbar-actions {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-actions .nav-action,
    .navbar-actions .language-btn,
    .navbar-actions .account-btn {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

}


/* =====================================================
   HERO - COMPACT MOBILE
===================================================== */

@media (max-width: 991px) {

    .hero-section {
        min-height: auto;
        padding: 35px 0 30px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-small-title {
        justify-content: center;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .hero-content h1 {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 13px;
        line-height: 1.5;
        max-width: 500px;
        margin: 0 auto 15px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 7px;
    }

    .hero-buttons .btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero-stats {
        justify-content: center;
        gap: 25px;
        margin-top: 20px;
    }

    .hero-stat strong {
        font-size: 17px;
    }

    .hero-stat span {
        font-size: 10px;
    }

    /* BOOK */
    .hero-book-area {
        height: 260px;
        margin-top: 5px;
    }

    .hero-book {
        transform: rotate(-5deg) scale(.78);
    }

    .hero-book:hover {
        transform: rotate(-3deg) translateY(-5px) scale(.78);
    }

    .decoration-1 {
        width: 220px;
        height: 220px;
    }

    .decoration-2 {
        width: 160px;
        height: 160px;
    }
}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 575px) {

    .hero-section {
        padding: 25px 10px 20px;
    }

    .hero-small-title {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .hero-content h1 {
        font-size: 21px;
        margin-bottom: 8px;
    }

    .hero-content p {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .hero-buttons {
        gap: 6px;
    }

    .hero-buttons .btn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .hero-stats {
        gap: 18px;
        margin-top: 15px;
    }

    .hero-stat strong {
        font-size: 15px;
    }

    .hero-stat span {
        font-size: 9px;
    }

    /* SMALLER BOOK */
    .hero-book-area {
        height: 210px;
        margin-top: 0;
    }

    .hero-book {
        transform: rotate(-5deg) scale(.62);
    }

    .hero-book:hover {
        transform: rotate(-3deg) translateY(-4px) scale(.62);
    }

    .decoration-1 {
        width: 180px;
        height: 180px;
    }

    .decoration-2 {
        width: 130px;
        height: 130px;
    }
}


/* =====================================================
   EXTRA SMALL PHONES
===================================================== */

@media (max-width: 400px) {

    .hero-section {
        padding: 20px 8px 15px;
    }

    .hero-content h1 {
        font-size: 19px;
    }

    .hero-content p {
        font-size: 11px;
    }

    .hero-buttons .btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    .hero-stats {
        gap: 12px;
        margin-top: 12px;
    }

    .hero-stat strong {
        font-size: 14px;
    }

    .hero-stat span {
        font-size: 8px;
    }

    .hero-book-area {
        height: 180px;
    }

    .hero-book {
        transform: rotate(-5deg) scale(.52);
    }

    .hero-book:hover {
        transform: rotate(-3deg) scale(.52);
    }

    .decoration-1 {
        width: 150px;
        height: 150px;
    }

    .decoration-2 {
        width: 110px;
        height: 110px;
    }
}