/* ═══════════════════════════════════════════════════════════
   WC DPM Blog — Mirasvit-style listing + single view
   ═══════════════════════════════════════════════════════════ */

/* Suppress theme's auto-generated archive/page title + hero banner */
.wcdpm-blog-archive-page .page-title,
.wcdpm-blog-archive-page .archive-title,
.wcdpm-blog-archive-page .entry-title,
.wcdpm-blog-archive-page header.archive-header,
.wcdpm-blog-archive-page .page-header,
.wcdpm-blog-archive-page .breadcrumbs,
.wcdpm-blog-archive-page .site-breadcrumbs,
.wcdpm-blog-archive-page .banner,
.wcdpm-blog-archive-page .hero,
.wcdpm-blog-archive-page .wcdpm-blog-title + .wcdpm-blog-title,
.wcdpm-blog-archive-page #page-title,
.wcdpm-blog-archive-page #page-title-wrapper,
.wcdpm-blog-archive-page .dt-banner-wrapper,
.wcdpm-blog-archive-page .dt-page-title,
.wcdpm-blog-archive-page .page-title-wrapper,
.wcdpm-blog-archive-page .dynamic-title,
.wcdpm-blog-archive-page .entry-header,
.wcdpm-blog-single-page .dt-banner-wrapper,
.wcdpm-blog-single-page #page-title-wrapper,
.wcdpm-blog-single-page .page-title-wrapper,
.wcdpm-blog-single-page .dt-page-title,
.wcdpm-blog-single-page .page-header { display: none !important; height: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; }

/* Also kill any full-width hero background image at the top */
body.wcdpm-blog-archive-page .wf-container-main,
body.wcdpm-blog-archive-page .wf-wrap,
body.wcdpm-blog-single-page  .wf-container-main,
body.wcdpm-blog-single-page  .wf-wrap { padding-top: 0 !important; }

.wcdpm-blog-wrap { background: #fff; padding: 0; width: 100%; }
.wcdpm-blog-container { max-width: 1280px; width: 100%; margin: 0 auto; padding: 112px 24px 60px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: #1e293b; box-sizing: border-box; }
.wcdpm-blog-container * { box-sizing: border-box; }

/* Breadcrumbs — force visible regardless of theme CSS */
.wcdpm-blog-crumbs { display: flex !important; visibility: visible !important; opacity: 1 !important; height: auto !important; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #64748b; margin: 0 0 30px !important; padding: 0 !important; list-style: none; background: transparent !important; }
.wcdpm-blog-crumbs a { color: #4f46e5 !important; text-decoration: none !important; font-weight: 500; }
.wcdpm-blog-crumbs a:hover { text-decoration: underline !important; }
.wcdpm-blog-crumbs span { color: #cbd5e1; }
.wcdpm-blog-crumbs .crumb-current { color: #334155; font-weight: 600; max-width: 600px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Title */
.wcdpm-blog-title { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; color: #0f172a; margin: 0 0 30px; }

/* 2-column layout */
.wcdpm-blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }

/* ═══════════════ Card grid ═══════════════ */
.wcdpm-blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.wcdpm-blog-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column; }
.wcdpm-blog-card:hover { border-color: #c7d2fe; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1); }

.wcdpm-blog-card-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #eef2ff, #ddd6fe); }
.wcdpm-blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.wcdpm-blog-card:hover .wcdpm-blog-card-media img { transform: scale(1.04); }
.wcdpm-blog-card-placeholder { display: flex; width: 100%; height: 100%; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-weight: 800; font-size: 56px; align-items: center; justify-content: center; }

.wcdpm-blog-card-cat { position: absolute; top: 12px; left: 12px; background: #ef4444; color: #fff; padding: 5px 14px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; }

.wcdpm-blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wcdpm-blog-card-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; margin: 0; }
.wcdpm-blog-author { display: inline-flex; align-items: center; gap: 6px; }
.wcdpm-blog-author img { width: 24px; height: 24px; border-radius: 50%; }
.wcdpm-blog-dot { color: #cbd5e1; }

.wcdpm-blog-card-title { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 4px 0 6px; color: #0f172a; }
.wcdpm-blog-card-title a { color: inherit; text-decoration: none; }
.wcdpm-blog-card-title a:hover { color: #4f46e5; }

.wcdpm-blog-card-excerpt { margin: 0; font-size: 14px; line-height: 1.55; color: #64748b; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Pagination */
.wcdpm-blog-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.wcdpm-blog-pagination a, .wcdpm-blog-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 14px; font-weight: 600; color: #475569; text-decoration: none; }
.wcdpm-blog-pagination a:hover { border-color: #4f46e5; color: #4f46e5; }
.wcdpm-blog-pagination .current { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.wcdpm-blog-pagination .dots { border: 0; }

/* Empty state */
.wcdpm-blog-empty { text-align: center; padding: 80px 20px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; }
.wcdpm-blog-empty-icon { font-size: 56px; margin-bottom: 14px; }
.wcdpm-blog-empty h3 { font-size: 22px; color: #1e293b; margin: 0 0 8px; }
.wcdpm-blog-empty p { color: #64748b; margin: 0; }

/* ═══════════════ Sidebar ═══════════════ */
.wcdpm-blog-sidebar { display: flex; flex-direction: column; gap: 16px; }
.wcdpm-blog-widget { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 18px; }
.wcdpm-blog-widget h3 { margin: 0 0 12px; font-size: 13px; font-weight: 800; color: #0f172a; letter-spacing: 0.3px; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }

/* Categories list */
.wcdpm-blog-cats { list-style: none; margin: 0; padding: 0; }
.wcdpm-blog-cats li { margin: 0; border-bottom: 1px solid #f1f5f9; }
.wcdpm-blog-cats li:last-child { border: 0; }
.wcdpm-blog-cats a { display: flex; align-items: center; gap: 8px; padding: 10px 0; color: #334155; text-decoration: none; font-size: 14px; transition: color 0.15s, padding 0.15s; }
.wcdpm-blog-cats .arrow { color: #4f46e5; font-weight: 700; font-size: 16px; transition: transform 0.15s; }
.wcdpm-blog-cats a:hover { color: #4f46e5; padding-left: 4px; }
.wcdpm-blog-cats li.active a { color: #4f46e5; font-weight: 700; }
.wcdpm-blog-cats li.active .arrow { transform: translateX(2px); }

/* Recent posts */
.wcdpm-blog-recent { list-style: none; margin: 0; padding: 0; }
.wcdpm-blog-recent li { margin: 0; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.wcdpm-blog-recent li:last-child { border: 0; padding-bottom: 0; }
.wcdpm-blog-recent-link { display: block; text-decoration: none; color: inherit; }
.wcdpm-blog-recent-info { display: flex; gap: 10px; align-items: flex-start; }
.wcdpm-blog-recent-num { display: none; } /* mirasvit has numbers 1,2 — we skip to stay clean */
.wcdpm-blog-recent-thumb { flex-shrink: 0; width: 72px; height: 48px; border-radius: 6px; overflow: hidden; background: #eef2ff; }
.wcdpm-blog-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wcdpm-blog-recent-text { flex: 1; }
.wcdpm-blog-recent-text strong { display: block; font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.35; margin-bottom: 4px; transition: color 0.15s; }
.wcdpm-blog-recent-link:hover .wcdpm-blog-recent-text strong { color: #4f46e5; }
.wcdpm-blog-recent-text em { font-style: normal; font-size: 11px; color: #94a3b8; }

/* Tag cloud */
.wcdpm-blog-tagcloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; }
.wcdpm-blog-tag { display: inline-block; padding: 5px 10px; background: #f1f5f9; color: #334155; font-size: 12px; border-radius: 6px; text-decoration: none; border: 1px solid transparent; transition: all 0.15s; font-weight: 500; }
.wcdpm-blog-tag:hover { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }
.wcdpm-blog-tag.active { background: #4f46e5; color: #fff; }

/* Newsletter widget — cream/beige card (matches Mirasvit) */
.wcdpm-blog-newsletter { background: #fdf5ea; border: 1px solid #f4e5c7; padding: 24px 22px 24px; border-radius: 10px; }
.wcdpm-blog-newsletter h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: #0f172a; text-transform: none; letter-spacing: -0.3px; border: 0; padding: 0; }
.wcdpm-blog-newsletter p { margin: 0 0 16px; font-size: 14px; color: #64748b; line-height: 1.4; }
.wcdpm-blog-newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.wcdpm-blog-newsletter-form input[type=email] { padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; outline: 0; background: #fff; transition: border-color 0.15s; }
.wcdpm-blog-newsletter-form input[type=email]:focus { border-color: #4f46e5; }
.wcdpm-blog-newsletter-form button { padding: 12px 16px; background: #2563eb; color: #fff; border: 0; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.wcdpm-blog-newsletter-form button:hover { background: #1d4ed8; }

/* Promotional banner */
.wcdpm-blog-banner { padding: 0; border: 0; overflow: hidden; }
.wcdpm-blog-banner-inner { display: block; padding: 24px 22px; background: #fff1ee; border: 1px solid #fde2dc; border-radius: 10px; text-decoration: none; color: inherit; transition: transform 0.15s; }
.wcdpm-blog-banner-inner:hover { transform: translateY(-2px); }
.wcdpm-blog-banner h3 { margin: 0 0 18px; font-size: 20px; font-weight: 800; color: #1e293b; text-transform: none; letter-spacing: -0.3px; border: 0; padding: 0; }
.wcdpm-blog-offers { margin-bottom: 14px; }
.wcdpm-blog-offer { margin-bottom: 10px; }
.wcdpm-blog-offer-amount { font-size: 24px; font-weight: 800; color: #ef4444; line-height: 1; }
.wcdpm-blog-offer-desc { font-size: 12px; color: #64748b; margin-top: 2px; }
.wcdpm-blog-banner-icons { display: flex; gap: 6px; margin: 16px 0 12px; align-items: center; }
.wcdpm-blog-banner-dot { width: 14px; height: 14px; border-radius: 50%; }
.wcdpm-blog-banner-dot.bg-blue { background: #4f46e5; }
.wcdpm-blog-banner-dot.bg-navy { background: #1e293b; }
.wcdpm-blog-banner-bar { flex: 1; height: 6px; background: #4f46e5; border-radius: 3px; }
.wcdpm-blog-coupon { margin-top: 12px; padding: 8px 12px; background: #fff; border: 1px dashed #ef4444; border-radius: 6px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.wcdpm-blog-coupon-label { color: #64748b; }
.wcdpm-blog-coupon-code { font-family: 'SF Mono', Consolas, monospace; font-weight: 700; color: #ef4444; font-size: 14px; letter-spacing: 1px; }

/* ═══════════════ Single post — Mirasvit-style layout ═══════════════ */
/* Title & meta ABOVE the image */
.wcdpm-single-title { font-size: 42px; font-weight: 800; line-height: 1.2; letter-spacing: -0.8px; color: #0f172a; margin: 0 0 24px; }

/* Meta bar: "author • category • date • read time" */
.wcdpm-single-metabar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; color: #64748b; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid #e5e7eb; }
.wcdpm-single-author { display: inline-flex; align-items: center; gap: 10px; color: #334155; }
.wcdpm-single-author img { width: 40px; height: 40px; border-radius: 50%; }
.wcdpm-single-author strong { font-weight: 700; color: #0f172a; font-size: 15px; }

/* Dot separator */
.wcdpm-single-sep { display: inline-block; width: 4px; height: 4px; background: #dc2626; border-radius: 50%; flex-shrink: 0; }

.wcdpm-single-cat-inline { display: inline-block; color: #dc2626; font-size: 14px; font-weight: 500; text-decoration: none; }
.wcdpm-single-cat-inline:hover { text-decoration: underline; color: #b91c1c; }

.wcdpm-single-read, .wcdpm-single-date { color: #64748b; }

/* Legacy — keep for backward compat if old cached HTML shows */
.wcdpm-single-dot { color: #cbd5e1; }

/* Article card (now cleaner — just image + content, no border since title is outside) */
.wcdpm-single-article { background: transparent; border: 0; border-radius: 0; overflow: visible; margin-bottom: 40px; }

.wcdpm-single-feature { position: relative; margin: 0 0 30px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08); }
.wcdpm-single-feature img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: cover; }

.wcdpm-single-content { padding: 0; font-size: 17px; line-height: 1.8; color: #334155; max-width: none; }
.wcdpm-single-content h2 { font-size: 28px; font-weight: 800; color: #0f172a; margin: 1.8em 0 0.6em; letter-spacing: -0.5px; padding-bottom: 8px; border-bottom: 2px solid #f1f5f9; }
.wcdpm-single-content h3 { font-size: 20px; font-weight: 700; color: #1e293b; margin: 1.5em 0 0.5em; }
.wcdpm-single-content p { margin: 0 0 1em; }
.wcdpm-single-content ul, .wcdpm-single-content ol { margin: 0.8em 0 1.2em 1.5em; padding: 0; }
.wcdpm-single-content li { margin-bottom: 0.5em; }
.wcdpm-single-content a { color: #4f46e5; font-weight: 500; }
.wcdpm-single-content blockquote { border-left: 4px solid #4f46e5; background: #f8fafc; padding: 16px 24px; margin: 1.5em 0; border-radius: 0 8px 8px 0; font-style: italic; color: #475569; }
.wcdpm-single-content code { background: #f1f5f9; padding: 2px 8px; border-radius: 4px; color: #be185d; font-family: 'SF Mono', Consolas, monospace; font-size: 15px; }
.wcdpm-single-content pre { background: #0f172a; color: #e2e8f0; padding: 18px 22px; border-radius: 8px; overflow-x: auto; margin: 1.2em 0; font-size: 14px; line-height: 1.6; }
.wcdpm-single-content pre code { background: transparent; color: inherit; padding: 0; }
.wcdpm-single-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.2em 0; }

.wcdpm-single-tags { margin: 30px 0 14px; padding: 18px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wcdpm-single-tags strong { font-size: 13px; color: #64748b; margin-right: 4px; }

.wcdpm-single-share { display: flex; align-items: center; gap: 10px; margin: 14px 0 20px; padding: 0; }
.wcdpm-single-share span { font-size: 13px; color: #64748b; font-weight: 600; margin-right: 4px; }
.wcdpm-single-share .share-btn { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; color: #fff !important; font-weight: 700; border-radius: 50%; text-decoration: none; transition: transform 0.15s; }
.wcdpm-single-share .share-btn:hover { transform: translateY(-2px); }

/* Featured product box */
.wcdpm-single-product { margin: 30px 0 0; padding: 26px; background: linear-gradient(135deg, #eef2ff, #ede9fe); border: 1px solid #c7d2fe; border-radius: 14px; }
.wcdpm-single-product-inner { display: flex; gap: 20px; align-items: center; }
.wcdpm-single-product-img { flex-shrink: 0; width: 110px; height: 110px; border-radius: 10px; overflow: hidden; background: #fff; }
.wcdpm-single-product-img img { width: 100%; height: 100%; object-fit: cover; }
.wcdpm-single-product-text { flex: 1; }
.wcdpm-single-product-text .tag { display: inline-block; background: #4f46e5; color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; margin-bottom: 10px; }
.wcdpm-single-product-text h3 { margin: 0 0 6px; font-size: 19px; color: #0f172a; }
.wcdpm-single-product-text p { margin: 0 0 12px; font-size: 14px; color: #475569; line-height: 1.55; }
.wcdpm-single-product-text .button { display: inline-block; padding: 10px 22px; background: #4f46e5; color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.wcdpm-single-product-text .button:hover { background: #4338ca; color: #fff; }

/* Related section */
.wcdpm-single-related { margin-top: 50px; padding-top: 28px; border-top: 2px solid #f1f5f9; }
.wcdpm-single-related h2 { font-size: 26px; font-weight: 800; color: #0f172a; margin: 0 0 20px; letter-spacing: -0.4px; }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 1024px) {
    .wcdpm-blog-layout { grid-template-columns: 1fr; }
    .wcdpm-blog-sidebar { flex-direction: row; flex-wrap: wrap; }
    .wcdpm-blog-sidebar .wcdpm-blog-widget { flex: 1 1 calc(50% - 8px); min-width: 260px; }
}
@media (max-width: 768px) {
    .wcdpm-blog-container { padding: 20px 16px 40px; }
    .wcdpm-blog-title { font-size: 28px; }
    .wcdpm-blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .wcdpm-blog-card-body { padding: 16px 18px 18px; }
    .wcdpm-blog-card-title { font-size: 17px; }
    .wcdpm-single-title { font-size: 26px; }
    .wcdpm-single-metabar { font-size: 13px; gap: 8px; }
    .wcdpm-single-author img { width: 32px; height: 32px; }
    .wcdpm-single-author strong { font-size: 14px; }
    .wcdpm-single-content { font-size: 15.5px; }
    .wcdpm-single-content h2 { font-size: 22px; }
    .wcdpm-single-product { padding: 22px; }
    .wcdpm-single-product-inner { flex-direction: column; text-align: center; }
    .wcdpm-blog-sidebar { flex-direction: column; }
    .wcdpm-blog-sidebar .wcdpm-blog-widget { flex: 1 1 100%; }
}
