/* ============================================
   CLASHINO - White & Orange Theme
   ============================================ */

:root {
    --orange: #ff6b35;
    --orange-dark: #e55a2b;
    --orange-light: #ff8c5a;
    --orange-bg: #fff5f0;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-600: #757575;
    --gray-800: #333333;
    --gray-900: #1a1a1a;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(255,107,53,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Vazirmatn', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-800);
    direction: rtl;
    line-height: 1.7;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5px;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    height: 72px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    order: 1;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    color: var(--gray-900);
    white-space: nowrap;
}

.logo-text span {
    color: var(--orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    order: 2;
    flex-direction: row;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    display: inline-block;
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 15px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
    background: var(--orange-bg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 3;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--gray-800);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background: var(--white);
    border-top: 2px solid var(--orange);
    padding: 0px;
    box-shadow: var(--shadow);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 14px 12px;
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 2px;
}

.mobile-nav a:hover {
    background: var(--orange-bg);
    color: var(--orange);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: var(--font);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,107,53,0.25);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.35);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}

.btn-outline:hover {
    background: var(--orange);
    color: #fff;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--orange-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1a1a1a;
    color: #bbb;
    margin-top: 60px;
}

.footer-main {
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.footer-brand-name {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
}

.footer-brand-name span {
    color: #ff6b35;
}

.footer-desc {
    font-size: 12px;
    line-height: 1.7;
    color: #999;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    gap: 6px;
}

.social-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: #ff6b35;
    color: #fff;
}

.footer-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 2px;
    background: #ff6b35;
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #ff8c5a;
    padding-right: 3px;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-badge {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.trust-badge-icon.green { color: #4caf50; }
.trust-badge-icon.blue { color: #2196f3; }
.trust-badge-icon.gold { color: #ffc107; }

.trust-badge-info {
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
}

.trust-badge-info strong {
    display: block;
    color: #ddd;
    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copy {
    font-size: 12px;
    color: #777;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    color: #777;
    text-decoration: none;
    font-size: 12px;
}

.footer-bottom-links a:hover {
    color: #ff8c5a;
}

/* ============================================
   SECTION HEADER (مشترک همه بخش‌ها)
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.section-header h2 span {
    color: var(--orange);
}

.section-header p {
    color: var(--gray-600);
    font-size: 15px;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: transparent;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-overlay .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.hero-content-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.hero-right {
    display: none;
}

.hero-left {
    flex-shrink: 0;
}

.hero-stats-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 107, 53, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 0 16px 16px 0;
    border-left: none;
    padding: 14px 32px 14px 20px;
    margin-left: -20px;
    transition: all 0.3s;
    min-width: 260px;
}

.hero-stat-item:hover {
    background: rgba(255, 107, 53, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    padding-left: 28px;
}

.hero-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 107, 53, 1);
    flex-shrink: 0;
}

.hero-stat-number {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ---- Responsive (موبایل - همون قبلی) ---- */
/* ---- Responsive (موبایل) ---- */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 250px;
    }

    .hero-overlay {
        min-height: 250px;
    }

    .hero-stats-column {
        gap: 5px;
        padding-left: 0;
    }

    .hero-stat-item {
        padding: 6px 12px;
        margin-left:-5px;
        border-radius: 0 10px 10px 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        min-width: auto;
        max-width: 160px;
      
    }

    .hero-stat-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
        border-radius: 6px;
    }

    .hero-stat-number {
        font-size: 12px;
    }

    .hero-stat-label {
        font-size: 8px;
    }
}
/* ============================================
   STATS (تک‌خطی)
   ============================================ */
.stats-section {
    padding: 28px 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 36px;
}

.stat-item i {
    font-size: 26px;
    color: var(--orange);
}

.stat-number {
    font-size: 22px;
    font-weight: 900;
    color: var(--gray-900);
}

.stat-label {
    font-size: 15px;
    color: var(--gray-600);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--gray-200);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-section {
        padding: 16px 0;
    }

    .stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 8px;
    }

    .stat-item i {
        font-size: 22px;
    }

    .stat-number {
        font-size: 15px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-divider {
        display: none;
    }
}


/* ============================================
   CATEGORIES SLIDER
   ============================================ */
.categories-section {
    padding: 60px 0;
}

.categories-section .section-header {
    margin-bottom: 32px;
}

/* Slider */
.categories-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

/* Slide Item */
.category-slide {
    flex: 0 0 auto;
    width: 100px;
    text-decoration: none;
    transition: transform 0.3s;
    text-align: center;
}

.category-slide:hover {
    transform: translateY(-5px);
}

/* TH Image Wrapper */
.th-image-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 20px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-slide:hover .th-image-wrapper {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.th-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* Fallback */
.th-fallback {
    font-size: 14px;
    font-weight: 900;
    color: var(--gray-600);
}

/* TH Label */
.th-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
}

/* Responsive */
@media (max-width: 768px) {
    .categories-section {
        padding: 40px 0;
    }

    .categories-section .section-header {
        margin-bottom: 20px;
    }

    .category-slide {
        width: 75px;
    }

    .th-image-wrapper {
        width: 62px;
        height: 62px;
        border-radius: 16px;
        margin-bottom: 6px;
    }

    .th-label {
        font-size: 11px;
    }

    .categories-slider {
        gap: 10px;
    }
}

/* ============================================
   ADS SLIDER (قابل استفاده مجدد برای انواع آگهی)
   ============================================ */
.ads-slider-section {
    padding: 60px 0;
}

.ads-slider-section.bg-orange {
    background: var(--orange-bg);
}

.ads-slider-section.bg-gray {
    background: var(--gray-50);
}

.ads-slider-section.bg-white {
    background: #fff;
}

/* Header */
.ads-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.ads-slider-header h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--gray-900);
}

.ads-slider-subtitle {
    color: var(--gray-600);
    font-size: 14px;
    margin-top: 4px;
}

/* Slider */
.ads-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
}

.ads-slider::-webkit-scrollbar {
    display: none;
}

/* Card */
.ad-slide-card {
    flex: 0 0 auto;
    width: 200px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
    position: relative;
}

.bg-orange .ad-slide-card,
.bg-gray .ad-slide-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ad-slide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Badge */
.ad-slide-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #fff;
}

.ad-slide-badge.latest {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
}

.ad-slide-badge.popular {
    background: linear-gradient(135deg, #ef5350, #c62828);
}

.ad-slide-badge.sold {
    background: linear-gradient(135deg, #66bb6a, #2e7d32);
}

.ad-slide-badge.cheap {
    background: linear-gradient(135deg, #ffa726, #ef6c00);
}

/* Image */
.ad-slide-image {
    width: 100%;
    height: 140px;
    background: var(--gray-100);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    font-size: 40px;
    color: var(--gray-300);
}

/* Body */
.ad-slide-body {
    padding: 12px 14px;
}

.ad-slide-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.th-badge {
    background: var(--orange-bg);
    color: var(--orange);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.level-badge {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

/* Specs */
.ad-slide-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.ad-slide-specs span {
    font-size: 11px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 3px;
}

.ad-slide-specs i {
    color: var(--orange);
    font-size: 10px;
}

/* Footer */
.ad-slide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--gray-200);
}

.ad-slide-price {
    font-size: 13px;
    font-weight: 900;
    color: var(--gray-900);
}

.ad-slide-footer .btn-sm {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 8px;
}

/* Empty State */
.ads-empty {
    width: 100%;
    text-align: center;
    padding: 40px;
    color: var(--gray-400);
}

.ads-empty i {
    font-size: 48px;
    margin-bottom: 12px;
}

.ads-empty p {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .ads-slider-section {
        padding: 40px 0;
    }

    .ads-slider-header h2 {
        font-size: 20px;
    }

    .ad-slide-card {
        width: 160px;
    }

    .ad-slide-image {
        height: 110px;
    }

    .ad-slide-body {
        padding: 10px;
    }

    .ad-slide-price {
        font-size: 12px;
    }

    .ad-slide-footer .btn-sm {
        font-size: 10px;
        padding: 4px 10px;
    }
}
/* ============================================
   SOLD CARD STYLES
   ============================================ */

/* Sold Card */
.ad-slide-card.sold-card {
    opacity: 0.85;
    border-color: var(--gray-300);
}

/* Sold Image - Black & White */
.ad-slide-image.sold-image {
    filter: grayscale(100%);
    position: relative;
}

/* Sold Overlay */
.sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.sold-overlay i {
    font-size: 40px;
    color: #66bb6a;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Sold Price Text */
.sold-price {
    color: #66bb6a !important;
    font-size: 14px !important;
    font-weight: 900;
}

/* ============================================
   HOW IT WORKS (2 Columns)
   ============================================ */
.how-section {
    padding: 60px 0;
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    max-width: 850px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}


    .step-content {
    flex: 1;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 5px 5px;
    transition: all 0.3s;
    }


.step-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.step-item p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* Last item - full width, centered */
.step-item:last-child {
    grid-column: 1 ;
    justify-self: center;
    max-width: 420px;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .how-section {
        padding: 40px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
    }

    .step-item:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .step-item {
        gap: 12px;
    }

    .step-item h3 {
        font-size: 14px;
    }

    .step-item p {
        font-size: 12px;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    padding: 60px 0;
    background: var(--orange-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
}

.testimonial-stars {
    font-size: 18px;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
}

.testimonial-user strong {
    display: block;
    font-size: 14px;
}

.testimonial-user span {
    font-size: 12px;
    color: var(--gray-600);
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    padding: 60px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--orange-light);
}

.faq-question {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-question i {
    color: var(--orange);
}

.faq-answer {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.8;
}

.mt-20 {
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE ALL SECTIONS
   ============================================ */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-number {
        font-size: 22px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ads-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 16px;
    }

    .hero-search .btn {
        border-radius: 0 0 16px 16px;
    }

    .hero-search input {
        padding: 12px 16px;
    }

    .hero-tags a {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
}

/* ============================================
   HEADER SEARCH (داخل هدر ثابت)
   ============================================ */
.header-search {
    background: #fff;
    padding: 5px 0;
    border-top: none;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s;
    max-width: 600px;
    margin: 0 auto;
}

.header-search-form:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.08);
    background: #fff;
}

.header-search .search-icon {
    color: var(--gray-400);
    font-size: 15px;
    padding-right: 14px;
    flex-shrink: 0;
}

.header-search .search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 4px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--gray-800);
    outline: none;
    min-width: 0;
}

.header-search .search-input::placeholder {
    color: var(--gray-400);
    font-size: 12px;
}

.header-search .search-btn {
    border-radius: 0 50px 50px 0;
    padding: 8px 18px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-search {
        padding: 5px 0;
    }

    .header-search-form {
        border-radius: 40px;
        max-width: 100%;
    }

    .header-search .search-input {
        padding: 7px 2px;
        font-size: 12px;
    }

    .header-search .search-input::placeholder {
        font-size: 11px;
    }

    .header-search .search-icon {
        font-size: 13px;
        padding-right: 10px;
    }

    .header-search .search-btn {
        padding: 7px 12px;
        font-size: 11px;
    }
}

/* ============================================
   SEARCH RESULTS DROPDOWN
   ============================================ */
.header-search-form {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 6px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--orange-bg);
}

.search-result-image {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gray-300);
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.search-result-specs {
    font-size: 11px;
    color: var(--gray-600);
    display: flex;
    gap: 8px;
}

.search-result-price {
    font-size: 14px;
    font-weight: 900;
    color: var(--orange);
    white-space: nowrap;
}

.search-result-empty {
    padding: 20px;
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
}

.search-loading {
    padding: 16px;
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
}

/* ============================================
   GOLDEN PARTICLES (Pure CSS)
   ============================================ */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

/* رنگ‌های مختلف طلایی و نارنجی */
.particle:nth-child(1)  { background: #ffd700; top: 15%; left: 8%;  animation-delay: 0s;    width: 5px; height: 5px; }
.particle:nth-child(2)  { background: #ff6b35; top: 25%; left: 25%; animation-delay: 1s;    width: 4px; height: 4px; }
.particle:nth-child(3)  { background: #ffe44d; top: 10%; left: 45%; animation-delay: 2s;    width: 7px; height: 7px; }
.particle:nth-child(4)  { background: #ffd700; top: 35%; left: 65%; animation-delay: 0.5s;  width: 3px; height: 3px; }
.particle:nth-child(5)  { background: #ffab76; top: 20%; left: 80%; animation-delay: 1.5s;  width: 6px; height: 6px; }
.particle:nth-child(6)  { background: #ffe44d; top: 45%; left: 15%; animation-delay: 3s;    width: 4px; height: 4px; }
.particle:nth-child(7)  { background: #ff6b35; top: 55%; left: 35%; animation-delay: 2.5s;  width: 5px; height: 5px; }
.particle:nth-child(8)  { background: #ffd700; top: 65%; left: 55%; animation-delay: 0.8s;  width: 6px; height: 6px; }
.particle:nth-child(9)  { background: #ffab76; top: 75%; left: 75%; animation-delay: 1.8s;  width: 4px; height: 4px; }
.particle:nth-child(10) { background: #ffe44d; top: 85%; left: 10%; animation-delay: 3.5s;  width: 5px; height: 5px; }

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0.5);
    }
    10% {
        opacity: 0.8;
    }
    30% {
        transform: translateY(-50px) translateX(30px) scale(1.2);
        opacity: 0.6;
    }
    60% {
        transform: translateY(-25px) translateX(-20px) scale(0.7);
        opacity: 0.3;
    }
    90% {
        opacity: 0.7;
        transform: translateY(-60px) translateX(15px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) translateX(-10px) scale(0.3);
    }
}

/* ============================================
   AUTH FORMS
   ============================================ */
.py-40 { padding: 40px 0; }

.auth-form {
    max-width: 450px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: none;
}

.auth-header {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
    padding: 32px 24px;
    text-align: center;
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 6px;
    color: #fff;
}

.auth-header span { color: #fff; }

.auth-header p {
    font-size: 13px;
    opacity: 0.9;
}

.auth-body {
    padding: 28px 24px;
}

.auth-footer {
    text-align: center;
    padding: 16px;
    border-top: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--orange);
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.08);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin: 20px 24px;
    font-size: 13px;
    line-height: 1.8;
}

.alert p { margin: 2px 0; }

.alert-danger {
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}



/* ---- Dashboard ---- */
@import url('dashboard.css');

/* ============================================
   FORM SELECT (ComboBox)
   ============================================ */
.form-select {
    flex: 1;
    padding: 10px 14px !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 10px !important;
    font-family: var(--font) !important;
    font-size: 14px !important;
    color: var(--gray-900) !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

.form-select:focus {
    outline: none !important;
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.08) !important;
}

.date-selects {
    display: flex;
    gap: 8px;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: scaleIn 0.3s ease;
}

.modal-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.modal-box h3 {
    font-size: 20px;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.modal-box > p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.modal-box ul {
    list-style: none;
    padding: 0;
    text-align: right;
    margin-bottom: 20px;
}

.modal-box ul li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-800);
}

.modal-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--orange);
    border-radius: 4px;
    transition: width 0.5s;
}

.modal-progress span {
    font-size: 12px;
    color: var(--gray-600);
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions .btn {
    flex: 1;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 576px) {
    .auth-form {
        margin: 0 16px;
        border-radius: 24px;
    }
}


@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .header-actions {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
        order: 1;
    }

    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo .logo-icon {
        display: none !important;
    }

    .logo-text {
        font-size: 20px;
    }

    .mobile-auth-btn {
        display: flex !important;
        order: 3;
    }

    .mobile-auth-btn .btn {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        font-size: 16px;
    }

    .header-inner {
        height: 60px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-main {
        padding: 30px 0;
    }

    .trust-badges {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    .trust-badge {
        padding: 10px 6px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .trust-badge-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .trust-badges {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }

    .trust-badge {
        padding: 8px 4px;
    }

    .trust-badge-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .trust-badge-info strong {
        font-size: 10px;
    }

    .trust-badge-info {
        font-size: 9px;
    }
}

/* ===== افزایش عرض کادر جستجو در هیرو ===== */
.hero-search-box {
    max-width: 720px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.hero-search-box .search-input {
    flex: 1;
    min-width: 150px;
}

.hero-search-box .search-btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-search-box {
        max-width: 100% !important;
        padding: 0 10px !important;
    }
}

/* ===== کادر جستجو هیرو ===== */
.hero-search-box {
    max-width: 720px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .hero-search-box {
        max-width: 100% !important;
        padding: 0 10px !important;
    }
}

/* ===== نیرو گرفتن ۴ ستونی در دسکتاپ ===== */
@media (min-width: 993px) {
    #productsGrid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .ad-card-new {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    #productsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 8px !important;
    }
}
