/* assets/css/style.css */

/* =========================================
   1. FONTS & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;0,700;1,400&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    /* -- PALETTE: Subtle Modern -- */
    --primary: #059669;        /* Emerald Green */
    --primary-dark: #047857;
    --primary-soft: #ecfdf5;   
    
    --accent: #ea580c;         /* Burnt Orange for CTA */
    
    --bg-body: #fafafa;        /* Warm White */
    --bg-card: #ffffff;
    --bg-surface: #f3f4f6;     /* Light Gray inputs */
    
    --border: #e5e7eb;         /* Subtle Border */
    
    --text-main: #1e293b;      /* Slate 800 */
    --text-muted: #64748b;     /* Slate 500 */
    --text-light: #94a3b8;     /* Slate 400 */

    /* -- SIZES -- */
    --container: 1140px;
    --radius: 16px;            /* Modern Soft Radius */
    --header-h: 72px;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
img { display: block; max-width: 100%; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 0; 
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-main);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* =========================================
   3. COMPONENTS (Global)
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 24px; border-radius: 50px;
    font-family: 'Manrope', sans-serif; font-weight: 700; 
    cursor: pointer; border: none; font-size: 1rem;
    transition: all 0.2s ease;
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.btn-primary { 
    background: var(--text-main); color: white; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-primary:hover { 
    background: var(--primary); 
    transform: translateY(-2px); 
    box-shadow: 0 15px 30px rgba(5, 150, 105, 0.2); 
}
.btn-outline {
    background: transparent; color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-main); background: #fff; }

/* Google Auth Button */
.google-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 14px; margin-top: 25px;
    background: #fff; color: #374151;
    border: 1px solid #d1d5db; border-radius: 50px;
    font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1rem;
    transition: all 0.2s ease; text-decoration: none;
}
.google-btn:hover {
    background: #f9fafb; border-color: #9ca3af;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Inputs & Forms */
.form-group { margin-bottom: 20px; width: 100%; }

.form-label, .p-label {
    display: block; font-size: 0.85rem; font-weight: 700;
    color: var(--text-muted); margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.form-input, .form-control {
    width: 100%; padding: 14px 18px;
    font-family: 'Manrope', sans-serif; font-size: 1rem;
    color: var(--text-main); background: #fff;
    border: 1px solid var(--border); border-radius: 10px;
    transition: all 0.2s ease;
}
.form-input:focus, .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
    background: #fff; outline: none;
}
.form-input[readonly], .form-control[readonly] {
    background: var(--bg-surface); color: var(--text-muted);
    cursor: default; border-color: transparent;
}
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group.half { flex: 1; }
.form-actions { text-align: right; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-box {
    background: #fff; padding: 40px; border-radius: 20px;
    width: 100%; max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: popIn 0.3s ease;
}
.modal-icon {
    width: 60px; height: 60px; background: var(--primary-soft); color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 20px auto;
}
.big-input { font-size: 1.2rem; padding: 15px; letter-spacing: 1px; font-weight: 700; }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* =========================================
   4. HEADER & NAV
   ========================================= */
header {
    position: sticky; top: 0; z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
}

.nav-wrapper { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { 
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem; font-weight: 700; color: var(--primary); 
    display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px;
}
.logo span { color: var(--text-main); }

/* Search Bar (Pill Shape) */
.search-wrapper { flex: 1; max-width: 420px; margin: 0 40px; }
.search-box {
    display: flex; align-items: center;
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 10px 20px;
    transition: 0.2s;
}
.search-box:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.search-input {
    flex: 1; border: none; background: transparent;
    font-family: 'Manrope', sans-serif; font-size: 0.95rem; color: var(--text-main);
}
.search-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); }

/* Nav Links */
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 0.95rem; }
.nav-item { color: var(--text-muted); }
.nav-item:hover { color: var(--primary); }
.icon-btn { position: relative; font-size: 1.3rem; color: var(--text-main); }
.badge {
    position: absolute; top: -5px; right: -8px;
    background: var(--accent); color: white;
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 5px; border-radius: 6px;
    min-width: 16px; text-align: center;
}

/* =========================================
   5. BOOK CARDS & GRIDS
   ========================================= */
.grid-books {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}

.book-card {
    background: transparent; border: none;
    display: flex; flex-direction: column;
    transition: 0.2s; text-align: left;
}

.card-img-wrap {
    width: 100%; aspect-ratio: 2/3;
    background: #f1f5f9; position: relative;
    border-radius: 12px; overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover .card-img-wrap {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

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

.badge-binding {
    position: absolute; top: 10px; left: 10px;
    background: rgba(255,255,255,0.95); color: var(--text-main);
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.card-content { padding: 0 4px; }
.card-title {
    font-size: 1.1rem; margin-bottom: 4px; 
    font-family: 'Crimson Pro', serif;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-author { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.card-price { font-weight: 700; color: var(--text-main); font-size: 1rem; }

/* Section Headers */
.section-header { 
    display: flex; justify-content: space-between; align-items: flex-end; 
    margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid var(--border);
}
.section-header h2 { font-size: 2rem; color: var(--text-main); }
.view-all { 
    font-size: 0.9rem; font-weight: 700; color: var(--text-muted); 
    display: flex; align-items: center; gap: 6px; 
}
.view-all:hover { color: var(--primary); }

/* =========================================
   6. PAGE: HOME / HERO
   ========================================= */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f0fdf4 100%); /* Subtle Green Fade */
    position: relative; overflow: hidden;
}

.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; 
    align-items: center; gap: 60px;
}

.hero-text h1 { font-size: 3.8rem; margin-bottom: 24px; color: var(--text-main); }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 35px; max-width: 90%; }
.hero-buttons { display:flex; gap: 16px; }

/* Hero Floating Book Card */
.hero-book-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    display: flex; gap: 25px; align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 480px;
    transition: transform 0.3s ease;
    text-decoration: none; color: inherit;
}
.hero-book-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15); }

.hero-book-card img {
    width: 140px; height: 210px; object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.hero-book-info h3 { 
    font-size: 1.6rem; margin-bottom: 8px; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-book-info .author { color: var(--text-muted); font-family: 'Manrope', sans-serif; font-size: 0.95rem; margin-bottom: 15px; }
.hero-book-info .price { font-size: 1.4rem; font-weight: 700; color: var(--primary); font-family: 'Manrope', sans-serif; }

/* =========================================
   7. PAGE: PRODUCT DETAIL
   ========================================= */
.product-wrapper { display: grid; grid-template-columns: 450px 1fr; gap: 60px; margin-top: 40px; }
.product-gallery { position: sticky; top: 100px; }

.main-image-frame {
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 30px;
    display: flex; justify-content: center;
    position: relative; overflow: hidden;
}
.main-image-frame img { max-width: 100%; box-shadow: -5px 10px 20px rgba(0,0,0,0.1); width: 260px; }

.badge-overlay {
    position: absolute; top: 20px; left: 20px;
    background: var(--accent); color: white;
    padding: 6px 12px; font-weight: 700; font-size: 0.8rem;
    border-radius: 6px;
}

.thumbnails { display: flex; gap: 15px; margin-top: 20px; justify-content: center; }
.thumb { 
    width: 70px; height: 100px; 
    border: 2px solid transparent; 
    border-radius: 6px; cursor: pointer; opacity: 0.6; 
    transition: 0.2s; background: #f1f5f9; padding: 5px;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover, .thumb.active { border-color: var(--primary); opacity: 1; }

.product-info { padding-top: 10px; }
.p-title { font-size: 2.5rem; margin-bottom: 10px; }
.p-author { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }
.p-author a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; }
.p-author a:hover { text-decoration-color: var(--primary); }

.p-rating { color: #f59e0b; margin-bottom: 25px; display: flex; align-items: center; gap: 5px; font-size: 0.9rem; }

.p-price-box { display: flex; align-items: baseline; gap: 5px; margin-bottom: 20px; }
.p-price-box .currency { font-size: 1.5rem; font-weight: 600; color: var(--text-main); }
.p-price-box .amount { font-size: 2.8rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.p-price-box .old-price { text-decoration: line-through; color: #94a3b8; font-size: 1.2rem; margin-left: 10px; }

.p-status { margin-bottom: 20px; font-weight: 600; font-size: 0.95rem; }

.p-option-group { margin-bottom: 30px; }

/* Variant Pills */
.format-options { display: flex; flex-wrap: wrap; gap: 12px; }
.format-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 8px;
    padding: 12px 20px; min-width: 110px; cursor: pointer;
    transition: all 0.2s; position: relative; background: #fff;
}
.format-btn input { display: none; }
.format-btn .f-type { font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.format-btn .f-price { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

.format-btn:hover { border-color: #cbd5e1; }
.format-btn.active { 
    border-color: var(--primary); 
    background: var(--primary-soft); 
    color: var(--primary-dark);
}
.format-btn.active .f-type { color: var(--primary-dark); }
.format-btn.active .f-price { color: var(--primary); font-weight: 600; }

.p-actions { display: flex; gap: 15px; margin-bottom: 30px; }
.qty-wrapper {
    display: flex; border: 1px solid var(--border); border-radius: 50px;
    width: 120px; overflow: hidden;
}
.qty-btn { width: 35px; border: none; background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); }
.qty-wrapper input { width: 50px; text-align: center; border: none; font-weight: 700; font-size: 1.1rem; color: var(--text-main); }
.qty-btn:hover { background: #f8fafc; color: var(--primary); }

.btn-add-cart { flex: 1; border-radius: 50px; font-size: 1.1rem; box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2); }
.btn-wishlist { 
    width: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    border-color: var(--border); font-size: 1.2rem; color: var(--text-muted);
}
.btn-wishlist:hover { border-color: #ef4444; color: #ef4444; background: #fff; }

.p-meta { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 30px; }
.p-share { display: flex; align-items: center; gap: 15px; font-size: 0.9rem; color: var(--text-muted); }
.p-share a { 
    width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; 
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.p-share a:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* Tabs */
.product-tabs-wrapper { border-top: 1px solid var(--border); }
.tab-headers { display: flex; gap: 40px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.tab-link { 
    padding: 20px 0; font-weight: 600; color: var(--text-muted); cursor: pointer; 
    border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; line-height: 1.8; color: #334155; font-size: 1.05rem; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   8. PAGE: SEARCH (FILTERS)
   ========================================= */
.filter-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    position: sticky; top: 90px;
}

.filter-group { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border: none; margin: 0; padding: 0; }

.filter-title { font-family: 'Crimson Pro', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; display: block; }

.custom-check { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; cursor: pointer; font-size: 0.9rem; color: var(--text-muted); }
.custom-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.custom-check:hover { color: var(--primary); }

.results-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border);
}

.sort-select {
    border: 1px solid var(--border); padding: 8px 30px 8px 12px;
    border-radius: 6px; font-family: 'Manrope', sans-serif;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="gray"><path d="M6 9L1 4h10z"/></svg>') no-repeat right 10px center;
    appearance: none; cursor: pointer; font-size: 0.9rem;
}

/* =========================================
   9. PAGE: CART
   ========================================= */
.cart-grid {
    display: grid; grid-template-columns: 1fr 380px; gap: 40px;
    margin-top: 40px; min-height: 50vh;
}

.cart-item {
    display: flex; gap: 20px;
    padding-bottom: 25px; border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
}
.cart-item:last-child { border-bottom: none; }

.cart-item img {
    width: 90px; height: 135px; object-fit: cover;
    border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cart-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; font-family: 'Crimson Pro', serif; }
.cart-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; }

/* Quantity Input in Cart */
.cart-qty {
    display: flex; align-items: center; border: 1px solid var(--border);
    border-radius: 50px; width: fit-content; padding: 4px;
}
.cart-qty button {
    width: 28px; height: 28px; border-radius: 50%; border: none;
    background: #fff; cursor: pointer; color: var(--text-main);
}
.cart-qty button:hover { background: var(--bg-surface); }
.cart-qty input {
    width: 30px; text-align: center; border: none;
    font-weight: 700; font-size: 0.9rem; outline: none;
}

/* Summary Box */
.summary-box {
    background: #fff; padding: 30px;
    border-radius: 20px; border: 1px solid var(--border);
    position: sticky; top: 100px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.summary-row {
    display: flex; justify-content: space-between;
    margin-bottom: 15px; font-size: 0.95rem; color: var(--text-muted);
}
.summary-total {
    display: flex; justify-content: space-between;
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 1.2rem; font-weight: 800; color: var(--text-main);
}

/* =========================================
   10. PAGE: AUTH & ACCOUNT DASHBOARD
   ========================================= */

/* Auth Pages (Login/Register) */
.auth-page-wrapper {
    min-height: 80vh; /* Centers vertically */
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-body);
}

.auth-box {
    width: 100%; max-width: 420px;
    background: #fff; padding: 40px;
    border-radius: 20px; border: 1px solid var(--border);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    text-align: center; margin: 20px;
}

/* Account Layout (Dashboard) */
.account-wrapper {
    background-color: #f8fafc;
    min-height: 90vh; padding-bottom: 80px;
}

.account-container {
    max-width: 1140px; margin: 0 auto; padding: 40px 24px;
    display: grid; grid-template-columns: 280px 1fr; gap: 40px;
}

/* Account Sidebar */
.account-sidebar {
    position: sticky; top: 100px; height: fit-content;
    display: flex; flex-direction: column; gap: 20px;
}

.profile-card {
    background: #fff; padding: 30px 20px;
    border-radius: 16px; border: 1px solid var(--border);
    text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.profile-avatar {
    width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 15px auto; border: 4px solid var(--bg-surface);
}
.profile-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; color: var(--text-main); }
.profile-email { font-size: 0.85rem; color: var(--text-muted); }

.nav-card {
    background: #fff; padding: 10px;
    border-radius: 16px; border: 1px solid var(--border);
}
.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
    border-radius: 10px; transition: all 0.2s; text-decoration: none;
    margin-bottom: 5px;
}
.nav-link:hover { background: var(--bg-surface); color: var(--text-main); }
.nav-link.active { background: var(--primary-soft); color: var(--primary-dark); }
.nav-link i { width: 20px; text-align: center; }

/* Main Content Card (Dashboard) */
.content-card {
    background: #fff; padding: 40px;
    border-radius: 20px; border: 1px solid var(--border);
    min-height: 500px; box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.content-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.content-title { font-size: 1.5rem; margin: 0; color: var(--text-main); }
.content-subtitle { color: var(--text-muted); font-size: 0.9rem; }

/* Library Grid */
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 25px; }
.lib-item {
    border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
    transition: transform 0.2s; background: #fff;
}
.lib-item:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.lib-img { height: 200px; background: var(--bg-surface); position: relative; }
.lib-img img { width: 100%; height: 100%; object-fit: cover; }
.lib-body { padding: 15px; text-align: center; }
.lib-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon {
    width: 70px; height: 70px; background: var(--bg-surface); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto; color: var(--text-muted); font-size: 1.8rem;
}

/* Orders List */
.order-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 15px; transition: 0.2s;
}
.order-row:hover { background: var(--bg-surface); border-color: transparent; }
.order-id { font-weight: 700; font-family: monospace; font-size: 1.1rem; color: var(--text-main); }
.order-date { font-size: 0.85rem; color: var(--text-muted); }
.order-right { display: flex; align-items: center; gap: 15px; }
.order-price { font-weight: 700; color: var(--text-main); }
.order-pill {
    padding: 6px 12px; border-radius: 30px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.pill-paid { background: #dcfce7; color: #166534; }
.pill-pending { background: #fef9c3; color: #854d0e; }

/* Dashboard Stats (legacy support) */
.dash-stat-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 16px; padding: 25px;
    display: flex; align-items: center; justify-content: space-between;
}
.dash-stat-card h3 { font-size: 2.2rem; color: var(--text-main); margin: 0; line-height: 1; }
.dash-stat-card span { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

/* Mobile Account Elements (Hidden on Desktop) */
.mobile-header, .mobile-nav { display: none; } 

/* =========================================
   11. FOOTER & MOBILE NAV
   ========================================= */
.desktop-footer { 
    margin-top: 100px; 
    background: #fff; 
    border-top: 1px solid var(--border); 
    padding: 80px 0; 
}

/* Mobile App Bar */
.bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 10px 0 25px 0; /* Extra padding for iOS home indicator */
    z-index: 2000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}
.bottom-nav ul { display: flex; justify-content: space-around; align-items: center; }
.nav-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #94a3b8; gap: 4px; width: 60px;
}
.nav-btn i { font-size: 1.4rem; transition: 0.2s; }
.nav-btn span { font-size: 0.65rem; font-weight: 600; font-family: 'Manrope', sans-serif; }

.nav-btn.active { color: var(--primary); }
.nav-btn.active i { transform: translateY(-2px); }

/* =========================================
   12. RESPONSIVE / MEDIA QUERIES
   ========================================= */

/* Tablet & Mobile (Max 991px) */
@media (max-width: 991px) {
    /* -- Layout Changes -- */
    .search-wrapper, .nav-links, .desktop-footer, .account-sidebar { display: none; }
    .bottom-nav { display: block; }
    body { padding-bottom: 90px; }
    
    /* -- Header -- */
    header { height: 60px; justify-content: center; }
    .nav-wrapper { justify-content: center; }
    
    /* -- Hero -- */
    .hero-section { padding: 40px 0 20px 0; background: transparent; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-text h1 { font-size: 2.8rem; margin-bottom: 15px; }
    .hero-text p { font-size: 1.1rem; margin-bottom: 25px; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    
    .hero-book-card {
        margin: 0 auto; padding: 20px; 
        background: #fff; border: 1px solid var(--border);
        flex-direction: column; text-align: center;
    }
    .hero-book-card img { width: 120px; height: 180px; }
    
    /* -- Product Page -- */
    .product-wrapper { grid-template-columns: 1fr; gap: 30px; margin-top: 20px; }
    .product-gallery { position: static; }
    .main-image-frame { padding: 20px; }
    .main-image-frame img { width: 180px; }
    .p-title { font-size: 2rem; }
    
    .p-actions { 
        position: fixed; bottom: 0; left: 0; right: 0; 
        background: #fff; padding: 15px; 
        border-top: 1px solid var(--border); 
        z-index: 2100; /* Higher than bottom-nav */
        margin: 0; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); 
    }
    .btn-wishlist { display: none; } 
    
    /* -- General Grid -- */
    .grid-books { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 5px; }
    .section-header h2 { font-size: 1.5rem; }
    .book-card .card-title { font-size: 1rem; }

    /* -- Cart -- */
    .cart-grid { grid-template-columns: 1fr; gap: 20px; }
    .summary-box { position: static; margin-bottom: 40px; }

    /* -- Search Filters -- */
    .mobile-filter-btn {
        display: flex; align-items: center; gap: 8px;
        position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
        background: var(--text-main); color: white;
        padding: 12px 24px; border-radius: 50px;
        font-weight: 600; box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        z-index: 1000; cursor: pointer; transition: 0.2s;
    }
    .mobile-filter-btn:active { transform: translateX(-50%) scale(0.95); }

    .mobile-filter-overlay {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 2001; align-items: flex-end;
    }
    .mobile-filter-overlay.active { display: flex; }
    
    .mobile-filter-content {
        background: #fff; width: 100%; max-height: 85vh;
        border-radius: 20px 20px 0 0; padding: 25px; overflow-y: auto;
        animation: slideUp 0.3s ease;
    }
    .filter-header-mobile {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px;
    }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

    /* -- Account / Profile Mobile -- */
    .account-container { display: block; padding: 20px 16px; }
    
    /* Mobile Header (Account) */
    .mobile-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
    .mobile-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
    .mobile-header h2 { font-size: 1.2rem; margin: 0; }
    
    /* Mobile Nav Pills */
    .mobile-nav {
        display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; margin-bottom: 20px;
        scrollbar-width: none;
    }
    .mobile-nav::-webkit-scrollbar { display: none; }
    
    .nav-pill {
        white-space: nowrap; padding: 8px 16px; border-radius: 50px;
        background: #fff; border: 1px solid var(--border);
        color: var(--text-muted); font-weight: 600; font-size: 0.9rem; text-decoration: none;
    }
    .nav-pill.active { background: var(--text-main); color: #fff; border-color: var(--text-main); }
    
    /* Mobile Content Cards */
    .content-card { padding: 20px; min-height: auto; }
    .library-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .lib-img { height: 160px; }
    
    /* Stacking Forms & Orders */
    .form-row { flex-direction: column; gap: 0; }
    .order-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .order-right { width: 100%; justify-content: space-between; }
}

/* Visibility Toggle for Mobile Nav (Small Phones) */
@media (max-width: 768px) {
    .desktop-footer { display: none; }
    .bottom-nav { display: block; }
}

.mb-3{
    margin-bottom: 1rem;
}

.mt-3{
    margin-top: 1rem;
}

.mt-lg{
    margin-top: 2rem;
}

/* --- SEARCH PAGE STYLES --- */

/* Layout Grid */
.search-page-wrapper {
    margin-top: 40px;
    padding-bottom: 60px;
}

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar Styles */
.search-sidebar {
    position: sticky; top: 90px;
    height: fit-content;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border: none; padding-bottom: 0; }

.filter-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 12px; display: block;
}

.custom-check {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px; cursor: pointer;
    font-size: 0.95rem; color: var(--text-muted);
}
.custom-check input {
    width: 16px; height: 16px; accent-color: var(--primary);
}
.custom-check:hover { color: var(--primary); }

.full-width { width: 100%; }

/* Results Area */
.results-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border);
}
.results-title { font-size: 1.5rem; margin: 0 0 4px 0; }
.results-count { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.sort-select {
    border: 1px solid var(--border);
    padding: 8px 30px 8px 12px;
    border-radius: 6px; font-family: 'Manrope', sans-serif;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="gray"><path d="M6 9L1 4h10z"/></svg>') no-repeat right 10px center;
    appearance: none; cursor: pointer; font-size: 0.9rem;
}

/* Empty State */
.empty-search {
    text-align: center; padding: 60px 0;
    grid-column: 1 / -1;
}
.empty-search i { font-size: 3rem; color: var(--text-muted); margin-bottom: 15px; }
.empty-search h4 { color: var(--text-muted); margin-bottom: 15px; }

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    display: flex; justify-content: center; gap: 5px;
}
.page-btn { padding: 8px 15px; }

/* Special Badge color */
.badge-binding.preorder { background: #0ea5e9; color: white; }

/* Mobile Search Bar (Hidden on Desktop) */
.mobile-search-bar { display: none; margin-bottom: 20px; }


/* --- MOBILE SPECIFICS --- */
.mobile-filter-trigger, .mobile-filter-overlay { display: none; }

@media (max-width: 991px) {
    /* Layout Changes */
    .search-layout { display: block; }
    .search-sidebar { display: none; } /* Hide Desktop Sidebar */
    .mobile-search-bar { display: block; } /* Show Mobile Search */
    
    /* Floating Filter Button */
    .mobile-filter-trigger {
        display: flex; align-items: center; gap: 8px;
        position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
        background: var(--text-main); color: white; border: none;
        padding: 12px 24px; border-radius: 50px;
        font-weight: 600; font-family: 'Manrope', sans-serif; font-size: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        z-index: 1000; cursor: pointer; transition: 0.2s;
    }
    .mobile-filter-trigger:active { transform: translateX(-50%) scale(0.95); }

    /* Filter Modal (Bottom Sheet) */
    .mobile-filter-overlay {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 2001;
        align-items: flex-end;
    }
    .mobile-filter-overlay.active { display: flex; }

    .mobile-filter-content {
        background: #fff; width: 100%; max-height: 85vh;
        border-radius: 20px 20px 0 0; padding: 25px;
        overflow-y: auto; animation: slideUp 0.3s ease;
    }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

    .filter-header-mobile {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px;
    }
    .filter-header-mobile h3 { margin: 0; }

    /* Mobile Form Elements */
    .checkbox-row { display: flex; gap: 15px; flex-wrap: wrap; }
    .full-width { width: 100%; }
    
    .form-select {
        width: 100%; padding: 12px; border-radius: 8px;
        border: 1px solid var(--border); background: #fff;
        font-family: 'Manrope', sans-serif;
    }

    .filter-actions-mobile {
        display: flex; gap: 10px; margin-top: 30px;
    }
    .filter-actions-mobile .btn { flex: 1; text-align: center; }
}

/* --- PRODUCT PAGE STYLES --- */

/* 1. Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 20px 0;
    flex-wrap: wrap;
}
.crumb-link:hover { color: var(--primary); text-decoration: underline; }
.crumb-sep { font-size: 0.8rem; opacity: 0.5; }
.crumb-current { color: var(--text-main); font-weight: 600; }

/* 2. Main Grid Layout */
.product-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

/* 3. Image Gallery */
.product-gallery {
    position: sticky; top: 100px; /* Sticks on scroll for desktop */
}

.main-image-frame {
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 40px;
    display: flex; justify-content: center; align-items: center;
    position: relative; overflow: hidden;
    margin-bottom: 20px;
}
.main-image-frame img { 
    max-width: 100%; width: 280px; 
    box-shadow: -10px 15px 30px rgba(0,0,0,0.15); 
    transition: transform 0.3s ease;
}
.main-image-frame:hover img { transform: scale(1.02); }

.badge-overlay {
    position: absolute; top: 20px; left: 20px;
    padding: 6px 12px; font-weight: 700; font-size: 0.75rem;
    border-radius: 6px; letter-spacing: 0.5px;
}
.badge-overlay.preorder { background: #0ea5e9; color: white; }

.thumbnails {
    display: flex; gap: 15px; justify-content: center;
}
.thumb {
    width: 70px; height: 100px;
    border: 2px solid transparent; border-radius: 8px;
    background: #f1f5f9; padding: 5px; cursor: pointer;
    transition: 0.2s; opacity: 0.7;
}
.thumb.active, .thumb:hover { border-color: var(--primary); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }

/* 4. Product Details Column */
.product-details { padding-top: 10px; }

.p-title {
    font-size: 2.6rem; margin-bottom: 10px; line-height: 1.1;
}
.p-author {
    font-size: 1.1rem; color: var(--text-muted); margin-bottom: 25px;
}
.author-link { color: var(--text-main); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; }
.author-link:hover { text-decoration-color: var(--primary); color: var(--primary); }

.p-price-area {
    display: flex; align-items: flex-start; gap: 4px; margin-bottom: 20px;
}
.p-price-area .currency { font-size: 1.5rem; font-weight: 600; margin-top: 5px; }
.p-price-area .amount { font-size: 3rem; font-weight: 800; color: var(--text-main); line-height: 1; }

.p-status-wrapper { margin-bottom: 25px; }
.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 700; font-size: 0.95rem;
}
.status-instock { color: #166534; }
.status-outstock { color: #ef4444; }
.status-preorder { color: #0284c7; }

.p-divider {
    height: 1px; background: var(--border); margin: 30px 0;
}

/* Format Selector */
.p-option-group { margin-bottom: 30px; }
.format-options { display: flex; flex-wrap: wrap; gap: 12px; }

.format-btn {
    position: relative;
    display: flex; flex-direction: column; 
    border: 1px solid var(--border); border-radius: 12px;
    padding: 15px 20px; min-width: 120px; cursor: pointer;
    transition: all 0.2s; background: #fff;
}
.format-btn input { display: none; }
.format-btn .f-type { font-weight: 700; font-size: 0.9rem; color: var(--text-main); margin-bottom: 4px; }
.format-btn .f-price { font-size: 0.9rem; color: var(--text-muted); }
.format-btn:hover { border-color: #cbd5e1; transform: translateY(-2px); }

.format-btn.active {
    border-color: var(--primary); background: var(--primary-soft);
}
.format-btn.active .f-type { color: var(--primary-dark); }
.format-btn.active .f-price { color: var(--primary); font-weight: 700; }

.f-badge {
    position: absolute; top: -8px; right: -5px;
    background: var(--text-main); color: white;
    font-size: 0.6rem; padding: 2px 6px; border-radius: 4px; font-weight: 700;
}

/* Actions */
.p-actions { display: flex; gap: 15px; margin-bottom: 40px; }
.qty-wrapper {
    display: flex; border: 1px solid var(--border); border-radius: 50px;
    width: 130px; overflow: hidden;
}
.qty-btn { 
    width: 40px; border: none; background: #fff; font-size: 1.2rem; cursor: pointer; 
    transition: 0.2s; color: var(--text-muted);
}
.qty-btn:hover { background: var(--bg-surface); color: var(--text-main); }
.qty-wrapper input {
    flex: 1; text-align: center; border: none; font-weight: 700; font-size: 1.1rem;
    color: var(--text-main); width: 100%;
}

.btn-add-cart {
    flex: 1; font-size: 1.1rem; padding: 15px;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
}

/* Meta Info */
.p-meta { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }
.meta-row { margin-bottom: 5px; }
.meta-link { text-decoration: underline; text-decoration-color: var(--border); }
.meta-link:hover { color: var(--primary); text-decoration-color: var(--primary); }

/* 5. Tabs Section */
.product-tabs-section {
    margin-top: 60px;
    border-top: 1px solid var(--border);
}
.tab-headers {
    display: flex; gap: 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px;
}
.tab-btn {
    background: none; border: none; padding: 20px 0;
    font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1rem;
    color: var(--text-muted); cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content { display: none; line-height: 1.8; color: var(--text-main); font-size: 1.05rem; max-width: 800px; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

.author-profile-block {
    background: var(--bg-surface); padding: 30px; border-radius: 16px;
}
.author-profile-block h3 { margin-top: 0; }

/* 6. Related Section */
.related-section { margin-top: 80px; }


/* --- MOBILE RESPONSIVE (Product) --- */
@media (max-width: 991px) {
    .product-layout {
        display: flex; flex-direction: column; gap: 30px;
    }
    .product-gallery { position: static; }
    
    .main-image-frame { padding: 20px; }
    .main-image-frame img { width: 180px; }
    
    .p-title { font-size: 2rem; }
    
    /* Sticky Add to Cart for Mobile */
    .p-actions {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
        padding: 15px; margin: 0;
        border-top: 1px solid var(--border);
        z-index: 1000; box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    }
    
    /* Ensure footer doesn't hide behind sticky cart */
    body { padding-bottom: 90px; }
}

/* --- SHOPPING CART STYLES --- */

.cart-page-wrapper {
    padding: 40px 0;
    min-height: 80vh;
    background: var(--bg-body);
}

/* Header */
.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.cart-heading { font-size: 1.8rem; margin: 0; }
.cart-heading span { color: var(--text-muted); font-weight: 400; font-size: 1.2rem; }
.continue-link { color: var(--primary); text-decoration: underline; font-weight: 600; font-size: 0.9rem; }

/* Main Layout Grid */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* --- Left Column: Items --- */
.cart-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: 0.2s;
}
.cart-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.03); }

/* Item Image */
.cart-img-link {
    width: 100px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}
.cart-img-link img { width: 100%; height: 100%; object-fit: cover; }

/* Item Details */
.cart-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title { font-size: 1.1rem; margin: 0 0 5px 0; line-height: 1.3; }
.cart-item-title a { color: var(--text-main); text-decoration: none; }
.cart-item-title a:hover { color: var(--primary); }

.cart-item-author { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }

.cart-item-meta { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.meta-badge { 
    background: var(--bg-surface); padding: 4px 10px; 
    border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.text-app { color: #f59e0b; font-weight: 600; }

/* Controls (Qty & Price) */
.cart-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 15px;
}

/* Quantity Spinner */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 50px;
    height: 36px;
    width: 110px;
}
.qty-selector button {
    width: 32px; height: 100%; border: none; background: transparent;
    cursor: pointer; font-size: 1.1rem; color: var(--text-muted);
}
.qty-selector button:hover { color: var(--primary); background: var(--bg-surface); border-radius: 50%; }
.qty-selector input {
    flex: 1; border: none; text-align: center; font-weight: 700;
    font-family: 'Manrope', sans-serif; color: var(--text-main);
    width: 100%; height: 100%; background: transparent;
}
.digital-qty { color: var(--text-muted); font-size: 0.9rem; font-style: italic; padding-left: 5px; }

/* Price Block */
.cart-price-block { text-align: right; }
.item-total { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.remove-btn { color: #ef4444; font-size: 0.85rem; text-decoration: underline; cursor: pointer; }
.remove-btn:hover { text-decoration: none; }


/* --- Right Column: Summary --- */
.cart-summary-column { position: sticky; top: 100px; }

.summary-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.summary-title { font-size: 1.3rem; margin-top: 0; margin-bottom: 25px; }

.summary-row {
    display: flex; justify-content: space-between;
    margin-bottom: 15px; font-size: 0.95rem; color: var(--text-muted);
}
.text-success { color: #166534; font-weight: 600; }

.summary-divider { height: 1px; background: var(--border); margin: 20px 0; }

.summary-total {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.3rem; font-weight: 800; color: var(--text-main); margin-bottom: 25px;
}

.btn-checkout { width: 100%; padding: 15px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }

.secure-notice {
    text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* --- Empty State --- */
.empty-cart-state {
    text-align: center; padding: 80px 20px;
    background: #fff; border-radius: 20px; border: 1px solid var(--border);
}
.empty-icon {
    width: 80px; height: 80px; background: var(--bg-surface);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto; font-size: 2rem; color: var(--text-muted);
}
.empty-cart-state h2 { margin-bottom: 10px; }
.empty-cart-state p { color: var(--text-muted); margin-bottom: 30px; }


/* --- MOBILE RESPONSIVE --- */
@media (max-width: 991px) {
    .cart-layout {
        display: flex; flex-direction: column; gap: 30px;
    }
    
    .cart-summary-column { position: static; }
    
    .cart-card { padding: 15px; gap: 15px; }
    .cart-img-link { width: 80px; height: 120px; }
    
    .cart-item-title { font-size: 1rem; }
    .item-total { font-size: 1.1rem; }
    
    /* Sticky Checkout Button on Mobile */
    .summary-card { padding: 20px; }
}

/* --- CHECKOUT STYLES --- */

.checkout-wrapper {
    background: var(--bg-body);
    padding: 40px 0;
    min-height: 80vh;
}

.checkout-title {
    font-size: 2rem; margin-bottom: 30px; text-align: center;
}

.checkout-grid {
    display: grid; grid-template-columns: 1fr 400px; gap: 30px;
    align-items: start;
}

.card-heading {
    margin-top: 0; margin-bottom: 20px; font-size: 1.2rem;
    border-bottom: 1px solid var(--border); padding-bottom: 15px;
}

/* Payment Option */
.payment-option {
    border: 2px solid var(--border); border-radius: 12px;
    padding: 15px; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
    transition: 0.2s;
}
.payment-option.selected {
    border-color: var(--primary); background: var(--primary-soft);
}

/* Summary Items */
.checkout-items {
    margin-bottom: 20px; max-height: 300px; overflow-y: auto;
}
.checkout-item-row {
    display: flex; justify-content: space-between; margin-bottom: 15px;
    border-bottom: 1px solid var(--bg-surface); padding-bottom: 10px;
}
.c-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.c-meta { color: var(--text-muted); font-size: 0.85rem; }
.c-price { font-weight: 700; color: var(--text-main); }

.total-big {
    font-size: 1.4rem; color: var(--primary); font-weight: 800;
}

/* Cart Quantity Buttons (Updated) */
.qty-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 100%; text-decoration: none;
    color: var(--text-muted); font-size: 1.2rem; transition: 0.2s;
    border-radius: 35px;
}
.qty-btn:hover { background: var(--bg-surface); color: var(--primary); }

/* Mobile Responsive */
@media (max-width: 991px) {
    .checkout-grid { grid-template-columns: 1fr; }
}

/* Checkout Payment Options */
.payment-option {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    background: #fff;
}

.payment-option:hover {
    border-color: #cbd5e1;
}

/* Selected State */
.payment-option.selected {
    border-color: var(--primary);
    background-color: var(--primary-soft);
    box-shadow: 0 0 0 1px var(--primary);
}

.payment-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px; height: 18px;
}

/* Checkout Form Columns */
.col-md-6 {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}
@media (max-width: 768px) {
    .col-md-6 { width: 100%; display: block; }
}

/* Coupon Box */
.coupon-box {
    background: var(--bg-surface); padding: 10px; border-radius: 8px;
}

/* --- Order Detail Page Styles --- */
.od-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.od-title h1 { margin: 0; font-size: 1.5rem; color: #2c3e50; }
.od-meta { color: #666; font-size: 0.9rem; }

/* Status Badges */
.status-badge { padding: 5px 10px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-transform: capitalize; display: inline-block; }
.badge-paid { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-failed { background: #fee2e2; color: #991b1b; }
.badge-cod { background: #e0f2fe; color: #075985; }

/* Layout Grid */
.od-grid { display: flex; gap: 25px; flex-wrap: wrap; }
.od-main { flex: 2; min-width: 300px; }
.od-sidebar { flex: 1; min-width: 250px; }

/* Cards */
.od-card { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); padding: 20px; margin-bottom: 20px; }
.od-card h3 { margin-top: 0; font-size: 1.1rem; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; color: #333; }

/* Order Items */
.item-row { display: flex; gap: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.item-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.item-img { width: 60px; height: 80px; object-fit: cover; border-radius: 4px; background: #eee; }
.item-details { flex: 1; }
.item-title { font-weight: 600; color: #333; display: block; margin-bottom: 2px; }
.item-meta { font-size: 0.85rem; color: #666; display: block; }
.item-price { font-weight: bold; color: #333; }

/* Address Text */
.addr-line { display: block; margin-bottom: 4px; color: #555; font-size: 0.95rem; }

/* Totals */
.total-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; }
.total-final { font-weight: bold; font-size: 1.1rem; color: #2c3e50; border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; }
.btn-back { display: inline-block; text-decoration: none; color: #555; margin-bottom: 15px; font-size: 0.9rem; }
.btn-back:hover { color: #000; }

/* --- Account Order List Table --- */
.table-responsive { overflow-x: auto; }
.table-custom { width: 100%; border-collapse: collapse; min-width: 600px; }
.table-custom th { text-align: left; padding: 12px; background: #f8f9fa; border-bottom: 2px solid #eee; color: #555; font-size: 0.9rem; font-weight: 600; }
.table-custom td { padding: 15px 12px; border-bottom: 1px solid #eee; vertical-align: middle; color: #333; }

/* Table Status Badges */
.table-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; text-transform: uppercase; font-weight: bold; }
.t-badge-pending { background: #fff3cd; color: #856404; }
.t-badge-paid, .t-badge-active { background: #d4edda; color: #155724; }
.t-badge-failed, .t-badge-banned { background: #f8d7da; color: #721c24; }

/* View Button */
.btn-view { display: inline-block; padding: 6px 12px; background: #3498db; color: white; text-decoration: none; border-radius: 4px; font-size: 0.85rem; transition: background 0.2s; }
.btn-view:hover { background: #2980b9; }

/* Empty State */
.empty-orders { text-align: center; padding: 40px; color: #777; }
.empty-orders a { color: #3498db; text-decoration: none; font-weight: bold; }

/* --- Modern Order List (No Tables) --- */
.order-list-controls { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.order-list-controls .search-input { flex: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 6px; }
.btn-search { background: #333; color: white; border: none; padding: 0 20px; border-radius: 6px; cursor: pointer; }

/* The Card Row */
.modern-order-card { 
    background: white; border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-bottom: 15px; 
    display: flex; align-items: center; justify-content: space-between; transition: box-shadow 0.2s, transform 0.2s; 
}
.modern-order-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }

/* Left Side: ID & Date */
.mo-info h4 { margin: 0 0 5px 0; font-size: 1.1rem; color: #2c3e50; }
.mo-date { font-size: 0.85rem; color: #888; display: flex; align-items: center; gap: 5px; }

/* Middle: Statuses */
.mo-status { display: flex; gap: 10px; align-items: center; }

/* Right: Price & Action */
.mo-price { font-weight: bold; font-size: 1.1rem; color: #333; text-align: right; }
.mo-action { margin-left: 20px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 30px; }
.page-link { padding: 8px 12px; border: 1px solid #eee; background: white; color: #333; text-decoration: none; border-radius: 4px; transition: 0.2s; }
.page-link:hover, .page-link.active { background: #333; color: white; border-color: #333; }

/* Mobile Tweaks */
@media (max-width: 768px) {
    .modern-order-card { flex-direction: column; align-items: flex-start; gap: 15px; }
    .mo-status { width: 100%; justify-content: space-between; margin-top: 5px; }
    .mo-right { width: 100%; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f4f4f4; padding-top: 15px; }
    .mo-price { text-align: left; }
    .mo-action { margin: 0; }
}

/* =========================================
   BLOG STYLES (SUBTLE & SPACIOUS)
   ========================================= */

/* --- Wrappers --- */
.blog-wrapper, .article-wrapper {
    background-color: #f8f9fa; /* Very subtle grey background */
    padding-bottom: 80px;
    min-height: 90vh;
}

/* --- Hero Section --- */
.blog-hero {
    background-color: #ffffff;
    text-align: center;
    padding: 80px 20px 60px; /* More top/bottom space */
    margin-bottom: 50px;
    /* No border-bottom for a cleaner look */
}

.blog-hero h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    font-weight: 800; /* Modern bold */
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.blog-hero p {
    color: #6b7280; /* Softer text color */
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Post Grid --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px; /* Increased gap */
}

/* --- Post Card --- */
.post-card {
    background: #ffffff;
    border: none; /* Removed hard border */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); /* Very subtle soft shadow */
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08); /* Slightly deeper on hover */
}

.card-img-link {
    display: block;
    height: 220px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .card-img-link img {
    transform: scale(1.03); /* Minimal zoom */
}

.card-body {
    padding: 30px; /* More internal spacing */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.dot { margin: 0 8px; color: #e5e7eb; }

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

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

.card-excerpt {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.card-link:hover { text-decoration: underline; }

/* --- Pagination --- */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.page-btn:hover, .page-btn.active {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- SINGLE ARTICLE STYLES --- */
.article-container {
    max-width: 860px; /* Slightly wider for spaciousness */
    margin: 20px auto 0; /* Overlap hero slightly if you want, or 0 auto */
    background: #ffffff;
    padding: 60px; /* Generous padding */
    border-radius: 16px;
    /* Removed border */
    box-shadow: 0 10px 40px rgba(0,0,0,0.03); /* Float effect */
}

/* Breadcrumb nav inside article */
.article-nav {
    margin-bottom: 30px;
}

.article-nav a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.article-nav a:hover { color: #111; }

.article-header {
    position: relative;
    text-align: left;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: none;
    display: block;
}

.article-meta {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.article-title {
    font-size: 2.75rem;
    color: #111827;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.article-cover {
    margin-top: 80px;
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;

}



.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.125rem; /* 18px text */
    line-height: 1.85; /* Relaxed line height */
    color: #374151;
}

.article-body p { margin-bottom: 1.8rem; }
.article-body h2 { 
    margin-top: 2.5rem; 
    margin-bottom: 1rem;
    font-size: 1.75rem; 
    font-weight: 700;
    color: #111;
}

.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.btn-primary-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #d1d5db;
    color: #1f2937;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary-outline:hover {
    border-color: #111;
    background: #111;
    color: #fff;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .blog-hero { padding: 50px 20px; }
    .post-grid { grid-template-columns: 1fr; }
    
    .article-container { 
        padding: 30px 20px; 
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .article-cover {
        margin: 0 -20px 30px;
        width: calc(100% + 40px);
        border-radius: 0;
    }
    .article-title { font-size: 2rem; }
}

/* =========================================
   AUTHORS PAGE STYLES
   ========================================= */

.authors-page-wrapper {
    background-color: #f9fafb;
    min-height: 80vh;
}

/* Header & Search */
.authors-header {
    background: #fff;
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 50px;
}

.authors-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
}

.authors-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.author-search-form {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.author-search-form input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s;
}

.author-search-form input:focus {
    background: #fff;
    border-color: var(--primary, #333);
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.author-search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Authors Grid */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.author-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: transparent;
}

.author-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid #f9fafb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.author-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.author-card:hover .author-img-wrapper img {
    transform: scale(1.1);
}

.author-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.book-badge {
    display: inline-block;
    font-size: 0.8rem;
    color: #666;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 500;
}

.author-card:hover .book-badge {
    background: #e5e7eb;
    color: #333;
}

/* =========================================
   ABOUT PAGE STYLES
   ========================================= */

.about-page-wrapper {
    background: #fff;
    overflow-x: hidden;
}

/* --- Hero --- */
.about-hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(to bottom, #f9fafb, #fff);
}

.sub-headline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.about-hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: #111;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.about-hero .highlight {
    color: var(--primary); /* Uses your site's main blue/theme color */
}

.lead-text {
    font-size: 1.25rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Mission Grid --- */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mission-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #f0f9ff;
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.mission-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

.mission-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- Award Section (Gold/Amber Theme) --- */
.award-section {
    background: #fffbeb; /* Very light amber bg */
    border-top: 1px solid #fcd34d;
    border-bottom: 1px solid #fcd34d;
    padding: 60px 0;
    margin: 60px 0;
}

.award-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.award-section .award-icon {
    font-size: 4rem;
    color: #d97706; /* Dark amber */
    background: #fff;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.2);
    flex-shrink: 0;
}

.award-section .award-label {
    text-transform: uppercase;
    color: #d97706;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.award-section .award-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin: 5px 0 10px 0;
}

.award-section .award-text p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Story Section --- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.story-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.story-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    color: #111;
    font-weight: 800;
}

.stat-item span {
    font-size: 0.9rem;
    color: #777;
    text-transform: uppercase;
}

/* --- CTA Section --- */
.about-cta {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-top: 80px;
}

.about-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFF;
}

.about-cta p {
    color: #bbb;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background: #fff;
    color: #111;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-cta:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero h1 { font-size: 2.5rem; }
    .award-content { flex-direction: column; text-align: center; }
    .story-grid { grid-template-columns: 1fr; }
    .story-image { margin-bottom: 30px; }
    .stats-row { justify-content: space-between; gap: 10px; }
}