/* Import Fonts - Bengali and English */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;600;700&display=swap');

/* CSS Variables - boierbari Style */
:root {
    /* boierbari Colors */
    --primary-color: #F29200;
    --primary-dark: #D17D00;
    --secondary-color: #1A7E3E;
    --secondary-dark: #156332;

    --text-primary: #212121;
    --text-secondary: #666;
    --text-muted: #999;

    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-gray: #f5f5f5;

    --border-color: #e0e0e0;
    --border-light: #f0f0f0;

    /* Typography */
    --font-bangla: 'Hind Siliguri', sans-serif;
    --font-english: 'Roboto', sans-serif;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    /* Adjust for sticky header height */
}

body {
    font-family: var(--font-english);
    background-color: var(--bg-secondary);
}

.bangla {
    font-family: var(--font-bangla);
}

/* Bootstrap Overrides & Custom Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.text-success {
    color: var(--secondary-color) !important;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}

/* Custom Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 146, 0, 0.25) !important;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.form-check-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(242, 146, 0, 0.25) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Header Styles */
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(242, 146, 0, 0.25);
}

.nav-link {
    color: var(--text-primary);
    transition: color 0.2s;
}

.hover-shadow {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    border-color: var(--primary-color) !important;
}

/* Book Card Styles */
.book-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

.book-image {
    height: 220px;
    object-fit: contain;
    padding: 10px;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.book-card:hover .book-image {
    transform: scale(1.05);
}

.pagination .page-link {
    color: var(--primary-color);
    border-radius: 50px;
    margin: 0 4px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.dashboard-sidebar .list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.book-title {
    font-size: 0.95rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Author Avatar */
.author-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--bg-gray);
    transition: border-color 0.3s;
}

.card:hover .author-avatar {
    border-color: var(--primary-color);
}

/* Book Details Page Specifics */
.book-main-image {
    max-height: 500px;
    object-fit: contain;
    background-color: var(--bg-gray);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
}


/* Footer Links */
.footer a {
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Mobile Offcanvas Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background-color: var(--bg-gray);
    color: var(--primary-color);
}

.mobile-menu-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.promo-slide {
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.12), transparent 25%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.12), transparent 25%),
        linear-gradient(135deg, #0c74ff 0%, #35b0ff 50%, #1a8cff 100%);
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.promo-slide.slide-alt {
    background: linear-gradient(135deg, #ff6a88 0%, #ff8c37 100%);
}

.promo-slide::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    right: -40px;
    bottom: -60px;
}

.promo-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
}

.promo-image-box {
    min-width: 200px;
}

.promo-app-card {
    background: linear-gradient(160deg, #1b4f72 0%, #0c2f42 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.promo-app-card .btn {
    border-radius: 10px;
}

.promo-app-card img {
    max-width: 140px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

#homePromoCarousel,
#homePromoCarousel .carousel-inner,
#homePromoCarousel .carousel-item {
    min-height: 340px;
}

#homePromoCarousel .carousel-control-prev,
#homePromoCarousel .carousel-control-next {
    width: 42px;
}

#homePromoCarousel .carousel-control-prev,
#homePromoCarousel .carousel-control-next {
    opacity: 0.85;
}

.footer-new .footer-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-links .footer-link,
.footer-contact .footer-link {
    display: inline-block;
    color: #555;
    text-decoration: none;
    padding: 3px 0;
}

.footer-links .footer-link:hover,
.footer-contact .footer-link:hover {
    color: var(--primary-color);
}

.footer-contact li + li {
    margin-top: 12px;
}

.footer-social {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
    background: #fff;
}

.footer-social:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.app-badge {
    border-radius: 12px;
    font-size: 13px;
    padding: 10px 12px;
}

.app-badge .fa-apple,
.app-badge .fa-google-play {
    font-size: 18px;
}

.category-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.cat-book-thumb {
    background: #f8f8f8;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    overflow: hidden;
}

.cat-book-thumb img {
    max-height: 100%;
    object-fit: contain;
}

.cat-more-link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.cat-more-link:hover {
    text-decoration: underline;
}

.cat-showcase-wrapper {
    overflow: hidden;
    position: relative;
}

.cat-showcase-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 16px;
    padding: 2px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.cat-showcase-track::-webkit-scrollbar {
    height: 6px;
}

.cat-showcase-track::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

.deal-scroller {
    position: relative;
    overflow: hidden;
}

.deal-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
}

.deal-track {
    scroll-behavior: smooth;
}

.deal-track::-webkit-scrollbar {
    height: 6px;
}

.deal-track::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

.deal-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 12px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.deal-thumb {
    position: relative;
    background: #f8f8f8;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.deal-thumb img {
    max-height: 100%;
    object-fit: contain;
}

.deal-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.deal-ribbon {
    position: absolute;
    right: -32px;
    bottom: 14px;
    background: #1A7E3E;
    color: #fff;
    padding: 6px 36px;
    transform: rotate(-18deg);
    font-size: 12px;
    font-weight: 700;
}

.deal-body h6 {
    line-height: 1.3;
}

.deal-stock {
    background: rgba(26, 126, 62, 0.08);
    border-radius: 999px;
    padding: 4px 10px;
}

.deal-footer .btn {
    padding: 6px 12px;
}

.author-popular-wrapper {
    overflow: hidden;
}

.author-popular-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.author-popular-track::-webkit-scrollbar {
    display: none;
}

.author-pill {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.author-pill-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.author-pill-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar-lg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.author-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid var(--border-light);
}

.author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.featured-track-wrapper {
    overflow: hidden;
    position: relative;
}

.featured-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(130px, 1fr);
    gap: 16px;
    padding: 6px 2px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.featured-track::-webkit-scrollbar {
    height: 6px;
}

.featured-track::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

.featured-item {
    padding: 6px;
}

.featured-thumb {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #f8f8f8;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    --bs-breadcrumb-divider: '›';
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    font-weight: 600;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .promo-slide {
        text-align: center;
    }
    .promo-image-box {
        min-width: auto;
        width: 100%;
    }
}

.filter-chip {
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: #fff;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-around;
    padding: 8px 10px 10px;
}

.mobile-bottom-link {
    flex: 1;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mobile-bottom-link i {
    font-size: 18px;
}

.mobile-bottom-link.active {
    color: var(--primary-color);
}

.mobile-bottom-link .badge {
    position: absolute;
    top: 2px;
    right: 26px;
    font-size: 10px;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }
}


/* Timeline Styles */
.tracking-timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 20px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-item.active .timeline-icon {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.timeline-item.completed .timeline-icon {
    background: #fff;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Order Summary Image */
.order-item-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
}
