/* CSS Variables */
:root {
    --primary-color: #c31c37;
    --secondary-color: #fbbc04;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --text-color: #5f6368;
    --danger-color: #dc3545;
    --success-color: #28a745;
}
.bg-primary{
    background-color: var(--primary-color) !important;
}
.bg-secondary{
    background-color: var(--secondary-color);
}
.bg-dark{
    background-color: var(--dark-color);
}
.text-primary{
    color: var(--primary-color) !important;
}
.btn-primary{
    background-color: var(--primary-color) !important;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
    text-decoration: none;
    color: var(--dark-color);
}
body {
    font-family: 'SolaimanLipi', sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
}

/* Header Styles */
.top-header {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.main-header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .search-box-div {
        display: none;
    }
}

.search-box input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons a {
    color: var(--dark-color);
    font-size: 20px;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--dark-color);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Category Menu Toggle */
.category-menu-toggle {
    color: var(--dark-color);
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    color: var(--dark-color);
    font-size: 24px;
    cursor: pointer;
}

/* Navigation Menu */
.nav-menu {
    background-color: var(--primary-color);
    padding: 0;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul li a {
    display: block;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s;
}

.nav-menu ul li:hover>a {
    background-color: rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 104%;
    width: 1007%;
    background-color: white;
    min-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}
.dropdown-menu2{
     left: 186% !important;
}

.nav-menu ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mega Menu Styles */
.mega-menu {
    padding: 20px 0;
}

.mega-menu .row {
    margin: 0;
}

.mega-menu .col-md-4 {
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.mega-menu .col-md-4:last-child {
    border-right: none;
}

.mega-menu .dropdown-item {
    padding: 8px 0;
    color: #5f6368 !important;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    font-size: 14px;
}

.mega-menu .dropdown-item:hover {
    color: #c31c37 !important;
    padding-left: 5px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: var(--dark-color) !important;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    padding-left: 25px;
}

/* Category Drawer */
.category-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.category-drawer.active {
    left: 0;
}

.category-drawer-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-drawer-close {
    font-size: 24px;
    cursor: pointer;
}

.category-list {
    padding: 15px 0;
}

.category-item {
    border-bottom: 1px solid #eee;
}

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--dark-color);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.category-title:hover {
    background-color: var(--light-color);
}

.category-title i {
    transition: transform 0.3s;
}

.category-item.active .category-title i {
    transform: rotate(90deg);
}

.subcategory-list {
    display: none;
    background-color: #f5f5f5;
}

.category-item.active .subcategory-list {
    display: block;
}

.subcategory-item a {
    display: block;
    padding: 10px 20px 10px 40px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.3s;
}

.subcategory-item a:hover {
    background-color: #e9ecef;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-close {
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid #eee;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: background 0.3s;
}

.mobile-nav ul li a:hover {
    background-color: var(--light-color);
}

.mobile-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f5f5f5;
    display: none;
}

.mobile-nav .dropdown-menu.active {
    display: block;
}

.mobile-nav .dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-close {
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.cart-item-author {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-drawer-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background-color: #1565c0;
}

.remove-item {
    color: red;
    cursor: pointer;
    margin-left: 10px;
    background-color: transparent;
    border: none;
    font-size: 26px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 450px;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 1s;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background-color: white;
}

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: -3px;
}

.slider-nav.next {
    right: -3px;
}

/* Category Slider */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-slider-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.category-slider {
    display: flex;
    gap: 15px;
    overflow: hidden;
    padding-bottom: 15px;
}

.category-card {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
}

.category-name {
    font-weight: 500;
    color: var(--dark-color);
}

/* Book Slider */
.book-slider-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.book-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding-bottom: 15px;
}

.book-card {
    flex: 0 0 auto;
    width: 242px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-img-container {
    position: relative;
    height: 261px;
    overflow: hidden;
    padding: 10px;
        align-items: center;
    text-align: center;
}

.book-img {
    width: 74%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;

}

.book-card:hover .book-img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.book-reviews {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.book-rating {
    color: var(--secondary-color);
    font-size: 14px;
    margin-right: 5px;
}

.book-review-count {
    font-size: 12px;
    color: var(--text-color);
}

.book-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 16px !important;
    font-weight: 600;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px !important;
    color: var(--text-color);
    text-decoration: line-through;
}

.book-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    padding: 8px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background-color: #1565c0;
}

.btn-secondary {
    flex: 1;
    padding: 8px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background-color: #1565c0;
}

.btn-wishlist {
    width: 36px;
    height: 36px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-wishlist:hover {
    color: #e53935;
    border-color: #e53935;
}

/* Banner Section */
.banner-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.banner-card {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.banner-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.banner-content {
    padding: 20px;
}

.banner-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.banner-desc {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.banner-btn {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-btn:hover {
    background-color: #1565c0;
}

/* Review Slider */
.review-section {
    background-color: white;
    padding: 50px 0;
    margin-bottom: 0;
}

.review-slider-wrapper {
    position: relative;
}

.review-slider {
    display: flex;
    gap: 30px;
    overflow: hidden;
}

.review-card {
    flex: 0 0 auto;
    width: 350px;
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.review-stars {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.review-info p {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    padding: 40px 0;
    margin-bottom: 0;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.newsletter-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    max-width: 600px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
}

.newsletter-form button {
    padding: 0 25px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background-color: #f9ab00;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: background 0.3s, transform 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.payment-method {
    width: 50px;
    height: 30px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Mobile Search Modal */
.search-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.search-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
    border-radius: 8px;
    display: flex;
    gap: 10px;
}

.search-modal-content input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-modal-content button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.search-modal-content .close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.search-modal-content .close-button:hover,
.search-modal-content .close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.breadcrumb li {
    color: var(--text-color);
    font-size: 14px;
}

.breadcrumb li a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

.breadcrumb li + li::before {
    content: '/';
    margin: 0 10px;
    color: var(--text-color);
}

/* Search Page Content */
.search-page-content {
    padding: 30px 0;
}

/* Search Bar Section */
.search-bar-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-search-bar {
    position: relative;
    max-width: 100%;
}

.main-search-bar input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
}

.main-search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.search-suggestions {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.search-suggestions a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 15px;
}

.search-suggestions a:hover {
    text-decoration: underline;
}

/* Filters Sidebar */
.filters-sidebar {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title i {
    font-size: 12px;
    cursor: pointer;
}

.filter-options {
    list-style: none;
    padding: 0;
}

.filter-options li {
    margin-bottom: 10px;
}

.filter-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.filter-options input[type="checkbox"] {
    margin-right: 8px;
}

.filter-options input[type="radio"] {
    margin-right: 8px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.price-range input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.price-range button {
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Results Header */
.results-header {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 16px;
    color: var(--dark-color);
}

.results-count strong {
    color: var(--primary-color);
}

.view-options {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.view-btn {
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-dropdown {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.products-list {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.products-list.active {
    display: flex;
}

.products-grid.hidden {
    display: none;
}

.book-card.list-view {
    display: flex;
    height: 200px;
}

.book-card.list-view .book-img-container {
    width: 150px;
    height: 100%;
}

.book-card.list-view .book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Pagination */
.pagination-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    display: flex;
    align-items: center;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--dark-color);
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--light-color);
}

.pagination .active a {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .disabled a {
    color: #ccc;
    cursor: not-allowed;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Product Details Page */
.product-details-section {
    padding: 30px 0;
}

/* Product Images */
.product-images {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-image-container {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image:hover {
    transform: scale(1.05);
}

.discount-badge-large {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1;
}

.image-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.image-slider::-webkit-scrollbar {
    height: 6px;
}

.image-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.image-slider::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.thumbnail {
    flex: 0 0 auto;
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-author {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.product-author a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-author a:hover {
    text-decoration: underline;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.rating-stars {
    color: var(--secondary-color);
    font-size: 18px;
}

.rating-text {
    color: var(--text-color);
    font-size: 14px;
}

.rating-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.rating-text a:hover {
    text-decoration: underline;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
}

.original-price {
    font-size: 20px;
    color: var(--text-color);
    text-decoration: line-through;
}

.discount-text {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta-item i {
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-add-cart-large {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart-large:hover {
    background-color: #1565c0;
}

.btn-wishlist-large {
    padding: 12px 20px;
    background-color: white;
    color: var(--text-color);
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-wishlist-large:hover {
    color: #e53935;
    border-color: #e53935;
}

.product-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.feature-item i {
    color: #4caf50;
}

.share-section {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    width: 36px;
    height: 36px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s;
}

.social-share a:hover {
    transform: translateY(-3px);
}

.social-share a:hover.fa-facebook-f {
    background-color: #1877f2;
    color: white;
}

.social-share a:hover.fa-twitter {
    background-color: #1da1f2;
    color: white;
}

.social-share a:hover.fa-whatsapp {
    background-color: #25d366;
    color: white;
}

/* Related Products */
.related-products {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-book-card {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.related-book-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.related-book-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.related-book-info {
    flex: 1;
}

.related-book-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-book-author {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.related-book-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Product Details Tabs */
.product-details-tabs {
    background-color: white;
    border-radius: 8px;
    padding: 0;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-nav-item {
    flex: 1;
    padding: 15px;
    text-align: center;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-nav-item:hover {
    background-color: var(--light-color);
}

.tab-nav-item.active {
    color: var(--primary-color);
    background-color: transparent;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid #eee;
}

.details-table tr:last-child {
    border-bottom: none;
}

.details-table td {
    padding: 12px 0;
    font-size: 14px;
}

.details-table td:first-child {
    font-weight: 600;
    color: var(--dark-color);
    width: 30%;
}

.details-table td:last-child {
    color: var(--text-color);
}

.description-text {
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-color);
    text-align: justify;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    font-size: 12px;
    color: var(--text-color);
}

.review-rating {
    color: var(--secondary-color);
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-top: 10px;
}

/* Similar Category Books */
.similar-books-section {
    margin-top: 30px;
}

.books-slider-wrapper {
    position: relative;
}

.books-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding-bottom: 15px;
}

.book-card {
    flex: 0 0 auto;
    width: 236px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Checkout Section */
.checkout-section {
    padding: 30px 0;
}

/* Customer Information Form */
.customer-info-form {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: none;
    font-size: 12px;
    color: var(--danger-color);
    margin-top: 5px;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Shipping Options */
.shipping-options {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background-color: var(--light-color);
}

.radio-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(26, 115, 232, 0.05);
}

.radio-option input[type="radio"] {
    margin-right: 10px;
}

.radio-label {
    font-weight: 500;
    color: var(--dark-color);
}

.radio-price {
    margin-left: auto;
    font-weight: 600;
    color: var(--primary-color);
}

/* Order Summary */
.order-summary {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.order-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-item-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.order-item-info {
    flex: 1;
}

.order-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.order-item-author {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.order-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.quantity-value {
    font-size: 14px;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

/* Price Summary */
.price-summary {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.price-row.total {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.price-label {
    color: var(--text-color);
}

.price-value {
    font-weight: 500;
    color: var(--dark-color);
}

/* Payment Methods */
.payment-methods {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.payment-option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background-color: var(--light-color);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(26, 115, 232, 0.05);
}

.payment-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.payment-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
}

.payment-details {
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.payment-form {
    display: none;
}

.payment-form.active {
    display: block;
}

/* Place Order Button */
.place-order-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.place-order-btn:hover {
    background-color: #1565c0;
}

.place-order-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.step.active .step-number {
    background-color: var(--primary-color);
}

.step.completed .step-number {
    background-color: var(--success-color);
}

.step-text {
    font-size: 14px;
    color: var(--text-color);
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #ddd;
    margin: 0 10px;
}

.step.completed .step-line {
    background-color: var(--success-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-slide {
        flex-direction: column;
    }

    .hero-slide img,
    .hero-content {
        width: 100%;
    }

    .hero-content {
        padding: 30px;
    }

    .banner-section {
        flex-direction: column;
    }

    .review-card {
        width: 300px;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .mobile-filter-toggle {
        display: block;
    }

    .filters-sidebar {
        display: none;
    }

    .filters-sidebar.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .category-menu-toggle {
        display: none;
    }

    .header-icons {
        gap: 15px;
    }

    .nav-menu {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 4px;
    }

    .newsletter-form button {
        margin-top: 10px;
    }

    .review-card {
        width: 280px;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .category-drawer {
        width: 100%;
        left: -100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-options {
        margin-left: 0;
    }

    .main-image {
        height: 300px;
    }

    .product-title {
        font-size: 20px;
    }

    .current-price {
        font-size: 24px;
    }

    .product-actions {
        flex-direction: column;
    }

    .tab-nav {
        overflow-x: auto;
    }

    .tab-nav-item {
        white-space: nowrap;
        flex: none;
        padding: 15px 20px;
    }

    .book-card {
        width: 160px;
    }

    .book-img-container {
        height: 220px;
    }

    .radio-group {
        flex-direction: column;
    }

    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-steps {
        flex-direction: column;
        gap: 15px;
    }

    .step-line {
        display: none;
    }
}

@media (max-width: 576px) {
    .book-card {
        width: 263px;
    }

    .book-img-container {
        height: 220px;
    }

    .category-card {
        width: 120px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .review-card {
        width: 250px;
        padding: 20px;
    }

    .book-card {
        width: 100%;
    }

    .book-img-container {
        height: 220px;
    }

    .book-card.list-view {
        flex-direction: column;
        height: auto;
    }

    .book-card.list-view .book-img-container {
        width: 100%;
        height: 200px;
    }

    .product-meta {
        flex-direction: column;
        gap: 10px;
    }

    .related-book-card {
        flex-direction: column;
        text-align: center;
    }

    .book-card {
        width: 180px;
    }

    .book-img-container {
        height: 200px;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .order-item {
        flex-direction: column;
        text-align: center;
    }
}
