/* =========================================================
   WHOLESALE PAGE — Bulk Purchase & Project Supply
   Namespace: .wholesale-*
   تم: روشن‌تر (Ivory + Olive + Terracotta)
   ========================================================= */

:root {
    --sy-olive: #24372F;
    --sy-olive-2: #2C443A;
    --sy-olive-dark: #18251F;
    --sy-olive-deep: #1A2822;
    --sy-ivory: #FAF8F3;
    --sy-ivory-dark: #F8F5EF;
    --sy-sand: #F2EDE4;
    --sy-sand-dark: #EDE7DC;
    --sy-ink: #171A18;
    --sy-muted: #5f645c;
    --sy-muted-light: #737869;
    --sy-muted-lighter: #8a8f83;
    --sy-terra: #B85C38;
    --sy-terra-dark: #A44E2E;
    --sy-terra-darker: #9A4B2C;
    --sy-lime: #D9E84A;
    --sy-lime-soft: rgba(217, 232, 74, 0.15);
    --sy-lime-softer: rgba(217, 232, 74, 0.12);
    --sy-white: #FFFFFF;
    --sy-border: #E8E2D8;
    --sy-border-dark: rgba(36, 55, 47, 0.08);
    --sy-border-light: #F0EDE6;
    --sy-font: 'Vazirmatn', Tahoma, sans-serif;
    --sy-font-display: 'Lalezar', 'Vazirmatn', Tahoma, sans-serif;
    --sy-font-mono: 'Vazirmatn', Tahoma, sans-serif;
    --sy-ease: cubic-bezier(0.32, 0.72, 0.24, 1);
    --sy-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --sy-t-fast: 220ms;
    --sy-t-base: 380ms;
    --sy-t-slow: 700ms;
    --sy-container-max: 1320px;
    --sy-container-pad: 32px;
    --sy-radius-xs: 3px;
    --sy-radius-sm: 6px;
    --sy-radius-md: 10px;
    --sy-radius-lg: 16px;
}

/* ═══════════ BASE ═══════════ */
.wholesale-page {
    font-family: var(--sy-font);
    background: var(--sy-ivory);
    color: var(--sy-ink);
    direction: rtl;
    min-height: 100vh;
    line-height: 1.6;
}

.wholesale-page *,
.wholesale-page *::before,
.wholesale-page *::after {
    box-sizing: border-box;
}

.wholesale-page a {
    text-decoration: none;
    color: inherit;
}

.wholesale-page button {
    font-family: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.wholesale-container {
    max-width: var(--sy-container-max);
    margin: 0 auto;
    padding: 0 var(--sy-container-pad);
}

/* ═══════════════════════════════════════════════════
   01 · PAGE HEADER
   ═══════════════════════════════════════════════════ */
.wholesale-header {
    background: var(--sy-sand);
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--sy-border);
    position: relative;
    overflow: hidden;
}

.wholesale-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(36, 55, 47, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 55, 47, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.wholesale-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--sy-muted);
    margin-bottom: 32px;
}

.wholesale-breadcrumb-link {
    color: var(--sy-muted);
    transition: color var(--sy-t-fast);
}

.wholesale-breadcrumb-link:hover {
    color: var(--sy-terra);
}

.wholesale-breadcrumb-sep {
    opacity: 0.4;
}

.wholesale-breadcrumb-current {
    color: var(--sy-ink);
    font-weight: 500;
}

.wholesale-header-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.wholesale-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sy-font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--sy-terra);
    margin-bottom: 16px;
}

.wholesale-eyebrow-mark {
    width: 8px;
    height: 8px;
    background: var(--sy-lime);
    transform: rotate(45deg);
}

.wholesale-title {
    font-family: var(--sy-font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--sy-ink);
    margin: 0 0 16px;
}

.wholesale-title-accent {
    color: var(--sy-terra);
    position: relative;
}

.wholesale-title-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 0;
    left: 0;
    height: 6px;
    background: var(--sy-lime-soft);
    z-index: -1;
    border-radius: 2px;
}

.wholesale-desc {
    font-size: 15px;
    color: var(--sy-muted);
    line-height: 1.8;
    margin: 0 0 28px;
    max-width: 560px;
}

/* Stats */
.wholesale-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius-md);
}

.wholesale-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.wholesale-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--sy-olive);
    line-height: 1;
}

.wholesale-stat-label {
    font-size: 12px;
    color: var(--sy-muted);
}

.wholesale-stat-sep {
    width: 1px;
    height: 36px;
    background: var(--sy-border);
}

/* Visual Card */
.wholesale-visual-card {
    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius-lg);
    padding: 28px;
    position: relative;
}

.wholesale-visual-badge {
    font-family: var(--sy-font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--sy-terra);
    margin-bottom: 20px;
}

.wholesale-visual-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wholesale-visual-row {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    gap: 12px;
}

.wholesale-visual-row-label {
    font-size: 12px;
    color: var(--sy-muted);
}

.wholesale-visual-bar {
    height: 6px;
    background: var(--sy-sand-dark);
    border-radius: 3px;
    overflow: hidden;
}

.wholesale-visual-bar-fill {
    display: block;
    height: 100%;
    background: var(--sy-terra);
    border-radius: 3px;
}

.wholesale-visual-row-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--sy-olive);
    text-align: left;
}

.wholesale-visual-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 12px;
    color: var(--sy-muted-light);
}

.wholesale-visual-note i {
    color: var(--sy-terra);
}

/* ═══════════════════════════════════════════════════
   02 · FORM + SIDEBAR
   ═══════════════════════════════════════════════════ */
.wholesale-body {
    padding: 64px 0;
}

.wholesale-body-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 48px;
    align-items: start;
}

/* ── FORM CARD ── */
.wholesale-form-card {
    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius-lg);
    padding: 36px;
}

.wholesale-form-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.wholesale-form-header-index {
    font-family: var(--sy-font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--sy-terra);
    padding: 4px 8px;
    background: var(--sy-sand);
    border-radius: var(--sy-radius-xs);
    flex-shrink: 0;
}

.wholesale-form-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--sy-ink);
    margin: 0 0 6px;
}

.wholesale-form-subtitle {
    font-size: 13.5px;
    color: var(--sy-muted);
    margin: 0;
}

/* Form Elements */
.wholesale-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wholesale-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wholesale-form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sy-ink);
}

.wholesale-form-required {
    color: var(--sy-terra);
}

.wholesale-form-input,
.wholesale-form-textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--sy-ivory);
    border: 1.5px solid var(--sy-border);
    border-radius: var(--sy-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--sy-ink);
    transition: all var(--sy-t-fast);
}

.wholesale-form-input:focus,
.wholesale-form-textarea:focus {
    outline: none;
    border-color: var(--sy-terra);
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
    background: var(--sy-white);
}

.wholesale-form-input::placeholder,
.wholesale-form-textarea::placeholder {
    color: var(--sy-muted-light);
}

.wholesale-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.wholesale-form-error {
    font-size: 12px;
    color: var(--sy-terra);
}

/* Request Type Options */
.wholesale-type-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.wholesale-type-option input {
    display: none;
}

.wholesale-type-option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--sy-ivory);
    border: 1.5px solid var(--sy-border);
    border-radius: var(--sy-radius-md);
    cursor: pointer;
    transition: all var(--sy-t-fast);
    text-align: center;
}

.wholesale-type-option-box i {
    font-size: 20px;
    color: var(--sy-muted);
    transition: color var(--sy-t-fast);
}

.wholesale-type-option-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sy-muted);
    transition: color var(--sy-t-fast);
}

.wholesale-type-option input:checked+.wholesale-type-option-box {
    background: var(--sy-olive);
    border-color: var(--sy-olive);
}

.wholesale-type-option input:checked+.wholesale-type-option-box i {
    color: var(--sy-lime);
}

.wholesale-type-option input:checked+.wholesale-type-option-box .wholesale-type-option-label {
    color: var(--sy-white);
}

/* Material Grid */
.wholesale-material-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.wholesale-material-item input {
    display: none;
}

.wholesale-material-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: var(--sy-ivory);
    border: 1.5px solid var(--sy-border);
    border-radius: var(--sy-radius-sm);
    cursor: pointer;
    transition: all var(--sy-t-fast);
    text-align: center;
}

.wholesale-material-box i {
    font-size: 18px;
    color: var(--sy-muted);
    transition: color var(--sy-t-fast);
}

.wholesale-material-box span {
    font-size: 12px;
    font-weight: 600;
    color: var(--sy-muted);
    transition: color var(--sy-t-fast);
}

.wholesale-material-item input:checked+.wholesale-material-box {
    background: var(--sy-olive);
    border-color: var(--sy-olive);
}

.wholesale-material-item input:checked+.wholesale-material-box i {
    color: var(--sy-lime);
}

.wholesale-material-item input:checked+.wholesale-material-box span {
    color: var(--sy-white);
}

/* Form Row */
.wholesale-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Submit */
.wholesale-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
}

.wholesale-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--sy-terra);
    color: var(--sy-white);
    border-radius: var(--sy-radius-sm);
    font-size: 15px;
    font-weight: 700;
    transition: all var(--sy-t-fast);
    box-shadow: 0 6px 24px -6px rgba(184, 92, 56, 0.35);
}

.wholesale-submit-btn:hover {
    background: var(--sy-terra-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px -6px rgba(184, 92, 56, 0.45);
}

.wholesale-form-note {
    font-size: 12px;
    color: var(--sy-muted-light);
}

/* ── SIDEBAR ── */
.wholesale-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.wholesale-sidebar-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--sy-ink);
    margin: 0 0 16px;
}

/* Benefits */
.wholesale-benefits {
    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius-lg);
    padding: 28px;
}

.wholesale-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wholesale-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wholesale-benefit-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sy-sand);
    border-radius: var(--sy-radius-sm);
    color: var(--sy-olive);
    font-size: 18px;
    flex-shrink: 0;
}

.wholesale-benefit-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wholesale-benefit-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sy-ink);
}

.wholesale-benefit-desc {
    font-size: 12.5px;
    color: var(--sy-muted);
}

/* Process */
.wholesale-process {
    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius-lg);
    padding: 28px;
}

.wholesale-process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.wholesale-process-list::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    right: 15px;
    width: 1px;
    background: var(--sy-border);
}

.wholesale-process-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.wholesale-process-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sy-olive);
    color: var(--sy-lime);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.wholesale-process-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 4px;
}

.wholesale-process-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sy-ink);
}

.wholesale-process-desc {
    font-size: 12.5px;
    color: var(--sy-muted);
}

/* Contact Card */
.wholesale-contact-card {
    background: var(--sy-olive);
    border-radius: var(--sy-radius-lg);
    padding: 28px;
    color: var(--sy-white);
}

.wholesale-contact-card .wholesale-sidebar-title {
    color: var(--sy-white);
    margin-bottom: 8px;
}

.wholesale-contact-desc {
    font-size: 13px;
    color: var(--sy-muted-light);
    margin: 0 0 16px;
}

.wholesale-contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--sy-terra);
    color: var(--sy-white);
    border-radius: var(--sy-radius-sm);
    font-size: 15px;
    font-weight: 700;
    transition: all var(--sy-t-fast);
}

.wholesale-contact-phone:hover {
    background: var(--sy-terra-dark);
}

.wholesale-contact-hours {
    font-size: 12px;
    color: var(--sy-muted-light);
    margin: 12px 0 0;
}

/* ═══════════════════════════════════════════════════
   03 · FAQ
   ═══════════════════════════════════════════════════ */
.wholesale-faq {
    padding: 64px 0;
    background: var(--sy-sand);
}

.wholesale-faq-header {
    margin-bottom: 28px;
}

.wholesale-faq-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--sy-ink);
    margin: 0;
}

.wholesale-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wholesale-faq-item {
    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius-md);
    overflow: hidden;
}

.wholesale-faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sy-ink);
    transition: color var(--sy-t-fast);
}

.wholesale-faq-trigger:hover {
    color: var(--sy-terra);
}

.wholesale-faq-chevron {
    font-size: 12px;
    color: var(--sy-muted);
    transition: transform var(--sy-t-fast);
}

.wholesale-faq-item.is-open .wholesale-faq-chevron {
    transform: rotate(180deg);
    color: var(--sy-terra);
}

.wholesale-faq-answer {
    padding: 0 20px 18px;
    font-size: 13.5px;
    color: var(--sy-muted);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .wholesale-header-grid {
        grid-template-columns: 1fr 0.8fr;
        gap: 36px;
    }

    .wholesale-body-grid {
        grid-template-columns: 1.2fr 0.9fr;
        gap: 36px;
    }
}

@media (max-width: 991px) {
    .wholesale-header-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .wholesale-body-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .wholesale-sidebar {
        position: static;
    }

    .wholesale-type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .wholesale-material-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .wholesale-header {
        padding: 36px 0 40px;
    }

    .wholesale-title {
        font-size: clamp(28px, 7vw, 38px);
    }

    .wholesale-stats {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px;
    }

    .wholesale-stat-sep {
        display: none;
    }

    .wholesale-form-card {
        padding: 24px;
    }

    .wholesale-form-row {
        grid-template-columns: 1fr;
    }

    .wholesale-type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .wholesale-material-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wholesale-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wholesale-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .wholesale-form-note {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wholesale-container {
        padding: 0 16px;
    }

    .wholesale-form-card {
        padding: 20px;
    }

    .wholesale-form-header {
        flex-direction: column;
        gap: 12px;
    }

    .wholesale-type-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .wholesale-material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {

    .wholesale-page *,
    .wholesale-page *::before,
    .wholesale-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════ ACCESSIBILITY ═══════════ */
.wholesale-page :focus-visible {
    outline: 2px solid var(--sy-terra);
    outline-offset: 3px;
}

.wholesale-page :focus:not(:focus-visible) {
    outline: none;
}

/* ═══════════ PRINT ═══════════ */
@media print {

    .wholesale-header::before,
    .wholesale-faq {
        display: none;
    }
}