/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8fafc;
    color: #333;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

button,
input,
textarea {
    font-family: 'Poppins', sans-serif;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    background: #0A2A66;
    color: #fff;
    text-align: center;
    padding: 7px 10px;
    font-size: 12px;
}

.top-bar p {
    margin: 0;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;

    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 4.5%;

    background: rgba(255, 255, 255, 0.98);

    backdrop-filter: blur(12px);

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    width: 125px;
    height: auto;
    display: block;
    object-fit: contain;
    transition: 0.3s;
}

.logo img:hover {
    transform: scale(1.03);
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    list-style: none;

    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    color: #0A2A66;

    position: relative;

    transition: 0.3s;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: #F5A623;

    border-radius: 20px;

    transition: 0.3s;
}

.nav-links a:hover {
    color: #F5A623;
}

.nav-links a:hover::after {
    width: 100%;
}


/* =========================================================
   NAV ICONS
========================================================= */

.nav-icons {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.nav-icons a {
    color: #0A2A66;
    text-decoration: none;
}


/* =========================================================
   NAV SEARCH
========================================================= */

.nav-search {
    position: relative;

    display: flex;
    align-items: center;

    width: 230px;
    height: 40px;

    background: #fff;

    border: 2px solid #e5e7eb;

    border-radius: 50px;

    overflow: visible;

    transition: 0.3s;

    z-index: 10000;
}

.nav-search:focus-within {
    border-color: #0A2A66;

    box-shadow:
        0 5px 18px rgba(10, 42, 102, 0.10);
}

.nav-search input {
    flex: 1;

    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    padding: 0 14px;

    background: transparent;

    font-size: 12px;
}

.nav-search button {
    width: 48px;
    height: 100%;

    border: none;

    border-radius: 0 50px 50px 0;

    background: #0A2A66;

    color: #fff;

    cursor: pointer;

    font-size: 14px;

    transition: 0.3s;
}

.nav-search button:hover {
    background: #F5A623;
}


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

.wishlist-icon,
.cart-icon {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    font-size: 19px;

    color: #0A2A66 !important;

    transition: 0.3s;
}

.wishlist-icon:hover,
.cart-icon:hover {
    color: #F5A623 !important;
    transform: translateY(-2px);
}

#wishlistCount,
#cartCount {
    position: absolute;

    top: -6px;
    right: -7px;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #fff;

    font-size: 9px;

    font-weight: 700;
}

#wishlistCount {
    background: #e63946;
}

#cartCount {
    background: #F5A623;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-btn {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 7px 12px !important;

    background: #0A2A66;

    color: #fff !important;

    border-radius: 8px;

    font-size: 11px !important;

    font-weight: 600;

    white-space: nowrap;

    text-decoration: none;

    transition: 0.3s;

    box-shadow:
        0 5px 14px rgba(10, 42, 102, 0.16);
}

.login-btn:hover {
    background: #F5A623;

    color: #fff !important;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 610px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 55px 7%;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #eef5ff
        );

    overflow: hidden;
}

.hero-left {
    width: 53%;
}

.hero-right {
    width: 47%;

    display: flex;

    justify-content: center;
    align-items: center;
}


/* =========================================================
   HERO TAG
========================================================= */

.hero-tag {
    display: inline-block;

    padding: 8px 19px;

    background: #F5A623;

    color: #fff;

    border-radius: 30px;

    font-size: 12px;

    font-weight: 600;

    box-shadow:
        0 7px 18px rgba(245, 166, 35, 0.25);
}


/* =========================================================
   HERO TITLE
========================================================= */

.hero h1 {
    font-size: 52px;

    line-height: 1.12;

    font-weight: 700;

    color: #0A2A66;

    margin: 20px 0;
}

.hero h1 span {
    color: #18A8B5;
}


/* =========================================================
   HERO TEXT
========================================================= */

.hero-left > p {
    max-width: 600px;

    color: #555;

    font-size: 16px;

    line-height: 1.7;

    margin-bottom: 25px;
}


/* =========================================================
   HERO BUTTON
========================================================= */

.hero-buttons {
    display: flex;
    gap: 12px;
}

.shop-btn {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    padding: 12px 24px;

    background: #0A2A66;

    color: #fff;

    border-radius: 30px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    box-shadow:
        0 10px 22px rgba(10, 42, 102, 0.18);

    transition: 0.3s;
}

.shop-btn:hover {
    background: #F5A623;

    color: #fff;

    transform: translateY(-3px);
}


/* =========================================================
   HERO SLIDER
========================================================= */

.slider {
    width: 340px;

    max-width: 100%;

    text-align: center;

    position: relative;
}

.slider img,
#slider-image {
    width: 310px;

    height: 410px;

    max-width: 100%;

    object-fit: contain;

    border-radius: 15px;

    filter:
        drop-shadow(
            0 20px 25px rgba(0, 0, 0, 0.15)
        );

    animation: floatBook 4s ease-in-out infinite;

    transition: opacity 0.4s ease,
                transform 0.4s ease;
}

@keyframes floatBook {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }

}


/* =========================================================
   SLIDER DOTS
========================================================= */

.slider-dots {
    margin-top: 12px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #cbd5e1;

    display: inline-block;

    cursor: pointer;

    transition: 0.3s;
}

.dot:hover {
    background: #F5A623;

    transform: scale(1.15);
}

.dot.active {
    width: 22px;

    border-radius: 10px;

    background: #0A2A66;
}


/* =========================================================
   COMMON SECTION TITLE
========================================================= */

.section-title {
    text-align: center;

    margin-bottom: 25px;
}

.section-title h2 {
    color: #0A2A66;

    font-size: 30px;

    font-weight: 700;

    margin-bottom: 6px;
}

.section-title p {
    color: #777;

    font-size: 13px;

    margin: 0;
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories {
    padding: 55px 7%;

    background: #fff;
}

.category-container {
    max-width: 1050px;

    margin: 30px auto 0;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


/* SMALL CATEGORY CARD */

.category-card {
    min-height: 125px;

    padding: 20px 15px;

    background: #fff;

    border: 1px solid #e9eef5;

    border-radius: 13px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    cursor: pointer;

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

    transition:
        transform 0.3s,
        background 0.3s,
        box-shadow 0.3s;
}

.category-card i {
    font-size: 25px;

    color: #0A2A66;

    margin-bottom: 8px;

    transition: 0.3s;
}

.category-card h3 {
    color: #222;

    font-size: 14px;

    font-weight: 600;

    margin: 0 0 5px;
}

.category-card span {
    color: #F5A623;

    font-size: 10px;

    font-weight: 600;

    opacity: 0;

    transform: translateY(4px);

    transition: 0.3s;
}

.category-card:hover {
    background: #0A2A66;

    transform: translateY(-5px);

    box-shadow:
        0 12px 25px rgba(10, 42, 102, 0.15);
}

.category-card:hover i,
.category-card:hover h3 {
    color: #fff;
}

.category-card:hover span {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   FEATURED BOOKS
========================================================= */

.featured-books {
    padding: 60px 7%;

    background: #f8fbff;
}


/* SELECTED CATEGORY */

.selected-category {
    min-height: 0;

    text-align: center;

    color: #0A2A66;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 10px;
}


/* =========================================================
   BOOK GRID
========================================================= */

.book-container {
    max-width: 1150px;

    margin: 30px auto 0;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


/* =========================================================
   BOOK CARD — SMALLER
========================================================= */

.book-card {
    position: relative;

    background: #fff;

    border: 1px solid #edf1f6;

    border-radius: 13px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.06);

    transition: 0.3s;
}

.book-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.11);
}


/* =========================================================
   BOOK IMAGE
========================================================= */

.book-card > a {
    display: block;

    background: #f7f9fc;
}

.book-card img {
    width: 100%;

    height: 245px;

    object-fit: contain;

    padding: 12px;

    display: block;

    transition: 0.3s;
}

.book-card:hover img {
    transform: scale(1.025);
}


/* =========================================================
   BOOK INFO
========================================================= */

.book-info {
    padding: 13px;

    display: flex;

    flex-direction: column;

    flex: 1;
}

.book-info h3 {
    font-size: 14px;

    line-height: 1.35;

    min-height: 38px;

    max-height: 38px;

    overflow: hidden;

    margin-bottom: 6px;

    color: #0A2A66;
}

.book-info p {
    color: #777;

    font-size: 11px;

    margin-bottom: 5px;
}

.book-info h4 {
    color: #009688;

    font-size: 17px;

    margin-bottom: 10px;
}


/* =========================================================
   BOOK LINK
========================================================= */

.book-link {
    text-decoration: none;

    color: #0A2A66;

    transition: 0.3s;
}

.book-link:hover {
    color: #F5A623;
}


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

.book-buttons {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 8px;
}

.cart-btn {
    flex: 1;

    height: 36px;

    border: none;

    border-radius: 7px;

    background: #0A2A66;

    color: #fff;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.cart-btn:hover {
    background: #F5A623;
}

.wish-btn {
    width: 36px;

    height: 36px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: #f1f4f9;

    color: #0A2A66;

    font-size: 15px;

    cursor: pointer;

    transition: 0.3s;
}

.wish-btn:hover {
    background: #ff4d6d;

    color: #fff;

    transform: scale(1.05);
}


/* =========================================================
   PDF BUTTON
========================================================= */

.pdf-btn {
    display: block;

    text-align: center;

    padding: 8px;

    background: #0A9D8F;

    color: #fff;

    text-decoration: none;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 600;

    transition: 0.3s;
}

.pdf-btn:hover {
    background: #087d72;

    transform: translateY(-2px);
}


/* =========================================================
   BESTSELLER
========================================================= */

.book-card::before {
    content: "BESTSELLER";

    position: absolute;

    top: 12px;
    left: -39px;

    padding: 5px 42px;

    background: #F5A623;

    color: #fff;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.7px;

    transform: rotate(-45deg);

    z-index: 5;
}


/* =========================================================
   SEARCH DROPDOWN
========================================================= */

.search-results {
    position: absolute;

    top: calc(100% + 7px);
    left: 0;

    width: 100%;

    max-height: 300px;

    overflow-y: auto;

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);

    display: none;

    padding: 5px;

    z-index: 10001;
}

.search-result-item {
    display: flex;

    align-items: center;

    gap: 8px;

    width: 100%;

    padding: 7px;

    border-radius: 7px;

    text-decoration: none;

    color: #333;

    transition: 0.2s;
}

.search-result-item:hover {
    background: #f5f8ff;
}

.search-result-item img {
    width: 38px;

    height: 48px;

    object-fit: contain;

    flex-shrink: 0;
}

.search-result-info {
    min-width: 0;

    flex: 1;
}

.search-result-info h4 {
    margin: 0 0 2px;

    color: #0A2A66;

    font-size: 11px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.search-result-info p {
    margin: 0;

    color: #777;

    font-size: 9px;
}

.search-result-price {
    color: #009688;

    font-size: 10px;

    font-weight: 700;
}

.search-no-result {
    padding: 15px;

    text-align: center;

    color: #777;

    font-size: 11px;
}


/* =========================================================
   ABOUT PREVIEW
========================================================= */

.home-about {
    padding: 65px 7%;

    background: #fff;
}

.home-about-content {
    max-width: 1100px;

    margin: auto;

    padding: 45px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    background:
        linear-gradient(
            135deg,
            #f0f6ff,
            #f8fbff
        );

    border-radius: 20px;

    border: 1px solid #e5edf8;
}

.home-about-text {
    max-width: 700px;
}

.about-tag {
    font-size: 28px !important;
    font-weight: 700;
    color: #F5A623;
    display: inline-block;
    margin-bottom: 10px;
}

.home-about-text h2 {
    color: #0A2A66;

    font-size: 30px;

    line-height: 1.3;

    margin-bottom: 15px;
}

.home-about-text h2 span {
    color: #18A8B5;
}

.home-about-text p {
    color: #666;

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 9px;
}

.about-btn {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 10px;

    padding: 10px 19px;

    background: #0A2A66;

    color: #fff;

    text-decoration: none;

    border-radius: 25px;

    font-size: 12px;

    font-weight: 600;

    transition: 0.3s;
}

.about-btn:hover {
    background: #F5A623;

    color: #fff;
}

.home-about-icon {
    width: 150px;

    height: 150px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #0A2A66;

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 60px;

    box-shadow:
        0 15px 35px rgba(10, 42, 102, 0.18);
}

/* =========================================================
   CONTACT SECTION
========================================================= */

.home-contact {
    padding: 65px 7%;

    background: #f8fbff;
}

.contact-container {
    max-width: 1050px;

    margin: 35px auto 0;

    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 25px;
}


/* CONTACT INFO */

.contact-info {
    background: #0A2A66;

    color: #fff;

    padding: 30px;

    border-radius: 16px;

    box-shadow:
        0 12px 28px rgba(10, 42, 102, 0.15);
}

.contact-info h3 {
    font-size: 20px;

    margin-bottom: 25px;
}

.contact-item {
    display: flex;

    gap: 13px;

    align-items: flex-start;

    margin-bottom: 22px;
}

.contact-item i {
    width: 38px;

    height: 38px;

    border-radius: 50%;

    background: rgba(255,255,255,0.12);

    display: flex;

    align-items: center;
    justify-content: center;

    color: #F5A623;

    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 12px;

    margin-bottom: 3px;
}

.contact-item p {
    color: #dce5f5;

    font-size: 11px;

    line-height: 1.5;
}


/* CONTACT FORM */

.contact-form {
    background: #fff;

    padding: 30px;

    border-radius: 16px;

    border: 1px solid #e8edf4;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;

    color: #0A2A66;

    font-size: 11px;

    font-weight: 600;

    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid #dce3ec;

    border-radius: 8px;

    outline: none;

    padding: 10px 12px;

    font-size: 11px;

    color: #333;

    background: #fbfcfe;

    transition: 0.3s;

    resize: vertical;
}

.form-group input {
    height: 40px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0A2A66;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(10, 42, 102, 0.06);
}

.contact-submit {
    border: none;

    padding: 10px 18px;

    background: #0A2A66;

    color: #fff;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.contact-submit:hover {
    background: #F5A623;

    transform: translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #071d49;

    color: #fff;

    margin-top: 0;
}

.footer-container {
    max-width: 1150px;

    margin: auto;

    padding: 45px 6%;

    display: grid;

    grid-template-columns: 2fr 1fr 1.3fr;

    gap: 40px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-logo {
    width: 145px;

    height: auto;

    object-fit: contain;

    background: #fff;

    padding: 6px 9px;

    border-radius: 7px;

    margin-bottom: 12px;
}

.footer-column h3 {
    color: #F5A623;

    font-size: 15px;

    margin-bottom: 14px;
}

.footer-column p {
    color: #d7deeb;

    font-size: 11px;

    line-height: 1.7;

    margin-bottom: 7px;
}

.footer-column a {
    color: #d7deeb;

    text-decoration: none;

    font-size: 11px;

    margin-bottom: 8px;

    transition: 0.3s;
}

.footer-column a:hover {
    color: #F5A623;

    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);

    text-align: center;

    padding: 14px 6%;
}

.footer-bottom p {
    color: #b9c4d6;

    font-size: 10px;

    margin: 0;
}

.footer-column i {
    margin-right: 7px;
    color: #F5A623;
}

/* =========================================================
   WISHLIST PAGE
========================================================= */

.wishlist-title {
    text-align: center;

    margin: 35px 0;

    color: #0A2A66;

    font-size: 28px;
}

#emptyWishlist {
    display: none;

    text-align: center;

    font-size: 18px;

    margin-top: 45px;

    color: #777;
}

.remove-btn {
    width: 100%;

    padding: 8px;

    border: none;

    background: #dc3545;

    color: white;

    border-radius: 7px;

    cursor: pointer;

    margin-top: 8px;

    font-size: 12px;
}

.remove-btn:hover {
    background: #b02a37;
}


/* =========================================================
   BOOK DETAILS
========================================================= */

.book-details {
    max-width: 1050px;

    margin: 45px auto;

    display: flex;

    gap: 35px;

    align-items: flex-start;

    padding: 20px;
}

.book-image {
    flex: 1;

    text-align: center;
}

.book-image img {
    width: 280px;

    max-width: 100%;

    border-radius: 14px;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.14);
}

.book-info {
    flex: 2;
}

.book-info h1 {
    font-size: 30px;

    color: #0A2A66;

    margin-bottom: 15px;
}

.book-info p {
    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 10px;
}

.book-info h2 {
    color: #F5A623;

    font-size: 25px;

    margin: 15px 0;
}

.detail-buttons {
    display: flex;

    gap: 10px;

    margin-top: 22px;

    flex-wrap: wrap;
}

.detail-buttons button,
.detail-buttons a {
    padding: 10px 18px;

    border: none;

    border-radius: 7px;

    font-size: 12px;

    cursor: pointer;

    text-decoration: none;

    color: white;
}

#detailWishlist {
    background: #dc3545;
}

#detailCart {
    background: #0A2A66;
}

#detailPdf {
    background: #28a745;
}


/* =========================================================
   AUTH POPUP
========================================================= */

.auth-popup {
    position: fixed;

    top: 25px;
    left: 50%;

    transform: translate(-50%, -20px);

    width: 350px;

    max-width: calc(100% - 30px);

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px 17px;

    background: #fff;

    border-radius: 12px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.20);

    opacity: 0;

    visibility: hidden;

    z-index: 999999;

    transition: 0.3s;
}

.auth-popup.show {
    opacity: 1;

    visibility: visible;

    transform: translate(-50%, 0);
}

.auth-popup.success {
    border-left: 5px solid #0A9D8F;
}

.auth-popup.error {
    border-left: 5px solid #dc3545;
}

.popup-icon {
    width: 35px;
    height: 35px;

    min-width: 35px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #0A9D8F;

    color: #fff;
}

.auth-popup.error .popup-icon {
    background: #dc3545;
}

.popup-message {
    flex: 1;

    font-size: 12px;

    color: #333;

    font-weight: 500;
}

.popup-close {
    border: none;

    background: transparent;

    color: #777;

    cursor: pointer;
}


/* =========================================================
   LOGOUT MODAL
========================================================= */

#logoutModal {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.50);

    z-index: 999999;

    padding: 20px;
}

.logout-modal-box {
    width: 350px;

    max-width: 100%;

    background: #fff;

    border-radius: 18px;

    padding: 28px 25px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.30);
}

.logout-modal-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #0A2A66;

    color: #fff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.logout-modal-box h3 {
    color: #0A2A66;

    font-size: 20px;

    margin-bottom: 8px;
}

.logout-modal-box p {
    color: #666;

    font-size: 13px;

    margin-bottom: 20px;
}

.logout-modal-buttons {
    display: flex;

    justify-content: center;

    gap: 10px;
}

.logout-modal-buttons button {
    border: none;

    padding: 9px 18px;

    border-radius: 7px;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}

#cancelLogout {
    background: #eef2f7;

    color: #333;
}

#confirmLogout {
    background: #dc3545;

    color: #fff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .navbar {
        padding: 10px 3%;
        gap: 12px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-search {
        width: 190px;
    }

    .book-container {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 45px;
    }

}


/* =========================================================
   SMALL LAPTOP / TABLET
========================================================= */

@media (max-width: 900px) {

    .navbar {
        flex-wrap: wrap;

        padding: 10px 4%;
    }

    .nav-links {
        order: 3;

        width: 100%;

        justify-content: center;
    }

    .hero {
        flex-direction: column;

        text-align: center;

        padding: 50px 5%;

        min-height: auto;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-left {
        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .hero-left > p {
        max-width: 650px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .category-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .book-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .home-about-content {
        padding: 35px;
    }

    .footer-container {
        grid-template-columns:
            1fr 1fr;
    }

}


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

@media (max-width: 600px) {

    .top-bar {
        font-size: 9px;

        padding: 6px;
    }

    .navbar {
        padding: 9px 4%;

        gap: 8px;
    }

    .logo img {
        width: 100px;
    }

    .nav-icons {
        gap: 6px;
    }

    .nav-search {
        width: 135px;

        height: 35px;
    }

    .nav-search input {
        font-size: 10px;

        padding: 0 8px;
    }

    .nav-search button {
        width: 36px;

        font-size: 12px;
    }

    .wishlist-icon,
    .cart-icon {
        width: 25px;
        height: 25px;

        font-size: 17px;
    }

    .login-btn {
        padding: 6px 8px !important;

        font-size: 9px !important;
    }

    .nav-links {
        gap: 13px;

        padding-bottom: 3px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .about-container {
    flex-direction: column;
    gap: 30px;
}

.about-image,
.about-content {
    width: 100%;
}

.about-content {
    text-align: center;
}

.about-points {
    align-items: center;
}

.contact-container {
    grid-template-columns: 1fr;
    gap: 25px;
}

.category-container {
    grid-template-columns: repeat(2, 1fr);
}

.category-card {
    min-height: 110px;
    padding: 15px 10px;
}

.category-card i {
    font-size: 24px;
}

.category-card h3 {
    font-size: 13px;
}


    /* HERO */

    .hero {
        padding: 40px 5%;
    }

    .hero-tag {
        font-size: 10px;

        padding: 7px 13px;
    }

    .hero h1 {
        font-size: 34px;

        margin: 16px 0;
    }

    .hero-left > p {
        font-size: 13px;
    }

    .shop-btn {
        padding: 10px 19px;

        font-size: 11px;
    }

    .slider img,
    #slider-image {
        width: 270px;

        height: 350px;
    }


    /* CATEGORY */

    .categories {
        padding: 45px 5%;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title p {
        font-size: 11px;
    }

.category-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.category-card {
    background: #ffffff;

    padding: 20px 15px;

    border-radius: 12px;

    text-align: center;

    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);

    border: 1px solid #edf1f7;

    transition: 0.3s;

    cursor: pointer;

    min-height: 125px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}

.category-card i {
    font-size: 28px;

    color: #0A2A66;

    margin-bottom: 9px;
}

.category-card h3 {
    font-size: 15px;

    color: #222;

    font-weight: 600;

    line-height: 1.3;
}

.category-card:hover {
    background: #0A2A66;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(10, 42, 102, 0.15);
}

.category-card:hover h3,
.category-card:hover i {
    color: #ffffff;
}

/* =========================================================
   ALL BOOKS BUTTON
========================================================= */

.all-books-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0 10px;
}

.all-books-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 26px;

    background: #0A2A66;
    color: #ffffff;

    border: none;
    border-radius: 30px;

    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(10, 42, 102, 0.18);

    transition: all 0.3s ease;
}

.all-books-btn i {
    font-size: 15px;
}

.all-books-btn:hover {
    background: #F5A623;
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 10px 22px rgba(245, 166, 35, 0.25);
}

.all-books-btn:active {
    transform: translateY(-1px);
}
/*
.all-books-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 10px;
}

.all-books-btn {
    padding: 11px 24px;
    border: none;
    border-radius: 25px;
    background: #0A2A66;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.all-books-btn i {
    margin-right: 7px;
}

.all-books-btn:hover {
    background: #F5A623;
    transform: translateY(-2px);
} */




    /* BOOKS */

    .featured-books {
        padding: 45px 5%;
    }

    .book-container {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }

    .book-card img {
        height: 190px;

        padding: 8px;
    }

    .book-info {
        padding: 9px;
    }

    .book-info h3 {
        font-size: 11px;

        min-height: 31px;
        max-height: 31px;
    }

    .book-info p {
        font-size: 9px;
    }

    .book-info h4 {
        font-size: 14px;

        margin-bottom: 7px;
    }

    .cart-btn {
        height: 32px;

        font-size: 9px;
    }

    .wish-btn {
        width: 32px;

        height: 32px;

        font-size: 13px;
    }

    .pdf-btn {
        padding: 7px;

        font-size: 9px;
    }


    /* ABOUT */

    .home-about {
        padding: 45px 5%;
    }

    .home-about-content {
        flex-direction: column;

        text-align: center;

        padding: 28px 20px;
    }

    .home-about-text h2 {
        font-size: 24px;
    }

    .home-about-text p {
        font-size: 11px;
    }

    .home-about-icon {
        width: 100px;

        height: 100px;

        font-size: 40px;
    }


    /* CONTACT */

    .home-contact {
        padding: 45px 5%;
    }

    .contact-info,
    .contact-form {
        padding: 22px;
    }


    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 25px;

        padding: 35px 7%;
    }

    .footer-column {
        align-items: center;
    }


    /* BOOK DETAILS */

    .book-details {
        flex-direction: column;

        margin: 30px auto;

        padding: 15px;
    }

    .book-image {
        width: 100%;
    }

    .book-info h1 {
        font-size: 25px;
    }

}


/* =========================================================
   ABOUT SECTION
========================================================= */

.about-section {
    padding: 70px 7%;
    background: #ffffff;
}

.about-container {
    max-width: 1150px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    width: 40%;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;

    padding: 20px;

    background: #f8fbff;
    border-radius: 20px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.about-content {
    width: 60%;
}

.about-tag {
    display: inline-block;

    color: #F5A623;
    font-size: 14px;
    font-weight: 600;

    margin-bottom: 8px;
}

.about-content h2 {
    color: #0A2A66;
    font-size: 32px;
    margin-bottom: 18px;
}

.about-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-points {
    margin-top: 20px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-points div {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.about-points i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef5ff;
    color: #0A2A66;

    border-radius: 50%;
}

/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
    padding: 70px 7%;
    background: #f8fbff;
}

.contact-container {
    max-width: 1100px;
    margin: 35px auto 0;

    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 45px;
}

/* Contact Info */

.contact-info {
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;

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

.contact-info h3 {
    color: #0A2A66;
    font-size: 24px;
    margin-bottom: 12px;
}

.contact-info > p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;
}

.contact-item > i {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef5ff;
    color: #0A2A66;
}

.contact-item h4 {
    color: #0A2A66;
    font-size: 14px;
    margin-bottom: 3px;
}

.contact-item p {
    color: #777;
    font-size: 12px;
    margin: 0;
}

/* Contact Form */

.contact-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;

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

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;

    color: #0A2A66;
    font-size: 13px;
    font-weight: 600;

    margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid #dfe5ee;
    border-radius: 8px;

    padding: 11px 13px;

    font-size: 13px;

    outline: none;

    resize: vertical;

    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0A2A66;

    box-shadow:
        0 0 0 3px rgba(10, 42, 102, 0.08);
}

.contact-submit {
    width: 100%;

    padding: 12px;

    border: none;
    border-radius: 8px;

    background: #0A2A66;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.contact-submit:hover {
    background: #F5A623;
}

/* =========================================================
   ALL BOOKS BUTTON - FINAL
========================================================= */

#showAllBooks {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    padding: 12px 28px !important;

    background: #0A2A66 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 30px !important;

    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    cursor: pointer !important;

    box-shadow: 0 8px 20px rgba(10, 42, 102, 0.18) !important;

    transition: all 0.3s ease !important;
}

#showAllBooks:hover {
    background: #F5A623 !important;
    color: #ffffff !important;

    transform: translateY(-3px) !important;

    box-shadow: 0 10px 22px rgba(245, 166, 35, 0.25) !important;
}

#showAllBooks:active {
    transform: translateY(-1px) !important;
}

#showAllBooks i {
    font-size: 15px !important;
}
/* Center All Books button */

#showAllBooks {
    display: flex !important;
    margin: 25px auto !important;
}



/*about us size issue fix*/
/* .home-about .about-tag {
    display: inline-block;
    color: #F5A623;
    font-size: 24px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
} */

/* ===========================
   USER MENU
=========================== */

#userMenu {
    position: fixed;
    top: 75px;
    right: 30px;
    z-index: 99999;
    display: block;
}

.user-menu-box {
    width: 260px;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.20);
    border: 1px solid #e5e5e5;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
}

.user-menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-menu-header strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.user-menu-header small {
    color: #777;
    font-size: 12px;
}

.user-menu-links {
    margin-top: 12px;
}

.user-menu-links a,
.user-menu-links button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border: none;
    background: transparent;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
}

.user-menu-links a:hover,
.user-menu-links button:hover {
    background: #f5f5f5;
}
/* =========================================================
   ABOUT US - EXPANDED CONTENT
========================================================= */

.about-subsection {
    margin-top: 24px;
}

.about-subsection h3 {
    color: #0A2A66;
    font-size: 20px;
    margin-bottom: 10px;
}

.about-closing {
    margin-top: 24px !important;
    padding: 16px 18px;
    background: #f8fbff;
    border-left: 4px solid #F5A623;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .about-container {
        align-items: flex-start;
    }

    .about-image,
    .about-content {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .about-content h2 {
        font-size: 27px;
    }

    .about-subsection h3 {
        font-size: 18px;
    }

    .about-content p {
        font-size: 13px;
    }

    .about-closing {
        text-align: left;
    }
}


/* Main navigation (logo/search/login/cart) stays pinned; info bar scrolls normally. */
.top-bar {
    position: relative !important;
    top: auto !important;
    z-index: 1000 !important;
}
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
}

/* FINAL DESKTOP NAVBAR PIN FIX - mobile layout untouched */
@media (min-width: 769px) {
  .navbar.se-pinned {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
  }
  .se-navbar-spacer {
    display: block;
    width: 100%;
  }
}
