/* ==========================================================
   استایل مشترک صفحات داخلی: صفحه ثابت / ۴۰۴ / آرشیو / جستجو / فرم‌ها
   برای یکدست‌بودن کامل با طراحی صفحه محصول تکی، همه‌ی متغیرهای
   رنگ/شعاع/سایه این فایل مستقیماً از همان متغیرهای صفحه محصول
   (single-product-style.css) گرفته می‌شوند - نه رنگ‌های جدا.
   ========================================================== */
:root {
    --ntic-primary:      var(--clr-primary, #E80545);
    --ntic-primary-dark: #ac1712;
    --ntic-primary-light:#fdeceb;
    --ntic-primary-soft: var(--clr-blue-bg, #fff3f2);
    --ntic-text:         var(--clr-text, #111827);
    --ntic-gray:         var(--clr-muted, #6b7280);
    --ntic-border:       var(--clr-border, #e5e7eb);
    --ntic-hover-bg:     var(--clr-gray-bg, #f3f4f6);
    --ntic-success:      var(--clr-green, #22c55e);
    --ntic-danger:       #ef4444;
    --ntic-radius:       var(--radius-lg, 14px);
    --ntic-shadow:       var(--shadow-md, 0 10px 40px rgba(15,23,42,.10));
    --ntic-shadow-lg:    0 20px 60px rgba(15,23,42,.16);
}

.ntic-inner-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    direction: rtl;
    font-family: 'IRANYekanX', 'IRANYekanXFaNum', sans-serif;
}

/* --- بردکرامب عمومی (دقیقاً هم‌سبک با بردکرامب صفحه محصول تکی) --- */
.ntic-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 400;
    color: var(--ntic-gray, #6b7280);
    margin-bottom: 20px;
}
.ntic-breadcrumb a {
    color: var(--ntic-gray, #6b7280);
    text-decoration: none;
    transition: color .2s ease;
}
.ntic-breadcrumb a:hover { color: var(--ntic-text, #111827); }
.ntic-breadcrumb img { width: 14px; height: 14px; opacity: .55; transform: scaleX(-1); }
.ntic-breadcrumb .bc-sep-svg { display: flex; align-items: center; color: var(--ntic-gray, #6b7280); opacity: .7; }
.ntic-breadcrumb .current { color: var(--ntic-text, #111827); font-weight: 400; }

/* --- صفحه ثابت (page.php) --- */
.ntic-page-header { margin-bottom: 24px; }
.ntic-page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ntic-text, #1e293b);
    margin: 0 0 8px;
}
.ntic-page-thumb {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--ntic-radius, 14px);
    margin-bottom: 24px;
}
.ntic-page-content {
    font-size: 15px;
    line-height: 2.1;
    color: var(--ntic-text, #1e293b);
}
.ntic-page-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.ntic-page-content h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; }
.ntic-page-content p { margin: 0 0 16px; }
.ntic-page-content img { max-width: 100%; height: auto; border-radius: 10px; }
.ntic-page-content ul, .ntic-page-content ol { padding-right: 22px; margin-bottom: 16px; }
.ntic-page-content a { color: var(--ntic-primary, #E80545); text-decoration: underline; }

/* --- صفحه ۴۰۴ --- */
.ntic-404 {
    text-align: center;
    padding: 60px 16px;
    max-width: 520px;
    margin: 0 auto;
}
.ntic-404 img { width: 180px; height: auto; margin-bottom: 24px; opacity: .9; }
.ntic-404 h1 { font-size: 24px; font-weight: 700; color: var(--ntic-text, #1e293b); margin: 0 0 10px; }
.ntic-404 p { font-size: 14px; color: var(--ntic-gray, #64748b); margin: 0 0 24px; line-height: 1.9; }
.ntic-404-search {
    display: flex;
    max-width: 380px;
    margin: 0 auto 20px;
    border: 1px solid var(--ntic-border, #e7e7ea);
    border-radius: 999px;
    overflow: hidden;
}
.ntic-404-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 13px;
    font-family: inherit;
}
.ntic-404-search button {
    background: var(--ntic-primary, #E80545);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}
.ntic-404-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ntic-404-actions a {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: .2s;
}
.ntic-404-actions a.primary { background: var(--ntic-primary, #E80545); color: #fff; }
.ntic-404-actions a.secondary { background: var(--ntic-hover-bg, #f6f7f9); color: var(--ntic-text, #1e293b); }
.ntic-404-actions a:hover { opacity: .88; }

/* --- آرشیو / جستجو --- */
.ntic-archive-hero {
    background: linear-gradient(135deg, var(--ntic-primary, #E80545), var(--ntic-primary-dark, #ac1712));
    padding: 28px 16px 24px;
    margin-bottom: 24px;
}
.ntic-archive-hero__inner { max-width: 1200px; margin: 0 auto; }
.ntic-breadcrumb--light { color: rgba(255,255,255,.8); margin-bottom: 14px; }
.ntic-breadcrumb--light a { color: rgba(255,255,255,.8); }
.ntic-breadcrumb--light .current { color: #fff; }
.ntic-breadcrumb--light img { filter: brightness(0) invert(1); opacity: .7; }
.ntic-breadcrumb--light .bc-sep-svg { color: rgba(255,255,255,.7); }

.ntic-archive-hero__title { color: #fff; font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.ntic-archive-hero__desc { color: rgba(255,255,255,.85); font-size: 13px; line-height: 1.9; max-width: 640px; margin-bottom: 10px; }
.ntic-archive-hero__count {
    display: inline-block;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 11.5px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.ntic-archive-hero__menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.ntic-archive-hero__menu li { margin: 0; }
.ntic-archive-hero__menu a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: .2s;
}
.ntic-archive-hero__menu a:hover,
.ntic-archive-hero__menu a.active { background: #fff; color: var(--ntic-primary, #E80545); }

.ntic-archive-header { margin-bottom: 24px; }
.ntic-archive-title { font-size: 22px; font-weight: 700; color: var(--ntic-text, #1e293b); margin: 0 0 6px; }
.ntic-archive-desc { font-size: 13px; color: var(--ntic-gray, #64748b); line-height: 1.9; }
.ntic-archive-count { font-size: 12px; color: var(--ntic-gray, #64748b); margin-bottom: 16px; }

.ntic-search-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--ntic-border, #e7e7ea); }
.ntic-search-tabs a {
    padding: 10px 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ntic-gray, #64748b);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-left: 18px;
}
.ntic-search-tabs a.active { color: var(--ntic-primary, #E80545); border-color: var(--ntic-primary, #E80545); }

.ntic-product-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.ntic-product-mini-card {
    border: 1px solid var(--ntic-border, #e7e7ea);
    border-radius: var(--ntic-radius, 14px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow .2s;
}
.ntic-product-mini-card:hover { box-shadow: var(--ntic-shadow, 0 10px 40px rgba(15,23,42,.1)); }
.ntic-product-mini-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.ntic-product-mini-card .name { font-size: 12px; padding: 8px 10px 2px; line-height: 1.7; color: var(--ntic-text, #1e293b); }
.ntic-product-mini-card .price { font-size: 12px; font-weight: 700; padding: 0 10px 10px; color: var(--ntic-primary, #E80545); }

.ntic-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.ntic-empty-results {
    text-align: center;
    padding: 50px 16px;
    color: var(--ntic-gray, #64748b);
}
.ntic-empty-results img { width: 120px; margin-bottom: 16px; opacity: .85; }

.ntic-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.ntic-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--ntic-hover-bg, #f6f7f9);
    color: var(--ntic-text, #1e293b);
    text-decoration: none;
    font-size: 13px;
}
.ntic-pagination .page-numbers.current { background: var(--ntic-primary, #E80545); color: #fff; }

/* ==========================================================
   استایل‌های مشترک صفحات جدید: فرم‌ها، آکاردئون FAQ، پیگیری سفارش
   ========================================================== */

.ntic-page-lead {
    font-size: 14px;
    color: var(--ntic-gray, #64748b);
    line-height: 2;
    margin-bottom: 28px;
    max-width: 720px;
}

/* --- باکس مقدمه (الهام از باکس مقدمه صفحه نوشته تکی) --- */
.ntic-intro-box {
    background: var(--ntic-hover-bg, #f6f7f9);
    border-right: 3px solid var(--ntic-primary, #E80545);
    border-radius: 10px;
    padding: 16px 18px;
    max-width: none;
}

/* --- چیدمان دو ستونه: فهرست مطالب + محتوا (الهام از صفحه نوشته تکی) --- */
.ntic-static-layout.has-toc {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: flex-start;
}
.ntic-toc-col { min-width: 0; }
.ntic-toc-sticky { position: sticky; top: 90px; }

/* فهرست مطالب — دقیقاً هم‌سبک با صفحه نوشته تکی */
.tak-toc-box {
    position: relative;
    padding: 25px 20px 18px 18px;
    margin: 0 auto 25px;
    clear: both;
    display: block;
    border: 2px solid #1C1D22;
    border-radius: 8px;
    background-color: transparent;
}
.tak-toc-title {
    position: absolute;
    top: -11px;
    right: 16px;
    background: #fff;
    padding: 0 10px;
    font-size: 14px; margin: 0; font-weight: 700;
}
.tak-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tak-toc-item a { font-size: 13px; color: var(--ntic-gray, #64748b); text-decoration: none; line-height: 1.7; }
.tak-toc-item a:hover { color: var(--ntic-text, #1e293b); }
.tak-toc-h3 a { padding-right: 12px; }
.tak-toc-h4 a { padding-right: 24px; }

@media (max-width: 860px) {
    .ntic-static-layout.has-toc { grid-template-columns: 1fr; }
    .ntic-toc-col { order: 2; }
    .ntic-toc-sticky { position: static; }
}

/* --- کارت فرم --- */
.ntic-form-card {
    background: #fff;
    border: 1px solid var(--ntic-border, #e7e7ea);
    border-radius: var(--ntic-radius, 14px);
    padding: 24px;
    max-width: 640px;
}
.ntic-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ntic-form-grid .full { grid-column: 1 / -1; }
.ntic-field { margin-bottom: 4px; }
.ntic-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ntic-text, #1e293b);
    margin-bottom: 6px;
}
.ntic-field label .req { color: var(--ntic-primary, #E80545); }
.ntic-field input,
.ntic-field select,
.ntic-field textarea {
    width: 100%;
    border: 1px solid var(--ntic-border, #e7e7ea);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: var(--ntic-text, #1e293b);
    transition: border-color .2s;
}
.ntic-field input:focus,
.ntic-field select:focus,
.ntic-field textarea:focus { border-color: var(--ntic-primary, #E80545); }
.ntic-field textarea { min-height: 110px; resize: vertical; }
.ntic-field .hint { font-size: 11px; color: var(--ntic-gray, #64748b); margin-top: 4px; }
.ntic-field .error-msg { font-size: 11px; color: var(--ntic-danger, #ef4444); margin-top: 4px; display: none; }
.ntic-field.has-error input,
.ntic-field.has-error select,
.ntic-field.has-error textarea { border-color: var(--ntic-danger, #ef4444); }
.ntic-field.has-error .error-msg { display: block; }

.ntic-file-drop {
    border: 2px dashed var(--ntic-border, #e7e7ea);
    border-radius: 12px;
    padding: 22px 14px;
    text-align: center;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--ntic-gray, #64748b);
    transition: .2s;
}
.ntic-file-drop:hover { border-color: var(--ntic-primary, #E80545); background: var(--ntic-primary-soft, #fff3f2); }
.ntic-file-drop.has-file { border-color: var(--ntic-success, #22c55e); color: var(--ntic-text, #1e293b); }
.ntic-file-drop input[type="file"] { display: none; }

.ntic-submit-btn {
    width: 100%;
    background: var(--ntic-primary, #E80545);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 8px;
    transition: .2s;
}
.ntic-submit-btn:hover { background: var(--ntic-primary-dark, #ac1712); }
.ntic-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.ntic-form-result {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
}
.ntic-form-result.show { display: block; }
.ntic-form-result.success { background: #f0fdf4; color: #166534; border-right: 3px solid var(--ntic-success, #22c55e); }
.ntic-form-result.error { background: #fef2f2; color: #991b1b; border-right: 3px solid var(--ntic-danger, #ef4444); }

/* --- کارت اطلاعات تماس کنار فرم --- */
.ntic-contact-wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.ntic-contact-info { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 14px; }
.ntic-contact-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--ntic-hover-bg, #f6f7f9);
    border-radius: 12px; padding: 14px 16px;
}
.ntic-contact-item img { width: 22px; height: 22px; flex-shrink: 0; }
.ntic-contact-item .label { font-size: 11px; color: var(--ntic-gray, #64748b); }
.ntic-contact-item .value { font-size: 14px; font-weight: 600; color: var(--ntic-text, #1e293b); }

/* --- آکاردئون FAQ --- */
.ntic-faq-list { max-width: 780px; }
.ntic-faq-item {
    border: 1px solid var(--ntic-border, #e7e7ea);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}
.ntic-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: none;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--ntic-text, #1e293b);
    cursor: pointer;
    text-align: right;
}
.ntic-faq-q .icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .25s;
}
.ntic-faq-item.open .ntic-faq-q .icon { transform: rotate(180deg); }
.ntic-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: var(--ntic-hover-bg, #f6f7f9);
}
.ntic-faq-a-inner { padding: 4px 18px 18px; font-size: 13px; line-height: 2; color: var(--ntic-text, #1e293b); }
.ntic-faq-item.open .ntic-faq-a { max-height: 800px; }

/* --- پیگیری سفارش --- */
.ntic-track-result { margin-top: 24px; }
.ntic-track-order-box {
    border: 1px solid var(--ntic-border, #e7e7ea);
    border-radius: var(--ntic-radius, 14px);
    padding: 20px;
}
.ntic-track-order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.ntic-track-order-head .num { font-weight: 700; font-size: 15px; }
.ntic-track-status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--ntic-primary-soft, #fff3f2);
    color: var(--ntic-primary, #E80545);
}
.ntic-track-steps { display: flex; justify-content: space-between; position: relative; margin: 24px 0; }
.ntic-track-steps::before {
    content: ''; position: absolute; top: 13px; right: 5%; left: 5%;
    height: 2px; background: var(--ntic-border, #e7e7ea); z-index: 0;
}
.ntic-track-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.ntic-track-step .dot {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--ntic-border, #e7e7ea);
    margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px;
}
.ntic-track-step.done .dot { background: var(--ntic-success, #22c55e); }
.ntic-track-step.active .dot { background: var(--ntic-primary, #E80545); }
.ntic-track-step .lbl { font-size: 11px; color: var(--ntic-gray, #64748b); }
.ntic-track-items { border-top: 1px solid var(--ntic-border, #e7e7ea); padding-top: 14px; margin-top: 14px; }
.ntic-track-item-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--ntic-text, #1e293b); }

/* --- محتوای متنی طولانی (حریم خصوصی، قوانین و ...) --- */
.ntic-legal-content h2 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; color: var(--ntic-text, #1e293b); scroll-margin-top: 90px; }
.ntic-legal-content h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; color: var(--ntic-text, #1e293b); scroll-margin-top: 90px; }
.ntic-legal-content h4 { font-size: 14.5px; font-weight: 700; margin: 16px 0 6px; color: var(--ntic-text, #1e293b); scroll-margin-top: 90px; }
.ntic-legal-content p, .ntic-legal-content li { font-size: 14px; line-height: 2.1; color: var(--ntic-text, #1e293b); }
.ntic-legal-content ul, .ntic-legal-content ol { padding-right: 22px; margin-bottom: 14px; }
.ntic-legal-content .updated-note { font-size: 12px; color: var(--ntic-gray, #64748b); margin-bottom: 20px; }

.ntic-related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ntic-border, #e7e7ea); }
.ntic-related-links a {
    font-size: 12.5px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ntic-hover-bg, #f6f7f9);
    color: var(--ntic-text, #1e293b);
    text-decoration: none;
}
.ntic-related-links a:hover { background: var(--ntic-primary-light, #fdeceb); color: var(--ntic-primary, #E80545); }

@media (max-width: 640px) {
    .ntic-page-title { font-size: 21px; }
    .ntic-404 img { width: 130px; }
    .ntic-form-grid { grid-template-columns: 1fr; }
    .ntic-track-steps { flex-wrap: wrap; }
    .ntic-track-steps::before { display: none; }
    .ntic-track-step { flex: 0 0 50%; margin-bottom: 14px; }
}

