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

/* Top Full-Width Banner */
.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);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Responsive Design for Banner */
@media (max-width: 1024px) {
    .banner-icons {
        display: none;
    }
}

@media (max-width: 768px) {
    .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;
    }
    .loader-text h1 {
        font-size: 2rem !important;
        font-weight: 700 !important;
    }

    .loader-text p {
        font-size: 1.2rem !important;
    }
    .see-all-link {
        margin-right: 10px !important;
    }
}

@media (max-width: 480px) {
    .exclusive-offer-banner {
        height: 60px;
    }

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

    .offer-text {
        font-size: 0.75rem;
    }
    .loader-text h1 {
        font-size: 2rem;
        font-weight: 700;
    }

    .loader-text p {
        font-size: 1.2rem;
    }
    .see-all-link {
        margin-right: 10px;
    }
}

/* Page-specific styles for textbooks landing page */
.textbooks-landing-content {
    padding: 0;
    margin: 0;
    /* Ensure page scrolling works properly */
    overflow-x: hidden;
    overflow-y: auto;
}

/* 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;
}

.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;
}

.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);
}

/* Best Sellers Section Styles */
.bestsellers-section {
    padding: 60px 0;
    background: transparent;
    max-width: 1400px;
    margin: 0 auto;
}

.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;
}

/* Inline full-width banners between sections */
.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);
}

@media (max-width: 768px) {
    .inline-banner { padding: 16px 0 0; }
    .inline-banner .container { padding: 0 15px; }
    .inline-banner img { border-radius: 10px; }
}

@media (max-width: 480px) {
    .inline-banner { padding: 12px 0 0; }
    .inline-banner .container { padding: 0 10px; }
    .inline-banner img { border-radius: 8px; transform: scale(1.5); }
}

.bestsellers-scroll-container {
    position: relative;
    padding: 20px 55px; /* allow slider to use full width; arrows will overlap */
    max-width: 1400px;
    margin: 0 auto;
}

.bestsellers-scroll {
    display: flex;
    gap: 18px; /* default gap */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 20px; /* default side padding */
    align-items: flex-start; /* keep rows aligned at the top when heights differ */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    max-width: 1400px;
    /* Enable touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    /* Ensure vertical scrolling works */
    overflow-y: visible;
    /* Smooth scrolling behavior */
    scroll-snap-type: x proximity;
    /* Prevent text selection during scroll */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Ensure horizontal scrolling works */
    white-space: nowrap;
}

/* Disable snapping and smooth behavior during programmatic scroll to prevent jerk */
.bestsellers-scroll.no-snap {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

.bestsellers-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 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; }
.bestsellers-scroll-container.hide-arrows .scroll-arrow { display: none; }

/* BN-style compact bestseller card */
.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);
}

/* Ensure 7 cards fit in view on large screens */
@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);
    }
}

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

.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; /* don't crop covers */
    padding: 0;
}
/* Heart wrapper */
.bestseller-card .wishlist-heart {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 10px auto 8px 80%;
    background-color: #dcdada;
    border: 2px solid #838080;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s
    ease;
    z-index: 1;
}

/* Heart icon inside the wrapper */
.bestseller-card .wishlist-heart i {
    color: #ffffff; /* default heart color */
    font-size: 16px;
    transition: color 0.3s ease;
}
.bestseller-card .wishlist-heart.active {
    background-color: #fff; /* red background for circle */
    border-color: #ff4d4d;     /* red border */
}
/* Active state (wishlist added) */
.bestseller-card .wishlist-heart.active i {
    color: #ff4d4d; /* red heart when active */
}

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

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


.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;
}

.bestsellers-section .bestseller-card:hover .book-overlay {
    /* No hover effects */
}

.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;
}

.quick-view-btn:hover {
    /* No hover effects */
}

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

.bestsellers-section .book-details h3 {
    /* Amazon-like title styling */
    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; /* allow wrapping */
    word-break: normal;        /* allow natural breaks for better ellipsis */
    overflow-wrap: break-word;
    hyphens: none;
    display: -webkit-box;        /* required for webkit clamp */
    -webkit-line-clamp: 2;    /* clamp to 2 lines */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;            /* hides extra lines */
    text-overflow: ellipsis;   /* show … at the end of line 2 */
    /* Reserve space for two lines so author aligns across cards */
    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 {
    /* Amazon-like byline */
    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';
}

.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;
}

.bestsellers-section .free-price:hover {
    /* No hover effects */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
    }
}

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

/* 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);
}
.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; /* green for success */
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    animation: tooltipFade 0.3s forwards;
}

.wishlist-tooltip.error {
    border-left-color: #ff4d4d; /* red for remove/error */
}

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

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

/* ✨ Arrow (attached to tooltip, pointing upward) */
.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);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 15px;
    }

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

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

    .hero-text p {
        font-size: 1.2rem !important;
        margin-bottom: 30px;
        opacity: 0.9;
        margin-left: 10px !important;
    }
    p {
        display: block;
        margin-block-start: 1em;
        margin-block-end: 1em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        unicode-bidi: isolate;
    }

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

    .hero-section {
        background: transparent;
        color: #333;
        padding: 20px 0 !important;
        text-align: center;
    }
    .hero-textbook-image { max-width: 360px; width: 85%; height: auto; }

    /*.bestsellers-scroll {*/
    /*    gap: 20px;*/
    /*    padding: 20px 15px;*/
    /*}*/
    .bestsellers-scroll {
        align-items: stretch; /* force all children to same height */
    }
    /*.bestseller-card {*/
    /*    min-width: 250px;*/
    /*}*/
    .bestseller-card {
        flex: 1 0 45%; /* 2 cards per row max */
        min-width: 0;  /* allow shrinking */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* optional: distribute content */
    }
    .section-header h2 {
        font-size: 1.5rem;
        font-weight: 700;
    }

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

    .bestsellers-section {
        padding: 60px 20px;
    }

    /* Book Collection Banner responsive */
    .book-row {
        gap: 10px;
    }

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

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

@media (max-width: 480px) {
    /* Hero tighter on small phones */
    .hero-section {
        background: transparent;
        color: #333;
        padding: 20px 0 !important;
        text-align: center;
    }
    .header-main .container{margin-top: 10px;}
    .si-footer-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content { gap: 24px; }
    .hero-text h1 {
        font-size: 2.5rem !important;
        margin-bottom: 20px;
        font-weight: 700;
        margin-left: 10px !important;
    }
    h1 {
        display: block;
        font-size: 2em;
        margin-block-start: 0.67em;
        margin-block-end: 0.67em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        font-weight: bold;
        unicode-bidi: isolate;
    }
    .hero-text p {
        font-size: 1.1rem !important;
        margin-bottom: 30px;
        opacity: 0.9;
        margin-left: 10px !important;
    }
    .hero-buttons {
        display: flex;
        gap: 20px;
    }
    .btn { width: 100%; max-width: 240px; }
    .hero-textbook-image { max-width: 300px; width: 90%; }
    .bestseller-card {
        min-width: 220px;
    }

    .book-details {
        padding: 15px;
    }

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

/* 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;
}

/* Responsive styles for textbook images */
@media (max-width: 768px) {
    .textbook-images-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

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

    .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;
    }
}

@media (max-width: 480px) {
    .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;
    }
}

/* 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;
}

/* Ensure the entire card is clickable */
.bestseller-card {
    cursor: pointer;
}

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

/* Ensure text remains readable on hover */
.book-link:hover .book-details .author {
    color: #565959;
}

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

/* Mobile touch improvements */
@media (max-width: 768px) {
    .book-link {
        -webkit-tap-highlight-color: transparent;
    }
}
.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; }
/* Full-width loader container with white background */
.slider-loader {
    width: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column; /* stack text and spinner vertically */
    align-items: flex-start; /* left-align text block */
    justify-content: center; /* center vertically overall */
    padding: 30px 40px;
    box-sizing: border-box;
    border-radius: 8px;
}

/* Title and subtitle */
.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;
}
/* Spinner centered below text */
.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; /* center spinner horizontally */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.header-offset {
    margin-top: 40px !important;
}
@media (max-width: 510px) {
    .header-offset {
        margin-top: 60px !important;
    }
}