/* مكتبة لبنى للكتب - التصميم الرئيسي */
/* lpbook Main Stylesheet */

:root {
    --primary-color: #8B5E3C;
    --primary-dark: #6B4423;
    --primary-light: #C4A77D;
    --secondary-color: #2C3E50;
    --accent-color: #E8B923;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-bg: #F9F6F1;
    --dark-bg: #1a1a2e;
    --text-dark: #2C3E50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --border-color: #e0d5c7;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    background: rgba(0,0,0,0.15);
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: rgba(255,255,255,0.9);
    margin: 0 10px;
}

.header-top a:hover { color: var(--accent-color); }

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    font-size: 32px;
    color: var(--accent-color);
}

.logo span { color: var(--accent-color); }

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.search-box input::placeholder { color: rgba(255,255,255,0.6); }
.search-box input:focus {
    background: rgba(255,255,255,0.2);
    border-color: var(--accent-color);
}

.search-box button {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.search-box button:hover { background: var(--white); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions a {
    position: relative;
    color: var(--white);
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.header-actions a:hover { background: rgba(255,255,255,0.15); }

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-header {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-header-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

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

.btn-header-primary {
    background: var(--accent-color);
    color: var(--secondary-color);
    border: 2px solid var(--accent-color);
}

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

/* ===== NAVIGATION ===== */
.nav-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.nav-bar .container {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.nav-bar a {
    padding: 14px 20px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-bar a:hover, .nav-bar a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span { color: var(--accent-color); }

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons { display: flex; gap: 15px; }

.btn {
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

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

.hero-stat .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
}

.hero-stat .label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-image { position: relative; }

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
    transition: var(--transition);
}

.hero-image img:hover { transform: rotate(0deg) scale(1.02); }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.category-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h3 { font-size: 18px; margin-bottom: 5px; }

.category-card span {
    color: var(--text-light);
    font-size: 13px;
}

/* ===== BOOK CARDS ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.book-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.badge-new { background: var(--success-color); color: var(--white); }
.badge-sale { background: var(--danger-color); color: var(--white); }
.badge-featured { background: var(--accent-color); color: var(--secondary-color); }
.badge-site { background: var(--info-color); color: var(--white); }

.book-cover {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card:hover .book-cover img { transform: scale(1.08); }

.book-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

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

.book-overlay button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.book-overlay button:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.book-info { padding: 20px; }

.book-info .category {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.book-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
}

.book-info .author {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.book-info .author i {
    color: var(--primary-color);
    margin-left: 5px;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.book-rating i {
    color: var(--accent-color);
    font-size: 14px;
}

.book-rating span {
    color: var(--text-light);
    font-size: 13px;
}

.book-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-card .icon i {
    font-size: 32px;
    color: var(--white);
}

.feature-card h3 { font-size: 20px; margin-bottom: 10px; }

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-radius: var(--radius);
    margin: 0 20px;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-brand h3 span { color: var(--accent-color); }

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

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

/* ===== BUTTONS ===== */
.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover { background: #219a52; }

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover { background: #c0392b; }

.btn-warning {
    background: var(--warning-color);
    color: var(--white);
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 40px; font-size: 18px; }

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.form-control::placeholder { color: #bbb; }

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control { cursor: pointer; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.form-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 40px 20px;
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}

.auth-box .logo {
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
}

.auth-box .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== DASHBOARD ===== */
.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 30px 0;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-brand {
    padding: 0 25px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-brand h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.sidebar-brand h3 i { color: var(--accent-color); }

.sidebar-menu { list-style: none; padding: 0 15px; }

.sidebar-menu li { margin-bottom: 5px; }

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.sidebar-menu a i { width: 24px; text-align: center; }

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 20px 15px;
}

.sidebar-user {
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.sidebar-user .info h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.sidebar-user .info span {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.main-content {
    margin-right: 280px;
    padding: 30px;
    background: var(--light-bg);
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue { background: #e3f2fd; color: #1976d2; }
.stat-icon.green { background: #e8f5e9; color: #388e3c; }
.stat-icon.orange { background: #fff3e0; color: #f57c00; }
.stat-icon.red { background: #fce4ec; color: #c2185b; }
.stat-icon.purple { background: #f3e5f5; color: #7b1fa2; }
.stat-icon.teal { background: #e0f2f1; color: #00796b; }

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info span {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== TABLES ===== */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.table-header h3 { font-size: 18px; }

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

.data-table th {
    background: #f8f9fa;
    padding: 14px 20px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.data-table tr:hover td { background: #fafafa; }

.data-table .book-thumb {
    width: 50px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
}

.data-table .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== STATUS BADGES ===== */
.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-published { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff3e0; color: #ef6c00; }
.status-draft { background: #eceff1; color: #546e7a; }
.status-rejected { background: #ffebee; color: #c62828; }
.status-active { background: #e8f5e9; color: #2e7d32; }
.status-suspended { background: #ffebee; color: #c62828; }
.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-unpaid { background: #ffebee; color: #c62828; }
.status-completed { background: #e8f5e9; color: #2e7d32; }
.status-processing { background: #e3f2fd; color: #1565c0; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.pagination a:hover, .pagination span.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===== BOOK DETAIL ===== */
.book-detail {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.book-detail-cover {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.book-detail-cover img { width: 100%; display: block; }

.book-detail-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.book-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.book-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 14px;
}

.book-detail-meta i { color: var(--primary-color); }

.book-detail-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 25px;
}

.book-detail-price .current {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
}

.book-detail-price .old {
    font-size: 20px;
    color: var(--text-light);
    text-decoration: line-through;
}

.book-detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.book-detail-description {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

.book-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.book-detail-tags span {
    padding: 6px 14px;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
}

/* ===== CART ===== */
.cart-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 110px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-item-info { flex: 1; }

.cart-item-info h4 { font-size: 16px; margin-bottom: 5px; }

.cart-item-info p {
    color: var(--text-light);
    font-size: 13px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-remove {
    color: var(--danger-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-item-remove:hover { background: #ffebee; }

.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    height: fit-content;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
    margin-top: 12px;
}

/* ===== CHECKOUT ===== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.checkout-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.checkout-form h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 { font-size: 36px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { display: none; }
    .dashboard { grid-template-columns: 1fr; }
    .sidebar { width: 100%; position: relative; }
    .main-content { margin-right: 0; }
    .book-detail { grid-template-columns: 1fr; }
    .cart-page, .checkout-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-main .container { flex-wrap: wrap; }
    .search-box {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
        margin-top: 10px;
    }
    .nav-bar .container {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .nav-bar a { white-space: nowrap; }
    .hero-content h1 { font-size: 28px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s ease forwards; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* ===== LOADING ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 { font-size: 20px; margin-bottom: 10px; }
.empty-state p { color: var(--text-light); }

/* ===== V2 PROFESSIONAL STYLES ===== */

/* Hero V2 */
.hero-v2 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 50px;
}

.hero-v2 .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 185, 35, 0.15);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(232, 185, 35, 0.3);
}

.hero-content-v2 h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content-v2 h1 .highlight {
    color: var(--accent-color);
    position: relative;
}

.hero-content-v2 h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(232, 185, 35, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 90%;
}

.hero-desc strong {
    color: var(--accent-color);
}

.hero-search-box {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-search-box form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-search-box i {
    color: rgba(255,255,255,0.5);
    margin-right: 15px;
    font-size: 18px;
}

.hero-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 16px;
    padding: 12px;
    outline: none;
    font-family: inherit;
}

.hero-search-box input::placeholder {
    color: rgba(255,255,255,0.4);
}

.hero-search-box .btn {
    padding: 14px 30px;
    border-radius: 12px;
}

.hero-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-tags span {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.hero-tags a {
    background: rgba(255,255,255,0.08);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.hero-tags a:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
}

/* Hero Image V2 */
.hero-image-v2 {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-v2 img {
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    max-height: 550px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.1);
}

.floating-card {
    position: absolute;
    background: var(--white);
    color: var(--text-dark);
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 24px;
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.floating-card small {
    color: var(--text-light);
    font-size: 12px;
}

.card-1 { top: 10%; left: -20px; animation-delay: 0s; }
.card-2 { bottom: 25%; left: -40px; animation-delay: 0.5s; }
.card-3 { top: 40%; right: -30px; animation-delay: 1s; }

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

/* Stats Bar */
.stats-bar {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    margin-top: -40px;
    border-radius: 20px 20px 0 0;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

/* Section V2 */
.section-v2 {
    padding: 80px 0;
}

.bg-light {
    background: linear-gradient(180deg, #f8f6f3 0%, #f0ece5 100%);
}

.section-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: rgba(139, 94, 60, 0.1);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header-v2 h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Books Grid V2 */
.books-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.book-card-v2 {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.book-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--border-color);
}

.book-badge-v2 {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
}

.badge-top { background: var(--accent-color); color: var(--secondary-color); }
.badge-discount { background: var(--danger-color); color: var(--white); }
.badge-new { background: var(--success-color); color: var(--white); }

.book-cover-v2 {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e0d5 0%, #d4c8b8 100%);
}

.book-cover-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-card-v2:hover .book-cover-v2 img {
    transform: scale(1.08);
}

.book-actions-v2 {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.book-card-v2:hover .book-actions-v2 {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.book-info-v2 {
    padding: 20px;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.book-category {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(139, 94, 60, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.book-rating-v2 {
    display: flex;
    align-items: center;
    gap: 3px;
}

.book-rating-v2 i {
    color: var(--accent-color);
    font-size: 12px;
}

.book-rating-v2 span {
    color: var(--text-light);
    font-size: 12px;
    margin-right: 4px;
}

.book-title-v2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    color: var(--text-dark);
}

.book-author-v2 {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
}

.book-author-v2 i {
    color: var(--primary-color);
    margin-left: 5px;
}

.book-price-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Categories Grid V2 */
.categories-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card-v2 {
    background: var(--white);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.category-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: var(--transition);
}

.category-card-v2:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-icon i {
    font-size: 28px;
    color: var(--white);
}

.category-card-v2 h3 {
    font-size: 17px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.category-card-v2 p {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 15px;
}

.category-arrow {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary-color);
    line-height: 35px;
    transition: var(--transition);
}

.category-card-v2:hover .category-arrow {
    background: var(--primary-color);
    color: var(--white);
}

/* COD Section */
.cod-section {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 50%, #1e8449 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cod-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cod-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cod-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.cod-text h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.cod-text h2 span {
    color: #ffd700;
}

.cod-text p {
    font-size: 17px;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 30px;
}

.cod-features {
    list-style: none;
    margin-bottom: 35px;
}

.cod-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 16px;
}

.cod-features li i {
    color: #ffd700;
    font-size: 20px;
}

.cod-image {
    position: relative;
    text-align: center;
}

.cod-image img {
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    max-height: 450px;
    border: 3px solid rgba(255,255,255,0.2);
}

.cod-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--white);
    color: var(--success-color);
    padding: 15px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.cod-badge i {
    font-size: 24px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.step-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(139, 94, 60, 0.08);
    line-height: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.step-icon i {
    font-size: 32px;
    color: var(--white);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 14px;
}

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

.author-card {
    background: var(--white);
    border-radius: 24px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    border: 1px solid transparent;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--border-color);
}

.author-avatar {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.verified-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--success-color);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid var(--white);
}

.author-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.author-bio {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.author-stats span {
    font-size: 13px;
    color: var(--text-light);
}

.author-stats i {
    color: var(--primary-color);
    margin-left: 5px;
}

.btn-outline-v2 {
    display: inline-block;
    padding: 10px 28px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

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

/* Features Grid V2 */
.features-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card-v2 {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card-v2:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-card-v2:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon i {
    font-size: 32px;
    color: var(--white);
}

.feature-card-v2 h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card-v2 p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 60px 0;
    color: var(--white);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h2 {
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter-text h2 i {
    color: var(--accent-color);
}

.newsletter-text p {
    opacity: 0.85;
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form .btn {
    padding: 16px 35px;
    border-radius: 16px;
    white-space: nowrap;
}

/* CTA Section V2 */
.cta-section-v2 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 80px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 35px;
    line-height: 1.7;
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

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

/* ===== CHECKOUT PAGE STYLES ===== */
.checkout-page {
    padding: 60px 0;
    background: var(--light-bg);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.checkout-form-v2 {
    background: var(--white);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.checkout-form-v2 h3 {
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-form-v2 h3 i {
    color: var(--primary-color);
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-method {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background: rgba(139, 94, 60, 0.02);
}

.payment-method.active {
    border-color: var(--primary-color);
    background: rgba(139, 94, 60, 0.05);
}

.payment-method input {
    display: none;
}

.payment-method i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.payment-method h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.payment-method p {
    font-size: 12px;
    color: var(--text-light);
}

.cod-highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #27ae60 !important;
}

.cod-highlight i {
    color: #27ae60 !important;
}

.order-summary-v2 {
    background: var(--white);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary-v2 h3 {
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item img {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.summary-item-info {
    flex: 1;
}

.summary-item-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.summary-item-info p {
    color: var(--text-light);
    font-size: 13px;
}

.summary-item-price {
    font-weight: 700;
    color: var(--primary-color);
}

.summary-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.summary-row-v2 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row-v2.total {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    margin-top: 15px;
}

.cod-notice {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2e7d32;
}

.cod-notice i {
    font-size: 24px;
}

/* ===== RESPONSIVE V2 ===== */
@media (max-width: 992px) {
    .hero-v2 .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content-v2 h1 { font-size: 36px; }
    .hero-desc { max-width: 100%; }
    .hero-image-v2 { display: none; }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    .cod-content { grid-template-columns: 1fr; text-align: center; }
    .cod-features { display: inline-block; text-align: right; }
    .checkout-grid { grid-template-columns: 1fr; }
    .newsletter-content { flex-direction: column; text-align: center; }
    .newsletter-form { max-width: 100%; width: 100%; }
}

@media (max-width: 768px) {
    .hero-content-v2 h1 { font-size: 28px; }
    .section-header-v2 { flex-direction: column; align-items: center; text-align: center; gap: 15px; }
    .section-header-v2 h2 { font-size: 26px; }
    .stats-bar .container { grid-template-columns: 1fr 1fr; gap: 20px; }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid-v2 { grid-template-columns: 1fr; }
    .payment-methods { grid-template-columns: 1fr; }
    .cta-content h2 { font-size: 28px; }
    .cod-text h2 { font-size: 28px; }
}

/* Footer V2 */
.footer-v2 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
}

.footer-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/></svg>');
    background-size: 80px;
}

.footer-grid-v2 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-brand-v2 { padding-right: 20px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 40px;
    color: var(--accent-color);
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 700;
}

.footer-logo h3 span { color: var(--accent-color); }

.footer-logo small {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    display: block;
    margin-top: -5px;
}

.footer-brand-v2 p {
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
}

.footer-social-v2 {
    display: flex;
    gap: 12px;
}

.footer-social-v2 a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
}

.footer-social-v2 a:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--accent-color);
    font-weight: 700;
}

.footer-links-v2 { list-style: none; }

.footer-links-v2 li { margin-bottom: 14px; }

.footer-links-v2 a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.footer-links-v2 a i {
    font-size: 10px;
    color: var(--accent-color);
    transition: var(--transition);
}

.footer-links-v2 a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-contact-v2 { list-style: none; }

.footer-contact-v2 li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
}

.footer-contact-v2 i {
    color: var(--accent-color);
    width: 20px;
    font-size: 16px;
}

.footer-bottom-v2 {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 25px 0;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .footer-grid-v2 { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .footer-grid-v2 { grid-template-columns: 1fr; gap: 30px; }
    .footer-brand-v2 { padding-right: 0; }
}


/* ============================================
   NEW SECTIONS STYLES - باب كتب
   Top Selling & Most Promoted Sections
   ============================================ */

/* Section Dark (Top Selling) */
.section-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 185, 35, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-dark::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 185, 35, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-dark .section-header h2,
.section-dark .section-header p {
    color: #fff;
}

/* Section Gradient (Most Promoted) */
.section-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.section-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.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");
    pointer-events: none;
}

.section-gradient .section-header h2,
.section-gradient .section-header p {
    color: #fff;
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 185, 35, 0.15);
    border: 1px solid rgba(232, 185, 35, 0.3);
    color: #e8b923;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.section-gradient .section-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Books Slider */
.books-slider-container {
    position: relative;
    padding: 0 50px;
}

.books-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 5px 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.books-slider::-webkit-scrollbar {
    display: none;
}

.books-slider .book-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e8b923;
    color: #8B5E3C;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: #e8b923;
    color: #1a1a2e;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    right: 0;
}

.slider-next {
    left: 0;
}

.section-dark .slider-arrow,
.section-gradient .slider-arrow {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.section-dark .slider-arrow:hover,
.section-gradient .slider-arrow:hover {
    background: #e8b923;
    border-color: #e8b923;
    color: #1a1a2e;
}

/* Book Card Highlight (Top Selling) */
.book-card-highlight {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.book-card-highlight .book-info h3,
.book-card-highlight .book-info .author,
.book-card-highlight .book-info .category {
    color: #fff;
}

.book-card-highlight .book-info .category {
    background: rgba(232, 185, 35, 0.2);
    color: #e8b923;
}

.book-card-highlight .price-current {
    color: #e8b923;
}

/* Book Card Promoted */
.book-card-promoted {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.book-card-promoted .book-info h3,
.book-card-promoted .book-info .author,
.book-card-promoted .book-info .category {
    color: #fff;
}

.book-card-promoted .book-info .category {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.book-card-promoted .price-current {
    color: #ffd700;
}

/* Badges */
.badge-bestseller {
    background: linear-gradient(135deg, #e8b923, #f4a261);
    color: #1a1a2e;
    font-weight: 700;
}

.badge-promoted {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #fff;
    font-weight: 700;
}

/* Sales & Views Info */
.book-sales-info,
.book-views-info {
    margin: 8px 0;
    font-size: 0.8rem;
}

.sales-count,
.views-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.sales-count {
    background: rgba(232, 185, 35, 0.15);
    color: #e8b923;
    border: 1px solid rgba(232, 185, 35, 0.3);
}

.views-count {
    background: rgba(167, 139, 250, 0.2);
    color: #ddd6fe;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

/* Light Section Header */
.section-header.light .line {
    background: linear-gradient(90deg, transparent, #e8b923, transparent);
}

/* Responsive */
@media (max-width: 768px) {
    .books-slider-container {
        padding: 0 40px;
    }

    .books-slider .book-card {
        flex: 0 0 240px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
    }
}

@media (max-width: 480px) {
    .books-slider-container {
        padding: 0 35px;
    }

    .books-slider .book-card {
        flex: 0 0 220px;
    }
}