/* Color Palette - Hero Section Theme */
:root {
    --primary-color: #15803d;
    --secondary-color: #84CC16;
    --accent-color: #FCD34D;
    --text-color: #000000;
    --light-gray: #FEF3C7;
    --border-color: #F59E0B;
    --white: #ffffff;
    --light-green: #D1FAE5;
    --yellow: #FDE047;
    --dark-green: #16A34A;
    --light-yellow: #FFFBEB;
    --hero-green: #ecfccb;
    --hero-lime: #fef9c3;
    --hero-overlay: rgba(20, 83, 45, 0.2);
}

/* Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FFFFFF;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
    background-color: green;
    color: var(--white);
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    left: 0;
    right: 0;
}
.logo{
    width: 100%;
    height: 55%;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--white);
}
.logo-link:hover {
    text-decoration: none;
    color: var(--white);
}
.logo img,
.logo-image {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
}
.header-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}

.nav {
    width: 100%;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 1.5rem;
    
}

.nav2 h5{
    font-size: 1.8rem;
    display: none;
}

.mobile-menu-toggle {
    display: none;
}
.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.85rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
    height: 37vh;
    max-height: 400px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.search-form button {
    width: 8vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #c0392b;
}

.books-controls .search-form{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

/* Categories Section */
.categories {
    height: auto;
    min-height: 10vw;
    padding: 2rem 0;
    background-color: var(--light-gray);
}

.categories h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: none;
}

.books-grid .book-card {
    width: 180px;
    max-width: 180px;
    margin: 0;
}

.book-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 180px;
    margin: 0 auto;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Clickable book cards */
.book-card {
    transition: all 0.3s ease;
    position: relative;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.book-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.book-image {
    height: 200px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 1rem;
    text-align: left;
}

.book-info h4 {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: #000000;
    line-height: 1.3;
    min-height: 2.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.author {
    color: #666666;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    min-height: 1rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1;
}

.price {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    line-height: 1.1;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.discount-price {
    color: #000000;
    font-weight: bold;
    font-size: 1.1rem;
}

.discount-badge {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.coupon-section {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.coupon-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.coupon-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.apply-coupon-btn {
    background-color: var(--success-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.apply-coupon-btn:hover {
    background-color: #229954;
}

.special-offers {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.offer-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.offer-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.offer-description {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.offer-discount {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.offer-validity {
    color: #666;
    font-size: 0.9rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.auth-buttons .btn {
    min-width: 120px;
}
.btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: #6B7280;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #4B5563;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #2563EB;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1D4ED8;
}

.btn-secondary {
    background-color: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.btn-secondary:hover {
    background-color: #E5E7EB;
    border-color: #9CA3AF;
}

.btn-danger {
    background-color: #EF4444;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}


.btn-book-card {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: 0.4rem;
}

.btn-book-card:hover {
    background-color: var(--secondary-color);
    color: #000000;
}


/* Book Detail Page Background Removed */

/* Book Detail Page */
.book-detail {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50-50 layout */
    gap: 3rem;
    padding: 2rem 0;
    align-items: start;
}

.book-detail-image {
    text-align: center;
}

.book-detail-image img {
    width: 100%;
    max-width: 300px; /* Reduced from 400px */
    height: auto;
    max-height: 450px; /* Reduced from 600px */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
}

.action-buttons .btn {
    flex: 1;
    text-align: center;
}

.book-detail-info h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.author {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.category {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stock {
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 1rem;
}

.description {
    margin: 2rem 0;
}

.description h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.add-to-cart-form button {
    padding: 0.6rem 1.5rem; /* Reduced to industrial standard */
    font-size: 0.95rem; /* Reduced to industrial standard */
    border-radius: 6px; /* Reduced to industrial standard */
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Reduced shadow */
}

.add-to-cart-form button:hover {
    background-color: #16A34A;
    transform: translateY(-1px); /* Reduced hover effect */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* Reduced shadow */
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-selector input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

/* Cart */
.cart-form {
    margin-bottom: 3rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}


.cart-item-total {
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-remove {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-remove:hover {
    text-decoration: underline;
}

.cart-summary {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.cart-total h3 {
    font-size: 1.5rem;
    color: #000000;
    text-align: right;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.checkout-form {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

/* RemixIcon Integration */
@import url('https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css');

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    min-width: 40px;
    justify-content: center;
}

.cart-icon-wrapper:hover {
    background-color: var(--secondary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 16px;
    height: 16px;
    text-align: center;
    line-height: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cart-item-quantity input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-quantity input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.coupon-section input {
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.coupon-section input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.featured-action {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
    padding-bottom: 2rem;
}

/* Footer */
.footer {   
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 0 0.5rem;
    margin-top: 0; /* Removed gap - no margin */
    position: relative;
    left: 0;
    right: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Utility Classes */
.message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

.empty-cart {
    text-align: center;
    padding: 1.5rem;
}

.no-books {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination-link:hover,
.pagination-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Related Books */
.related-books {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-books h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

 /* Buttons */
        .buttons-container2 {
            display: flex;
            gap: 16px;
            justify-content: start;
            align-items: center;
            margin-bottom: 64px;
            margin-left: 40px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 24px 32px;
            font-size: 1.125rem;
            border-radius: 9999px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            text-decoration: none;
        }

        .btn-icon {
            margin-left: 8px;
            width: 20px;
            height: 20px;
        }

        .btn-primary {
            background-color: #15803d;
            color: #ffffff;
        }

        .btn-primary:hover {
            background-color: #166534;
        }

        .btn-secondary {
            background-color: #facc15;
            color: #000000;
            border: 2px solid #000000;
        }

        .btn-secondary:hover {
            background-color: #eab308;
        }

        /* Featured Books Section */
        .featured {
            position: relative;
            min-height: 600px;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: linear-gradient(to bottom right, #ecfccb, #fef9c3, #f0fdf4);
            margin: 0;
            padding: 0;
        }

        .background {
            position: absolute;
            inset: 0;
        }

        .background-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 1.0; /* Maximum valid opacity - fully visible background */
        }

        .background-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to right, rgba(20, 83, 45, 0.05), rgba(132, 204, 22, 0.02)); /* Reduced overlay opacity */
        }

        .featured .container {
            position: relative;
            z-index: 10;
            max-width: 1152px;
            margin: 0 auto;
            padding: 80px 24px;
            text-align: center;
        }

        .featured h3 {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 2rem;
            color: var(--primary-color);
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .featured-action {
            text-align: center;
            margin-top: 3rem;
        }

        .btn-large {
            padding: 0.6rem 1.5rem;
            font-size: 0.95rem;
            border-radius: 6px;
            background-color: var(--primary-color);
            color: var(--white);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }

        .btn-large:hover {
            background-color: var(--secondary-color);
            color: #000000;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

/* Suggested Books Section */
.suggested-books {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.suggested-books h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.suggested-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.suggested-book-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.suggested-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Clickable suggested book cards */
.suggested-book-card {
    transition: all 0.3s ease;
    position: relative;
}

.suggested-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.suggested-book-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.suggested-book-image {
    height: 150px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.suggested-book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggested-book-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggested-book-info h4 {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: #000000;
    line-height: 1.3;
    min-height: 2.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.suggested-book-info .author {
    color: #666666;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    min-height: 1rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1;
}

.suggested-book-info .price {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    line-height: 1.1;
}

.suggested-book-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    align-items: flex-end;
    justify-content: space-between;
}

.suggested-book-actions form {
    display: inline-block;
    margin: 0;
    flex: 0.7;
}

.suggested-book-actions form:last-child {
    flex: 0.3;
}

.suggested-book-actions .btn-small,
.suggested-book-actions .btn-primary,
.suggested-book-actions .btn-book-card {
    padding: 12px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    background: #fb641b;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    display: block;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.2;
    text-align: center;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggested-book-actions .btn-small:hover,
.suggested-book-actions .btn-primary:hover,
.suggested-book-actions .btn-book-card:hover {
    background: #e85b16;
}

/* ====== GLOBAL ====== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f1f3f6;
}

.cart-container {
  max-width: 1200px;
  margin: 30px auto;
  display: flex;
  gap: 20px;
}

/* ====== CART SECTION ====== */
.cart-section {
  flex: 2;
  background: #fff;
  padding: 20px;
  border-radius: 4px;
}

.cart-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.cart-item img {
  width: 80px;
  margin-right: 20px;
  border-radius: 4px;
}

.cart-details {
  flex: 1;
}

.cart-details h4 {
  margin: 0 0 5px;
  font-size: 16px;
  color: #333;
}

.cart-details p {
  margin: 0 0 10px;
  color: #666;
  font-size: 14px;
}

.cart-price {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.cart-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cart-quantity input {
  width: 60px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-align: center;
}

.cart-actions-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.cart-btn {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-secondary {
  background: #fff;
  border: 1px solid #2874f0;
  color: #2874f0;
}

.btn-secondary:hover {
  background: #f8f9fa;
}

.btn-primary {
  background: #fb641b;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background: #e85b16;
}

.remove-btn {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  padding: 5px;
  font-size: 12px;
}

.remove-btn:hover {
  color: #b71c1c;
}

/* ====== ORDER SUMMARY ====== */
.summary-section {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  height: fit-content;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.summary-title {
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.summary-total {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.coupon-box {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.coupon-box input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.coupon-box button {
  background: #388e3c;
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
}

.coupon-box button:hover {
  background: #2e7d32;
}

/* ====== SHIPPING ====== */
.shipping-container {
  width: 95%;
  max-width: 700px;
  margin: 5px auto;
  background: #fff;
  padding: 25px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shipping-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.shipping-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.shipping-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shipping-field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.shipping-field input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.shipping-field input:focus {
  outline: none;
  border-color: #2874f0;
}

.proceed-checkout-btn {
    width: 45%;
    margin-top: auto;
    margin-bottom: 0;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: #fb641b;
    color: #fff;
    transition: background-color 0.3s ease;
}

.proceed-checkout-btn:hover {
    background: #e85b16;
}

.place-order-btn {
  margin-top: 25px;
  width: 100%;
  background: #fb641b;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.place-order-btn:hover {
  background: #e85b16;
}

/* Global Responsive Styles */
@media (max-width: 900px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: auto;
        min-height: 30vh;
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        min-height: 25vh;
        padding: 1.5rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .hero {
        min-height: 20vh;
        padding: 1rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
        display: block;
    }
    
    h1, h2, h3, h4 {
        text-align: center;
    }
    
    .section {
        padding: 2rem 0;
    }
}
@media (max-width: 900px) {
  .cart-container {
    flex-direction: column;
  }
  
  .shipping-row {
    flex-direction: column;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cart-item img {
    margin-bottom: 10px;
    margin-right: 0;
  }
}

/* Enhanced Cart Page Responsive Styles */
@media (max-width: 900px) {
    .cart-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .cart-section,
    .summary-section {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        align-items: start;
        padding: 1rem;
    }
    
    .cart-item-image {
        grid-row: 1 / span 3;
    }
    
    .cart-details {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cart-price {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .cart-quantity {
        margin-top: 0.5rem;
    }
    
    .cart-actions-row {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .cart-btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .cart-container {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .cart-section,
    .summary-section {
        padding: 1rem;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .cart-item-image img {
        width: 60px;
        height: 90px;
    }
    
    .cart-details h4 {
        font-size: 0.9rem;
    }
    
    .cart-details p {
        font-size: 0.8rem;
    }
    
    .cart-price {
        font-size: 0.95rem;
    }
    
    .cart-quantity input {
        width: 50px;
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    .summary-row {
        font-size: 0.9rem;
    }
    
    .summary-total {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 0 0.25rem;
        gap: 0.8rem;
    }
    
    .cart-section,
    .summary-section {
        padding: 0.8rem;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
        text-align: center;
    }
    
    .cart-item-image {
        grid-row: auto;
        justify-self: center;
    }
    
    .cart-item-image img {
        width: 80px;
        height: 120px;
        margin: 0 auto;
    }
    
    .cart-details {
        text-align: center;
    }
    
    .cart-details h4 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .cart-details p {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .cart-price {
        font-size: 0.9rem;
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .cart-quantity {
        justify-content: center;
        margin: 0.5rem 0;
    }
    
    .cart-quantity input {
        width: 60px;
        padding: 0.5rem;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .cart-actions-row {
        margin-top: 1rem;
    }
    
    .cart-btn {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .summary-section {
        margin-top: 1rem;
    }
    
    .summary-title {
        font-size: 0.9rem;
        padding-bottom: 0.8rem;
    }
    
    .summary-row {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .summary-total {
        font-size: 0.95rem;
        margin-top: 1rem;
    }
    
    .coupon-box {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .coupon-box input {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .coupon-box button {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}
@media (max-width: 900px) {
    .header-content {
        display: flex;
        justify-content: center;
        align-items: center;  
        width: 100vw;
        height: 100vw;
    }
   
    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 2rem 1rem;
        transition: left 0.3s ease;
        z-index: 1000;
        gap: 0;
        display: flex;
    }

    .nav2 {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        color: var(--white);
        font-size: 1.4rem;
        font-weight: bold;
        border-radius: 5px;
        width: 40px;
        height: 40px;
        margin-right: 1rem;
        background: none;
        border: none;
        transition: background-color 0.3s;
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        font-size: 1rem;
        display: block !important;
        width: 100% !important;
        position: static !important;
        justify-content: flex-start !important;
        min-width: auto !important;
    }

    .cart-icon-wrapper {
        position: static !important;
        display: block !important;
        width: 100% !important;
        justify-content: flex-start !important;
        min-width: auto !important;
    }

    .logo img {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100vw;
        height: 80px;
        margin-left: 2rem;
    }
    .logo-text h1{
    display: none;
    height: 100vw;
    font-size: 1.3rem;
        color: white;
    }

    .hero-content h2 {
        margin-top: 2rem;
        font-size: 2rem;
        color: #000;
    }
    
    .search-form {
        display: flex;
        width: 100vw;
        box-sizing: border-box;
        padding: 0 1rem;
        margin: 0;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        flex-direction: row;
    }
    
    .book-detail {
        margin-top: 2rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-form {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .search-form input {
        width: 100%;
    }

    .search-form button {
        width: 100%;
    }

    .category-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Book Detail Page Responsive Styles */
@media (max-width: 900px) {
    .book-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .book-detail-image img {
        max-width: 250px;
        max-height: 350px;
        margin: 0 auto;
        display: block;
    }
    
    .book-detail-info h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .author, .price {
        text-align: center;
    }
    
    .add-to-cart-form {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-form button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .book-detail {
        padding: 0.5rem;
        gap: 1.5rem;
    }
    
    .book-detail-image img {
        max-width: 200px;
        max-height: 300px;
    }
    
    .book-detail-info h1 {
        font-size: 1.6rem;
    }
    
    .description {
        margin: 1.5rem 0;
    }
    
    .description h3 {
        font-size: 1.2rem;
    }
    
    .description p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .book-detail {
        padding: 0.25rem;
        gap: 1rem;
    }
    
    .book-detail-image img {
        max-width: 180px;
        max-height: 250px;
    }
    
    .book-detail-info h1 {
        font-size: 1.4rem;
    }
    
    .author {
        font-size: 1rem;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .description {
        margin: 1rem 0;
    }
    
    .description h3 {
        font-size: 1.1rem;
    }
    
    .description p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .quantity-selector input {
        width: 60px;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .add-to-cart-form button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* My Orders Page Responsive Styles */
@media (max-width: 900px) {
    .orders-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .order-card {
        margin-bottom: 1rem;
    }
    
    .order-header {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .order-id {
        font-size: 1rem;
    }
    
    .order-status {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .order-body {
        padding: 1rem;
    }
    
    .order-info {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .info-item {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .orders-container {
        margin: 0.5rem auto;
        padding: 0 0.25rem;
    }
    
    .order-header {
        padding: 0.6rem 0.8rem;
    }
    
    .order-id {
        font-size: 0.9rem;
    }
    
    .order-status {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .order-body {
        padding: 0.8rem;
    }
    
    .info-label {
        font-size: 0.85rem;
    }
    
    .info-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .orders-container {
        margin: 0.25rem auto;
        padding: 0 0.1rem;
    }
    
    .order-card {
        margin-bottom: 0.8rem;
        border-radius: 8px;
    }
    
    .order-header {
        padding: 0.5rem;
    }
    
    .order-id {
        font-size: 0.85rem;
    }
    
    .order-status {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .order-body {
        padding: 0.6rem;
    }
    
    .order-info {
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .info-label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .info-value {
        font-size: 0.75rem;
    }
}

/* Receipt Page Responsive Styles */
@media (max-width: 900px) {
    .receipt-container {
        margin: 1rem auto;
        padding: 1rem;
        max-width: 95%;
    }
    
    .receipt-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .receipt-logo {
        width: 80px;
        height: 80px;
    }
    
    .receipt-title {
        font-size: 1.5rem;
    }
    
    .receipt-subtitle {
        font-size: 0.9rem;
    }
    
    .order-info {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .receipt-table {
        font-size: 0.9rem;
    }
    
    .receipt-table th,
    .receipt-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .receipt-container {
        margin: 0.5rem auto;
        padding: 0.8rem;
        max-width: 98%;
    }
    
    .receipt-header {
        padding-bottom: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .receipt-logo {
        width: 60px;
        height: 60px;
    }
    
    .receipt-title {
        font-size: 1.3rem;
    }
    
    .receipt-subtitle {
        font-size: 0.8rem;
    }
    
    .receipt-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
    }
    
    .receipt-table th,
    .receipt-table td {
        padding: 0.4rem;
        min-width: 80px;
    }
    
    .receipt-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .receipt-actions .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .receipt-container {
        margin: 0.25rem auto;
        padding: 0.5rem;
        max-width: 99%;
        border-width: 1px;
    }
    
    .receipt-header {
        padding-bottom: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .receipt-logo {
        width: 50px;
        height: 50px;
    }
    
    .receipt-title {
        font-size: 1.1rem;
    }
    
    .receipt-subtitle {
        font-size: 0.75rem;
    }
    
    .receipt-table {
        font-size: 0.7rem;
    }
    
    .receipt-table th,
    .receipt-table td {
        padding: 0.3rem;
        min-width: 60px;
    }
    
    .receipt-table .book-title {
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .receipt-total {
        font-size: 0.9rem;
    }
    
    .receipt-actions {
        gap: 0.6rem;
        margin-top: 1rem;
    }
    
    .receipt-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .footer-info {
        font-size: 0.7rem;
        margin-top: 1rem;
    }
}
@media (max-width: 900px) {
    .auth-container {
        max-width: 100%;
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .auth-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-tab {
        width: 100%;
        text-align: center;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .auth-form {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 0.25rem;
        padding: 0.75rem;
    }
    
    .auth-tabs {
        margin-bottom: 1rem;
    }
    
    .auth-tab {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .auth-form {
        padding: 0.75rem;
    }
    
    .form-group input {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .auth-footer {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
    
    .message, .error {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}
/* Books Grid Responsive Styles */
@media (max-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 1rem;
        max-width: 900px;
        margin: 0 auto;
    }
}

    @media (max-width: 900px) {
        .books-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            padding: 1rem;
            max-width: 600px;
            margin: 0 auto;
        }
    }

    @media (max-width: 768px) {
        .books-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.9rem;
            padding: 0.8rem 1rem;
            max-width: 500px;
            margin: 0 auto;
        }
    }

    @media (max-width: 480px) {
        .books-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.8rem;
            padding: 0.5rem 0.5rem;
            max-width: 100%;
            margin: 0 auto;
        }

        .books-grid .book-card {
            width: 100%;
            max-width: 160px;
            margin: 0 auto;
        }

        .btn {
            padding: 16px 24px !important;
            font-size: 1rem !important;
            max-width: 280px !important;
            margin: 0 auto !important;
        }

        .hero-content .btn {
            padding: 14px 20px !important;
            font-size: 0.9rem !important;
            max-width: 250px !important;
        }

        .footer-bottom {
            text-align: center !important;
            padding-left: 0 !important;
        }

        .footer-content {
            text-align: left !important;
        }

        .footer-section {
            text-align: left !important;
        }

        .footer-section h4 {
            text-align: left !important;
        }

        .footer-section ul {
            text-align: left !important;
        }

        .footer-section li {
            text-align: left !important;
        }

        .footer-section a {
            text-align: left !important;
        }

        .hero-content h2 {
            font-size: 1.5rem;
        }

    .hero-content p {
        font-size: 0.9rem;
    }

    .search-form {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .search-form input {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .search-form button {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .category-filters {
        justify-content: center;
        gap: 0.4rem;
        flex-wrap: wrap;
        padding: 0 0.5rem;
    }

    .category-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
    }

    .categories {
        padding: 1.5rem 0;
    }

    .categories h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .book-card {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .book-info h4 {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .author {
        font-size: 0.7rem;
    }

    .price {
        font-size: 0.9rem;
    }

    .btn-book-card {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        width: 100%;
    }
}
