/* ==========================================================================
   BiblioStash - Professional Stylesheet
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2c3e50;
    background: #ffffff;
    line-height: 1.6;
    font-size: 15px;
}

a {
    color: #1a4f8b;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #d4a017;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: #1a2438;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 32px; margin-bottom: 15px; }
h2 { font-size: 26px; margin-bottom: 12px; }
h3 { font-size: 20px; margin-bottom: 10px; }
h4 { font-size: 16px; margin-bottom: 8px; }

.section-title {
    font-size: 26px;
    color: #1a2438;
    margin: 40px 0 20px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #d4a017;
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 11px 24px;
    background: #1a4f8b;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    text-align: center;
}

.btn:hover {
    background: #143d6f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 79, 139, 0.3);
}

.btn-gold {
    background: #d4a017;
    color: #fff !important;
}

.btn-gold:hover {
    background: #b8890f;
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a4f8b;
    color: #1a4f8b !important;
    padding: 9px 22px;
}

.btn-outline:hover {
    background: #1a4f8b;
    color: #fff !important;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== TOP PROMOTION BANNER ===== */
.top-promo-banner {
    background: linear-gradient(90deg, #d4a017 0%, #f5b820 100%);
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
}

.top-promo-banner a {
    color: #1a2438 !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    font-weight: 500;
}

.promo-label {
    background: #1a2438;
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.promo-cta {
    background: #1a2438;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #1a4f8b !important;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo span {
    color: #d4a017;
}

/* Search bar in navbar */
.nav-search {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: 0.2s;
}

.nav-search:focus-within {
    background: #fff;
    border-color: #1a4f8b;
    box-shadow: 0 0 0 3px rgba(26, 79, 139, 0.1);
}

.nav-search input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.nav-search button {
    padding: 0 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
}

.nav-search button:hover {
    color: #1a4f8b;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-links li a {
    padding: 8px 14px;
    color: #4b5563;
    font-weight: 500;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li a:hover {
    background: #f3f4f6;
    color: #1a4f8b;
}

.nav-links .btn {
    padding: 8px 18px;
    font-size: 14px;
}

/* Cart icon with badge */
.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #d4a017;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a4f8b;
}

/* ===== MEGA MENU (Browse dropdown) ===== */
.mega-menu-wrapper {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 25px;
    min-width: 600px;
    margin-top: 5px;
    z-index: 999;
}

.mega-menu-wrapper:hover .mega-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mega-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #4b5563 !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.mega-menu a:hover {
    background: #f3f4f6;
    color: #1a4f8b !important;
    transform: translateX(3px);
}

.mega-menu .icon {
    font-size: 20px;
}

/* ===== HERO SECTION ===== */
.hero-modern {
    background: linear-gradient(135deg, #1a4f8b 0%, #2c6fb5 50%, #3a82ce 100%);
    color: #fff;
    padding: 80px 20px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

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

.hero-modern h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.15;
}

.hero-modern p {
    color: rgba(255,255,255,0.92);
    font-size: 19px;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero-search input {
    flex: 1;
    padding: 16px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.hero-search button {
    padding: 0 35px;
    background: #d4a017;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

.hero-search button:hover {
    background: #b8890f;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

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

.hero-stat strong {
    font-size: 36px;
    color: #d4a017;
    display: block;
    font-weight: 800;
    line-height: 1;
}

.hero-stat span {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
    display: block;
}

/* ===== CATEGORIES GRID ===== */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.category-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: 0.25s;
    text-decoration: none;
    color: #1a2438 !important;
}

.category-card:hover {
    border-color: #d4a017;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    color: #1a4f8b !important;
}

.category-card .cat-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

.category-card h3 {
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    background: linear-gradient(135deg, #fff8e7 0%, #ffffff 100%);
    padding: 50px 0;
    margin: 50px 0;
    border-top: 3px solid #d4a017;
}

.featured-badge {
    background: #d4a017;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

/* ===== BOOKS GRID ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin: 25px 0;
}

.book-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.25s;
    text-decoration: none;
    color: inherit !important;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #1a4f8b;
}

.book-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #f3f4f6;
}

.book-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-info .badge {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.book-info h3 {
    font-size: 15px;
    color: #1a2438;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-info .author {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 10px;
}

.book-info .price {
    color: #1a4f8b;
    font-size: 20px;
    font-weight: 700;
    margin-top: auto;
}

.book-info .price-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 14px;
    margin-left: 8px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.how-step {
    text-align: center;
    padding: 35px 25px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: 0.25s;
}

.how-step:hover {
    border-color: #1a4f8b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.how-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1a4f8b, #2c6fb5);
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(26, 79, 139, 0.3);
}

.how-step h3 {
    color: #1a2438;
    margin-bottom: 10px;
}

.how-step p {
    color: #6b7280;
    font-size: 14px;
}

/* ===== PRICING CARDS ===== */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.pricing-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: 0.3s;
    position: relative;
}

.pricing-card:hover {
    border-color: #1a4f8b;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.pricing-card.popular {
    border-color: #d4a017;
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(212, 160, 23, 0.2);
}

.pricing-card.popular::before {
    content: '⭐ MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4a017;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-card .price {
    font-size: 44px;
    color: #1a4f8b;
    font-weight: 800;
    margin: 18px 0;
    line-height: 1;
}

.pricing-card .price small {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin: 25px 0;
    padding: 0;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    font-size: 14px;
}

.pricing-card li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #1a4f8b 0%, #2c6fb5 100%);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    border-radius: 15px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(212, 160, 23, 0.1);
    border-radius: 50%;
}

.cta-section h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 12px;
    position: relative;
}

.cta-section p {
    margin: 12px 0 25px;
    font-size: 17px;
    opacity: 0.95;
    position: relative;
}

.cta-section .btn {
    position: relative;
    font-size: 16px;
    padding: 14px 36px;
}

/* ===== FORMS ===== */
.form-container {
    max-width: 480px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.form-container h2 {
    color: #1a2438;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    transition: 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a4f8b;
    box-shadow: 0 0 0 3px rgba(26, 79, 139, 0.1);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

/* ===== DASHBOARD ===== */
.dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    margin-top: 25px;
    margin-bottom: 50px;
}

.dashboard .sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.dashboard .sidebar ul {
    list-style: none;
}

.dashboard .sidebar a {
    display: block;
    padding: 11px 14px;
    color: #4b5563;
    border-radius: 7px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.dashboard .sidebar a:hover {
    background: #f3f4f6;
    color: #1a4f8b;
}

.dashboard .sidebar a.active {
    background: #1a4f8b;
    color: #fff !important;
}

.dashboard main {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* ===== STAT CARDS ===== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.stat-card {
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #1a4f8b;
    transition: 0.25s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.stat-card.gold { border-left-color: #d4a017; }
.stat-card.green { border-left-color: #28a745; }
.stat-card.red { border-left-color: #dc3545; }

.stat-card h4 {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    font-weight: 600;
}

.stat-card .num {
    font-size: 28px;
    color: #1a2438;
    font-weight: 800;
    line-height: 1.1;
}

/* ===== TABLES ===== */
.data-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin: 15px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #f9fafb;
    color: #374151;
    padding: 13px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #e5e7eb;
}

table td {
    padding: 14px 15px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #4b5563;
}

table tr:hover {
    background: #f9fafb;
}

table tr:last-child td {
    border-bottom: none;
}

.action-btn {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    margin-right: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-edit { background: #dbeafe; color: #1e40af !important; }
.btn-edit:hover { background: #1a4f8b; color: #fff !important; }
.btn-delete { background: #fee2e2; color: #991b1b !important; }
.btn-delete:hover { background: #dc3545; color: #fff !important; }
.btn-view { background: #d1fae5; color: #065f46 !important; }
.btn-view:hover { background: #28a745; color: #fff !important; }

/* ===== ADMIN LAYOUT ===== */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #1a2438;
    color: #fff;
    padding: 25px 20px;
}

.admin-sidebar h3 {
    color: #d4a017;
    margin-bottom: 25px;
    font-size: 18px;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar a {
    display: block;
    padding: 11px 14px;
    color: #cbd5e1 !important;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 14px;
    transition: 0.2s;
}

.admin-sidebar a:hover {
    background: #2c3e50;
    color: #fff !important;
}

.admin-sidebar a.active {
    background: #d4a017;
    color: #fff !important;
    font-weight: 600;
}

.admin-content {
    padding: 35px;
    background: #f5f6fa;
}

/* ===== SIDEBAR PROMOTION ===== */
.sidebar-promo {
    background: #fff;
    border: 2px solid #d4a017;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-promo .promo-label {
    background: #d4a017;
    color: #fff;
    padding: 3px 10px;
    font-size: 10px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.sidebar-promo img {
    width: 100%;
    max-width: 180px;
    border-radius: 6px;
    margin: 0 auto;
}

.sidebar-promo h4 {
    color: #1a2438;
    margin: 12px 0 5px;
    font-size: 14px;
}

/* ===== ADSENSE BLOCK ===== */
.adsense-block {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    color: #9ca3af;
    border-radius: 8px;
    font-size: 13px;
}

/* ===== PAGE WITH SIDEBAR ===== */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    margin: 30px 0;
}

/* ===== FOOTER ===== */
footer {
    background: #1a2438;
    color: #cbd5e1;
    padding: 60px 0 25px;
    margin-top: 80px;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    text-align: left;
}

footer h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 22px;
}

footer h3 span {
    color: #d4a017;
}

footer h4 {
    color: #d4a017;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.7;
}

footer a {
    display: block;
    padding: 5px 0;
    color: #cbd5e1 !important;
    font-size: 14px;
    transition: 0.2s;
}

footer a:hover {
    color: #d4a017 !important;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #6b7280;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
    padding: 15px 0;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #6b7280;
}

.breadcrumb a:hover {
    color: #1a4f8b;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #d1d5db;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e5e7eb;
    color: #374151;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #6b7280; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-gold { color: #d4a017; }
.text-primary { color: #1a4f8b; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard .sidebar {
        position: static;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .hero-modern h1 {
        font-size: 36px;
    }
    
    .nav-search {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-top: 12px;
        gap: 0;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links li a {
        padding: 12px;
        border-radius: 0;
    }
    
    .mega-menu {
        position: static;
        transform: none;
        box-shadow: none;
        min-width: 100%;
        padding: 10px 0;
    }
    
    .mega-menu-wrapper:hover .mega-menu {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-modern {
        padding: 50px 20px 60px;
    }
    
    .hero-modern h1 {
        font-size: 28px;
    }
    
    .hero-modern p {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .hero-stat strong {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    footer .container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .form-container {
        margin: 20px 15px;
        padding: 25px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .top-promo-banner {
        font-size: 13px;
    }
    
    table {
        font-size: 13px;
    }
    
    table th, table td {
        padding: 10px 8px;
    }
    
    .cta-section {
        padding: 40px 25px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .book-card img {
        height: 200px;
    }
    
    .book-info {
        padding: 12px;
    }
    
    .book-info h3 {
        font-size: 13px;
    }
    
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ===== SHOWCASE CARDS (Amazon-style) ===== */
.showcase-section {
    padding: 30px 0 10px;
    background: #f3f4f6;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.showcase-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    transition: 0.3s;
    text-decoration: none;
    color: inherit !important;
    display: block;
    overflow: hidden;
    position: relative;
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.showcase-card h3 {
    color: #1a2438;
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 700;
}

.showcase-card .subtitle {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 14px;
}

.showcase-card .card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #f3f4f6;
}

.showcase-card .cta-link {
    color: #d4a017;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.showcase-card:hover .cta-link {
    color: #1a4f8b;
}

.showcase-card .seasonal-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* ===== CUSTOM PAGE / GALLERY PAGE ===== */
.page-banner {
    background: linear-gradient(135deg, #1a4f8b, #2c6fb5);
    color: #fff;
    padding: 70px 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-banner.with-image {
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-banner.with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,79,139,0.85), rgba(44,111,181,0.85));
}

.page-banner > * {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 12px;
    font-weight: 800;
}

.page-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== PHOTO GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    text-decoration: none;
    color: inherit !important;
    border: 1px solid #e5e7eb;
    display: block;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.gallery-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f3f4f6;
    transition: 0.4s;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.05);
}

.gallery-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.gallery-card-content {
    padding: 18px;
}

.gallery-card-content h3 {
    color: #1a2438;
    margin-bottom: 8px;
    font-size: 17px;
}

.gallery-card-content p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: #fff;
    padding: 30px 20px 15px;
    opacity: 0;
    transition: 0.3s;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

/* ===== CAROUSEL/SLIDER ===== */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 30px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: #d4a017;
    border-radius: 4px;
}

.carousel-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 20px;
    color: #1a4f8b;
    z-index: 10;
    transition: 0.2s;
}

.carousel-btn:hover {
    background: #1a4f8b;
    color: #fff;
}

.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }

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

@media (max-width: 480px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
    
    .carousel-item {
        flex: 0 0 250px;
    }
}