/*
Theme Name: NicheDealPilot Child
Theme URI: https://nichedealpilot.com/
Description: Affiliate/deal-focused child theme for Product Comparison Woocommerce. Adds NicheDealPilot branding, affiliate comparison shortcodes, deal grids, niche hub template, disclosure blocks, and safer affiliate link attributes.
Author: NicheDealPilot
Template: product-comparison-woocommerce
Version: 1.2.0
Text Domain: nichedealpilot-child
License: GNU General Public License v3.0
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Requires at least: 5.0
Requires PHP: 7.2
*/

:root{
  --ndp-bg:#f6f8fb;
  --ndp-card:#ffffff;
  --ndp-text:#111827;
  --ndp-muted:#5b6472;
  --ndp-border:#e5e7eb;
  --ndp-primary:#2563eb;
  --ndp-primary-dark:#1d4ed8;
  --ndp-accent:#10b981;
  --ndp-warning:#f59e0b;
  --ndp-radius:18px;
  --ndp-shadow:0 14px 40px rgba(15,23,42,.08);
}

html{scroll-behavior:smooth;}
body{background:var(--ndp-bg);color:var(--ndp-text);overflow-x:hidden;}
p{color:var(--ndp-muted);line-height:1.7;}
a{color:var(--ndp-primary);}
a:hover{color:var(--ndp-primary-dark);}

.ndp-wrap{max-width:1180px;margin:0 auto;padding:0 18px;}
.ndp-hero{padding:82px 0 56px;background:linear-gradient(135deg,#eef6ff 0%,#fff 48%,#f0fdf4 100%);border-bottom:1px solid var(--ndp-border);} 
.ndp-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:38px;align-items:center;}
.ndp-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:999px;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-bottom:18px;}
.ndp-hero h1{font-size:clamp(38px,6vw,68px);line-height:1.02;margin:0 0 18px;color:#0f172a;font-weight:900;letter-spacing:-.04em;}
.ndp-hero .lead{font-size:18px;max-width:720px;margin-bottom:24px;}
.ndp-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0;}
.ndp-btn,.ndp-affiliate-btn,.ndp-table-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;padding:13px 20px;text-decoration:none!important;font-weight:800;border:1px solid transparent;transition:.18s ease;line-height:1.2;}
.ndp-btn-primary,.ndp-affiliate-btn,.ndp-table-btn{background:var(--ndp-primary);color:#fff!important;box-shadow:0 12px 25px rgba(37,99,235,.25);}
.ndp-btn-primary:hover,.ndp-affiliate-btn:hover,.ndp-table-btn:hover{background:var(--ndp-primary-dark);transform:translateY(-1px);color:#fff!important;}
.ndp-btn-ghost{background:#fff;color:var(--ndp-text)!important;border-color:var(--ndp-border);}
.ndp-btn-ghost:hover{border-color:#bfdbfe;box-shadow:var(--ndp-shadow);}
.ndp-hero-card,.ndp-card,.ndp-product-box,.ndp-table-wrap,.ndp-disclosure,.ndp-empty{background:var(--ndp-card);border:1px solid var(--ndp-border);border-radius:var(--ndp-radius);box-shadow:var(--ndp-shadow);}
.ndp-hero-card{padding:26px;}
.ndp-mini-list{list-style:none;margin:0;padding:0;display:grid;gap:18px;}
.ndp-mini-list li{display:flex;gap:12px;align-items:flex-start;}
.ndp-check{display:inline-flex;width:28px;height:28px;border-radius:999px;align-items:center;justify-content:center;background:#dcfce7;color:#047857;font-weight:900;flex:0 0 28px;}
.ndp-section{padding:56px 0;}
.ndp-section-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:24px;}
.ndp-section h2{font-size:clamp(28px,4vw,42px);line-height:1.12;margin:0 0 8px;color:#0f172a;font-weight:900;letter-spacing:-.03em;}
.ndp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.ndp-card{padding:24px;}
.ndp-card h3{margin:12px 0 8px;font-size:22px;color:#111827;}
.ndp-card-link{font-weight:800;text-decoration:none;}
.ndp-badge{display:inline-flex;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;}
.ndp-badge.blue{background:#dbeafe;color:#1d4ed8;}.ndp-badge.green{background:#dcfce7;color:#047857;}.ndp-badge.orange{background:#ffedd5;color:#c2410c;}.ndp-badge.purple{background:#ede9fe;color:#6d28d9;}.ndp-badge.gray{background:#f1f5f9;color:#334155;}
.ndp-disclosure{padding:14px 16px;margin:18px 0;color:#334155;background:#fffef6;border-color:#fde68a;font-size:14px;box-shadow:none;}
.ndp-table-wrap{overflow:hidden;margin:22px 0;}
.ndp-table-scroll{overflow-x:auto;}
.ndp-table{width:100%;border-collapse:collapse;margin:0;background:#fff;}
.ndp-table th,.ndp-table td{padding:16px 14px;text-align:left;border-bottom:1px solid var(--ndp-border);vertical-align:middle;}
.ndp-table th{background:#f8fafc;color:#0f172a;font-size:13px;text-transform:uppercase;letter-spacing:.05em;}
.ndp-table tr:last-child td{border-bottom:0;}
.ndp-product-title{font-weight:900;color:#111827;}
.ndp-product-sub{font-size:13px;color:var(--ndp-muted);margin-top:4px;}
.ndp-rating{font-weight:900;color:#0f172a;white-space:nowrap;}
.ndp-price{font-weight:900;color:#047857;white-space:nowrap;}
.ndp-table-btn{padding:10px 14px;font-size:13px;white-space:nowrap;}
.ndp-deal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0;}
.ndp-product-box{padding:22px;display:flex;flex-direction:column;gap:14px;height:100%;}
.ndp-product-top{display:flex;gap:14px;align-items:center;}
.ndp-product-img{width:64px;height:64px;border-radius:14px;object-fit:contain;background:#f8fafc;border:1px solid var(--ndp-border);padding:8px;}
.ndp-product-box h3{font-size:20px;margin:0;color:#111827;}
.ndp-product-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--ndp-muted);}
.ndp-product-meta span{background:#f8fafc;border:1px solid var(--ndp-border);border-radius:999px;padding:5px 9px;}
.ndp-product-box ul{margin:0 0 0 18px;padding:0;color:var(--ndp-muted);}
.ndp-empty{padding:20px;background:#fff;color:var(--ndp-muted);box-shadow:none;}
.ndp-home-note{background:#0f172a;color:#fff;border-radius:24px;padding:26px;margin-top:20px;}
.ndp-home-note p{color:#cbd5e1;margin:0;}
body .woocommerce ul.products li.product .button,
body .woocommerce a.button{border-radius:999px!important;font-weight:800!important;}
body .woocommerce ul.products li.product{border:1px solid var(--ndp-border);border-radius:18px;padding:14px!important;background:#fff;box-shadow:var(--ndp-shadow);} 

@media (max-width:900px){
  .ndp-hero-grid,.ndp-grid,.ndp-deal-grid{grid-template-columns:1fr;}
  .ndp-hero{padding:54px 0 38px;}
  .ndp-section-head{display:block;}
  .ndp-table th,.ndp-table td{padding:12px 10px;}
}
