/* =====================================================
   E-BOOK PLATFORM - COMPLETE STYLES
   ===================================================== */

/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* =====================================================
   CSS VARIABLES - THEMING
   ===================================================== */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #0ea5e9;

    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.12);

    /* Footer Light */
    --footer-bg: #f8fafc;
    --footer-text: #475569;
    --footer-heading: #1e293b;
    --footer-border: #e2e8f0;
}

[data-bs-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.4);

    /* Footer Dark */
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --footer-heading: #f1f5f9;
    --footer-border: #334155;
}

/* =====================================================
   BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

main {
    flex: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    /* height: auto; */
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-light {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-light:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-notification {
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Cart Refresh Button */
.cart-refresh-btn {
    transition: transform 0.2s ease;
}

.cart-refresh-btn.spinning i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Related Books Carousel - Dark Mode Fix */
[data-bs-theme="dark"] .related-books-carousel .book-card {
    background-color: var(--bs-card-bg, #1e293b);
}

[data-bs-theme="dark"] .related-books-carousel .card-title,
[data-bs-theme="dark"] .related-books-carousel .text-body {
    color: var(--bs-body-color, #e2e8f0) !important;
}

[data-bs-theme="dark"] .related-books-carousel .text-muted {
    color: var(--bs-secondary-color, #94a3b8) !important;
}

[data-bs-theme="dark"] .book-card {
    background-color: var(--bs-card-bg, #1e293b);
    border-color: var(--bs-border-color, #334155) !important;
}

[data-bs-theme="dark"] .card .card-body .card-title {
    color: var(--bs-body-color) !important;
}

/* Orders Nav Pills */
.nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:not(.active):hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.nav-pills .nav-link.active {
    font-weight: 600;
}

[data-bs-theme="dark"] .nav-pills .nav-link:not(.active) {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .nav-pills .nav-link.text-success {
    color: #10b981 !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link.text-warning {
    color: #f59e0b !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link.text-danger {
    color: #ef4444 !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: var(--primary-light);
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28100, 116, 139, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   FOOTER - THEME AWARE
   ===================================================== */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    color: var(--footer-text);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--footer-heading);
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--footer-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--footer-text);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Social Icons - Modern flat design without borders */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.1));
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* Platform-specific hover colors */
.social-icon-facebook:hover {
    background: #1877f2;
}

.social-icon-instagram:hover {
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
}

.social-icon-twitter:hover {
    background: #000;
}

.social-icon-tiktok:hover {
    background: #000;
}

.social-icon-youtube:hover {
    background: #ff0000;
}

.social-icon-whatsapp:hover {
    background: #25d366;
}

.social-icon-telegram:hover {
    background: #0088cc;
}

.social-icon-linkedin:hover {
    background: #0a66c2;
}

/* Legacy support for old footer-social class */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--footer-text);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-newsletter .form-control,
.newsletter-form .form-control {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.footer-newsletter .form-control::placeholder,
.newsletter-form .form-control::placeholder {
    color: var(--text-muted);
}

.newsletter-form .form-control {
    border-right: none;
}

.newsletter-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--footer-text);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    background: var(--primary-gradient);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.6;
}

.hero-section .btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.hero-section .btn-light:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-book-cover {
    max-height: 400px;
    border-radius: 0.75rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.hero-book-cover:hover {
    transform: translateY(-10px) rotate(-2deg);
}

.hero-book-info {
    margin-top: 1.5rem;
}

.hero-book-info h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.hero-book-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.hero-section .btn-outline-light {
    border-width: 2px;
}

.hero-section .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 3.5rem 0;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 2.5rem 0;
    }
    .hero-title {
        font-size: 1.85rem;
    }
}

/* =====================================================
   SECTION STYLES
   ===================================================== */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

section.bg-light {
    background: var(--bg-secondary) !important;
}

/* =====================================================
   CATEGORY CARDS
   ===================================================== */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card h5 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.category-discount {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* =====================================================
   BOOK CARDS
   ===================================================== */
.book-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.book-card-cover {
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

.book-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7);
}

.book-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.book-card-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.book-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    /* background: var(--primary-gradient); */
    color: white;
    padding: 4rem 0;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-control,
.form-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.input-group-text {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* =====================================================
   TABLES
   ===================================================== */
.table {
    color: var(--text-primary);
    margin-bottom: 0;
}

.table thead th {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.875rem 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: var(--bg-secondary);
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
    color: #1e293b !important;
}

.badge.bg-danger {
    background: var(--danger-color) !important;
}

.badge.bg-secondary {
    background: var(--secondary-color) !important;
}

.badge.bg-info {
    background: var(--info-color) !important;
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
}

.page-link:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* =====================================================
   DROPDOWNS
   ===================================================== */
.dropdown-menu {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow-hover);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 0.375rem 0;
}

/* =====================================================
   ADMIN STYLES
   ===================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Admin Sidebar */
.admin-sidebar {
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 60px);
    padding: 1.5rem 0;
}

.sidebar-heading {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    margin-top: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* =====================================================
   MISC UTILITIES
   ===================================================== */
.border-bottom {
    border-color: var(--border-color) !important;
}

.bg-light {
    background: var(--bg-secondary) !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

/* Loading Spinner */
.spinner-border {
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* Star Rating */
.star-rating {
    color: #fbbf24;
}

.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #e2e8f0;
    padding: 0 2px;
    transition: color 0.2s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #fbbf24;
}

/* ========================================
   ANNOUNCEMENT BAR - MARQUEE TICKER
   ======================================== */
.announcement-bar {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.announcement-wrapper {
    display: flex;
    padding: 0.6rem 0;
}

.announcement-track {
    display: inline-flex;
    animation: marquee-scroll 12s linear infinite;
    padding-left: 100%;
}

.announcement-content {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.announcement-content:hover {
    text-decoration: underline;
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    padding-right: 50px;
}

/* Pause on hover */
.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}

/* Marquee animation - start from right edge, scroll to left until off-screen */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Speed adjustments based on screen size */
@media (max-width: 768px) {
    .announcement-track {
        animation-duration: 8s;
    }

    .announcement-item {
        font-size: 0.8rem;
    }
}

@media (min-width: 1400px) {
    .announcement-track {
        animation-duration: 18s;
    }
}

@media (min-width: 1200px) {
    .announcement-ticker {
        animation-duration: 20s;
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
/* Navbar Responsive Fixes */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar .nav-icons {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar .nav-icons .nav-link {
        padding: 0.5rem;
    }

    /* Hide search on mobile navbar, show in menu */
    .navbar .search-form {
        display: none;
    }

    .admin-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Hero Section Responsive */
.hero-section {
    min-height: 400px;
    padding: 3rem 0;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 300px;
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 250px;
        padding: 1.5rem 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }
}

/* Fix container padding on tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-section .container {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .navbar,
    .footer,
    .btn,
    .admin-sidebar,
    .page-header .btn {
        display: none !important;
    }

    body {
        background: white;
    }

    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* ==========================================================================
   Pagination Fix
   ========================================================================== */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 0.25rem;
}

.pagination svg {
    width: 1rem;
    height: 1rem;
}

.page-link svg {
    width: 1rem;
    height: 1rem;
}

/* Hide the text labels, show only icons on mobile */
.pagination .page-link span {
    display: inline;
}

/* =====================================================
   BUY ME A COFFEE BUTTON
   ===================================================== */
/* Buy Me a Coffee - Fixed Bottom Right - Always Visible */
.buy-me-coffee-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block !important; /* Override any d-none classes */
}

.buy-me-coffee-fixed:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.buy-me-coffee-fixed img {
    display: block;
    height: 45px;
    width: auto;
}

/* Slightly smaller on mobile */
@media (max-width: 576px) {
    .buy-me-coffee-fixed {
        bottom: 15px;
        right: 15px;
    }

    .buy-me-coffee-fixed img {
        height: 38px;
    }
}

/* =====================================================
   WHY CHOOSE US / FEATURE CARDS
   ===================================================== */
.bg-gradient-subtle {
    background: linear-gradient(
        180deg,
        var(--bg-secondary) 0%,
        var(--bg-primary) 100%
    );
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 100%
    );
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

/* =====================================================
   COMPACT PURCHASE OPTIONS
   ===================================================== */
.purchase-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.purchase-option:last-of-type {
    border-bottom: none;
}

.purchase-option:hover {
    background-color: var(--bg-tertiary);
}

.purchase-option input[type="radio"]:checked ~ div {
    color: var(--primary-color);
}

.purchase-option .form-check-input {
    margin-top: 0;
    width: 1.1rem;
    height: 1.1rem;
}

.purchase-option .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* =====================================================
   CONTENT FORMATTING FOR POLICY PAGES
   ===================================================== */
.content-formatted {
    word-wrap: break-word;
    line-height: 1.8;
    color: var(--text-primary);
}

/* For plain text content (when nl2br is used) */
.content-formatted.plain-text {
    white-space: pre-line;
}

.content-formatted h1,
.content-formatted h2,
.content-formatted h3,
.content-formatted h4,
.content-formatted h5,
.content-formatted h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.content-formatted h1 {
    font-size: 1.75rem;
}

.content-formatted h2 {
    font-size: 1.5rem;
}

.content-formatted h3 {
    font-size: 1.25rem;
}

.content-formatted p {
    margin-bottom: 1rem;
}

.content-formatted ul,
.content-formatted ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-formatted li {
    margin-bottom: 0.5rem;
}

.content-formatted strong,
.content-formatted b {
    font-weight: 600;
    color: var(--text-primary);
}

.content-formatted a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-formatted a:hover {
    color: var(--primary-hover);
}

.content-formatted blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.content-formatted code {
    background: var(--bg-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: var(--primary-color);
}

.content-formatted pre {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.content-formatted pre code {
    background: transparent;
    padding: 0;
}

/* =====================================================
   LARGE BOOK PLACEHOLDER (DETAIL PAGE)
   ===================================================== */
.book-cover-large {
    aspect-ratio: 2/3;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

.book-placeholder-large {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    gap: 1rem;
}

.book-placeholder-large i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.7);
}

.book-placeholder-large .book-placeholder-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 0 1rem;
    max-width: 80%;
}

/* =====================================================
   FEATURED BOOK HERO CARDS
   ===================================================== */

.featured-book-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.featured-book-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.featured-book-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.featured-book-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.featured-book-info {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

.featured-book-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-book-author {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.featured-book-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-book-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.featured-book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .featured-book-card {
        height: 250px;
    }

    .featured-book-info {
        padding: 1rem;
    }

    .featured-book-title {
        font-size: 1rem;
    }

    .featured-book-price {
        font-size: 1.25rem;
    }
}

/* =====================================================
   PRICE WITH DISCOUNT
   ===================================================== */

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.875em;
    margin-right: 0.5rem;
}

.price-discounted {
    color: #10b981;
    font-weight: 700;
}

/* Also for book detail page */
.book-detail-price .price-original {
    font-size: 1.25rem;
}

.book-detail-price .price-discounted {
    font-size: 1.75rem;
    color: #10b981;
}

/* =====================================================
   STICKY FILTER SIDEBAR
   ===================================================== */

.sticky-sidebar {
    position: sticky;
    top: 5rem; /* Account for navbar height */
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

@media (max-width: 991px) {
    .sticky-sidebar {
        position: static;
        max-height: none;
    }
}

/* Custom scrollbar for sticky sidebar */
.sticky-sidebar::-webkit-scrollbar {
    width: 4px;
}

.sticky-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sticky-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* =====================================================
   SOLD OUT BOOK STYLING
   ===================================================== */

/* Sold Out Book Card */
.book-card-sold-out {
    opacity: 0.7;
}

.book-card-sold-out .book-card-cover img {
    filter: grayscale(100%);
}

.book-card-sold-out .book-placeholder {
    filter: grayscale(100%);
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sold-out-badge {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Disabled purchase option */
.purchase-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.purchase-option.disabled:hover {
    background-color: transparent;
}

.purchase-option input[type="radio"]:disabled {
    cursor: not-allowed;
}

/* =====================================================
   OWL CAROUSEL GLOBAL CUSTOMIZATION
   ===================================================== */

.owl-carousel .owl-stage-outer {
    overflow: visible;
}

.owl-carousel .owl-stage {
    display: flex;
}

.owl-carousel .owl-item {
    display: flex;
}

.owl-carousel .owl-item > div {
    width: 100%;
}

/* Owl Dots - Dark Theme Compatible */
.owl-theme .owl-dots .owl-dot span {
    background: var(--border-color, #4b5563);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--primary, #6366f1);
}

/* Owl Nav - Custom Styling */
.owl-theme .owl-nav {
    margin-top: 1rem;
}

.owl-theme .owl-nav button {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    margin: 0 5px;
}

.owl-theme .owl-nav button:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* =====================================================
   DROPDOWN SHARED STYLES
   ===================================================== */

.cart-dropdown,
.notification-dropdown {
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
}

.dropdown-header-custom {
    background: var(--bg-secondary);
}

.dropdown-item-custom {
    color: var(--text-primary);
    transition: background-color 0.15s ease;
    position: relative;
}

.dropdown-item-custom:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-item-custom.unread {
    background: rgba(99, 102, 241, 0.1);
}

.dropdown-item-custom.unread:hover {
    background: rgba(99, 102, 241, 0.15);
}

.dropdown-total {
    background: var(--bg-tertiary);
}

.dropdown-actions {
    background: var(--bg-secondary);
}

/* Notification specific */
.item-icon .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 0.5rem;
    align-self: center;
}

/* Custom scrollbar for dropdown lists */
.dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.dropdown-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.dropdown-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.dropdown-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.nav-link.active {
    background-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
}

/* =====================================================
   HERO WAVE DIVIDER - THEME AWARE
   ===================================================== */
.hero-wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 10;
}

.hero-wave-divider svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* Light mode - wave matches light content background */
.hero-wave-fill {
    fill: #f8fafc;
}

/* Dark mode - wave matches dark content background */
[data-bs-theme="dark"] .hero-wave-fill {
    fill: #1e293b;
}

/* =====================================================
   HERO ANIMATED CIRCLES
   ===================================================== */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero-circle-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
    animation: hero-float 8s ease-in-out infinite;
}

.hero-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation: hero-float 6s ease-in-out infinite reverse;
}

.hero-circle-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 5%;
    animation: hero-float 7s ease-in-out infinite 1s;
}

@keyframes hero-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(10px, -15px) scale(1.02);
    }
    50% {
        transform: translate(-5px, 10px) scale(0.98);
    }
    75% {
        transform: translate(-10px, -5px) scale(1.01);
    }
}

/* =====================================================
   ADMIN ACTION BUTTONS - DARK MODE FIX
   ===================================================== */
[data-bs-theme="dark"] .btn-group.btn-group-sm > a.btn,
[data-bs-theme="dark"] .btn-group.btn-group-sm > form > button.btn,
[data-bs-theme="dark"] .btn-group.btn-group-sm .btn {
    background-color: transparent !important;
}

[data-bs-theme="dark"] .btn-group.btn-group-sm .btn-outline-primary {
    color: #818cf8 !important;
    border-color: #4b5563 !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .btn-group.btn-group-sm .btn-outline-primary:hover {
    background-color: #818cf8 !important;
    border-color: #818cf8 !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .btn-group.btn-group-sm .btn-outline-success {
    color: #34d399 !important;
    border-color: #4b5563 !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .btn-group.btn-group-sm .btn-outline-success:hover {
    background-color: #34d399 !important;
    border-color: #34d399 !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .btn-group.btn-group-sm .btn-outline-warning {
    color: #fbbf24 !important;
    border-color: #4b5563 !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .btn-group.btn-group-sm .btn-outline-warning:hover {
    background-color: #fbbf24 !important;
    border-color: #fbbf24 !important;
    color: #1e293b !important;
}

[data-bs-theme="dark"] .btn-group.btn-group-sm .btn-outline-danger {
    color: #f87171 !important;
    border-color: #4b5563 !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .btn-group.btn-group-sm .btn-outline-danger:hover {
    background-color: #f87171 !important;
    border-color: #f87171 !important;
    color: #fff !important;
}

/* Ensure forms inside btn-group don't add background */
[data-bs-theme="dark"] .btn-group form,
[data-bs-theme="dark"] .btn-group .d-inline {
    background: transparent !important;
}

/* Table row action buttons outside btn-group */
[data-bs-theme="dark"] .table td .btn-outline-primary,
[data-bs-theme="dark"] .table td .btn-outline-success,
[data-bs-theme="dark"] .table td .btn-outline-warning,
[data-bs-theme="dark"] .table td .btn-outline-danger {
    background-color: transparent !important;
}

/* ========================================
   FADE-IN ANIMATIONS
   ======================================== */

/* Base animation class */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-stagger.visible > *:nth-child(1) {
    transition-delay: 0.1s;
}
.fade-in-stagger.visible > *:nth-child(2) {
    transition-delay: 0.2s;
}
.fade-in-stagger.visible > *:nth-child(3) {
    transition-delay: 0.3s;
}
.fade-in-stagger.visible > *:nth-child(4) {
    transition-delay: 0.4s;
}
.fade-in-stagger.visible > *:nth-child(5) {
    transition-delay: 0.5s;
}
.fade-in-stagger.visible > *:nth-child(6) {
    transition-delay: 0.6s;
}
.fade-in-stagger.visible > *:nth-child(7) {
    transition-delay: 0.7s;
}
.fade-in-stagger.visible > *:nth-child(8) {
    transition-delay: 0.8s;
}

.fade-in-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in from left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in animation */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   SKELETON LOADERS
   ======================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--skeleton-base, rgba(255, 255, 255, 0.05)) 25%,
        var(--skeleton-shine, rgba(255, 255, 255, 0.1)) 50%,
        var(--skeleton-base, rgba(255, 255, 255, 0.05)) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}

[data-bs-theme="light"] .skeleton {
    --skeleton-base: rgba(0, 0, 0, 0.06);
    --skeleton-shine: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .skeleton {
    --skeleton-base: rgba(255, 255, 255, 0.05);
    --skeleton-shine: rgba(255, 255, 255, 0.1);
}

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

/* Skeleton Book Card */
.skeleton-book-card {
    background: var(--bs-body-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
}

[data-bs-theme="light"] .skeleton-book-card {
    border-color: rgba(0, 0, 0, 0.08);
}

.skeleton-book-cover {
    width: 100%;
    aspect-ratio: 3/4;
}

.skeleton-book-title {
    height: 1.2rem;
    width: 80%;
    margin-bottom: 0.5rem;
}

.skeleton-book-author {
    height: 0.9rem;
    width: 60%;
    margin-bottom: 0.75rem;
}

.skeleton-book-price {
    height: 1.1rem;
    width: 40%;
}

/* Skeleton Bundle Card */
.skeleton-bundle-card {
    background: var(--bs-body-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
}

[data-bs-theme="light"] .skeleton-bundle-card {
    border-color: rgba(0, 0, 0, 0.08);
}

.skeleton-bundle-cover {
    width: 100%;
    aspect-ratio: 16/10;
    margin-bottom: 1rem;
}

.skeleton-bundle-title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 0.75rem;
}

.skeleton-bundle-desc {
    height: 0.9rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-bundle-price {
    height: 1.3rem;
    width: 35%;
    margin-top: 1rem;
}

/* Skeleton Category Card */
.skeleton-category-card {
    background: var(--bs-body-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

[data-bs-theme="light"] .skeleton-category-card {
    border-color: rgba(0, 0, 0, 0.08);
}

.skeleton-category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.skeleton-category-name {
    height: 1.1rem;
    width: 70%;
    margin: 0 auto 0.5rem;
}

.skeleton-category-count {
    height: 0.85rem;
    width: 50%;
    margin: 0 auto;
}

/* Skeleton Featured Bundle */
.skeleton-featured-bundle {
    background: var(--bs-body-bg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
}

.skeleton-featured-cover {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16/10;
    border-radius: 0.75rem;
}

.skeleton-featured-badge {
    height: 1.5rem;
    width: 120px;
    margin-bottom: 1rem;
    border-radius: 1rem;
}

.skeleton-featured-title {
    height: 2rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-featured-desc {
    height: 1rem;
    width: 90%;
    margin-bottom: 0.5rem;
}

.skeleton-featured-price {
    height: 2.5rem;
    width: 30%;
    margin-top: 1.5rem;
}

.skeleton-featured-btn {
    height: 3rem;
    width: 140px;
    border-radius: 0.5rem;
    margin-top: 1rem;
}
