@font-face {
    font-family: 'Manjari';
    src: url('../../fonts/Manjari-Regular.ttf') format('truetype');
    font-weight: 400; /* Normal weight */
    font-style: normal;
}

@font-face {
    font-family: 'Manjari';
    src: url('../../fonts/Manjari-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Manjari';
    src: url('../../fonts/Manjari-Thin.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

.body-text {
    font-family: 'Manjari', sans-serif;
    font-size: 16px; /* Default size */
}

.large-text {
    font-family: 'Manjari', sans-serif;
    font-size: 24px;
    font-weight: 700; /* Bold */
}

.medium-text {
    font-family: 'Manjari', sans-serif;
    font-size: 20px;
    font-weight: 400; /* Regular */
}

.small-text {
    font-family: 'Manjari', sans-serif;
    font-size: 14px;
    font-weight: 300; /* Thin */
}


:root {
    --primary-color: #1a237e;
    --secondary-color: #e74c3c;
    --accent-color: #f1c40f;
    --text-color: #34495e;
    --light-bg: #ecf0f1;
    --dark-bg: #2c3e50;
    --success-color: #27ae60;
    --footer-bg: #121212;

}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
}

  /* Navbar Styles */
.navbar {
background-color: var(--primary-color);
padding: clamp(0.5rem, 1vw, 1rem) 0;
transition: var(--transition);
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}

.navbar.scrolled {
background-color: rgba(26, 35, 126, 0.95);
backdrop-filter: blur(10px);
}

/* Brand Styles */
.navbar-brand {
display: flex;
align-items: center;
white-space: nowrap;
margin-right: 1rem;
}

.navbar-brand img {
height: clamp(35px, 5vw, 45px);
width: auto;
margin-right: clamp(5px, 1vw, 10px);
transition: var(--transition);
}

/* Collapse Button */
.navbar-toggler {
padding: 0.25rem 0.5rem;
border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
box-shadow: none;
outline: none;
}

/* Search Form */
.search-form {
position: relative;
max-width: 500px;
width: 100%;
margin: 0.5rem auto;
}

.search-form input {
width: 100%;
border-radius: 25px;
padding: 0.75rem 2.5rem 0.75rem 1.5rem;
border: none;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
transition: var(--transition);
}

.search-form button {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
border: none;
background: none;
color: var(--primary-color);
cursor: pointer;
padding: 0.25rem;
}

/* Button Group */
.btn {
padding: 0.5rem 1rem;
transition: var(--transition);
display: inline-flex;
align-items: center;
gap: 0.5rem;
}

.btn i {
font-size: 0.9em;
}

  /* Enhanced Footer */
  .footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
.navbar-collapse {
padding: 1rem 0;
}

.search-form {
margin: 1rem 0;
}

.navbar-nav {
display: flex;
flex-direction: column;
gap: 0.5rem;
align-items: stretch;
}

.btn {
justify-content: center;
}
}

@media (min-width: 992px) {
.navbar-collapse {
display: flex;
align-items: center;
}

.search-form {
margin: 0 2rem;
min-width: 300px;
}

.navbar-nav .btn {
margin: 0 0.25rem;
}
}


/* Animation for collapse */
.navbar-collapse {
transition: height 0.35s ease;
}

/* Optional: Hide scrollbar when navbar is expanded */
body.navbar-expanded {
overflow: hidden;
}

.quick-filters {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quick-filter-btn {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    margin: 0 8px 8px 0;
    background: white;
    transition: all 0.3s;
}

.quick-filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quick-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filters {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
}

.filter-section {
    margin-bottom: 25px;
}

.product-card {
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-image {
    height: 301px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.wishlist-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.stock-status {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.stock-status.in-stock {
    color: var(--success-color);
}

.stock-status.low-stock {
    color: var(--accent-color);
}

.stock-status.out-stock {
    color: var(--secondary-color);
}

.compare-checkbox {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.floating-compare {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
}

.price-slider {
    width: 100%;
    margin: 15px 0;
}

.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card {
background: white;
border-radius: 10px;
transition: all 0.3s;
height: 100%;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
}

.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-image {
height: 400px;
object-fit: cover;
border-radius: 10px 10px 0 0;
width: 100%;
}

.product-card .p-3 {
display: flex;
flex-direction: column;
flex-grow: 1;
height: 25%;
}

.product-title {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
min-height: 48px;
}

.text-muted.mb-2 {
margin-bottom: 0.5rem !important;
}

.rating.mb-2 {
margin-bottom: 0.5rem !important;
}

.stock-status {
font-size: 0.9em;
margin-bottom: 0.5rem !important;
}

.price-container {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
}

/* Push buttons to bottom */
.d-flex.gap-2 {
margin-top: auto;
}

.product-badge {
position: absolute;
top: 10px;
right: 10px;
background: var(--success-color);
color: white;
padding: 5px 10px;
border-radius: 15px;
font-size: 0.8em;
z-index: 2;
}

.wishlist-btn {
position: absolute;
top: 10px;
left: 10px;
background: white;
border: none;
border-radius: 50%;
width: 35px;
height: 35px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
transition: all 0.3s;
z-index: 2;
}

.wishlist-btn:hover {
background: var(--secondary-color);
color: white;
}

.stock-status.in-stock {
color: var(--success-color);
}

.stock-status.low-stock {
color: var(--accent-color);
}

.stock-status.out-stock {
color: var(--secondary-color);
}

.custom-tooltip {
position: relative;
display: inline-block;
}

.custom-tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}

.tooltip-text {
visibility: hidden;
background-color: var(--dark-bg);
color: white;
text-align: center;
border-radius: 6px;
padding: 5px 10px;
position: absolute;
z-index: 3;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.3s;
white-space: nowrap;
}


.wishlist-btn i {
    color: red;
}

.wishlist-btn .far {
    color: gray; /* Outline heart color when not in wishlist */
}

.wishlist-btn .fas {
    color: red; /* Solid heart color when in wishlist */
}



/* Navbar General */
.navbar {
    background-color: var(--primary-color);
    padding: clamp(0.5rem, 1vw, 1rem);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
}

/* Brand */
.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Search Form */
.search-form {
    max-width: 500px;
    width: 100%;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: none;
    border-radius: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Icons Section */
.icon-links .btn-icon {
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    transition: color 0.3s ease;
}

.icon-links .btn-icon:hover {
    color: var(--secondary-color);
}

.icon-links .cart-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.4rem;
}

/* Mobile Search Bar */
.mobile-search-bar {
    position: fixed;
    top: 56px; /* Adjust to match navbar height */
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 1rem;
    z-index: 999;
    animation: slideDown 0.3s ease-in-out;
}

.mobile-search-bar.hidden {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .search-form.d-lg-flex {
        display: none;
    }

    #search-toggle {
        font-size: 1.25rem;
    }

    .navbar-brand img {
        height: 30px;
    }
}

@media (min-width: 992px) {
    .mobile-search-bar {
        display: none !important;
    }
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Navbar Responsive Adjustments */
.navbar {
    background-color: var(--primary-color);
    padding: clamp(0.5rem, 1vw, 1rem);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 25px;
    }

    .navbar-brand span {
        display: none; /* Hide text on very small screens */
    }

    .icon-links .btn-icon {
        font-size: 1.2rem;
        padding: 0.3rem;
    }

    .cart-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.25rem;
    }
}

@media (min-width: 577px) and (max-width: 991.98px) {
    .navbar-brand img {
        height: 30px;
    }

    .navbar-brand span {
        font-size: 0.9rem;
    }

    .icon-links .btn-icon {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
}

/* Existing styles remain the same */
.mobile-search-bar {
    top: 100%; /* Positioned right under the navbar */
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 1rem;
    z-index: 999;
    animation: slideDown 0.3s ease-in-out;
}

/* Desktop Search Form Positioning */
@media (min-width: 992px) {
    .search-form {
        width: 400px; /* Adjust width as needed */
        max-width: 500px;
    }
}

/* Existing mobile styles remain unchanged */
@media (max-width: 991.98px) {
    /* Mobile-specific styles stay the same */
    .mobile-search-bar {
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 1rem;
        z-index: 999;
    }
}

.book-logo-overlay {
    bottom: 10px;  /* Adjust distance from bottom */
    right: 10px;   /* Adjust distance from right */
    width: 50px;   /* Adjust logo size */
    opacity: 0.8;  /* Slight transparency */
    z-index: 10;   /* Ensure it's above the book image */
}

.book-overlay-logo {
    max-width: 100%;
    height: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.pagination-list li {
    margin: 0 2px;
}

.page-link {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: #e9ecef;
}

.page-link.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.ellipsis {
    padding: 8px 12px;
}