/**
 * Books Page - Premium UI/UX Styles
 * Masterfully crafted shopping experience
 */

/* =========================================
   BOOKS HERO SECTION
   ========================================= */

.books-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Animated Background */
.books-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.books-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--color-navy-dark) 0%,
        #1a2744 25%,
        var(--color-navy-blue) 50%,
        #0d1929 100%
    );
}

.books-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 25% 25%, white 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, white 1px, transparent 1px);
    background-size: 50px 50px;
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

.books-hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.3), transparent 70%);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.4), transparent 70%);
    bottom: -10%;
    left: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.2), transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero Content */
.books-hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
}

.books-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-gold-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.books-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.books-hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-light), var(--color-gold-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 4s linear infinite;
}

@keyframes goldShine {
    to { background-position: 200% center; }
}

.books-hero-subtitle {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 2rem;
}

/* Hero Stats */
.books-hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.books-hero-stat {
    text-align: center;
}

.books-hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-gold-primary);
}

.books-hero-stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.books-hero-stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Hero Visual - Book Stack */
.books-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

.books-hero-stack {
    position: relative;
    width: 320px;
    height: 420px;
    transform-style: preserve-3d;
}

.hero-book {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-book img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-book-back {
    top: 0;
    left: 0;
    transform: translateZ(-60px) translateX(-30px) rotateY(15deg);
    opacity: 0.6;
}

.hero-book-middle {
    top: 40px;
    left: 40px;
    transform: translateZ(-30px) translateX(-15px) rotateY(10deg);
    opacity: 0.8;
}

.hero-book-front {
    top: 80px;
    left: 80px;
    transform: translateZ(0) rotateY(5deg);
    z-index: 3;
}

.hero-book-badge {
    position: absolute;
    top: 12px;
    right: -8px;
    background: var(--gradient-gold);
    color: var(--color-navy-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.5);
}

.hero-book-glow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(197, 160, 89, 0.3), transparent 70%);
    filter: blur(30px);
}

/* Hero book hover effects */
.books-hero-stack:hover .hero-book-back {
    transform: translateZ(-80px) translateX(-50px) rotateY(20deg);
}

.books-hero-stack:hover .hero-book-middle {
    transform: translateZ(-40px) translateX(-25px) rotateY(12deg);
}

.books-hero-stack:hover .hero-book-front {
    transform: translateZ(20px) rotateY(-5deg) scale(1.05);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(197, 160, 89, 0.2);
}

/* Scroll Indicator */
.books-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.books-hero-scroll:hover {
    color: var(--color-gold-primary);
}

/* =========================================
   ADVANCED FILTER BAR
   ========================================= */

.books-filter-bar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.books-filter-bar.scrolled {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.books-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

/* Search Box */
.books-search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.books-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.books-search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 3rem;
    background: var(--color-cream-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    color: var(--color-text-dark);
    transition: all 0.3s ease;
}

.books-search-input:focus {
    outline: none;
    background: white;
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}

.books-search-input::placeholder {
    color: var(--color-text-muted);
}

.books-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.books-search-clear:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text-dark);
}

/* Filter Pills */
.books-filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.books-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.books-filter-pill:hover {
    background: rgba(197, 160, 89, 0.08);
    border-color: rgba(197, 160, 89, 0.3);
    color: var(--color-text-dark);
    transform: translateY(-2px);
}

.books-filter-pill.active {
    background: var(--gradient-gold);
    border-color: transparent;
    color: var(--color-navy-dark);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.books-filter-pill.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.5);
}

.books-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.books-filter-pill.active .books-filter-count {
    background: rgba(0, 0, 0, 0.15);
}

/* View Toggle */
.books-view-toggle {
    display: flex;
    background: var(--color-cream-bg);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-left: auto;
}

.books-view-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.books-view-btn:hover {
    color: var(--color-text-dark);
}

.books-view-btn.active {
    background: white;
    color: var(--color-gold-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =========================================
   CATEGORY SECTIONS
   ========================================= */

.books-categories {
    background: linear-gradient(180deg, var(--color-cream-bg) 0%, white 100%);
}

.books-category-section {
    margin-bottom: 4rem;
}

.books-category-section:last-child {
    margin-bottom: 0;
}

.books-category-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.books-category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.05));
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-primary);
    flex-shrink: 0;
}

.books-category-icon.holidays-icon {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.1), rgba(127, 29, 29, 0.05));
    border-color: rgba(127, 29, 29, 0.2);
    color: var(--color-burgundy);
}

.books-category-icon.history-icon {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(30, 58, 138, 0.05));
    border-color: rgba(30, 58, 138, 0.2);
    color: var(--color-navy-blue);
}

.books-category-info {
    flex: 1;
}

.books-category-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.books-category-desc {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0;
}

.books-category-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 2px solid var(--color-gold-primary);
    border-radius: var(--radius-full);
    color: var(--color-gold-primary);
    font-weight: 700;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.books-category-see-all:hover {
    background: var(--color-gold-primary);
    color: var(--color-navy-dark);
    transform: translateX(4px);
}

/* Category Grid */
.books-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* =========================================
   PREMIUM BOOK CARDS
   ========================================= */

.book-card-premium {
    position: relative;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.book-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(197, 160, 89, 0.2);
}

.book-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.book-card-premium:hover::before {
    transform: scaleX(1);
}

/* Book Card Image */
.book-card-image {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(197, 160, 89, 0.08), transparent 50%);
    pointer-events: none;
}

.book-card-cover {
    position: relative;
    width: 140px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.book-card-premium:hover .book-card-cover {
    transform: scale(1.05) translateY(-8px) rotateY(-5deg);
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Book Card Badge */
.book-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: var(--gradient-gold);
    color: var(--color-navy-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
}

/* Quick Add Button */
.book-card-quick-add {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-gold-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.book-card-premium:hover .book-card-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.book-card-quick-add:hover {
    background: var(--color-gold-primary);
    color: white;
    transform: scale(1.1);
}

/* Book Card Content */
.book-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold-primary);
    margin-bottom: 0.5rem;
}

.book-card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.book-card-subtitle {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.book-card-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Book Card Footer */
.book-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.book-card-price {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-navy-blue);
}

.book-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), rgba(197, 160, 89, 0.05));
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-gold-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-card-action:hover {
    background: var(--gradient-gold);
    border-color: transparent;
    color: var(--color-navy-dark);
}

/* =========================================
   COLLECTION GRID
   ========================================= */

.books-collection {
    background: var(--color-cream-bg);
    padding-bottom: 3rem;
}

.books-collection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.books-collection-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text-dark);
}

.books-collection-count {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* List View */
.books-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.books-grid.list-view .book-card-premium {
    flex-direction: row;
    height: auto;
}

.books-grid.list-view .book-card-image {
    width: 180px;
    height: 200px;
    flex-shrink: 0;
}

.books-grid.list-view .book-card-cover {
    width: 100px;
    height: 140px;
}

.books-grid.list-view .book-card-content {
    justify-content: center;
}

.books-grid.list-view .book-card-description {
    -webkit-line-clamp: 3;
}

/* =========================================
   TRUST BAR
   ========================================= */

.books-trust-bar {
    background: var(--color-navy-dark);
}

.books-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .books-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .books-trust-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.books-trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.books-trust-icon {
    width: 48px;
    height: 48px;
    background: rgba(197, 160, 89, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-primary);
    flex-shrink: 0;
}

.books-trust-text {
    display: flex;
    flex-direction: column;
}

.books-trust-text strong {
    color: white;
    font-size: var(--text-sm);
    font-weight: 700;
}

.books-trust-text span {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
}

/* =========================================
   NO RESULTS STATE
   ========================================= */

.books-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-2xl);
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.books-no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-cream-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.books-no-results h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.books-no-results p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.books-no-results button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-navy-dark);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.books-no-results button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 1024px) {
    .books-hero-content > .max-w-7xl > .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .books-hero-text {
        order: 2;
    }
    
    .books-hero-visual {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .books-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .books-hero-stats {
        justify-content: center;
    }
    
    .books-hero-stack {
        width: 280px;
        height: 360px;
    }
    
    .hero-book {
        width: 160px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .books-hero {
        min-height: auto;
        padding-top: 80px;
    }
    
    .books-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .books-search-box {
        max-width: none;
    }
    
    .books-filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .books-view-toggle {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .books-category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .books-category-see-all {
        margin-top: 1rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .books-grid.list-view .book-card-premium {
        flex-direction: column;
    }
    
    .books-grid.list-view .book-card-image {
        width: 100%;
        height: 200px;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */

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

.hero-book-front {
    animation: bookFloat 6s ease-in-out infinite;
}

.hero-book-middle {
    animation: bookFloat 6s ease-in-out infinite;
    animation-delay: -2s;
}

.hero-book-back {
    animation: bookFloat 6s ease-in-out infinite;
    animation-delay: -4s;
}

/* Stagger animation for cards */
.book-card-premium {
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.6s ease forwards;
}

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

.books-category-grid .book-card-premium:nth-child(1) { animation-delay: 0.1s; }
.books-category-grid .book-card-premium:nth-child(2) { animation-delay: 0.2s; }
.books-category-grid .book-card-premium:nth-child(3) { animation-delay: 0.3s; }
.books-category-grid .book-card-premium:nth-child(4) { animation-delay: 0.4s; }
.books-category-grid .book-card-premium:nth-child(5) { animation-delay: 0.5s; }
.books-category-grid .book-card-premium:nth-child(6) { animation-delay: 0.6s; }

/* Loading skeleton */
.book-card-skeleton {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.book-card-skeleton .skeleton-image {
    height: 280px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.book-card-skeleton .skeleton-content {
    padding: 1.5rem;
}

.book-card-skeleton .skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.book-card-skeleton .skeleton-line:last-child {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
