/* ============================================
   AppBull Site-Specific Styles
   ============================================ */

/* --- Navbar --- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0 0; height: 64px;
}
.navbar .container { height: 100%; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text); }
.navbar-brand:hover { color: var(--text); }
.brand-icon { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.brand-text { letter-spacing: -0.5px; }

.navbar-links { display: flex; align-items: center; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius); transition: all var(--transition); cursor: pointer; background: none; border: none; position: relative; }
.nav-link:hover { color: var(--text); background: var(--bg-secondary); }
.nav-link i { font-size: 15px; }

.cart-link { position: relative; }
.cart-badge { position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.user-toggle { padding: 4px; }

.navbar-search { flex: 1; max-width: 420px; margin: 0 24px; }
.search-form { position: relative; }
.search-form i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.search-input { width: 100%; padding: 9px 14px 9px 38px; font-size: 14px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-full); outline: none; transition: all var(--transition); }
.search-input:focus { background: var(--bg); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.dropdown-toggle::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; margin-left: 2px; }

.mega-menu { min-width: 480px; padding: 16px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-menu .dropdown-item { border-radius: var(--radius); font-size: 13px; }

/* Mobile */
.mobile-toggle { display: none; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 99; padding: 16px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-search { margin-bottom: 16px; }
.mobile-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 15px; color: var(--text); border-radius: var(--radius); }
.mobile-link:hover { background: var(--bg-secondary); color: var(--text); }
.mobile-link i { width: 20px; text-align: center; color: var(--text-muted); }

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .hide-mobile { display: none !important; }
    .navbar-search { display: none; }
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 40%, #dc2626 100%);
    color: #fff; padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: 16px; position: relative; color: #fff; }
.hero p { font-size: 1.125rem; opacity: 0.85; max-width: 600px; margin: 0 auto 32px; position: relative; color: #fff; }
.hero .hero-actions { display: flex; gap: 12px; justify-content: center; position: relative; }
.hero .btn { font-size: 16px; padding: 14px 28px; }

.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 48px; position: relative; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 800; }
.hero-stat .label { font-size: 14px; opacity: 0.7; }

@media (max-width: 768px) {
    .hero { padding: 48px 0; }
    .hero h1 { font-size: 1.75rem; }
    .hero-stats { gap: 24px; }
    .hero-stat .number { font-size: 1.5rem; }
}

/* --- Section Headers --- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-header h2 { margin-bottom: 0; }

/* --- Product Card Enhancements --- */
.product-card .card-img-wrap { background: var(--bg-tertiary); }
.product-card .card-img { aspect-ratio: 16/10; }
.product-card .card-body { padding: 16px 20px; }
.product-card .card-footer { padding: 12px 20px; }
.product-card .card-actions { display: flex; align-items: center; gap: 8px; }

/* --- Product Detail --- */
.product-hero { padding: 32px 0; background: var(--bg-secondary); }
.product-gallery { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-tertiary); }
.product-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.product-info { }
.product-info .product-title { font-size: 1.75rem; margin-bottom: 8px; }
.product-info .product-seller { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.product-info .product-price-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.product-info .price-main { font-size: 2rem; font-weight: 800; color: var(--text); }
.product-info .price-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.product-info .price-badge { display: inline-block; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); margin-left: 8px; }

/* --- Seller Card (sidebar) --- */
.seller-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.seller-card .seller-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.seller-card .seller-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seller-card .seller-stat { text-align: center; padding: 8px; background: var(--bg-secondary); border-radius: var(--radius); }
.seller-card .seller-stat .num { font-weight: 700; font-size: 16px; }
.seller-card .seller-stat .lbl { font-size: 12px; color: var(--text-muted); }

/* --- Auth Pages --- */
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box .card { padding: 40px; }
.auth-box h2 { text-align: center; margin-bottom: 8px; }
.auth-box .auth-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; }
.auth-box .auth-footer { text-align: center; margin-top: 24px; font-size: 14px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--text-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* --- Dashboard --- */
.dashboard-header { background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 24px 0; }
.dashboard-header h1 { font-size: 1.5rem; margin-bottom: 0; }

.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.dash-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.dash-stat .stat-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.dash-stat .stat-icon.blue { background: var(--primary-bg); color: var(--primary); }
.dash-stat .stat-icon.green { background: var(--success-bg); color: var(--success); }
.dash-stat .stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.dash-stat .stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.dash-stat .stat-value { font-size: 1.5rem; font-weight: 800; margin-bottom: 2px; }
.dash-stat .stat-label { font-size: 13px; color: var(--text-muted); }

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

/* --- Footer --- */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.footer-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.footer-heading { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 8px; }
.social-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); border-radius: var(--radius); color: var(--text-secondary); transition: all var(--transition); }
.social-link:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; font-size: 13px; color: var(--text-muted); }
.footer-bottom p { margin: 0; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Blog Pages
   ============================================ */

/* Category Colors */
:root {
    --cat-software-reviews: #dc2626;
    --cat-saas: #6366f1;
    --cat-wordpress: #0ea5e9;
    --cat-web-development: #10b981;
    --cat-developer-tools: #8b5cf6;
    --cat-mobile-development: #f59e0b;
    --cat-ai-tools: #06b6d4;
    --cat-no-code: #ec4899;
    --cat-design-tools: #d946ef;
    --cat-marketing-tools: #f97316;
    --cat-ecommerce: #14b8a6;
    --cat-productivity: #3b82f6;
    --cat-cybersecurity: #ef4444;
    --cat-cloud-devops: #64748b;
    --cat-seo-tools: #22c55e;
    --cat-startup: #e11d48;
    --cat-freelancing: #a855f7;
    --cat-api-integration: #0891b2;
    --cat-data-analytics: #7c3aed;
    --cat-digital-business: #059669;
}

/* --- Blog Hero Section --- */
.blog-hero { padding: 24px 0 8px; }

.blog-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: block;
    background: #0f172a;
    height: 460px;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: all 0.5s ease;
}

.hero-card:hover img {
    opacity: 0.5;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 36px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
}

.hero-badges { display: flex; gap: 8px; margin-bottom: 14px; }

.hero-cat-badge {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-summary {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta-row {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    display: flex;
    gap: 16px;
}

.hero-meta-row i { margin-right: 4px; }

/* Hero Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 460px;
}

.sidebar-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0f172a;
    flex: 1;
    display: block;
}

.sidebar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: all 0.4s ease;
}

.sidebar-card:hover img {
    opacity: 0.5;
    transform: scale(1.03);
}

.sidebar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.sidebar-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-card-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    .blog-hero-grid { grid-template-columns: 1fr; }
    .hero-card { height: 300px; }
    .hero-title { font-size: 22px; }
    .hero-overlay { padding: 28px 24px; }
    .hero-summary { display: none; }
    .hero-sidebar { height: auto; flex-direction: row; }
    .sidebar-card { min-height: 180px; }
}

@media (max-width: 480px) {
    .hero-card { height: 260px; }
    .hero-sidebar { flex-direction: column; }
    .sidebar-card { min-height: 160px; }
}

/* --- Categories Strip --- */
.blog-categories {
    padding: 20px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    text-decoration: none;
}

.category-chip:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary);
}

.category-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.category-chip i { font-size: 12px; }

/* --- Blog Posts Grid --- */
.blog-posts-section { padding: 40px 0 56px; }

.blog-section-header { margin-bottom: 28px; }

.blog-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.blog-section-title .page-indicator {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 8px;
}

.blog-section-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--info));
    border-radius: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Post Card */
.post-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--border);
}

.post-card-image {
    position: relative;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.post-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.post-card-cat {
    display: inline-block;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.post-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.post-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.post-card-date,
.post-card-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-date i,
.post-card-read-time i { font-size: 11px; }

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .blog-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .blog-posts-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Blog Article Detail
   ============================================ */
.article-detail { padding: 32px 0 80px; }
.article-container { max-width: 760px; margin: 0 auto; }

/* Breadcrumb Nav */
.breadcrumb-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-size: 13px;
    color: var(--text-muted);
    align-items: center;
}

.breadcrumb-nav li { display: flex; align-items: center; }
.breadcrumb-nav a { color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav .separator { margin: 0 8px; font-size: 9px; color: var(--text-muted); }
.breadcrumb-nav li[aria-current="page"] { color: var(--text-secondary); font-weight: 500; }

/* Article Header */
.article-header { margin-bottom: 36px; }

.article-header-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.article-cat-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.article-cat-badge:hover { opacity: 0.8; }

.article-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.article-summary-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Article Info Bar */
.article-info-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    gap: 16px;
}

.info-left { display: flex; align-items: center; }
.info-right { display: flex; gap: 16px; flex-wrap: wrap; }

.author-mini { display: flex; align-items: center; gap: 10px; }

.author-avatar-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.author-details { display: flex; flex-direction: column; }
.author-name { font-weight: 600; font-size: 14px; color: var(--text); }
.author-date { font-size: 13px; color: var(--text-muted); }

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.info-item i { font-size: 12px; }

/* Key Takeaways */
.article-key-takeaways {
    background: linear-gradient(135deg, var(--primary-bg), #fef2f2);
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 32px;
}

.takeaway-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.takeaway-header i { font-size: 16px; color: var(--warning); }

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

.takeaway-list li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.takeaway-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* Featured Image */
.article-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
}

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

/* Article Content */
.article-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
}

.article-content p { margin-bottom: 1.5em; color: var(--text); }

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.article-content h3 {
    font-size: 1.3rem;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.article-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.article-content ul, .article-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.5em; }

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 18px 28px;
    margin: 1.8em 0;
    background: var(--primary-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 16px;
}

.article-content img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-content table th,
.article-content table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.article-content table th {
    background: var(--bg-tertiary);
    font-weight: 600;
}

.article-content table tr:nth-child(even) {
    background: var(--bg-secondary);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(220, 38, 38, 0.3);
    text-underline-offset: 3px;
}

.article-content a:hover {
    text-decoration-color: var(--primary);
}

.article-content code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: var(--font-mono);
}

.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 14px;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* FAQ Section */
.article-faq {
    margin: 48px 0 36px;
    padding: 28px 32px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.faq-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    border: none;
    padding: 0;
}

.faq-title i { color: var(--primary); font-size: 20px; }

.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    line-height: 1.45;
    transition: color 0.2s;
    font-family: var(--font);
}

.faq-question:hover { color: var(--primary); }

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    margin-left: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 0 18px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Article Tags */
.article-tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 28px 0;
    margin-top: 36px;
    border-top: 1px solid var(--border);
    align-items: center;
}

.tag-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}

.tag-label i { color: var(--text-muted); }

.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }

.tags-list a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.tags-list a:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary);
}

/* Share Section */
.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.share-buttons { display: flex; gap: 8px; }

.share-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    transition: all var(--transition);
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.share-twitter:hover { background: #000; border-color: #000; color: #fff; }
.share-facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-email:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Related Articles */
.article-related {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 2px solid var(--border-light);
}

.related-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
    border: none;
    padding: 0;
}

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

.related-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--border);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover img { transform: scale(1.03); }

.related-card-body { padding: 16px; }

.related-card-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

.related-card-body h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover h3 { color: var(--primary); }

.related-card-date {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .article-header h1 { font-size: 1.75rem; }
    .article-summary-text { font-size: 1rem; }
    .article-content { font-size: 16px; }
    .related-grid { grid-template-columns: 1fr; }
    .article-faq { padding: 20px; }
    .article-info-bar { flex-direction: column; align-items: flex-start; }
}

/* --- Filter Sidebar --- */
.filter-sidebar { position: sticky; top: 80px; }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.filter-count { font-size: 12px; color: var(--text-muted); background: var(--bg-tertiary); padding: 2px 8px; border-radius: var(--radius-full); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 80px; }
.price-range span { color: var(--text-muted); }

/* --- Review Section --- */
.review-summary { display: flex; gap: 32px; align-items: center; padding: 24px; background: var(--bg-secondary); border-radius: var(--radius-lg); margin-bottom: 24px; }
.review-score { text-align: center; }
.review-score .big-number { font-size: 3rem; font-weight: 800; line-height: 1; }
.review-bars { flex: 1; }
.review-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.review-bar-row .label { width: 24px; text-align: right; }
.review-bar-row .bar { flex: 1; height: 8px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; }
.review-bar-row .bar-fill { height: 100%; background: #fbbf24; border-radius: 4px; }
.review-bar-row .count { width: 30px; color: var(--text-muted); }

.review-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: 0; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-author { font-weight: 600; font-size: 14px; }
.review-date { font-size: 13px; color: var(--text-muted); }
.review-content { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.review-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.review-pros li::before { content: '+'; color: var(--success); font-weight: 700; margin-right: 6px; }
.review-cons li::before { content: '-'; color: var(--danger); font-weight: 700; margin-right: 6px; }
.review-helpful { margin-top: 12px; font-size: 13px; color: var(--text-muted); }

/* --- Checkout --- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.order-summary { position: sticky; top: 80px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.order-summary h3 { margin-bottom: 16px; }
.order-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.order-item img { width: 60px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); }
.order-total { display: flex; justify-content: space-between; padding: 16px 0 0; font-size: 18px; font-weight: 700; }

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}
