/* ===================================================
   صفحه اصلی — سبک رترو
=================================================== */

/* ===== انیمیشن Fade In هنگام اسکرول ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- HERO ----- */
.hero {
    position: relative;
    max-width: 1200px;
    margin: 30px auto 60px auto;
    padding: 0 30px;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-media {
    position: relative;
    background-color: var(--color-cream);   /* از maroon */
    border-radius: 20px;
    box-shadow: 10px 10px 0 var(--color-maroon);
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}

.hero-media-img {
    width: 100%;
    max-width: 900px;      /* بزرگ‌تر شد */
    height: auto;
    display: block;
    margin-top: -80px;    /* هماهنگ با سایز جدید */
}
.hero-content {
    text-align: right;
}

.hero-title {
    font-family: 'Morabba', sans-serif;
    font-size: 52px;
    line-height: 1.3;
    color: var(--color-cream);
    text-shadow: 4px 4px 0 var(--color-maroon);  /* اضافه شد */
    letter-spacing: 1px;
}

.hero-subtitle {
    max-width: 480px;
    margin: 22px 0 36px 0;
    font-size: 16px;
    line-height: 2;
    color: var(--color-cream);
    opacity: 0.85;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-btn {
    font-family: 'Morabba', sans-serif;
    font-size: 17px;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.hero-btn-primary {
    background-color: var(--color-maroon);
    color: var(--color-cream);
    box-shadow: 4px 4px 0 var(--color-cream);
}

.hero-btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--color-cream);
}

.hero-btn-secondary {
    background-color: transparent;
    color: var(--color-cream);
    border: 2px dashed var(--color-cream);
}

.hero-btn-secondary:hover {
    transform: translate(-2px, -2px);
    background-color: rgba(255, 243, 225, 0.06);
}

/* ----- نوار ویژگی‌های زیر بنر ----- */
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 50px;
    padding-top: 34px;
    border-top: 2px dashed rgba(255, 243, 225, 0.25);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
}

.hero-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-maroon);
    border: 2px dashed var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hero-feature-title {
    font-family: 'Portada', sans-serif;
    font-weight: bold;
    font-size: 13.5px;
    color: var(--color-cream);
    margin-bottom: 4px;
}

.hero-feature-desc {
    font-family: 'Portada', sans-serif;
    font-size: 12px;
    color: var(--color-cream);
    opacity: 0.65;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-subtitle {
        margin: 22px auto 36px auto;
    }
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 38px;
    }
}

/* چیدمان ویژگی‌ها روی گوشی توی responsive.css تعریف شده (ردیف دایره‌ای) */

/* ----- بخش‌های عمومی ----- */
.section {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 30px;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Morabba', sans-serif;
    font-size: 34px;
    color: var(--color-cream);
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--color-cream);
    opacity: 0.7;
    margin-top: 10px;
}

/* ----- دسته‌بندی‌ها ----- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    background-color: var(--color-cream);
    border: 2px dashed var(--color-maroon);
    border-radius: 16px;
    padding: 34px 20px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 6px 6px 0 var(--color-maroon);
}

.category-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--color-maroon);
}

.category-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    background-color: var(--color-maroon);
    color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Morabba', sans-serif;
    font-size: 24px;
    border: 2px dashed var(--color-cream);
}

.category-title {
    font-family: 'Morabba', sans-serif;
    font-size: 19px;
    color: var(--color-black);
    margin-bottom: 10px;
}

.category-desc {
    font-family: 'Portada', sans-serif;
    font-size: 13px;
    color: var(--color-black);
    opacity: 0.75;
    line-height: 1.9;
}

@media (max-width: 800px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- چطور کار می‌کنیم ----- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.process-card {
    background-color: var(--color-cream);
    border: 2px dashed var(--color-maroon);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
}

.process-num {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background-color: var(--color-maroon);
    color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Morabba', sans-serif;
    font-size: 18px;
}

.process-title {
    font-family: 'Morabba', sans-serif;
    font-size: 17px;
    color: var(--color-black);
    margin-bottom: 8px;
}

.process-desc {
    font-family: 'Portada', sans-serif;
    font-size: 12.5px;
    color: var(--color-black);
    opacity: 0.75;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- محصولات ویژه ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    position: relative;
    background-color: var(--color-cream);
    border: 2px solid var(--color-maroon);
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
}

.product-thumb {
    height: 160px;
    background-image: repeating-linear-gradient(
        135deg,
        var(--color-maroon) 0px,
        var(--color-maroon) 2px,
        var(--color-cream) 2px,
        var(--color-cream) 14px
    );
    opacity: 0.9;
    position: relative;
}

.product-ribbon {
    position: absolute;
    top: 14px;
    left: -34px;
    background-color: var(--color-black);
    color: var(--color-cream);
    font-family: 'Portada', sans-serif;
    font-size: 11px;
    padding: 4px 40px;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.product-thumb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 34px;
    opacity: 0.85;
}

.product-info {
    padding: 16px 12px 20px 12px;
}

.product-name {
    font-family: 'Portada', sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: var(--color-black);
    margin-bottom: 6px;
}

.product-price {
    font-family: 'Portada', sans-serif;
    font-size: 12.5px;
    color: var(--color-maroon);
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- تیزر درباره زیگو ----- */
.about-teaser {
    background-color: var(--color-maroon);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-teaser-quote {
    font-family: 'Morabba', sans-serif;
    font-size: 90px;
    color: rgba(255, 243, 225, 0.15);
    position: absolute;
    top: -10px;
    right: 30px;
    line-height: 1;
}

.about-teaser-text {
    max-width: 620px;
    margin: 0 auto 26px auto;
    font-size: 16px;
    line-height: 2;
    color: var(--color-cream);
    position: relative;
}

.about-teaser-link {
    display: inline-block;
    font-family: 'Morabba', sans-serif;
    font-size: 15px;
    color: var(--color-maroon);
    background-color: var(--color-cream);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.about-teaser-link:hover {
    transform: translateY(-3px);
}
/* ===== تازه رسیده‌ها ===== */
.new-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.new-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1.5px solid rgba(28, 26, 24, 0.09);
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    transition: transform 0.18s, box-shadow 0.18s;
}
.new-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(28, 26, 24, 0.1);
}
.new-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(28, 26, 24, 0.04);
}
.new-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.new-badge {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-start: 8px;
    z-index: 2;
    font-size: 10.5px;
    padding: 3px 9px;
    border-radius: 999px;
    background-color: var(--color-maroon);
    color: #fff;
}
.new-name {
    font-size: 12.5px;
    line-height: 1.7;
    padding: 10px 11px 0 11px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.new-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
    padding: 7px 11px 12px 11px;
}
.new-was {
    font-size: 11px;
    opacity: 0.45;
    text-decoration: line-through;
}
.new-now {
    font-size: 12.5px;
    font-weight: bold;
}

@media (max-width: 900px) {
    .new-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    /* روی موبایل ریل افقی، تا ۸ تا محصول جای ۳ ردیف نگیره */
    .new-rail {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 11px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .new-card {
        flex: 0 0 45%;
        scroll-snap-align: start;
    }
}

/* ===== دسته‌بندی‌ها: دو قاب بزرگ ===== */
/* هر صفحه دو کارت پهنه، نه چهار کارت کوچیک. چیدمانِ صفحه‌ها رو
   category-rotator.js می‌سازه (.cat-rotator-page)، اینجا فقط ظاهره. */
.cat-rotator-wide .cat-rotator-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cat-wide {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.cat-wide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.9s ease;
    z-index: 0;
}
.cat-wide:hover .cat-wide-bg { transform: scale(1.05); }

.cat-wide-bg-fallback {
    background: linear-gradient(135deg, #3a3330, #1c1a18);
}

/* لایه‌ی تیره تا نوشته روی هر عکسی خونده بشه */
.cat-wide-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.45) 38%,
        rgba(0, 0, 0, 0.12) 70%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.cat-wide-label {
    position: absolute;
    z-index: 2;
    inset-inline-end: 26px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: end;
}
.cat-wide-fa {
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.cat-wide-en {
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 0.28em;
    opacity: 0.85;
    text-transform: uppercase;
    direction: ltr;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.cat-wide-count {
    position: absolute;
    z-index: 2;
    inset-inline-start: 18px;
    inset-block-end: 16px;
    font-size: 11px;
    padding: 4px 11px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(4px);
    opacity: 0.9;
}

@media (max-width: 860px) {
    /* روی گوشی یک قاب در هر صفحه */
    .cat-rotator-wide .cat-rotator-page { grid-template-columns: 1fr; }
    .cat-wide { aspect-ratio: 3 / 2; }
    .cat-wide-label { inset-inline-end: 18px; }
    .cat-wide-fa { font-size: 15px; }
    .cat-wide-en { font-size: 11.5px; letter-spacing: 0.22em; }
}

/* سوالات متداول توی صفحه‌ی اصلی: همون کارت‌های about.css، فقط
   با عرض و فاصله‌ی هم‌اندازه‌ی بقیه‌ی بخش‌های صفحه‌ی اصلی */
.home-faq {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 10px 24px;
}
.home-faq .about-section { margin-bottom: 26px; }

@media (max-width: 640px) {
    .home-faq { padding: 0 16px 6px 16px; }
}
