/* ==========================================================================
   صفحات ثابت فروشگاه (شرایط و قوانین، مرجوعی، ارسال، سوالات متداول)
   رنگ اصلی از متغیر --dt-primary قالب گرفته می شود.
   ========================================================================== */

.static-page {
    --sp-primary: var(--dt-primary, #ef394e);
    --sp-radius: 14px;
    --sp-border: #e9ecef;
    --sp-muted: #6b7280;
    --sp-bg-soft: #f7f8fa;

    padding-bottom: 2rem;
}

/* ------------------ سربرگ ------------------ */

.sp-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--sp-radius);
    background: linear-gradient(135deg, var(--sp-primary) 0%, rgba(0, 0, 0, .55) 260%);
    color: #fff;
    padding: 2.6rem 1.5rem;
    margin-bottom: 1.75rem;
    text-align: center;
}

.sp-hero::after {
    content: '';
    position: absolute;
    inset-inline-start: -60px;
    top: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.sp-hero-inner {
    position: relative;
    z-index: 1;
}

.sp-hero-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-hero-icon i {
    font-size: 30px;
    line-height: 1;
}

.sp-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0 0 .5rem;
    color: #fff;
}

.sp-hero-subtitle {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 2;
    opacity: .92;
}

.sp-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    padding: .3rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: .8rem;
}

/* ------------------ مقدمه ------------------ */

.sp-intro {
    background: var(--sp-bg-soft);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    line-height: 2.1;
    color: #444;
}

.sp-intro p:last-child {
    margin-bottom: 0;
}

/* ------------------ چیدمان دو ستونه با فهرست ------------------ */

.sp-body-with-toc {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.sp-toc-inner {
    position: sticky;
    top: 90px;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1.1rem 1.25rem;
}

.sp-toc-title {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 .75rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--sp-border);
}

.sp-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: sp-toc;
}

.sp-toc-list li {
    counter-increment: sp-toc;
}

.sp-toc-list a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 0;
    font-size: .875rem;
    color: #555;
    line-height: 1.8;
    transition: color .18s ease;
}

.sp-toc-list a::before {
    content: counter(sp-toc);
    flex: 0 0 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--sp-bg-soft);
    color: var(--sp-muted);
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s ease;
}

.sp-toc-list a:hover,
.sp-toc-list a.active {
    color: var(--sp-primary);
    text-decoration: none;
}

.sp-toc-list a:hover::before,
.sp-toc-list a.active::before {
    background: var(--sp-primary);
    color: #fff;
}

.sp-toc-count {
    margin-inline-start: auto;
    font-size: .72rem;
    color: var(--sp-muted);
}

/* ------------------ بندهای قوانین ------------------ */

.sp-section {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.1rem;
    scroll-margin-top: 90px;
}

.sp-section-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .9rem;
    padding-bottom: .8rem;
    border-bottom: 1px dashed var(--sp-border);
}

.sp-section-number {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--sp-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-section-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.sp-section-title i {
    color: var(--sp-primary);
    font-size: 20px;
}

.sp-section-body {
    line-height: 2.15;
    color: #4b5563;
}

.sp-section-body p:last-child,
.sp-section-body ul:last-child {
    margin-bottom: 0;
}

.sp-list {
    list-style: none;
    margin: .5rem 0 1rem;
    padding: 0;
}

.sp-list li {
    position: relative;
    padding-inline-start: 1.4rem;
    margin-bottom: .45rem;
}

.sp-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: .85em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sp-primary);
}

/* ------------------ کارت های آماری (مهلت ها) ------------------ */

.sp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.sp-stat {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1.4rem 1.25rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sp-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
}

.sp-stat-icon i {
    font-size: 30px;
    color: var(--sp-primary);
}

.sp-stat-value {
    margin: .5rem 0 .25rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .3rem;
}

.sp-stat-value strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sp-primary);
    line-height: 1;
}

.sp-stat-value span {
    font-size: .9rem;
    color: var(--sp-muted);
}

.sp-stat-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .35rem;
}

.sp-stat-text {
    font-size: .85rem;
    color: var(--sp-muted);
    line-height: 1.9;
    margin: 0;
}

/* ------------------ ستون های شرایط ------------------ */

.sp-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.sp-column {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1.35rem 1.4rem;
    border-top: 3px solid var(--sp-primary);
}

.sp-column-allow {
    border-top-color: #28a745;
}

.sp-column-deny {
    border-top-color: #dc3545;
}

.sp-column-warn {
    border-top-color: #ffc107;
}

.sp-column-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.sp-column-title i {
    font-size: 21px;
}

.sp-column-allow .sp-column-title i {
    color: #28a745;
}

.sp-column-deny .sp-column-title i {
    color: #dc3545;
}

.sp-column-warn .sp-column-title i {
    color: #d39e00;
}

.sp-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-check-list li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .5rem 0;
    line-height: 2;
    color: #4b5563;
    border-bottom: 1px dashed var(--sp-border);
}

.sp-check-list li:last-child {
    border-bottom: 0;
}

.sp-check-list li i {
    flex: 0 0 auto;
    margin-top: .45em;
    font-size: 16px;
    color: var(--sp-primary);
}

.sp-column-allow .sp-check-list li i {
    color: #28a745;
}

.sp-column-deny .sp-check-list li i {
    color: #dc3545;
}

/* ------------------ تایم لاین مراحل ------------------ */

.sp-block-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.15rem;
}

.sp-block-title i {
    color: var(--sp-primary);
    font-size: 22px;
}

.sp-steps {
    margin-bottom: 1.75rem;
}

.sp-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.sp-timeline::before {
    content: '';
    position: absolute;
    inset-inline-start: 21px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--sp-border);
}

.sp-timeline-item {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-bottom: 1.35rem;
}

.sp-timeline-item:last-child {
    padding-bottom: 0;
}

.sp-timeline-marker {
    position: relative;
    z-index: 1;
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--sp-primary);
    color: var(--sp-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-timeline-marker i {
    font-size: 21px;
}

.sp-timeline-body {
    flex: 1;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1rem 1.25rem;
}

.sp-timeline-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .3rem;
}

.sp-timeline-body p {
    margin: 0;
    line-height: 2;
    color: #4b5563;
    font-size: .92rem;
}

/* ------------------ نوار ارسال رایگان ------------------ */

.sp-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: linear-gradient(90deg, rgba(40, 167, 69, .12), rgba(40, 167, 69, .04));
    border: 1px solid rgba(40, 167, 69, .35);
    color: #1e7e34;
    border-radius: var(--sp-radius);
    padding: .9rem 1.25rem;
    margin-bottom: 1.75rem;
    font-weight: 700;
}

.sp-ribbon i {
    font-size: 22px;
}

/* ------------------ کارت های روش ارسال ------------------ */

.sp-methods {
    margin-bottom: 1.75rem;
}

.sp-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.sp-method {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1.4rem 1.3rem;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sp-method:hover {
    transform: translateY(-3px);
    border-color: var(--sp-primary);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
}

.sp-method-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--sp-bg-soft);
    color: var(--sp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
}

.sp-method-icon i {
    font-size: 26px;
}

.sp-method-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .45rem;
}

.sp-method-text {
    font-size: .88rem;
    color: var(--sp-muted);
    line-height: 2;
    margin: 0 0 1rem;
}

.sp-method-meta {
    margin: auto 0 0;
    padding-top: .9rem;
    border-top: 1px dashed var(--sp-border);
    display: grid;
    gap: .5rem;
}

.sp-method-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.sp-method-meta dt {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--sp-muted);
    margin: 0;
}

.sp-method-meta dd {
    margin: 0;
    font-size: .88rem;
    font-weight: 700;
    color: #333;
}

/* ------------------ باکس یادداشت ------------------ */

.sp-note {
    background: var(--sp-bg-soft);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.75rem;
}

.sp-note-body {
    line-height: 2.15;
    color: #4b5563;
}

.sp-note-body p:last-child {
    margin-bottom: 0;
}

/* ------------------ سوالات متداول ------------------ */

.sp-search {
    position: relative;
    max-width: 620px;
    margin: 0 auto 1.5rem;
}

.sp-search i {
    position: absolute;
    inset-inline-start: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--sp-muted);
    pointer-events: none;
}

.sp-search input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    background: #fff;
    padding-inline-start: 3rem;
    padding-inline-end: 1.25rem;
    font-size: .95rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sp-search input:focus {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 4px rgba(239, 57, 78, .1);
}

.sp-search-empty {
    display: none;
    text-align: center;
    color: var(--sp-muted);
    margin-bottom: 1.25rem;
}

.sp-faq-group {
    margin-bottom: 1.75rem;
    scroll-margin-top: 90px;
}

.sp-faq-item {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    margin-bottom: .75rem;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sp-faq-item.open {
    border-color: var(--sp-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.sp-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: 0;
    padding: 1.05rem 1.25rem;
    font-size: .98rem;
    font-weight: 700;
    color: #333;
    text-align: start;
    cursor: pointer;
    font-family: inherit;
}

.sp-faq-question:focus {
    outline: none;
}

.sp-faq-question i {
    flex: 0 0 auto;
    font-size: 22px;
    color: var(--sp-muted);
    transition: transform .22s ease, color .22s ease;
}

.sp-faq-item.open .sp-faq-question {
    color: var(--sp-primary);
}

.sp-faq-item.open .sp-faq-question i {
    transform: rotate(180deg);
    color: var(--sp-primary);
}

.sp-faq-answer-inner {
    padding: 0 1.25rem 1.2rem;
    line-height: 2.15;
    color: #4b5563;
}

.sp-faq-answer-inner p:last-child,
.sp-faq-answer-inner ul:last-child {
    margin-bottom: 0;
}

/* ------------------ باکس تماس ------------------ */

.sp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: linear-gradient(135deg, var(--sp-primary) 0%, rgba(0, 0, 0, .55) 260%);
    color: #fff;
    border-radius: var(--sp-radius);
    padding: 1.75rem 1.85rem;
    margin-top: 1.75rem;
}

.sp-cta-text h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 .35rem;
}

.sp-cta-text p {
    margin: 0;
    opacity: .92;
    line-height: 2;
}

.sp-cta-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    color: var(--sp-primary);
    border-radius: 999px;
    padding: .8rem 1.75rem;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease;
}

.sp-cta-button:hover {
    color: var(--sp-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.sp-cta-button i {
    font-size: 21px;
}

.sp-empty {
    background: #fff;
    border: 1px dashed var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--sp-muted);
}

/* ------------------ ریسپانسیو ------------------ */

@media (max-width: 991.98px) {
    .sp-body-with-toc {
        grid-template-columns: 1fr;
    }

    .sp-toc-inner {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .sp-hero {
        padding: 2rem 1.1rem;
    }

    .sp-hero-title {
        font-size: 1.4rem;
    }

    .sp-section,
    .sp-column,
    .sp-note {
        padding: 1.1rem 1rem;
    }

    .sp-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.4rem 1.2rem;
    }

    .sp-timeline::before {
        inset-inline-start: 17px;
    }

    .sp-timeline-marker {
        flex-basis: 36px;
        height: 36px;
    }
}
