/* ==========================================================================
   سایت نودسرو — استایل صفحات داخلی (محصول، دسته، مقاله، برگه، فروشگاه، سبد، پنل)
   تمام قواعد زیر داخل محدودهٔ سیستم طراحی «.hp» تعریف شده‌اند تا توکن‌های رنگی
   (فیروزه‌ای #008193 و سبز #8dc63f) با صفحهٔ اصلی یکسان بمانند.
   ========================================================================== */

/* --- مسیر راهنما (breadcrumb) --- */
.hp .crumb{
  display:flex; flex-wrap:wrap; align-items:center; gap:7px;
  font-size:12.5px; color:var(--muted); margin:0 0 16px; padding:0; list-style:none;
}
.hp .crumb li{display:flex; align-items:center; gap:7px}
.hp .crumb li + li::before{content:'←'; color:#bccbd0; font-size:12px}
.hp .crumb a{color:var(--teal); font-weight:600}
.hp .crumb a:hover{color:var(--teal-600); text-decoration:underline}
.hp .crumb [aria-current="page"]{color:var(--muted); font-weight:600}

/* --- سربرگ صفحهٔ داخلی --- */
.hp .page-head{margin:0 0 22px; text-align:center}
.hp .page-head h1{
  font-size:26px; line-height:1.55; color:var(--ink); font-weight:900; margin:0;
}
.hp .page-head .lead-sub{font-size:13.5px; color:var(--muted); margin:8px 0 0}
.hp .page-head .s-rule{margin:14px auto 0}
.hp .page-head--right{text-align:right}
.hp .page-head--right .s-rule{margin-right:0; margin-left:auto}
.hp .page-head .count-chip{
  display:inline-block; margin-top:10px; background:var(--teal-50); color:var(--teal-600);
  border:1px solid #cfe8ec; border-radius:20px; padding:4px 13px; font-size:12px; font-weight:700;
}

/* --- مقاله / برگهٔ داخلی --- */
.hp .article-page{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-xl);
  box-shadow:var(--sh-2); padding:30px 34px 34px; overflow:hidden;
}
.hp .article-page h1{font-size:25px; line-height:1.6; color:var(--ink); font-weight:900; margin:0 0 12px}
.hp .article-page .article-meta{
  display:flex; flex-wrap:wrap; gap:16px; font-size:12.5px; color:var(--muted);
  border-bottom:1px solid var(--line); padding-bottom:14px; margin-bottom:20px;
}
.hp .article-page .article-meta a{color:var(--teal); font-weight:700}
.hp .article-page .article-body{font-size:14.5px; line-height:2.1; color:var(--body)}
.hp .article-page .article-body h2{
  font-size:20px; color:var(--ink); margin:28px 0 12px; padding-bottom:9px;
  border-bottom:2px solid var(--teal-50); font-weight:900;
}
.hp .article-page .article-body h3{font-size:17px; color:var(--ink); margin:22px 0 10px; font-weight:800}
.hp .article-page .article-body h4,
.hp .article-page .article-body h5,
.hp .article-page .article-body h6{font-size:15.5px; color:var(--ink); margin:18px 0 9px; font-weight:800}
.hp .article-page .article-body h6{color:var(--teal)}
.hp .article-page .article-body p{margin-bottom:14px}
.hp .article-page .article-body b,
.hp .article-page .article-body strong{color:var(--ink)}
.hp .article-page .article-body a{color:var(--teal); font-weight:700; text-decoration:underline; text-underline-offset:3px}
.hp .article-page .article-body ul,
.hp .article-page .article-body ol{margin:0 20px 16px 0; padding:0}
.hp .article-page .article-body li{margin-bottom:8px; line-height:2}
.hp .article-page .article-body img{
  max-width:100%; height:auto; display:block; margin:18px auto;
  border-radius:var(--r-md); box-shadow:var(--sh-2);
}
.hp .article-page .article-body figure{margin:18px 0; text-align:center}
.hp .article-page .article-body figcaption{font-size:12.5px; color:var(--muted); margin-top:8px}
.hp .article-page .article-body blockquote{
  border-right:4px solid var(--teal); background:var(--bg-soft);
  border-radius:var(--r-md); padding:14px 18px; margin:18px 0; color:var(--body);
}
.hp .article-page .article-body table{
  width:100%; border-collapse:collapse; margin:18px 0; font-size:13.5px;
  display:block; overflow-x:auto;
}
.hp .article-page .article-body th,
.hp .article-page .article-body td{border:1px solid var(--line); padding:10px 12px; text-align:right}
.hp .article-page .article-body th{background:var(--bg-soft); font-weight:800; color:var(--ink)}
.hp .article-page .article-body code{
  background:#f1f6f7; border:1px solid var(--line); border-radius:6px;
  padding:2px 7px; direction:ltr; display:inline-block; font-size:13px;
}
.hp .article-page .article-body hr{border:0; border-top:1px solid var(--line); margin:24px 0}
.hp .article-page .article-body p:empty,
.hp .article-page .article-body p:has(> br:only-child){display:none}

/* --- فهرست مطالب داخل مقاله --- */
.hp .toc{
  background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--r-md);
  padding:16px 20px; margin:0 0 22px;
}
.hp .toc-head{font-weight:900; color:var(--ink); font-size:14px; margin-bottom:10px}
.hp .toc ol{margin:0; padding:0; list-style:none; counter-reset:toc}
.hp .toc li{margin:0 0 8px; font-size:13.5px; counter-increment:toc}
.hp .toc li::before{content:counter(toc) '. '; color:var(--teal); font-weight:800}
.hp .toc li.lvl3{padding-right:18px; font-size:13px}
.hp .toc a{color:var(--body); font-weight:600}
.hp .toc a:hover{color:var(--teal); text-decoration:underline}

/* --- چیدمان دوستونهٔ محتوای داخلی --- */
.hp .inner-2col{display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:26px; align-items:start}
.hp .inner-2col--wide{grid-template-columns:minmax(0,1fr) 360px}
.hp .inner-side{display:grid; gap:18px; position:sticky; top:14px}

/* --- کارت کناری --- */
.hp .side-box{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:18px 20px; box-shadow:var(--sh-1);
}
.hp .side-box > h3,
.hp .side-box > h2{
  font-size:15px; color:var(--ink); font-weight:900; margin:0 0 12px;
  padding-bottom:9px; border-bottom:2px solid var(--teal-50);
}
.hp .side-box ul{list-style:none; margin:0; padding:0; display:grid; gap:9px}
.hp .side-box li{font-size:13px; line-height:1.9; color:var(--body)}
.hp .side-box li a{color:var(--body); font-weight:600}
.hp .side-box li a:hover{color:var(--teal)}
.hp .side-box li::before{content:'◆'; color:var(--green); font-size:9px; margin-left:7px; vertical-align:middle}
.hp .side-box img{max-width:100%; height:auto; border-radius:var(--r-md)}

/* --- شبکهٔ کارت مطالب --- */
.hp .b-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:20px}
.hp .b-grid--4{grid-template-columns:repeat(4,1fr)}
.hp .b-card .b-excerpt{
  display:block; font-size:12.5px; line-height:1.95; color:var(--muted); padding:0 16px 14px;
}
.hp .b-card .b-meta{
  display:block; font-size:11.5px; color:var(--muted); padding:0 16px 14px; margin-top:auto;
}
.hp .b-card .b-meta span{display:inline-flex; align-items:center; gap:5px}

/* --- یکسان‌سازی ارتفاع تصویر کارت‌های محصول در فروشگاه --- */
.hp .p-thumb{
  display:flex; align-items:center; justify-content:center;
  height:140px; overflow:hidden;
}
.hp .p-thumb img{max-height:140px; max-width:100%; width:auto; height:auto; margin:0 auto; object-fit:contain}

/* --- جدول مقایسهٔ صفحهٔ اصلی (کپشن قابل‌مشاهده) --- */
.hp .cmp-table caption{
  caption-side:top; text-align:right; font-size:12.5px; color:var(--muted);
  padding:0 4px 10px; font-weight:600; line-height:1.9;
}

/* --- صفحه‌بندی --- */
.hp .pager{display:flex; justify-content:center; gap:7px; margin:28px 0 6px; flex-wrap:wrap}
.hp .pager a,
.hp .pager span{
  min-width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center;
  padding:0 12px; border:1px solid var(--line); border-radius:var(--r-sm); background:#fff;
  font-size:13px; font-weight:700; color:var(--body); transition:var(--tr);
}
.hp .pager a:hover{border-color:var(--teal); color:var(--teal); background:var(--teal-50)}
.hp .pager .is-current,
.hp .pager span[aria-current]{background:var(--teal); border-color:var(--teal); color:#fff}
.hp .pager .is-disabled{opacity:.45}

/* --- جدول عمومی --- */
.hp .tbl-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:var(--r-lg); background:#fff}
.hp .tbl{width:100%; border-collapse:collapse; font-size:13.5px}
.hp .tbl caption{
  caption-side:top; text-align:right; font-size:12.5px; color:var(--muted); padding:12px 16px 0;
}
.hp .tbl th,
.hp .tbl td{border-bottom:1px solid var(--line); padding:12px 14px; text-align:right; vertical-align:middle}
.hp .tbl thead th{
  background:var(--bg-soft); color:var(--ink); font-weight:800; font-size:13px; white-space:nowrap;
}
.hp .tbl tbody tr:last-child td{border-bottom:0}
.hp .tbl tbody tr:hover td{background:#fbfdfd}
.hp .tbl .num{direction:ltr; text-align:center; font-weight:700}
.hp .tbl .price-cell{color:var(--teal); font-weight:900; white-space:nowrap}
.hp .tbl tfoot td{background:var(--teal-50); font-weight:900; color:var(--ink)}
.hp .tbl input[type=number]{
  width:74px; padding:8px 10px; border:1px solid var(--line); border-radius:var(--r-sm);
  text-align:center; font-family:inherit; font-size:13.5px; font-weight:700; color:var(--ink);
}
.hp .tbl input[type=number]:focus{outline:2px solid var(--teal); outline-offset:1px; border-color:var(--teal)}

/* --- فرم‌ها --- */
.hp .form-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-xl);
  box-shadow:var(--sh-2); padding:26px 28px 30px;
}
.hp .form-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px}
.hp .form-grid--1{grid-template-columns:1fr}
.hp .field{display:grid; gap:7px}
.hp .field--full{grid-column:1/-1}
.hp .field label{font-size:13px; font-weight:800; color:var(--ink)}
.hp .field label .req{color:#c0392b}
.hp .field input[type=text],
.hp .field input[type=email],
.hp .field input[type=tel],
.hp .field input[type=number],
.hp .field input[type=password],
.hp .field input[type=search],
.hp .field select,
.hp .field textarea{
  width:100%; padding:11px 14px; border:1px solid var(--line); border-radius:var(--r-sm);
  font-family:inherit; font-size:13.5px; color:var(--ink); background:#fff; text-align:right;
  transition:var(--tr);
}
.hp .field textarea{min-height:120px; line-height:2; resize:vertical}
.hp .field input:focus,
.hp .field select:focus,
.hp .field textarea:focus{outline:0; border-color:var(--teal); box-shadow:0 0 0 3px rgba(0,129,147,.13)}
.hp .field .hint{font-size:11.5px; color:var(--muted); line-height:1.8}
.hp .field .err{font-size:12px; color:#c0392b; font-weight:700}
.hp .field.has-err input,
.hp .field.has-err select,
.hp .field.has-err textarea{border-color:#e0a3a3; background:#fffafa}
.hp .form-actions{display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top:22px}
.hp .search-inline{display:flex; gap:10px; flex-wrap:wrap; max-width:560px}
.hp .search-inline input{flex:1 1 220px}

/* --- جعبهٔ پیام --- */
.hp .note{
  border:1px solid var(--line); border-right:4px solid var(--teal); background:var(--bg-soft);
  border-radius:var(--r-md); padding:14px 18px; font-size:13.5px; line-height:2;
  color:var(--body); margin:0 0 18px;
}
.hp .note--ok{border-right-color:var(--green); background:var(--green-50)}
.hp .note--warn{border-right-color:var(--yellow); background:#fffbe6}
.hp .note--err{border-right-color:#c0392b; background:#fdf2f2; color:#7d241c}
.hp .note b{color:var(--ink)}

/* --- خرید / سبد --- */
.hp .cart-actions{display:flex; gap:12px; flex-wrap:wrap; justify-content:space-between; align-items:center; margin-top:22px}
.hp .cart-sum{display:grid; gap:10px; background:#fff; border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--sh-1); padding:20px 22px}
.hp .cart-sum dl{margin:0; display:grid; gap:9px}
.hp .cart-sum .row{display:flex; justify-content:space-between; font-size:13.5px; color:var(--body)}
.hp .cart-sum .row b{color:var(--ink); font-weight:800}
.hp .cart-sum .row--total{
  border-top:1px dashed var(--line); padding-top:11px; font-size:15px;
}
.hp .cart-sum .row--total b{color:var(--teal); font-size:18px; font-weight:900}
.hp .qty-form{display:flex; gap:7px; align-items:center; justify-content:center}
.hp .link-danger{color:#c0392b; font-size:12.5px; font-weight:700}
.hp .link-danger:hover{text-decoration:underline}

/* --- مراحل سفارش --- */
.hp .steps{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:0 0 24px; padding:0; list-style:none}
.hp .steps li{
  display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; color:var(--muted);
  background:#fff; border:1px solid var(--line); border-radius:30px; padding:8px 16px;
}
.hp .steps li b{
  width:21px; height:21px; border-radius:50%; background:var(--bg-soft); color:var(--muted);
  display:inline-flex; align-items:center; justify-content:center; font-size:11.5px;
}
.hp .steps li.is-done{color:var(--teal-600); border-color:#bfe1e5; background:var(--teal-50)}
.hp .steps li.is-done b{background:var(--teal); color:#fff}
.hp .steps li.is-active{color:#12330a; border-color:#c9e5a0; background:var(--green-50); font-weight:900}
.hp .steps li.is-active b{background:var(--green); color:#12330a}

/* مرحله‌های کلیک‌پذیر: برگشت به مرحلهٔ قبل (سبد خرید / تسویه / پرداخت) */
.hp .steps li > a,
.hp .steps li > span{display:flex; align-items:center; gap:8px; color:inherit; text-decoration:none}
.hp .steps li > a:hover{color:var(--teal-700)}
.hp .steps li > a:focus-visible{outline:2px solid var(--teal); outline-offset:3px; border-radius:20px}
.hp .steps li:has(> a){cursor:pointer}
.hp .steps li:has(> a):hover{border-color:var(--teal); background:#fff; box-shadow:var(--sh-1)}

/* نوار مراحل وقتی بالای صفحه است (صفحهٔ پرداخت و سفارش) از منو فاصله بگیرد */
.hp .wrap > .steps:first-child,
.hp .wrap > .steps-nav:first-child{ margin-top:16px }

/* --- ۴۰۴ --- */
.hp .nf{text-align:center; padding:40px 20px 10px}
.hp .nf .code{
  font-size:82px; font-weight:900; line-height:1; letter-spacing:-3px;
  background:linear-gradient(180deg,var(--teal),var(--green));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hp .nf h1{font-size:24px; color:var(--ink); font-weight:900; margin:14px 0 8px}
.hp .nf p{font-size:14px; color:var(--muted); margin:0 0 20px}
.hp .nf .nf-actions{display:flex; gap:10px; justify-content:center; flex-wrap:wrap}
.hp .nf .search-inline{margin:24px auto 0; justify-content:center}

/* --- جستجو / فیلتر --- */
.hp .filters{display:flex; gap:8px; flex-wrap:wrap; margin:0 0 20px}
.hp .filters a{
  border:1px solid var(--line); background:#fff; border-radius:24px; padding:7px 15px;
  font-size:12.5px; font-weight:700; color:var(--body); transition:var(--tr);
}
.hp .filters a:hover{border-color:var(--teal); color:var(--teal)}
.hp .filters a.is-active{background:var(--teal); border-color:var(--teal); color:#fff}

/* --- گالری محصول --- */
.hp .gal{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-1); padding:16px; text-align:center;
}
.hp .gal img{max-width:100%; height:auto; border-radius:var(--r-md)}
.hp .gal-thumbs{display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:12px}
.hp .gal-thumbs img{
  width:64px; height:64px; object-fit:contain; border:1px solid var(--line);
  border-radius:var(--r-sm); background:#fff; padding:4px;
}

/* --- مشخصات کلیدی محصول --- */
.hp .spec-list{list-style:none; margin:0; padding:0; display:grid; gap:9px}
.hp .spec-list li{
  display:flex; justify-content:space-between; gap:12px; font-size:13px;
  border-bottom:1px dashed var(--line); padding-bottom:9px;
}
.hp .spec-list li:last-child{border-bottom:0}
.hp .spec-list li span:first-child{color:var(--muted); font-weight:600}
.hp .spec-list li span:last-child{color:var(--ink); font-weight:800; text-align:left}

/* --- مرکزگرایی محتوای کم‌عرض --- */
.hp .narrow{max-width:620px; margin:0 auto}
.hp .narrow--wide{max-width:820px}

/* --- پنل کاربری --- */
.hp .pn-wrap{display:grid; grid-template-columns:238px minmax(0,1fr); gap:22px; align-items:start; padding:24px 0}
.hp .pn-side{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-1); padding:12px; position:sticky; top:14px;
}
.hp .pn-side h2{
  font-size:12px; color:var(--muted); font-weight:800; margin:4px 8px 10px;
  letter-spacing:.3px;
}
.hp .pn-side ul{list-style:none; margin:0; padding:0; display:grid; gap:4px}
.hp .pn-side a{
  display:block; padding:10px 13px; border-radius:var(--r-sm); color:var(--ink);
  font-size:13.5px; font-weight:600; transition:var(--tr);
}
.hp .pn-side a:hover{background:var(--teal-50); color:var(--teal-600)}
.hp .pn-side a[aria-current="page"]{background:var(--teal); color:#fff; font-weight:800}
.hp .pn-side .pn-exit{margin-top:8px; border-top:1px solid var(--line); padding-top:8px}
.hp .pn-side .pn-exit a{color:#b0392b}
.hp .pn-side .pn-exit a:hover{background:#fdf2f2; color:#8f2c20}

.hp .pn-box{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-1); margin-bottom:20px; overflow:hidden;
}
.hp .pn-box > h2,
.hp .pn-box > h3{
  margin:0; padding:14px 18px; font-size:15px; font-weight:900; color:var(--ink);
  border-bottom:1px solid var(--line); background:var(--bg-soft);
}
.hp .pn-box .pad{padding:18px}
.hp .pn-tbl{width:100%; border-collapse:collapse}
.hp .pn-tbl th,
.hp .pn-tbl td{padding:11px 14px; border-bottom:1px solid var(--line); text-align:right; font-size:13px; vertical-align:middle}
.hp .pn-tbl thead th{background:var(--bg-soft); color:var(--ink); font-size:12.5px; font-weight:800; white-space:nowrap}
.hp .pn-tbl tbody tr:last-child td{border-bottom:0}
.hp .pn-tbl tbody tr:hover td{background:#fbfdfd}
.hp .pn-tbl .empty{text-align:center; color:var(--muted); padding:24px}

.hp .pn-tag{display:inline-block; padding:3px 11px; border-radius:20px; font-size:11.5px; font-weight:700;
  background:#eef3f4; color:#5d757c}
.hp .pn-tag.ok{background:var(--green-50); color:#3f6d0a}
.hp .pn-tag.warn{background:#fff7e0; color:#8a6100}
.hp .pn-tag.info{background:var(--teal-50); color:var(--teal-600)}
.hp .pn-code{
  direction:ltr; font-family:Consolas,'Courier New',monospace; font-size:12.5px; font-weight:700;
  background:#f1f6f7; border:1px solid var(--line); padding:5px 10px; border-radius:8px;
  display:inline-block; overflow-wrap:anywhere;
}
.hp .pn-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-bottom:22px}
.hp .pn-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-1); padding:16px 18px;
}
.hp .pn-card .v{font-size:22px; font-weight:900; color:var(--teal); line-height:1.5}
.hp .pn-card .l{font-size:12.5px; color:var(--muted); font-weight:600}
.hp .pn-flash{
  padding:12px 18px; border-radius:var(--r-md); margin-bottom:18px; font-size:13.5px;
  background:var(--green-50); color:#3f6d0a; border:1px solid #cfe8a8; font-weight:700;
}
.hp .pn-err{
  padding:12px 18px; border-radius:var(--r-md); margin-bottom:18px; font-size:13px;
  background:#fdf2f2; color:#8f2c20; border:1px solid #f0cccc;
}
.hp .pn-err ul{margin:6px 18px 0 0; padding:0}

/* --- واکنش‌گرایی --- */
@media (max-width:1024px){
  .hp .inner-2col,
  .hp .inner-2col--wide{grid-template-columns:1fr}
  .hp .inner-side{position:static; grid-template-columns:repeat(2,1fr)}
  .hp .b-grid--4{grid-template-columns:repeat(3,1fr)}
  .hp .pn-wrap{grid-template-columns:1fr}
  .hp .pn-side{position:static}
  .hp .pn-side ul{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
}
@media (max-width:860px){
  .hp .article-page{padding:22px 18px 26px; border-radius:var(--r-lg)}
  .hp .article-page h1{font-size:21px}
  .hp .page-head h1{font-size:21px}
  .hp .b-grid,
  .hp .b-grid--4{grid-template-columns:repeat(2,1fr)}
  .hp .form-card{padding:20px 16px 24px; border-radius:var(--r-lg)}
  .hp .form-grid{grid-template-columns:1fr}
}
@media (max-width:600px){
  .hp .inner-side{grid-template-columns:1fr}
  .hp .b-grid,
  .hp .b-grid--4{grid-template-columns:1fr}
  .hp .pgrid,
  .hp .pgrid--2{grid-template-columns:1fr}
  .hp .nf .code{font-size:62px}
  .hp .tbl th,
  .hp .tbl td{padding:10px 10px; font-size:12.5px}
}

/* ── راهنمای «بعد از خرید چه کار کنم؟» (بخش ۴۶) ───────────────────────── */
.pp-guide{ font-size:14px; line-height:2.05; color:#26454c }
.pp-guide > :first-child{ margin-top:0 }
.pp-guide > :last-child{ margin-bottom:0 }
.pp-guide h3,.pp-guide h4{ font-size:15.5px; margin:14px 0 8px; color:#0f2b31 }
.pp-guide p{ margin:0 0 10px }
.pp-guide ol,.pp-guide ul{ margin:0 0 12px; padding-inline-start:20px }
.pp-guide li{ margin:0 0 6px }
.pp-guide a{ color:#008193; font-weight:700 }
.pp-guide code{
  background:#f2f7f8; border:1px solid #e2ecef; border-radius:6px; padding:1px 6px;
  font-family:Consolas,monospace; font-size:12.5px; direction:ltr; display:inline-block;
}
.pp-guide table{ width:100%; border-collapse:collapse; margin:0 0 12px; font-size:13px }
.pp-guide th,.pp-guide td{ border:1px solid #e2ecef; padding:7px 9px; text-align:right }
.pp-guide img{ max-width:100%; height:auto; border-radius:10px }