:root {
    --primary-dark: #1a1a1a;
    --primary-gray: #2c464f;
    --accent-gold: #e67e22;
    --soft-white: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--soft-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    color: rgb(23, 141, 241);
}

.general-btn{
        background-color: var(--primary-gray);
}

.topbar {
    background-color: var(--primary-gray);
    transition: var(--transition);
}

.topbar a,
.topbar span {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.topbar a:hover {
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.social-links i {
    transition: var(--transition);
}

.social-links i:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

/* --- Navbar & Logo --- */
.navbar {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.navbar-brand img {
    max-height: 70px;
    /* Logo size control */
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-gray) !important;
    margin: 0 8px;
    padding: 3px 0 !important;
    position: relative;
    font-size: 14px;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

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

/* --- Icons & Interaction --- */
.header-icons .icon-btn {
    color: var(--primary-gray);
    font-size: 1.2rem;
    /* margin-left: 20px; */
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: none;
    border: none;
}

.header-icons .icon-btn:hover {
    color: var(--accent-gold);
}

.badge-count {
    font-size: 10px;
    padding: 3px 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -8px;
}

/* --- Inline Search Bar --- */
#searchCollapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.search-input {
    border: none;
    border-bottom: 2px solid #eee;
    border-radius: 0;
    padding: 10px;
    font-size: 1.1rem;
}

.search-input:focus {
    box-shadow: none;
    border-bottom-color: var(--accent-gold);
}

/* --- Sidebar (Offcanvas) --- */
.offcanvas {
    width: 350px !important;
    border-left: none;
}

.offcanvas-header {
    background: var(--primary-gray);
    color: white;
}

.offcanvas-title {
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- Mobile Adjustments --- */
@media (max-width: 1199px) {
    .navbar .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* Logo Center and Full Width */
    .navbar-brand {
        flex: 0 0 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 15px;
    }

    /* Toggle Button Left */
    .navbar-toggler {
        order: 1;
    }

    /* Icons Right */
    .header-icons {
        order: 2;
        margin-top: 0;
    }

    /* Change Menu Background and text color */
    .navbar-collapse {
        order: 3;
        background-color: var(--primary-gray);
        /* Dark background for menu */
        padding: 15px;
        margin-top: 10px;
        border-radius: 4px;
    }

    .navbar-collapse .nav-link {
        color: white !important;
        margin: 10px 0;
    }

    .offcanvas {
        width: 300px !important;
    }
}

/* --- Hero Slider Section --- */
.hero-section {
    position: relative;
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.hero-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    z-index: 2;
    position: relative;
}

.hero-title {
    font-weight: 700;
    font-size: 2.8vw;
    color: var(--primary-gray);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 500px;
    text-align: justify;
}

.hero-descriptionsmall {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 500px;
    text-align: justify;
}

/* Side Search Box Style */
.side-search-box {
    background: var(--primary-gray);
    border-radius: 15px;
    padding: 30px;
    color: white;
    height: 100%;
}

.side-search-box h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Image Slider Animation */
.book-slider-container {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-img {
    position: absolute;
    max-height: 100%;
    width: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: all 1s ease-in-out;
}

.slider-img.active {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-card {
        padding: 30px;
        margin-bottom: 30px;
    }
}

/* --- Info Strip Section --- */
.info-strip {
    padding: 40px 0;
    background-color: var(--primary-gray);
}

.info-box {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 25px;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    /* Anchor tag removal underline */
    transition: var(--transition);
    border-radius: 8px;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-gold);
}

.info-icon-wrapper {
    min-width: 60px;
    height: 60px;
    background: var(--soft-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.info-icon-wrapper i,
.info-icon-wrapper img {
    font-size: 1.5rem;
    color: var(--accent-gold);
    max-width: 40px;
}

.info-content h6 {
    color: #c0392b;
    /* Deep Red for urgent/offer text */
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.info-content p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 998px) {
    .info-box {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .info-box {
        flex-direction: row;
        margin-bottom: 15px;
    }
}

/* --- Product Section Styling --- */
.product-section {
    padding: 60px 0;
    background: #fdfdfd;
}

/* Sidebar Design */
.category-sidebar {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.cat-header {
    background: #a43125;
    /* Dark Red from screenshot */
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-item a {
    display: block;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.cat-item a:hover {
    background: var(--soft-white);
    color: var(--accent-gold);
    padding-left: 25px;
}

/* Product Grid Design */
.section-header {
    background: #a43125;
    /* Orange header from screenshot */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    margin-bottom: 30px;
}

.book-card {
    background: white;
    /* border: 1px solid #eee; */
    padding: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    border-radius: 10px;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
}

.book-img {
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.book-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gray);
    height: 40px;
    overflow: hidden;
    margin-bottom: 10px;
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: #a43125;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    margin-right: 8px;
}

/* --- Updated Button Styling --- */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.btn-add-cart,
.btn-view-details {
    flex: 1;
    /* Dono buttons barabar jagah lenge */
    border: none;
    padding: 10px 5px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: 0.3s;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}

/* Add to Cart Button (Dark) */
.btn-add-cart {
    background: var(--primary-gray);
    color: white;
}

.btn-add-cart:hover {
    background: var(--accent-gold);
    color: white;
}

/* View Details Button (Outline/Light) */
.btn-view-details {
    background: #f0f0f0;
    color: #444;
}

.btn-view-details:hover {
    background: #e0e0e0;
    color: #000;
}


@media (max-width: 991px) {
    .category-sidebar {
        margin-bottom: 40px;
        position: static;
    }
}

/* --- Best Sellers Slider Styling --- */
/* --- Innovative Best Sellers Section --- */
.best-sellers-section {
    padding: 100px 0;
    background: #f8f9fa; /* Light grey for a clean look */
}

.best-sellers-section .section-header {
    text-align: center;
    margin-bottom: 50px;
    background: transparent;
}

.best-sellers-section .section-header h2 {
    font-weight: 800;
    letter-spacing: -1px;
    color: #222;
    position: relative;
    display: inline-block;
}

.best-sellers-section .section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #e67e22; /* High-end Orange */
}

/* The Innovative Book Card */
.innovative-card {
    background: #fff;
    border-radius: 0px; /* Sharp professional look */
    padding: 20px;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid #f1f1f1;
}

.innovative-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Image Container with Hidden Icons */
.img-container {
    position: relative;
    overflow: hidden;
    background: #fcfcfc;
    padding: 5px;
    margin-bottom: 5px;
}

.img-container .book-img {
    height: 200px;
    object-fit: contain;
    width: 100%;
    transition: transform 0.5s ease;
}

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

/* Floating Action Icons (Top Left & Right) */
.floating-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    opacity: 0; /* Initially Hidden */
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.innovative-card:hover .floating-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: 0.3s;
}

.action-btn:hover {
    background: #333;
    color: #fff;
}

/* Text Content */
.book-info {
    text-align: left;
}
.book-info .cat-name {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.book-info .book-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 5px 0;
    color: #333;
    height: 40px;
    overflow: hidden;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.price-box .new-price {
    font-weight: 700;
    color: #e67e22;
    font-size: 1.1rem;
}
.price-box .old-price {
    color: #bbb;
    text-decoration: line-through;
    font-size: 0.85rem;
}


/* Navigation Buttons */
.bs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--primary-gray);;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}
.bs-nav:hover {
    background: var(--primary-gray);
    color: #fff;
    border-color: var(--primary-gray);;
}
.bs-prev {
    left: -60px;
}
.bs-next {
    right: -60px;
}

@media (max-width: 1200px) {
    .bs-nav {
        display: none;
    }
}

footer {
    background: var(--primary-gray);
    color: #bbb;
    padding: 70px 0 20px;
    font-size: 0.9rem;
}

.footer-logo {
    max-width: 300px;
    margin-bottom: 20px;
}

.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: #e67e22;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #e67e22;
    padding-left: 5px;
}

.contact-info i {
    color: #e67e22;
    width: 25px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: #e67e22;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    padding-top: 25px;
    text-align: center;
}

.payment-methods img {
    height: 25px;
    margin: 0 5px;
}

.about-hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1350&q=80");
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.stat-card {
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.4s;
    border-bottom: 4px solid #e67e22;
}

.stat-card:hover {
    transform: translateY(-10px);
}
.stat-card i {
    font-size: 2.5rem;
    color: #e67e22;
    margin-bottom: 20px;
}
.stat-card h2 {
    font-weight: 800;
    color: #222;
    margin: 0;
}
.stat-card p {
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.mission-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 20px;
    height: 100%;
}

.mission-box h4 {
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: #e67e22;
    margin-right: 10px;
}

.about-img-container {
    position: relative;
    padding: 20px;
}

.about-img-container img {
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.about-img-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 10px solid #fdf0e6;
    z-index: 1;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
}

.catalog-container {
    padding: 40px 0;
    background: #fdfdfd;
}

.filter-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 90px;
    transition: 0.3s;
}

.mobile-filter-trigger {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #222;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.premium-book-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid transparent;
    border-color: #f3d8c1;
    transition: all 0.4s ease;
    text-align: center;
}

.premium-book-card:hover {
    border-color: #e67e22;
    box-shadow: 0 20px 40px rgba(230, 126, 34, 0.08);
    transform: translateY(-5px);
}

.img-wrapper {
    position: relative;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    transition: 0.5s;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e67e22;
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
}

.quick-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: 0.4s;
}

.premium-book-card:hover .quick-overlay {
    bottom: 0;
}

@media (max-width: 991px) {
    .filter-column {
        display: none;
    }

    .filter-column.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 2000;
        overflow-y: auto;
        padding: 20px;
    }

    .mobile-filter-trigger {
        display: block;
    }
}

/* --- Modern Contact Page Styles --- */
.contact-wrapper {
    padding: 80px 0;
    background-color: #fcfcfc;
}

/* Info Side */
.contact-info-card {
    background: #222;
    color: #fff;
    padding: 50px;
    border-radius: 15px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-card h2 {
    font-weight: 800;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-method i {
    width: 45px;
    height: 45px;
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
}

.contact-method h6 {
    font-weight: 700;
    margin-bottom: 5px;
    color: #e67e22;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Form Side */
.contact-form-box {
    background: #fff;
    padding: 50px;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.form-floating > .form-control {
    border: none;
    border-bottom: 2px solid #eee;
    border-radius: 0;
    padding-left: 0;
}

.form-floating > .form-control:focus {
    box-shadow: none;
    border-color: #e67e22;
}

.btn-send {
    background: #222;
    color: #fff;
    padding: 15px 40px;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    transition: 0.3s;
    margin-top: 20px;
}

.btn-send:hover {
    background: #e67e22;
    transform: translateY(-3px);
}

/* Interactive Map */
.map-container {
    height: 450px;
    filter: grayscale(100%) invert(90%) contrast(90%); /* Professional B&W look */
    transition: 0.5s;
}

.map-container:hover {
    filter: none;
}

/* --- Ultra-Professional & Compact Product Page --- */
.product-details-wrapper {
    padding: 40px 0;
    background: #fff;
}

/* Compact Image Area */
.book-visual-column {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    /* Image ko control mein rakhne ke liye */
    max-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-visual-column img {
    max-width: 320px;
    /* Size limited to look professional */
    width: 100%;
    height: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Sleek Info Area */
.book-content-column {
    padding-left: 30px;
}

.book-title-main {
    font-size: 1.6rem;
    /* Professional sizing, not too big */
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.info-strip {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.price-tag-row {
    margin: 20px 0;
    padding: 15px;
    background: #fffcf5;
    border-left: 4px solid #e67e22;
    display: inline-block;
}

.new-price-big {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e67e22;
}

.old-price-small {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
}

/* Data Table - Very Clean */
.book-data-table {
    width: 100%;
    margin-top: 20px;
    font-size: 0.9rem;
}

.book-data-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.book-data-table td {
    padding: 10px 0;
}

.td-label {
    color: #888;
    width: 120px;
}

.td-value {
    color: #333;
    font-weight: 600;
}

/* Buttons */
.action-buttons-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-cart-main {
    background: #222;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    border: 1px solid black;
    transition: 0.3s;
}
.btn-cart-checkout {
    color: black;
    text-align: center;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid black;
    transition: 0.3s;
}
.btn-cart-checkout:hover {
    border: 1px solid #e67e22;
    color: #e67e22;
}

.btn-cart-main:hover {
    background: #e67e22;
    border: 1px solid #e67e22;
}

@media (max-width: 991px) {
    .action-buttons-group {
        flex-wrap: wrap;
    }

    /* FIRST BUTTON FULL WIDTH */
    .action-buttons-group a:first-child {
        width: 100%;
        flex: 0 0 100%;
    }

    /* SECOND & THIRD SAME ROW */
    .action-buttons-group button,
    .action-buttons-group a:nth-child(3) {
        width: 48%;
        flex: 0 0 48%;
    }
    .btn-cart-checkout-mobile {
        background: #222;
        color: #fff;
        padding: 12px 30px;
        font-weight: 600;
        border-radius: 4px;
        border: none;
        border: 1px solid black;
        transition: 0.3s;
    }

    .btn-cart-checkout-mobile:hover{
            background: #e67e22;
        border: 1px solid #e67e22;
                color: #fff;
    }
}

/* Responsiveness Fix */
@media (max-width: 991px) {
    .book-content-column {
        padding-left: 0;
        margin-top: 30px;
    }

    .book-visual-column {
        max-height: 400px;
    }

    .book-visual-column img {
        max-width: 250px;
    }
}

/* --- Multi-Level Dropdown Styling --- */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.dropdown-item {
    padding: 10px 25px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f8f9fa;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--soft-white);
    color: var(--accent-gold);
    padding-left: 30px; /* Slight slide effect */
}

/* Desktop Hover Effects for Nested Menus */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .dropend:hover > .dropdown-menu {
        display: block;
        position: absolute;
        top: 0;
        left: 100%; /* Right side khulega */
        margin-top: 0;
    }
}

/* Arrow indicator for submenus */
.dropdown-toggle::after {
    vertical-align: middle;
}

.dropend .dropdown-toggle::after {
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
    margin-left: 10px;
}

/* Mobile Sidebar Dropdown Adjustments */
/* --- Mobile Dropdown Fix --- */
@media (max-width: 991px) {
    /* Dropend ko niche khulne ke liye force karein */
    .navbar-nav .dropend .dropdown-menu {
        position: static !important;
        float: none !important;
        display: none; /* Default hidden */
        padding-left: 20px !important; /* Indentation for levels */
        background-color: rgba(255, 255, 255, 0.05) !important;
        border: none !important;
        transform: none !important;
    }

    /* Jab parent open ho toh child dikhe */
    .navbar-nav .dropend.show > .dropdown-menu {
        display: block;
    }

    /* Arrow icon ko niche ki taraf point karwana */
    .navbar-nav .dropend .dropdown-toggle::after {
        transform: rotate(90deg);
        transition: transform 0.3s;
    }

    .navbar-nav .dropend.show > .dropdown-toggle::after {
        transform: rotate(-90deg); /* Toggle effect */
    }
}

/* Desktop pe hover barqarar rahega */
@media (min-width: 992px) {
    .dropend:hover > .dropdown-menu {
        display: block;
        position: absolute;
        top: 0;
        left: 100%;
        margin-top: -1px;
    }
}

/* .....................................................................................................
.... Login + Registration Page Css......................................................................
..................................................................................................... */

.portal-card {
    background: #f2f4f7;
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    border-top: 4px solid transparent;
    background-image:
        linear-gradient(#f2f4f7, #f2f4f7),
        linear-gradient(90deg, #1a237e, #c62828);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.section-header h4 {
    font-weight: 700;
    color: #8b0000;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.form-control {
    height: 45px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: none;
    border-color: #c62828;
}

.btn-dbrau {
    background: #8b0000;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    border: none;
}

.btn-dbrau:hover {
    background: #6e0000;
    color: white;
}

.input-group .btn {
    border-radius: 0 6px 6px 0;
}






/*  for authors form css ................................................................................................................. */


    /* --- Author Form Design Language (Consistent with previous) --- */
    .author-form-card {
        background: #fff;
        padding: 50px;
        border-radius: 15px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.05);
        margin-bottom: 50px;
    }

    .form-section-header {
        color: #e67e22;
        font-weight: 700;
        border-bottom: 2px solid #f8f8f8;
        padding-bottom: 10px;
        margin-bottom: 30px;
        text-transform: uppercase;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .form-label-custom {
        font-size: 0.85rem;
        font-weight: 700;
        color: #555;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .file-upload-wrapper {
        border: 2px dashed #eee;
        padding: 15px;
        text-align: center;
        border-radius: 10px;
        cursor: pointer;
        transition: 0.3s;
        background: #fafafa;
    }

    .file-upload-wrapper:hover {
        border-color: #e67e22;
        background: #fffcf5;
    }

    .required-star { color: #e67e22; }

    .btn-submit-author {
        background: #222;
        color: #fff;
        border: none;
        padding: 15px 50px;
        border-radius: 8px;
        font-weight: 600;
        transition: 0.3s;
    }

    .btn-submit-author:hover {
        background: #e67e22;
        box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
    }

    @media (max-width: 768px) {
        .author-form-card { padding: 25px; }
    }

