/* ==========================================================================
   Tech2Have Blog — blog.css
   Extracted from base_blog.html + blog_page.html inline styles
   + modernizations: glass header, card animations, mobile drawer, dark mode
   ========================================================================== */

/* ── Design Tokens ─────────────────────────────────────── */
:root {
    --primary:       #F97316;
    --primary-dark:  #EA580C;
    --primary-light: #FED7AA;
    --teal:          #0D9488;
    --teal-dark:     #0F766E;
    --dark:          #1C1917;
    --dark-2:        #292524;
    --warm-bg:       #FFFBF5;
    --warm-bg-2:     #FEF3E2;
    --card-bg:       #fff;
    --card-border:   #E7E5E4;
    --text-muted:    #78716C;
    --text-body:     #44403C;

    /* Category colours */
    --cat-news:         #3B82F6;
    --cat-review:       #F97316;
    --cat-buying-guide: #10B981;
    --cat-knowledge:    #8B5CF6;
    --cat-bargain:      #EF4444;
}

/* ── Skip Link ─────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--dark);
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    font-size: 0.9rem;
}
.skip-link:focus { top: 0; outline: 3px solid var(--primary); }

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--warm-bg);
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.6;
}

/* #C2410C passes 5:1 contrast on warm-bg — WCAG 1.4.3 */
a { color: #C2410C; text-decoration: none; }
a:hover { color: #9A3412; }

/* ── Focus Visible ──────────────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 3px;
}
button:focus-visible, a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   HEADER — glass morphism effect
   ========================================================================== */
.site-header {
    background: rgba(28, 25, 23, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
}

.site-header .container-xl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 1rem;
}

.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    line-height: 1;
}

.site-logo .logo-letter {
    display: inline-block;
    opacity: 0;
    animation: logo-rise 0.4s ease forwards;
    animation-delay: calc(var(--i) * 50ms);
}

.site-logo .logo-letter.accent {
    color: var(--primary);
}

@keyframes logo-rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    color: #D6D3D1;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(249,115,22,0.15);
    color: var(--primary);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    overflow: hidden;
}

.header-search input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    width: 200px;
    outline: none;
}

.header-search input::placeholder { color: #A8A29E; }

.header-search button {
    background: transparent;
    border: none;
    color: #A8A29E;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}

.header-search button:hover { color: var(--primary); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER
   ========================================================================== */
.nav-overlay {
    display: none;
}

.nav-close {
    display: none;
}

/* ==========================================================================
   CATEGORY BADGE
   ========================================================================== */
.cat-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    color: #fff;
    line-height: 1.4;
}

.cat-badge.news         { background: var(--cat-news); }
.cat-badge.review       { background: var(--cat-review); }
.cat-badge.buying_guide { background: var(--cat-buying-guide); }
.cat-badge.knowledge    { background: var(--cat-knowledge); }
.cat-badge.bargain      { background: var(--cat-bargain); }

/* ── Difficulty Badge ───────────────────────────────────── */
.diff-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    border: 1px solid currentColor;
    line-height: 1.4;
}

.diff-badge.beginner     { color: #10B981; border-color: #10B981; }
.diff-badge.intermediate { color: #F59E0B; border-color: #F59E0B; }
.diff-badge.advanced     { color: #EF4444; border-color: #EF4444; }

/* ==========================================================================
   BLOG CARDS — smoother animations
   ========================================================================== */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}

.blog-card .card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--warm-bg-2);
}

.blog-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .card-img-wrap img {
    transform: scale(1.04);
}

.card-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.blog-card .card-body {
    padding: 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-title {
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .card-title a {
    color: inherit;
    text-decoration: none;
}

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

.blog-card .card-excerpt {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.blog-card .card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   BARGAIN CARDS — smoother animations
   ========================================================================== */
.bargain-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.bargain-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}

.bargain-card .card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--warm-bg-2);
}

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

.bargain-card.expired .card-img-wrap img {
    filter: grayscale(60%) opacity(0.7);
}

.expired-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
}

.expired-overlay span {
    background: var(--cat-bargain);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 4px;
}

.bargain-price-strip {
    background: var(--warm-bg-2);
    padding: 0.6rem 1.1rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    border-bottom: 1px solid var(--card-border);
}

.bargain-price-strip .price-now {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.bargain-price-strip .price-was {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.bargain-price-strip .price-save {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10B981;
    background: #D1FAE5;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
}

.bargain-card .card-body {
    padding: 0.85rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bargain-card .retailer-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.bargain-card .card-title {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.bargain-card .card-title a { color: inherit; text-decoration: none; }
.bargain-card .card-title a:hover { color: var(--primary); }

.bargain-card .deal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    text-decoration: none;
    width: fit-content;
    transition: all 0.15s;
    position: relative;
    z-index: 2;
}

.bargain-card .deal-btn:hover { color: var(--primary); border-color: var(--primary); background: rgba(249,115,22,0.05); }

.bargain-card.expired .deal-btn {
    color: #9CA3AF;
    border-color: #E5E7EB;
    pointer-events: none;
}

.expired-price-note {
    font-size: 0.75rem;
    color: var(--cat-bargain);
    margin-top: 0.4rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-post {
    background: var(--dark-2);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
}

.hero-post .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-post .hero-body {
    position: relative;
    z-index: 2;
    padding: 2rem 2.5rem;
    background: linear-gradient(to top, rgba(28,25,23,0.95) 0%, rgba(28,25,23,0.4) 60%, transparent 100%);
    width: 100%;
}

.hero-post .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0.5rem 0 0.75rem;
}

.hero-post .hero-title a { color: inherit; text-decoration: none; }
.hero-post .hero-title a:hover { color: var(--primary-light); }

.hero-post .hero-excerpt {
    color: #D6D3D1;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-post .hero-meta {
    font-size: 0.8rem;
    color: #A8A29E;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #C2410C;
    color: #fff;
    font-size: 0.825rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}

.read-more-btn:hover { background: #9A3412; color: #fff; }

/* ==========================================================================
   FILTER TABS
   ========================================================================== */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.filter-tabs a {
    font-size: 0.825rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    text-decoration: none;
    transition: all 0.15s;
}

.filter-tabs a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tabs a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.blog-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.sidebar-widget h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--warm-bg-2);
}

.ad-placeholder {
    background: var(--warm-bg-2);
    border: 2px dashed var(--card-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}

.recent-post-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--warm-bg-2);
}

.recent-post-item:last-child { border-bottom: none; }

.recent-post-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-post-item .img-placeholder {
    width: 56px;
    height: 56px;
    background: var(--warm-bg-2);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.recent-post-item .rp-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-item .rp-title a { color: inherit; text-decoration: none; }
.recent-post-item .rp-title a:hover { color: var(--primary); }

.recent-post-item .rp-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ==========================================================================
   SECTION HEADING
   ========================================================================== */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.blog-pagination .page-link {
    color: var(--primary);
    border-color: var(--card-border);
}

.blog-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.blog-pagination .page-link:hover {
    background: var(--warm-bg-2);
    color: var(--primary-dark);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--dark);
    color: #A8A29E;
    padding: 2.5rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary);
}

.site-footer .footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.site-footer .footer-brand .logo-letter {
    display: inline-block;
    opacity: 0;
    animation: logo-rise 0.4s ease forwards;
    animation-delay: calc(var(--i) * 50ms);
}

.site-footer .footer-brand .logo-letter.accent {
    color: var(--primary);
}

.site-footer a { color: #A8A29E; text-decoration: none; font-size: 0.875rem; }
.site-footer a:hover { color: var(--primary); }

.site-footer .footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.775rem;
    color: #78716C;
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.newsletter-section h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    font-size: 0.85rem;
    color: #A8A29E;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

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

.newsletter-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.newsletter-form button:hover { background: var(--primary-dark); }

/* ==========================================================================
   BLOG POST PAGE — TOC, ads, typography (from blog_page.html extra_css)
   ========================================================================== */

/* Blog body typography */
.blog-body h2 { margin-top: 2rem; margin-bottom: 1rem; }
.blog-body h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.blog-body p { margin-bottom: 1rem; line-height: 1.8; }
.blog-body img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1rem 0; }
.blog-body ul, .blog-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.blog-body blockquote { border-left: 4px solid var(--primary, #F97316); padding-left: 1rem; margin: 1.5rem 0; color: #555; }

/* Floating sidebar — TOC + ads */
.blog-toc-wrapper {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #E7E5E4 transparent;
}
.blog-toc-wrapper::-webkit-scrollbar { width: 4px; }
.blog-toc-wrapper::-webkit-scrollbar-thumb { background: #E7E5E4; border-radius: 2px; }
.blog-toc {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

/* ── Post ad cards ── */
.post-ad-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.625rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.post-ad-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.post-ad-card .pad-img-wrap { position: relative; }
.post-ad-card .pad-img-wrap img { width: 100%; height: auto; display: block; object-fit: cover; }
.post-ad-card .pad-img-wrap a { display: block; }
.post-ad-card .pad-img-wrap a:hover img { opacity: 0.92; }
.post-ad-card .pad-sponsored {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 2px 5px;
    border-radius: 3px;
    pointer-events: none;
}
.post-ad-card .pad-body { padding: 0.5rem 0.65rem 0.6rem; }
.post-ad-card .pad-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.post-ad-card .pad-html { padding: 0.6rem; }

/* ── Right sidebar ads ── */
.post-ads-right { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.post-ads-right .post-ad-card .pad-img-wrap img { max-height: 150px; }

/* ── Left fixed ads (wide screens only) ── */
.post-ads-left {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 148px;
    z-index: 99;
    display: none;
    flex-direction: column;
    gap: 0.6rem;
}
.post-ads-left .post-ad-card .pad-img-wrap img { max-height: 110px; }
@media (min-width: 1440px) { .post-ads-left { display: flex; } }

/* ── Bottom full-width ads ── */
.post-ads-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}
.post-ads-bottom .post-ad-card { flex: 1 1 180px; max-width: 260px; }
.post-ads-bottom .post-ad-card .pad-img-wrap img { max-height: 130px; }

/* TOC */
.blog-toc-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}
.blog-toc-list { list-style: none; padding: 0; margin: 0; }
.blog-toc-list li { margin-bottom: 0.125rem; }
.blog-toc-list a {
    display: block;
    padding: 0.3rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0.375rem;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    line-height: 1.4;
}
.blog-toc-list a:hover { color: var(--primary); background: rgba(249,115,22,0.06); }
.blog-toc-list a.active {
    color: var(--primary);
    background: rgba(249,115,22,0.08);
    border-left-color: var(--primary);
    font-weight: 600;
}
.blog-toc-list .toc-h3 { padding-left: 1.25rem; }
.blog-toc-list .toc-h4 { padding-left: 2rem; font-size: 0.75rem; }
.blog-toc:empty, .blog-toc-hidden { display: none; }

/* Card image placeholder (no featured image) */
.img-placeholder-full {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-bg-2);
}
.img-placeholder-full i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.4;
}

/* Product carousel */
.product-carousel-track { scrollbar-width: none; -ms-overflow-style: none; }
.product-carousel-track::-webkit-scrollbar { display: none; }

/* ==========================================================================
   RESPONSIVE — mobile
   ========================================================================== */
@media (max-width: 991px) {
    /* Mobile nav drawer */
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: #1C1917;
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1100;
        display: flex;
        box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    }

    .site-nav.open {
        transform: translateX(0);
    }

    .site-nav a {
        padding: 0.75rem 0;
        font-size: 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(2px);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: #A8A29E;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.25rem;
        line-height: 1;
    }

    .nav-close:hover { color: var(--primary); }
    .nav-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

    .nav-toggle { display: block; }

    .site-header .container-xl { flex-wrap: wrap; }
    .header-search input { width: 140px; }
    .hero-post { min-height: 280px; }
    .hero-post .hero-title { font-size: 1.3rem; }

    /* Newsletter form stacks on small screens */
    .newsletter-form { flex-direction: column; }
}

@media (max-width: 575px) {
    .hero-post .hero-body { padding: 1.25rem; }
    .newsletter-form { max-width: 100%; }
}

/* ==========================================================================
   DARK MODE TOGGLE BUTTON
   ========================================================================== */
.theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem 0.55rem;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
}
.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(249,115,22,0.08);
}
.theme-toggle .fa-sun  { display: none; }
.theme-toggle .fa-moon { display: inline-block; }

/* ==========================================================================
   DARK MODE
   ========================================================================== */

/* Dark mode tokens — shared by both auto (media query) and manual toggle */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --warm-bg:      #1a1714;
        --warm-bg-2:    #242019;
        --dark:         #F5F5F4;
        --dark-2:       #E7E5E4;
        --card-bg:      #242019;
        --card-border:  #3d3832;
        --text-muted:   #A8A29E;
        --text-body:    #D6D3D1;
    }
}
html[data-theme="dark"] {
    --warm-bg:      #1a1714;
    --warm-bg-2:    #242019;
    --dark:         #F5F5F4;
    --dark-2:       #E7E5E4;
    --card-bg:      #242019;
    --card-border:  #3d3832;
    --text-muted:   #A8A29E;
    --text-body:    #D6D3D1;
}

/* Dark mode styles — apply when system prefers dark (unless forced light) OR when manually set */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) body { background: var(--warm-bg); color: var(--text-body); } }
html[data-theme="dark"] body { background: var(--warm-bg); color: var(--text-body); }

/* Toggle icon flip */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .theme-toggle .fa-sun  { display: inline-block; }
    html:not([data-theme="light"]) .theme-toggle .fa-moon { display: none; }
}
html[data-theme="dark"] .theme-toggle .fa-sun  { display: inline-block; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* --- Dark mode component styles (dual selector: auto + manual) --- */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) a { color: #F97316; } }
html[data-theme="dark"] a { color: #F97316; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) a:hover { color: #FB923C; } }
html[data-theme="dark"] a:hover { color: #FB923C; }

/* Header */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .site-header { background: rgba(26, 23, 20, 0.92); border-bottom-color: var(--primary); } }
html[data-theme="dark"] .site-header { background: rgba(26, 23, 20, 0.92); border-bottom-color: var(--primary); }

/* Cards */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) :is(.blog-card, .bargain-card, .sidebar-widget, .blog-toc, .post-ad-card) { background: var(--card-bg); border-color: var(--card-border); } }
html[data-theme="dark"] :is(.blog-card, .bargain-card, .sidebar-widget, .blog-toc, .post-ad-card) { background: var(--card-bg); border-color: var(--card-border); }

@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) :is(.blog-card, .bargain-card) .card-img-wrap { background: #1a1714; } }
html[data-theme="dark"] :is(.blog-card, .bargain-card) .card-img-wrap { background: #1a1714; }

@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) :is(.blog-card, .bargain-card):hover { box-shadow: 0 12px 32px rgba(0,0,0,0.3); } }
html[data-theme="dark"] :is(.blog-card, .bargain-card):hover { box-shadow: 0 12px 32px rgba(0,0,0,0.3); }

/* Bargain price strip */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .bargain-price-strip { background: #1a1714; border-bottom-color: var(--card-border); } }
html[data-theme="dark"] .bargain-price-strip { background: #1a1714; border-bottom-color: var(--card-border); }

@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .bargain-price-strip .price-save { background: #064e3b; color: #6ee7b7; } }
html[data-theme="dark"] .bargain-price-strip .price-save { background: #064e3b; color: #6ee7b7; }

/* Hero */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .hero-post .hero-body { background: linear-gradient(to top, rgba(15,13,11,0.95) 0%, rgba(15,13,11,0.4) 60%, transparent 100%); } }
html[data-theme="dark"] .hero-post .hero-body { background: linear-gradient(to top, rgba(15,13,11,0.95) 0%, rgba(15,13,11,0.4) 60%, transparent 100%); }

/* Footer */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .site-footer { background: #0f0d0b; } }
html[data-theme="dark"] .site-footer { background: #0f0d0b; }

/* Filter tabs */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .filter-tabs a { background: var(--card-bg); border-color: var(--card-border); color: var(--text-muted); } }
html[data-theme="dark"] .filter-tabs a { background: var(--card-bg); border-color: var(--card-border); color: var(--text-muted); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .filter-tabs a:hover { border-color: var(--primary); color: var(--primary); } }
html[data-theme="dark"] .filter-tabs a:hover { border-color: var(--primary); color: var(--primary); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .filter-tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; } }
html[data-theme="dark"] .filter-tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Read more btn */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .read-more-btn { background: #EA580C; } }
html[data-theme="dark"] .read-more-btn { background: #EA580C; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .read-more-btn:hover { background: #C2410C; } }
html[data-theme="dark"] .read-more-btn:hover { background: #C2410C; }

/* Blog post body */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .blog-body { color: #D6D3D1; } }
html[data-theme="dark"] .blog-body { color: #D6D3D1; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) :is(.blog-body h1, .blog-body h2, .blog-body h3, .blog-body h4, .blog-body h5, .blog-body h6) { color: #F5F5F4; } }
html[data-theme="dark"] :is(.blog-body h1, .blog-body h2, .blog-body h3, .blog-body h4, .blog-body h5, .blog-body h6) { color: #F5F5F4; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .blog-body blockquote { border-left-color: var(--primary); color: #A8A29E; } }
html[data-theme="dark"] .blog-body blockquote { border-left-color: var(--primary); color: #A8A29E; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .blog-body code { background: #2d2820; color: #FB923C; } }
html[data-theme="dark"] .blog-body code { background: #2d2820; color: #FB923C; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .blog-body pre { background: #1a1714; border: 1px solid var(--card-border); } }
html[data-theme="dark"] .blog-body pre { background: #1a1714; border: 1px solid var(--card-border); }

/* TOC scrollbar */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .blog-toc-wrapper { scrollbar-color: #3d3832 transparent; } }
html[data-theme="dark"] .blog-toc-wrapper { scrollbar-color: #3d3832 transparent; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .blog-toc-wrapper::-webkit-scrollbar-thumb { background: #3d3832; } }
html[data-theme="dark"] .blog-toc-wrapper::-webkit-scrollbar-thumb { background: #3d3832; }

/* Form inputs */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) :is(input, textarea, select) { background: #1a1714 !important; color: var(--text-body) !important; border-color: var(--card-border) !important; } }
html[data-theme="dark"] :is(input, textarea, select) { background: #1a1714 !important; color: var(--text-body) !important; border-color: var(--card-border) !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) :is(input, textarea)::placeholder { color: #78716C !important; } }
html[data-theme="dark"] :is(input, textarea)::placeholder { color: #78716C !important; }

/* Category badges stay vivid */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .cat-badge { opacity: 1; } }
html[data-theme="dark"] .cat-badge { opacity: 1; }

/* Bootstrap overrides */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .breadcrumb-item a { color: var(--text-muted); } }
html[data-theme="dark"] .breadcrumb-item a { color: var(--text-muted); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .breadcrumb-item.active { color: var(--text-body); } }
html[data-theme="dark"] .breadcrumb-item.active { color: var(--text-body); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .badge.bg-secondary { background: #3d3832 !important; color: var(--text-body) !important; } }
html[data-theme="dark"] .badge.bg-secondary { background: #3d3832 !important; color: var(--text-body) !important; }

@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .bg-light { background: #1a1714 !important; } }
html[data-theme="dark"] .bg-light { background: #1a1714 !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .text-dark { color: var(--text-body) !important; } }
html[data-theme="dark"] .text-dark { color: var(--text-body) !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .text-muted { color: var(--text-muted) !important; } }
html[data-theme="dark"] .text-muted { color: var(--text-muted) !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important; } }
html[data-theme="dark"] .shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .card { background: var(--card-bg); border-color: var(--card-border); } }
html[data-theme="dark"] .card { background: var(--card-bg); border-color: var(--card-border); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) :is(.border-top, .border-bottom) { border-color: var(--card-border) !important; } }
html[data-theme="dark"] :is(.border-top, .border-bottom) { border-color: var(--card-border) !important; }

/* Share/outline buttons */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .btn-outline-secondary { border-color: var(--card-border) !important; color: var(--text-muted) !important; } }
html[data-theme="dark"] .btn-outline-secondary { border-color: var(--card-border) !important; color: var(--text-muted) !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .btn-outline-secondary:hover { background: var(--card-bg) !important; color: var(--primary) !important; border-color: var(--primary) !important; } }
html[data-theme="dark"] .btn-outline-secondary:hover { background: var(--card-bg) !important; color: var(--primary) !important; border-color: var(--primary) !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .btn-outline-primary { border-color: var(--primary) !important; color: var(--primary) !important; } }
html[data-theme="dark"] .btn-outline-primary { border-color: var(--primary) !important; color: var(--primary) !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .btn-outline-primary:hover { background: var(--primary) !important; color: #fff !important; } }
html[data-theme="dark"] .btn-outline-primary:hover { background: var(--primary) !important; color: #fff !important; }

/* Newsletter in footer (already dark) */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .newsletter-section { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); } }
html[data-theme="dark"] .newsletter-section { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }

/* Mobile nav drawer background */
@media (prefers-color-scheme: dark) and (max-width: 991px) { html:not([data-theme="light"]) .site-nav { background: #0f0d0b; box-shadow: -4px 0 24px rgba(0,0,0,0.5); } }
@media (max-width: 991px) { html[data-theme="dark"] .site-nav { background: #0f0d0b; box-shadow: -4px 0 24px rgba(0,0,0,0.5); } }

/* Sidebar borders */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .sidebar-widget h6 { border-bottom-color: var(--card-border); } }
html[data-theme="dark"] .sidebar-widget h6 { border-bottom-color: var(--card-border); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .recent-post-item { border-bottom-color: var(--card-border); } }
html[data-theme="dark"] .recent-post-item { border-bottom-color: var(--card-border); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .recent-post-item .img-placeholder { background: #1a1714; } }
html[data-theme="dark"] .recent-post-item .img-placeholder { background: #1a1714; }

/* About/Contact content cards */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .content-card { background: var(--card-bg) !important; border-color: var(--card-border) !important; } }
html[data-theme="dark"] .content-card { background: var(--card-bg) !important; border-color: var(--card-border) !important; }

/* Lead text */
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .lead { color: var(--text-body); } }
html[data-theme="dark"] .lead { color: var(--text-body); }
