/* ===== BookNest - Main Stylesheet ===== */
:root {
    --primary: #1A3A5C;
    --primary-light: #2D5A8A;
    --accent: #E8702A;
    --accent-light: #F59042;
    --gold: #D4A017;
    --text-dark: #1A1A2E;
    --text-mid: #4A4A6A;
    --text-light: #8A8AA0;
    --bg-cream: #FDF8F0;
    --bg-light: #F5F0E8;
    --bg-white: #FFFFFF;
    --border: #E8E0D0;
    --success: #2E7D32;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(26,58,92,0.08);
    --shadow-md: 0 4px 20px rgba(26,58,92,0.12);
    --shadow-lg: 0 8px 40px rgba(26,58,92,0.16);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--bg-cream); margin: 0; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    padding: 7px 0;
}
.top-bar a { color: rgba(255,255,255,0.85); text-decoration: none; }
.top-bar a:hover { color: #fff; }

/* ===== NAVBAR ===== */
.main-navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    border-bottom: 2px solid var(--border);
}
.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
.brand-text { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--primary); line-height: 1; }
.brand-accent { color: var(--accent); }
.navbar-toggler { border: none; padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }

/* Search */
.search-form { display: flex; align-items: center; background: var(--bg-light); border: 2px solid var(--border); border-radius: 50px; overflow: hidden; width: 420px; transition: border-color 0.2s, box-shadow 0.2s; }
.search-form:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(45,90,138,0.1); }
.search-cat { border: none; background: transparent; font-size: 0.8rem; padding: 8px 12px; color: var(--text-mid); width: 120px; cursor: pointer; }
.search-cat:focus { box-shadow: none; outline: none; }
.search-input { border: none; background: transparent; padding: 8px 12px; font-size: 0.88rem; flex: 1; }
.search-input:focus { box-shadow: none; outline: none; }
.search-btn { background: var(--accent); color: #fff; border: none; border-radius: 0 50px 50px 0; padding: 8px 20px; font-size: 0.9rem; }
.search-btn:hover { background: var(--accent-light); }

/* Nav Icons */
.nav-icon-btn { display: flex; flex-direction: column; align-items: center; color: var(--text-mid); text-decoration: none; font-size: 0.75rem; gap: 2px; transition: color 0.2s; }
.nav-icon-btn i { font-size: 1.2rem; }
.nav-icon-btn:hover { color: var(--accent); }
.icon-label { font-size: 0.65rem; letter-spacing: 0.03em; }
.cart-icon-wrap { position: relative; }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--accent); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Category Nav */
.category-nav { background: var(--bg-white); border-bottom: 1px solid var(--border); }
.cat-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow-x: auto; }
.cat-nav-list li a { display: block; padding: 10px 18px; font-size: 0.82rem; font-weight: 500; color: var(--text-mid); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: all 0.2s; }
.cat-nav-list li a:hover, .cat-nav-list li a.active { color: var(--primary); border-bottom-color: var(--accent); }

/* Mobile Nav */
#mobileNav .nav-link { color: var(--text-mid); font-size: 0.9rem; padding: 8px 4px; border-bottom: 1px solid var(--border); }
#mobileNav .nav-link:hover, #mobileNav .nav-link.active { color: var(--accent); }

/* ===== HERO ===== */
.hero-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1E4D7A 100%); color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; inset: 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.03'%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-badge { display: inline-block; background: rgba(232,112,42,0.2); border: 1px solid rgba(232,112,42,0.4); color: var(--accent-light); padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero-title span { color: var(--accent-light); }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 30px; max-width: 480px; }
.hero-stats { display: flex; gap: 28px; margin-bottom: 35px; }
.stat-item h4 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; margin: 0; color: var(--accent-light); }
.stat-item p { margin: 0; font-size: 0.75rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary { background: var(--accent); color: #fff; border: none; padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.25s; }
.btn-hero-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,112,42,0.4); }
.btn-hero-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); padding: 12px 28px; border-radius: 50px; font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: all 0.25s; }
.btn-hero-secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

/* Hero Books Visual */
.hero-books-visual { position: relative; height: 350px; display: flex; align-items: center; justify-content: center; }
.floating-book { position: absolute; border-radius: 6px; box-shadow: 6px 6px 20px rgba(0,0,0,0.3); transition: transform 0.3s; }
.floating-book:nth-child(1) { width: 120px; height: 170px; left: 60px; top: 60px; transform: rotate(-8deg); }
.floating-book:nth-child(2) { width: 140px; height: 195px; left: 140px; top: 40px; transform: rotate(3deg); z-index: 2; }
.floating-book:nth-child(3) { width: 115px; height: 160px; left: 240px; top: 80px; transform: rotate(-5deg); }
.floating-book:nth-child(4) { width: 125px; height: 175px; left: 110px; top: 185px; transform: rotate(6deg); }
.floating-book:nth-child(5) { width: 110px; height: 155px; left: 230px; top: 195px; transform: rotate(-3deg); }
@keyframes floatUp { 0%,100%{transform:rotate(-8deg) translateY(0)} 50%{transform:rotate(-8deg) translateY(-12px)} }
.floating-book:nth-child(1) { animation: floatUp 4s ease-in-out infinite; }
.floating-book:nth-child(2) { animation: floatUp 5s ease-in-out 0.5s infinite; }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-white); }
.section-header { margin-bottom: 40px; }
.section-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.section-subtitle { color: var(--text-mid); font-size: 0.95rem; }

/* ===== BOOK CARD ===== */
.book-card { background: var(--bg-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.28s; border: 1px solid var(--border); height: 100%; }
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.book-cover { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.book-cover-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: #fff; text-align: center; padding: 16px; position: relative; }
.book-cover-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%); }
.cover-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.cover-author { font-size: 0.75rem; opacity: 0.85; }
.cover-deco { position: absolute; bottom: 0; left: 0; right: 0; height: 6px; background: rgba(0,0,0,0.2); }
.book-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; }
.badge-bestseller { background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-new { background: var(--success); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.badge-discount { background: var(--gold); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.book-wishlist { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: rgba(255,255,255,0.95); border: none; border-radius: 50%; cursor: pointer; font-size: 0.85rem; color: var(--text-light); transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.book-wishlist:hover { color: #e74c3c; background: #fff; }
.book-info { padding: 14px 16px; }
.book-category { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 5px; }
.book-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; line-height: 1.3; }
.book-title a { text-decoration: none; color: inherit; }
.book-title a:hover { color: var(--accent); }
.book-author { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 8px; }
.book-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.stars { color: var(--gold); font-size: 0.75rem; }
.rating-val { font-size: 0.78rem; font-weight: 600; color: var(--text-mid); }
.review-count { font-size: 0.72rem; color: var(--text-light); }
.book-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-current { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }
.price-mrp { font-size: 0.82rem; color: var(--text-light); text-decoration: line-through; }
.price-discount { font-size: 0.78rem; font-weight: 600; color: var(--success); }
.btn-add-cart { width: 100%; background: var(--primary); color: #fff; border: none; padding: 9px; border-radius: var(--radius-sm); font-size: 0.83rem; font-weight: 600; cursor: pointer; transition: all 0.22s; letter-spacing: 0.02em; }
.btn-add-cart:hover { background: var(--accent); }

/* ===== PROMO BANNER ===== */
.promo-banner { background: linear-gradient(135deg, #D4A017 0%, #F0B830 100%); color: var(--text-dark); padding: 50px 0; }
.promo-banner .promo-text h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; }

/* ===== FEATURES ===== */
.feature-card { text-align: center; padding: 32px 20px; }
.feature-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; margin: 0 auto 16px; }
.feature-card h5 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.84rem; color: var(--text-mid); margin: 0; line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonial-card { background: var(--bg-white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.testimonial-stars { color: var(--gold); margin-bottom: 12px; font-size: 0.9rem; }
.testimonial-text { font-size: 0.9rem; line-height: 1.7; color: var(--text-mid); margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: #fff; flex-shrink: 0; }
.testimonial-name { font-weight: 600; font-size: 0.88rem; }
.testimonial-location { font-size: 0.75rem; color: var(--text-light); }

/* ===== PRODUCTS PAGE ===== */
.filter-sidebar { background: var(--bg-white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.filter-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); border-bottom: 2px solid var(--accent); padding-bottom: 10px; }
.filter-group { margin-bottom: 24px; }
.filter-group h6 { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mid); margin-bottom: 12px; }
.filter-group .form-check-label { font-size: 0.87rem; cursor: pointer; }
.price-range-input { display: flex; gap: 8px; align-items: center; font-size: 0.83rem; }
.price-range-input input { width: 80px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.83rem; }
.sort-bar { background: var(--bg-white); border-radius: var(--radius-sm); padding: 14px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.result-count { font-size: 0.88rem; color: var(--text-mid); }
.result-count span { font-weight: 700; color: var(--text-dark); }

/* ===== PRODUCT DETAIL ===== */
.product-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.product-cover-img { width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: #fff; text-align: center; padding: 24px; }
.product-cover-img .cover-title { font-size: 1.4rem; }
.product-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.product-author { font-size: 1rem; color: var(--text-mid); margin-bottom: 16px; }
.product-price-block { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; }
.product-price { font-size: 2rem; font-weight: 700; color: var(--text-dark); }
.product-mrp { font-size: 1rem; color: var(--text-light); text-decoration: line-through; }
.product-save { font-size: 0.9rem; font-weight: 600; color: var(--success); }
.product-meta { background: var(--bg-light); border-radius: var(--radius-sm); padding: 16px; margin: 20px 0; }
.meta-row { display: flex; gap: 8px; font-size: 0.85rem; padding: 4px 0; }
.meta-label { font-weight: 600; color: var(--text-dark); min-width: 100px; }
.meta-value { color: var(--text-mid); }
.qty-selector { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-btn { background: var(--bg-light); border: none; padding: 8px 14px; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.qty-btn:hover { background: var(--border); }
.qty-input { border: none; text-align: center; width: 48px; font-size: 0.95rem; font-weight: 600; padding: 8px 0; }
.qty-input:focus { outline: none; }
.btn-buy-now { background: var(--accent); color: #fff; border: none; padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: all 0.22s; }
.btn-buy-now:hover { background: var(--accent-light); color: #fff; }
.btn-add-cart-lg { background: var(--primary); color: #fff; border: none; padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: all 0.22s; }
.btn-add-cart-lg:hover { background: var(--primary-light); color: #fff; }
.delivery-info { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; padding: 16px; background: #f0fff4; border-radius: var(--radius-sm); border: 1px solid #c3e6cb; }
.delivery-row { font-size: 0.85rem; display: flex; gap: 8px; align-items: center; }
.delivery-row i { color: var(--success); }

/* ===== CART PAGE ===== */
.cart-table { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border); }
.cart-table table { margin: 0; }
.cart-table th { background: var(--bg-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mid); font-weight: 700; border: none; padding: 14px 16px; }
.cart-table td { padding: 16px; vertical-align: middle; border-color: var(--border); }
.cart-book-cover { width: 60px; height: 85px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.6rem; font-family: var(--font-display); text-align: center; padding: 6px; flex-shrink: 0; }
.cart-book-title { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; }
.cart-book-author { font-size: 0.78rem; color: var(--text-mid); }
.cart-qty-input { width: 60px; text-align: center; border: 1px solid var(--border); border-radius: 6px; padding: 5px; font-size: 0.88rem; }
.cart-remove { color: var(--text-light); font-size: 0.8rem; cursor: pointer; border: none; background: none; padding: 4px 8px; border-radius: 4px; transition: all 0.2s; }
.cart-remove:hover { color: #e74c3c; background: #fef2f2; }
.order-summary { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 24px; }
.order-summary h5 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 12px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 5px 0; }
.summary-row.total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.coupon-input { display: flex; gap: 8px; margin: 16px 0; }
.coupon-input input { flex: 1; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.85rem; }
.coupon-input button { border: none; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.83rem; cursor: pointer; }
.btn-checkout { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; border: none; padding: 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem; width: 100%; cursor: pointer; transition: all 0.22s; text-decoration: none; display: block; text-align: center; }
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,112,42,0.4); color: #fff; }

/* ===== CHECKOUT PAGE ===== */
.checkout-section-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--primary); padding-bottom: 10px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.checkout-card { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 24px; margin-bottom: 20px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.form-control, .form-select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; padding: 10px 14px; }
.form-control:focus, .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(45,90,138,0.1); }
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 30px; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; background: var(--border); color: var(--text-mid); transition: all 0.3s; }
.step.active .step-num { background: var(--accent); color: #fff; }
.step.done .step-num { background: var(--success); color: #fff; }
.step-label { font-size: 0.78rem; color: var(--text-mid); font-weight: 500; }
.step.active .step-label { color: var(--accent); font-weight: 700; }
.step-line { flex: 1; height: 2px; background: var(--border); max-width: 40px; }
.payment-option { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; transition: all 0.2s; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.payment-option:hover { border-color: var(--primary-light); background: var(--bg-light); }
.payment-option.selected { border-color: var(--primary); background: rgba(26,58,92,0.04); }
.payment-option input[type=radio] { accent-color: var(--primary); }
.payment-option-label { font-size: 0.88rem; font-weight: 600; }
.payment-icon-set { display: flex; gap: 6px; margin-left: auto; }
.payment-icon-set i { font-size: 1.4rem; color: var(--text-mid); }

/* ===== ABOUT PAGE ===== */
.about-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; padding: 80px 0; }
.about-hero h1 { font-family: var(--font-display); font-size: 3rem; font-weight: 900; }
.team-card { background: var(--bg-white); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; color: #fff; margin: 0 auto 16px; }
.team-card h5 { font-family: var(--font-display); font-weight: 700; margin-bottom: 4px; }
.team-card p { font-size: 0.83rem; color: var(--text-mid); }
.stat-card { background: var(--bg-white); border-radius: var(--radius); padding: 32px 20px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stat-card h3 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: var(--accent); margin-bottom: 4px; }
.stat-card p { font-size: 0.88rem; color: var(--text-mid); margin: 0; }

/* ===== ACCOUNT PAGE ===== */
.account-sidebar { background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow: hidden; }
.account-user-block { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 28px 20px; text-align: center; }
.account-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; margin: 0 auto 12px; border: 3px solid rgba(255,255,255,0.3); }
.account-nav { list-style: none; padding: 16px 0; margin: 0; }
.account-nav li a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 0.88rem; color: var(--text-mid); text-decoration: none; transition: all 0.2s; }
.account-nav li a:hover, .account-nav li a.active { background: var(--bg-light); color: var(--accent); border-left: 3px solid var(--accent); }
.account-nav li a i { width: 16px; }
.success-page { text-align: center; padding: 60px 20px; }
.success-icon { width: 100px; height: 100px; background: linear-gradient(135deg, #2E7D32, #4CAF50); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; margin: 0 auto 24px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.8); }
.footer-top { padding: 56px 0 40px; }
.footer-brand { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; }
.footer-brand span { color: var(--accent-light); }
.footer-desc { font-size: 0.84rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-heading { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.84rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all 0.2s; font-size: 0.9rem; text-decoration: none; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.app-btn { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); font-size: 0.78rem; padding: 7px 14px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; transition: background 0.2s; }
.app-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.newsletter-form .form-control { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form .form-control:focus { background: rgba(255,255,255,0.15); box-shadow: none; border-color: var(--accent-light); }
.btn-newsletter { background: var(--accent); color: #fff; border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 18px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.footer-trust { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.footer-payments { display: flex; gap: 10px; }
.payment-icon { font-size: 1.6rem; color: rgba(255,255,255,0.5); }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 16px 0; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.78rem; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.9); }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 50%; font-size: 1rem; cursor: pointer; box-shadow: var(--shadow-md); transition: all 0.2s; display: none; z-index: 999; }
.back-to-top:hover { background: var(--accent); transform: translateY(-2px); }
.back-to-top.show { display: flex; align-items: center; justify-content: center; }

/* ===== BREADCRUMB ===== */
.page-breadcrumb { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 12px 0; }
.page-breadcrumb .breadcrumb { margin: 0; font-size: 0.82rem; }
.breadcrumb-item a { color: var(--text-mid); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-dark); font-weight: 500; }

/* ===== TABS ===== */
.product-tabs .nav-link { color: var(--text-mid); font-weight: 500; font-size: 0.9rem; border: none; border-bottom: 3px solid transparent; padding: 10px 20px; }
.product-tabs .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* ===== ALERTS ===== */
.alert { font-size: 0.88rem; border-radius: var(--radius-sm); }
.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart i { font-size: 4rem; color: var(--border); margin-bottom: 20px; }
.empty-cart h4 { font-family: var(--font-display); color: var(--text-mid); }

/* ===== BADGE UTILS ===== */
.stock-low { color: var(--accent); font-size: 0.78rem; font-weight: 600; }
.stock-ok { color: var(--success); font-size: 0.78rem; font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media(max-width: 991px) {
    .hero-section { padding: 50px 0; }
    .hero-books-visual { display: none; }
    .search-form { display: none !important; }
}
@media(max-width: 768px) {
    .section { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-stats { gap: 16px; }
    .stat-item h4 { font-size: 1.4rem; }
}

/* ─── Auth Pages ─────────────────────────────────────────────────────────── */
.auth-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
    border: 1px solid var(--border);
}
.auth-header { text-align:center; margin-bottom:28px; }
.auth-icon {
    width:64px; height:64px; background:var(--accent); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:1.6rem; color:#fff; margin:0 auto 16px;
}
.auth-header h2 { font-family:'Playfair Display',serif; font-weight:700; font-size:1.6rem; margin-bottom:6px; }
.auth-header p { color:var(--text-light); font-size:.9rem; margin:0; }
.auth-form .form-label { font-weight:600; font-size:.85rem; color:var(--text-mid); }
.auth-form .input-group-text { background:var(--bg-light); border-color:var(--border); color:var(--text-light); }
.auth-form .form-control:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(139,38,53,.12); }
.btn-auth-primary {
    background: var(--accent); color:#fff; border:none;
    padding:12px 28px; border-radius:12px; font-weight:600; font-size:.95rem;
    transition: all .2s;
}
.btn-auth-primary:hover { background:var(--primary); color:#fff; transform:translateY(-1px); }
.auth-link { color:var(--accent); font-weight:600; text-decoration:none; }
.auth-link:hover { color:var(--primary); }
.demo-creds {
    background:var(--bg-light); border:1px dashed var(--border);
    border-radius:10px; padding:12px 16px; font-size:.8rem; color:var(--text-mid);
    margin-top:16px;
}
.demo-label { font-weight:700; margin-bottom:4px; color:var(--accent); }
.password-strength { font-size:.78rem; font-weight:600; }

/* ─── Wishlist Active ────────────────────────────────────────────────────── */
.book-wishlist.active { background:rgba(231,76,60,0.15); }
.book-wishlist.active i { color:#e74c3c; }

/* ─── Toast slide-in ─────────────────────────────────────────────────────── */
@keyframes slideIn { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }

/* ─── Cart qty controls ──────────────────────────────────────────────────── */
.cart-qty-input { width:52px !important; text-align:center; padding:4px 2px; border-radius:6px; }

/* ─── Account Sidebar active tab ────────────────────────────────────────── */
.account-nav a.active { background:rgba(255,255,255,0.2); font-weight:600; }
