/* =============================================================================
   TEXTBOOKS LANDING PAGE STYLES - REFACTORED
   Consolidated and organized CSS with all responsive styles grouped at the end
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* =============================================================================
   1. BASE STYLES & UTILITIES
   ============================================================================= */

/* Page Container */
.textbooks-landing-content {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* =============================================================================
   2. TOP BANNER STYLES
   ============================================================================= */

.top-full-banner {
    width: 100%;
    margin: 0;
}

.top-full-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Exclusive Offer Banner */
.exclusive-offer-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    color: white;
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.exclusive-offer-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    position: relative;
    z-index: 2;
}

.banner-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    gap: 15px;
}

.banner-text i {
    color: #fbbf24;
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

.offer-text {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.banner-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 30px;
    gap: 20px;
}

.banner-icons i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.banner-icons i:nth-child(1) {
    animation-delay: 0s;
}

.banner-icons i:nth-child(2) {
    animation-delay: 0.5s;
}

.banner-icons i:nth-child(3) {
    animation-delay: 1s;
}

.banner-icons i:nth-child(4) {
    animation-delay: 1.5s;
}

.banner-icons i:nth-child(5) {
    animation-delay: 2s;
}

.banner-icons i:hover {
    color: #fbbf24;
    transform: scale(1.2);
}

/* =============================================================================
   3. HERO SECTION
   ============================================================================= */

.hero-section {
    background: transparent;
    color: #333;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    padding: 15px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-textbook-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.hero-textbook-image:hover {
    transform: scale(1.05);
}

/* =============================================================================
   4. BUTTONS
   ============================================================================= */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #1e3a8a;
}

.quick-view-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* =============================================================================
   5. SECTION HEADERS
   ============================================================================= */

.section-header {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 80px;
    margin-left: 20px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: none;
}

.section-header p {
    font-size: 1.3rem;
    color: #666;
    margin: 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* =============================================================================
   6. INLINE BANNERS
   ============================================================================= */

.inline-banner {
    padding: 20px 0 0;
}

.inline-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.inline-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* =============================================================================
   7. BESTSELLERS SLIDER
   ============================================================================= */

.bestsellers-section {
    padding: 60px 0;
    background: transparent;
    max-width: 1400px;
    margin: 0 auto;
}

.bestsellers-scroll-container {
    position: relative;
    padding: 20px 55px;
    max-width: 1400px;
    margin: 0 auto;
}

.bestsellers-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 0 20px;
    align-items: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 1400px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
}

.bestsellers-scroll.no-snap {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

.bestsellers-scroll::-webkit-scrollbar {
    display: none;
}

/* Hide arrows when container can't scroll */
.bestsellers-scroll-container.hide-arrows .scroll-arrow {
    display: none;
}

/* =============================================================================
   8. SLIDER ARROWS
   ============================================================================= */

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.scroll-arrow:hover {
    background: rgba(49, 88, 217, 1);
    transform: translateY(-50%) scale(1.05);
}

.scroll-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.scroll-arrow-left {
    left: 8px;
}

.scroll-arrow-right {
    right: 8px;
}

/* =============================================================================
   9. BESTSELLER CARDS
   ============================================================================= */

.bestsellers-section .bestseller-card {
    min-width: 230px;
    width: 230px;
    flex: 0 0 230px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    scroll-snap-align: start;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transform: translateY(-4px);
    cursor: pointer;
}

.bestseller-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.bestsellers-section .bestseller-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Book Image */
.bestsellers-section .bestseller-card .book-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f9fafb;
}

.bestsellers-section .bestseller-card .book-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

/* Free Tag */
.bestsellers-section .bestseller-card .free-tag-container {
    margin-top: 10px !important;
}

/* Book Details */
.bestsellers-section .book-details {
    padding: 12px 12px 14px;
    background: #ffffff;
    font-family: poppins;
}

.bestsellers-section .book-details h3 {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    color: #0F1111;
    margin: 2px 0 0;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3em * 2);
    max-height: calc(1.3em * 2);
    padding-bottom: 0;
}

.book-details .edition {
    margin: 5px 0;
    font-size: 14px;
}

.book-details .isbn {
    display: block;
    width: 100%;
    font-size: 12px;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    margin: 4px 0;
}

.bestsellers-section .book-details .author {
    font-family: poppins;
    color: #565959;
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0 0 10px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-top: 8px;
    text-overflow: ellipsis;
}

.bestsellers-section .rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.bestsellers-section .stars {
    color: #f39c12;
    font-size: 0.9rem;
}

.bestsellers-section .rating-text {
    display: none;
}

.bestsellers-section .book-details .price {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 8px;
}

.bestsellers-section .price-container {
    margin-bottom: 8px;
    gap: 8px;
    display: flex;
    align-items: center;
    font-family: 'Poppins';
}

/* =============================================================================
   10. PRICING STYLES
   ============================================================================= */

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    position: relative;
}

.free-price {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    padding: 8px 16px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.free-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

/* Bestsellers FREE tag: compact green outline pill */
.bestsellers-section .free-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0b7a3e;
    background: rgba(11, 122, 62, 0.08);
    border: 1px solid rgba(11, 122, 62, 0.35);
    padding: 3px 8px 1px 8px;
    border-radius: 999px;
    letter-spacing: .4px;
    box-shadow: none;
    animation: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =============================================================================
   11. WISHLIST HEART
   ============================================================================= */

.bestseller-card .wishlist-heart {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 10px auto 8px 75%;
    background-color: #dcdada;
    border: 2px solid #838080;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.bestseller-card .wishlist-heart i {
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s ease;
}

.bestseller-card .wishlist-heart.active {
    background-color: #fff;
    border-color: #ff4d4d;
}

.bestseller-card .wishlist-heart.active i {
    color: #ff4d4d;
}

.bestseller-card .wishlist-heart:hover {
    transform: scale(1.1);
    border-color: #ff4d4d;
}

.bestseller-card .wishlist-heart:hover i {
    color: #ff4d4d;
}

/* =============================================================================
   12. BOOK OVERLAY
   ============================================================================= */

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* =============================================================================
   13. SIMPLE IMAGE BANNERS
   ============================================================================= */

.simple-banners {
    padding: 60px 0;
    margin: 40px 0;
}

.banner-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 0 20px;
}

.banner-image {
    flex: 1;
    max-width: 700px;
    transition: transform 0.3s ease;
}

.banner-image:hover {
    transform: translateY(-5px);
}

.banner-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   14. WISHLIST TOOLTIP
   ============================================================================= */

.wishlist-tooltip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #333;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    border-left: 4px solid #28a745;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    animation: tooltipFade 0.3s forwards;
}

.wishlist-tooltip.error {
    border-left-color: #ff4d4d;
}

.wishlist-tooltip i {
    color: #28a745;
}

.wishlist-tooltip.error i {
    color: #ff4d4d;
}

.wishlist-tooltip .wishlist-tooltip-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* =============================================================================
   15. TEXTBOOK IMAGES SECTION
   ============================================================================= */

.textbook-images-section {
    padding: 80px 0;
    background: transparent;
    max-width: 1400px;
    margin: 0 auto;
}

.textbook-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 40px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.textbook-image-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.textbook-image-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.textbook-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.textbook-image-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.textbook-image-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.image-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* =============================================================================
   16. BOOK LINK STYLES
   ============================================================================= */

.book-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.book-link:hover {
    text-decoration: none;
    color: inherit;
}

.book-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.book-link:hover .book-details h3 {
    text-decoration: underline;
    color: #0F1111;
}

.book-link:hover .book-details .author {
    color: #565959;
}

.book-link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 8px;
}

/* =============================================================================
   17. SEE ALL LINK
   ============================================================================= */

.see-all-link {
    position: absolute;
    right: 0;
    top: -65px;
    font-weight: 600;
    text-decoration: underline;
    color: #111;
    font-family: poppins;
    margin-right: 55px !important;
}

.see-all-link:hover {
    text-decoration: none;
}

/* =============================================================================
   18. SLIDER LOADER
   ============================================================================= */

.slider-loader {
    width: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 40px;
    box-sizing: border-box;
    border-radius: 8px;
}

.loader-text h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: none;
}

.loader-text p {
    font-size: 1.3rem;
    color: #666;
    margin: 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    align-self: center;
}

/* =============================================================================
   19. KEYFRAME ANIMATIONS
   ============================================================================= */

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes tooltipFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =============================================================================
   20. RESPONSIVE STYLES - LARGE SCREENS (1280px+)
   ============================================================================= */

@media (min-width: 1280px) {
    .bestsellers-scroll {
        display: flex;
        align-items: stretch;
        gap: 16px;
        padding: 0;
    }

    .bestsellers-section .bestseller-card {
        display: flex;
        flex-direction: column;
        min-width: 0;
        width: calc((100% - (6 * 16px)) / 7);
        flex: 0 0 calc((100% - (6 * 16px)) / 7);
    }
}

/* =============================================================================
   21. RESPONSIVE STYLES - TABLET (1024px)
   ============================================================================= */

@media (max-width: 1024px) {
    .banner-icons {
        display: none;
    }
}

/* =============================================================================
   22. RESPONSIVE STYLES - MOBILE (768px) - CONSOLIDATED
   ============================================================================= */

@media (max-width: 768px) {

    /* --- Banner --- */
    .exclusive-offer-banner {
        height: 70px;
    }

    .banner-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        justify-content: center;
    }

    .banner-text {
        font-size: 0.9rem;
        gap: 10px;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .banner-icons i {
        font-size: 1.2rem;
    }

    /* --- Hero Section --- */
    .hero-section {
        padding: 20px 0 !important;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 15px;
    }

    .hero-text {
        text-align: left;
    }

    .hero-text h1 {
        font-size: 2.5rem !important;
        margin-left: 10px !important;
    }

    .hero-text p {
        font-size: 1.2rem !important;
        margin-left: 10px !important;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-textbook-image {
        max-width: 360px;
        width: 85%;
    }

    /* --- Section Header --- */
    .section-header {
        margin-left: 0 !important;
    }

    .section-header h2 {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    /* --- Inline Banners --- */
    .inline-banner {
        padding: 16px 0 0;
    }

    .inline-banner .container {
        padding: 0 15px;
    }

    .inline-banner img {
        border-radius: 10px;
    }

    /* --- Bestsellers Section --- */
    .bestsellers-section {
        padding: 0 0 20px !important;
    }

    /* --- Slider Container --- */
    .bestsellers-scroll-container {
        padding: 0 11px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .bestsellers-scroll-container .scroll-arrow {
        display: none !important;
    }

    /* --- Slider Scroll --- */
    .bestsellers-scroll {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        padding: 0 16px 15px !important;
        /* Extra bottom padding for scrollbar */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        white-space: normal;
        align-items: stretch;
        /* Show scrollbar on mobile */
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }

    /* Webkit scrollbar styling for mobile */
    .bestsellers-scroll::-webkit-scrollbar {
        height: 4px;
        display: block;
    }

    .bestsellers-scroll::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
        margin: 0 16px;
    }

    .bestsellers-scroll::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .bestsellers-scroll::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }

    /* --- Bestseller Cards (Mobile Product Shelf) --- */
    .bestsellers-section .bestseller-card {
        flex: 0 0 auto !important;
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 8px;
        overflow: visible;
        transform: none !important;
        margin: 0;
        border: none !important;
        box-shadow: none !important;
    }

    .bestsellers-section .bestseller-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* --- Book Image (Mobile) --- */
    .bestsellers-section .bestseller-card .book-image {
        position: relative;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 2/3 !important;
        overflow: hidden;
        border-radius: 4px;
        background: #f5f5f5;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        margin-bottom: 8px !important;
    }

    .bestsellers-section .bestseller-card .book-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
        margin-top: -2px;
        border-radius: 6px !important;
    }

    /* --- Free Tag (Mobile) --- */
    .bestsellers-section .bestseller-card .free-tag-container {
        min-height: 25px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .bestsellers-section .bestseller-card .free-tag-container img {
        width: 70px;
        height: 20px !important;
    }

    /* --- Book Details (Mobile) --- */
    .bestsellers-section .book-details {
        padding: 0 0 !important;
        background: transparent !important;
        text-align: left !important;
        width: 100% !important;
    }

    .bestsellers-section .book-details h3 {
        font-family: 'Inter', sans-serif !important;
        font-size: 13px !important;
        font-weight: 600;
        color: #222;
        margin: 0 0 4px 0 !important;
        line-height: 1.3 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 2.6em;
        max-height: 2.6em !important;
    }

    .bestsellers-section .book-details .author {
        font-size: 11px !important;
        color: #666;
        margin: 0 0 6px 0 !important;
        padding-top: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bestsellers-section .book-details .edition,
    .bestsellers-section .book-details .isbn {
        display: none !important;
    }

    .bestsellers-section .book-details .price {
        font-size: 14px !important;
        font-weight: 600;
        color: #c53700;
        margin: 0 !important;
    }

    /* --- Price Container (Mobile) --- */
    .bestsellers-section .price-container {
        flex-direction: row;
        align-items: baseline;
        gap: 12px;
        margin-bottom: 0 !important;
    }

    .bestsellers-section .price-container .original-price {
        font-size: 11px;
    }

    .bestsellers-section .price-container .free-price {
        font-size: 14px !important;
    }

    .original-price {
        font-size: 10px !important;
        color: #999 !important;
    }

    .free-price {
        background: none !important;
        font-weight: 600 !important;
        color: #c53700 !important;
        padding: 0 !important;
        font-size: 14px !important;
        border: none !important;
        box-shadow: none !important;
        animation: none !important;
        display: inline !important;
    }

    .free-price::before {
        display: none !important;
    }

    /* --- Wishlist Heart (Mobile) --- */
    .bestseller-card .wishlist-heart {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        left: auto !important;
        margin: 0 !important;
        width: 28px !important;
        height: 28px !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid #ddd !important;
        z-index: 10;
        -webkit-tap-highlight-color: transparent;
    }

    /* Disable tap highlight on card and link */
    .bestseller-card,
    .bestseller-card .book-link,
    .bestseller-card .book-image {
        -webkit-tap-highlight-color: transparent;
    }

    .bestseller-card .wishlist-heart i {
        font-size: 14px !important;
    }

    /* Disable hover effects on mobile */
    .bestseller-card .wishlist-heart:hover {
        transform: none !important;
        border-color: #ddd !important;
    }

    .bestseller-card .wishlist-heart:hover i {
        color: #fff !important;
    }

    .bestseller-card .wishlist-heart.active:hover i {
        color: #ff4d4d !important;
    }

    /* --- See All Link (Mobile) --- */
    .see-all-link {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        display: block;
        text-align: right;
        margin-bottom: 10px !important;
        margin-right: 26px !important;
        font-size: 14px;
    }

    /* --- Loader (Mobile) --- */
    .loader-text h1 {
        font-size: 1.4rem !important;
        margin-top: 10px !important;
        margin-bottom: 8px !important;
    }

    .loader-text p {
        font-size: 0.9rem !important;
    }

    .slider-loader {
        padding: 15px 16px !important;
    }

    /* --- Hide Elements (Mobile) --- */
    .book-details .edition,
    .book-details .isbn,
    .bestsellers-section .rating,
    .quick-view-btn,
    .book-overlay,
    .scroll-arrow {
        display: none !important;
    }

    /* --- Book Link (Mobile) --- */
    .book-link {
        -webkit-tap-highlight-color: transparent;
    }

    .book-link:focus {
        outline: none;
        outline-offset: 0;
    }

    /* --- Textbook Images (Mobile) --- */
    .textbook-images-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .textbook-image-item {
        aspect-ratio: 4/3;
    }

    .textbook-image-item img {
        object-fit: fill;
    }

    .image-overlay {
        padding: 30px 20px 20px;
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    }

    .image-overlay h3 {
        font-size: 1.3rem;
    }

    .image-overlay p {
        font-size: 0.9rem;
    }

    /* --- Book Row (Mobile) --- */
    .book-row {
        gap: 10px;
    }

    .book-item img {
        width: 80px;
        height: 120px;
    }

    .top-row {
        margin-bottom: -20px;
    }
}

/* =============================================================================
   23. RESPONSIVE STYLES - SMALL MOBILE (480px)
   ============================================================================= */

@media (max-width: 480px) {

    /* --- Banner --- */
    .exclusive-offer-banner {
        height: 60px;
    }

    .banner-text {
        font-size: 0.8rem;
    }

    .offer-text {
        font-size: 0.75rem;
    }

    /* --- Hero --- */
    .hero-content {
        gap: 24px;
    }

    .hero-text h1 {
        font-size: 2.5rem !important;
        margin-left: 10px !important;
    }

    .hero-text p {
        font-size: 1.1rem !important;
        margin-left: 10px !important;
    }

    .hero-buttons {
        gap: 20px;
    }

    .hero-textbook-image {
        max-width: 300px;
        width: 90%;
    }

    /* --- Buttons --- */
    .btn {
        width: 100%;
        max-width: 240px;
    }

    /* --- Cards --- */
    .bestsellers-section .bestseller-card {
        min-width: unset !important;
        width: 93px !important;
    }

    .bestseller-card {
        min-width: 220px;
    }

    .book-details {
        padding: 15px;
    }

    .book-details h3 {
        font-size: 1.1rem;
    }

    /* --- Inline Banners --- */
    .inline-banner {
        padding: 12px 0 0;
    }

    .inline-banner .container {
        padding: 0 10px;
    }

    .inline-banner img {
        border-radius: 8px;
        transform: scale(1.5);
        margin: 25px 0;
    }

    /* --- Loader --- */
    .loader-text h1 {
        font-size: 2rem;
        font-weight: 700;
    }

    .loader-text p {
        font-size: 1.2rem;
    }

    .see-all-link {
        margin-right: 10px;
    }

    .bestsellers-section .price-container {
        gap: 5px;
    }

    /* --- Headers --- */
    .header-main .container {
        margin-top: 10px;
    }

    .si-footer-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Textbook Images --- */
    .textbook-images-section {
        padding: 60px 0;
    }

    .textbook-images-grid {
        gap: 20px;
        padding: 0 10px;
    }

    .image-overlay {
        padding: 25px 15px 15px;
    }

    .image-overlay h3 {
        font-size: 1.2rem;
    }
}