/* صفحه اول فروشگاهی — چیدمان شبیه فروشگاه تجهیزات خورشیدی، با رنگ و داده سودی پرگاس */

.page-home {
    background: #f6f6f6;
    background-image: none;
    color: #242424;
}

.page-home .top-bar {
    background: #3862ed;
    border-bottom: none;
    padding: 0;
    font-size: 13px;
}

.page-home .top-bar .container {
    min-height: 42px;
}

.page-home .top-bar-contact span,
.page-home .top-bar-contact a,
.page-home .top-bar-note {
    color: #fff;
}

.page-home .top-bar-contact a:hover,
.page-home .top-bar-note {
    color: #fff;
}

.page-home .top-bar-note {
    font-weight: 700;
}

.page-home .top-bar-social a {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: none;
}

.page-home .top-bar-social a:hover {
    background: #fff;
    color: #3862ed;
}

.page-home .btn-login {
    background: #fff;
    color: #3862ed;
    box-shadow: none;
}

.page-home .btn-login:hover {
    background: #eef3ff;
    color: #1c4fd6;
    box-shadow: none;
}

.page-home .user-menu .welcome {
    color: #fff;
}

.page-home .main-nav {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.page-home .nav-menu > a:not(.btn-nav-cta)::after {
    background: #35ad4f;
}

.page-home .nav-menu > a:not(.btn-nav-cta):hover,
.page-home .nav-item-has-mega > a:hover {
    color: #1f8a3b;
    background: rgba(53, 173, 79, 0.08);
}

.page-home .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: 10px;
}

.page-home .nav-actions .btn-nav-cta,
.page-home .nav-actions .btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    transform: none;
}

.page-home .nav-actions .btn-nav-cta {
    background: #35ad4f;
    color: #fff;
}

.page-home .nav-actions .btn-nav-cta:hover {
    background: #2d9643;
    color: #fff;
    box-shadow: none;
    transform: none;
}

.page-home .nav-actions .btn-login {
    background: #fff;
    color: #1f8a3b;
    border: 1px solid #35ad4f;
}

.page-home .nav-actions .btn-login:hover {
    background: #f3fbf5;
    color: #187a34;
    box-shadow: none;
    transform: none;
}

.page-home .logo-wrap:hover .logo-text,
.page-home .logo-wrap:hover .logo-subtitle {
    color: #1f8a3b;
}

/* ===== هیرو ===== */
.ishop-hero {
    position: relative;
    min-height: 460px;
    background: #102018;
    overflow: hidden;
}

.ishop-hero-slides {
    position: absolute;
    inset: 0;
}

.ishop-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.ishop-slide.is-on {
    opacity: 1;
}

.ishop-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ishop-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 18, 12, 0.15) 0%, rgba(8, 18, 12, 0.55) 42%, rgba(8, 18, 12, 0.78) 100%);
}

.ishop-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 78px 24px 120px;
    color: #fff;
}

.ishop-hero-brand {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(53, 173, 79, 0.9);
    font-size: 13px;
    font-weight: 700;
}

.ishop-hero-copy h1 {
    max-width: 640px;
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.45;
    font-weight: 800;
    color: #fff;
}

.ishop-hero-copy p {
    max-width: 520px;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.92);
}

.ishop-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ishop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ishop-btn-green {
    background: #35ad4f;
    color: #fff;
}

.ishop-btn-green:hover {
    background: #2d9643;
    color: #fff;
}

.ishop-btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.ishop-btn-ghost:hover {
    background: #fff;
    color: #1a1a1a;
}

.ishop-hero-nav {
    position: absolute;
    top: 42%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ishop-hero-nav.prev { right: 16px; }
.ishop-hero-nav.next { left: 16px; }

.ishop-hero-dots {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 86px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ishop-hero-dots button {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
}

.ishop-hero-dots button.is-on {
    background: #35ad4f;
    width: 22px;
    border-radius: 999px;
}

.ishop-search {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 32px));
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.ishop-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font: inherit;
    font-size: 14px;
    background: #fff;
    color: #222;
}

.ishop-search button {
    border: none;
    background: #35ad4f;
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 0 22px;
    cursor: pointer;
}

.ishop-search button:hover {
    background: #2d9643;
}

/* ===== دسته‌ها و بلوک‌ها ===== */
.ishop-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.ishop-cats {
    background: #f6f6f6;
    padding: 36px 0 28px;
}

.ishop-kicker {
    margin: 0 0 4px;
    color: #35ad4f;
    font-size: 13px;
    font-weight: 700;
}

.ishop-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ishop-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #1c1c1c;
}

.ishop-more {
    color: #1c61e7;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.ishop-more:hover {
    color: #35ad4f;
}

.ishop-head-center {
    justify-content: center;
    text-align: center;
    margin-bottom: 8px;
}

.ishop-head h2 {
    position: relative;
}

.ishop-head-center h2::after {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 99px;
    background: #35ad4f;
}

.ishop-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.ishop-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 12px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ishop-cat:hover {
    transform: translateY(-4px);
    border-color: #35ad4f;
    box-shadow: 0 14px 28px rgba(53, 173, 79, 0.14);
}

.ishop-cat-photo {
    width: 100%;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-radius: 12px;
    padding: 10px;
}

.ishop-cat-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ishop-cat strong {
    font-size: 14px;
    font-weight: 800;
    color: #1c1c1c;
    line-height: 1.6;
}

.ishop-brands {
    background: #fff;
    padding: 8px 0 28px;
    border-top: 1px solid #f0f0f0;
}

.brand-marquee {
    overflow: hidden;
    margin-top: 8px;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.brand-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    animation: brand-marquee 32s linear infinite;
}

.brand-marquee:hover .brand-track {
    animation-play-state: paused;
}

.brand-logo {
    flex: 0 0 190px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo:hover {
    transform: translateY(-3px);
    border-color: #cfe8d4;
    box-shadow: 0 10px 22px rgba(53, 173, 79, 0.12);
}

.brand-logo img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
}

@keyframes brand-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-track {
        animation: none;
    }
}

.ishop-block {
    padding: 18px 0 8px;
}

.ishop-block-alt {
    background: #fff;
    padding: 28px 0 18px;
    margin-top: 12px;
}

.ishop-rail {
    position: relative;
}

.ishop-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 16px;
}

.ishop-track::-webkit-scrollbar {
    display: none;
}

.ishop-card {
    flex: 0 0 calc((100% - 56px) / 5);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ishop-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.ishop-block-alt .ishop-card {
    background: #fafafa;
}

.ishop-card:hover {
    border-color: #35ad4f;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.ishop-card-thumb {
    height: 180px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.ishop-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ishop-card-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.ishop-card-brand {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.ishop-card-name {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    font-weight: 700;
    color: #1f1f1f;
    min-height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ishop-card-spec {
    font-size: 12px;
    color: #3862ed;
    font-weight: 600;
}

.ishop-card-price {
    margin-top: auto;
    color: #1f8a3b;
    font-weight: 800;
    font-size: 14px;
}

.ishop-quote {
    margin: 0 12px 12px;
    display: block;
    text-align: center;
    background: #35ad4f;
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ishop-quote:hover {
    background: #2d9443;
    color: #fff;
}

.ishop-arrow {
    position: absolute;
    top: 78px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #222;
}

.ishop-arrow.prev { right: -8px; }
.ishop-arrow.next { left: -8px; }

.ishop-arrow:hover {
    border-color: #35ad4f;
    color: #1f8a3b;
}

/* مقالات */
.ishop-articles {
    padding: 28px 0 36px;
}

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

.ishop-article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.ishop-article:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.ishop-article img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.ishop-article-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ishop-article-body time {
    font-size: 12px;
    color: #6b7280;
}

.ishop-article-body h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 800;
}

.ishop-article-body p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ishop-cities {
    background: #111;
    color: #fff;
    padding: 28px 0;
}

.ishop-cities h2 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #fff;
}

.ishop-cities p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.page-home .contact-section {
    background: #fff;
}

.page-home .contact-form-card select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: #f8fafc;
    color: #1f2937;
}

.page-home .contact-form-card select:focus {
    outline: none;
    border-color: #42a5f5;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.12);
    background: #fff;
}

.ishop-stats {
    position: relative;
    z-index: 3;
    margin-top: -34px;
    padding-bottom: 8px;
}

.ishop-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
}

.ishop-stat {
    text-align: center;
    padding: 18px 10px;
}

.ishop-stat + .ishop-stat {
    border-inline-start: 1px solid #f0f0f0;
}

.ishop-stat strong {
    display: block;
    color: #1f8a3b;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.ishop-stat span {
    display: block;
    margin-top: 4px;
    color: #4b5563;
    font-size: 13px;
}

.ishop-quotes {
    padding: 8px 0 28px;
}

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

.ishop-voice {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
}

.ishop-voice strong {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.ishop-voice p {
    margin: 0;
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.85;
}

.ishop-quotes-note {
    margin: -4px 0 14px;
    color: #6b7280;
    font-size: 13px;
}

.ishop-voice {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ishop-voice-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ishop-voice-top span,
.ishop-voice time {
    color: #6b7280;
    font-size: 12px;
}

.ishop-voice-stars {
    color: #e2a100;
    letter-spacing: 1px;
    font-size: 14px;
}

.ishop-voice-stars span {
    color: #e5e7eb;
}

.ishop-voice time {
    margin-top: auto;
}

@media (max-width: 1100px) {
    .ishop-card {
        flex-basis: calc((100% - 28px) / 3);
    }
    .ishop-cat-grid,
    .ishop-quote-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-home .top-bar .top-bar-contact .top-bar-note {
        display: none;
    }

    .ishop-hero {
        min-height: 0;
    }

    .ishop-hero-copy {
        padding: 42px 16px 20px;
    }

    .ishop-hero-copy h1 {
        font-size: 24px;
    }

    .ishop-hero-nav,
    .ishop-hero-dots {
        display: none;
    }

    .ishop-search {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: calc(100% - 24px);
        margin: 0 12px 14px;
    }

    .ishop-stats {
        margin-top: 12px;
    }

    .ishop-stats-grid,
    .ishop-quote-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .ishop-card {
        flex-basis: calc((100% - 14px) / 2);
    }

    .ishop-arrow {
        display: none;
    }

    .ishop-head h2 {
        font-size: 20px;
    }

    .page-home .nav-actions {
        flex-direction: column;
        align-items: stretch;
        margin: 8px 0 0;
    }

    .page-home .nav-actions .btn-nav-cta,
    .page-home .nav-actions .btn-login {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .ishop-stats-grid,
    .ishop-quote-grid {
        grid-template-columns: 1fr;
    }

    .ishop-stat + .ishop-stat {
        border-inline-start: 0;
        border-top: 1px solid #f0f0f0;
    }

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

    .ishop-article-grid,
    .ishop-card {
        flex-basis: 78%;
    }

    .ishop-article-grid {
        grid-template-columns: 1fr;
    }

    .ishop-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (min-width: 1101px) {
    .page-home .main-nav .container {
        display: flex;
        align-items: center;
        position: relative;
        min-height: 68px;
    }

    .page-home .logo-wrap {
        position: relative;
        z-index: 2;
        width: max-content;
    }

    .page-home .nav-menu {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
        max-width: calc(100% - 240px);
        justify-content: center;
        flex-wrap: nowrap;
        z-index: 3;
    }

    .page-home .nav-menu > a:not(.btn-nav-cta),
    .page-home .nav-item-has-mega > a {
        padding: 10px 12px;
        white-space: nowrap;
    }
}

@media (max-width: 1100px) {
    .page-home .main-nav .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .page-home .nav-toggle {
        display: flex;
        flex-direction: column;
    }

    .page-home .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: #fff;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
        padding: 12px;
        border-radius: 0 0 12px 12px;
        gap: 4px;
    }

    .page-home .main-nav.nav-open .nav-menu {
        display: flex;
    }

    .page-home .nav-actions {
        flex-direction: column;
        align-items: stretch;
        margin: 8px 0 0;
    }

    .page-home .nav-actions .btn-nav-cta,
    .page-home .nav-actions .btn-login {
        width: 100%;
    }
}
