/* RESET & BASE
   ------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Tahoma, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, #EEEFFD 0, #FAFAFD 45%, #EEEFFD 100%);
    color: #122056;
    line-height: 1.7;
}

.page {
    min-height: 100vh;
}

/* HEADER
   ------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background:
        linear-gradient(90deg, #122056 0%, #182b6f 45%, #122056 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(9, 12, 40, 0.35);
}

.header-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0.6rem 5vw;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.brand-logo-block {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: #0f1c55;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: contain;
    background: #FFFFFF;
}

.brand-caption {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-name-en {
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 1rem;
    color: #FFFFFF;
}

.brand-name-fa {
    font-size: 0.7rem;
    color: #E5E7F9;
}

.rep-badge {
    margin-right: auto;
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #F9FAFF;
}

.rep-badge a {
    color: #FFD86A;
    text-decoration: none;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(207, 214, 255, 0.4);
    color: #F9FAFF;
    background: rgba(17, 31, 94, 0.9);
    box-shadow: 0 5px 14px rgba(8, 12, 40, 0.4);
    transition:
        background 0.18s ease,
        transform 0.1s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.nav-link:hover {
    background: linear-gradient(130deg, #5B65DC, #7C86FF);
    border-color: #FFFFFF;
    color: #FFFFFF;
    box-shadow: 0 8px 22px rgba(37, 56, 180, 0.5);
    transform: translateY(-1px);
}

/* HERO (FULL-WIDTH)
   ------------------------------ */

.hero-section {
    width: 100%;
    margin: 2.4rem 0 2.1rem;
    padding: 0;
}

.hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
    padding: 2.2rem 6vw;
    background:
        linear-gradient(135deg, #FFFFFF 0, #FAFAFD 55%, #EEEFFD 100%);
    box-shadow: 0 20px 50px rgba(18, 32, 86, 0.18);
}

.hero-text {
    position: relative;
    color: #122056;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.25rem 0.85rem;
    font-size: 0.7rem;
}

.pill-soft {
    background: #EEEFFD;
    color: #122056;
    border: 1px solid #D3D9FF;
}

.hero-title {
    margin: 1rem 0 0.6rem;
    font-size: 2rem;
    line-height: 1.4;
    color: #122056;
}

.hero-sub {
    margin: 0;
    font-size: 0.94rem;
    color: #4B4F7A;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.8rem;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition:
        transform 0.12s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease,
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #5B65DC, #7C86FF);
    color: #FFFFFF;
    box-shadow: 0 20px 44px rgba(91, 101, 220, 0.38);
    font-weight: 800;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(91, 101, 220, 0.45);
    filter: brightness(1.05);
}

.btn-ghost {
    background: #FFFFFF;
    color: #122056;
    border: 1px solid #D1D5F5;
    box-shadow: 0 7px 18px rgba(18, 32, 86, 0.18);
}

.btn-ghost:hover {
    background: #EEEFFD;
    border-color: #C0C6FF;
    transform: translateY(-1px);
}

.hero-points {
    margin: 1.1rem 0 0;
    padding-right: 1.1rem;
    font-size: 0.86rem;
    color: #4B4F7A;
}

.hero-points li {
    margin-bottom: 0.35rem;
}

/* HERO VISUAL */

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-card-main {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 0.3rem;
    border-radius: 28px;
    background:
        linear-gradient(135deg, #FFFFFF 0, #EEEFFD 45%, #D9DEFF 100%);
    box-shadow: 0 24px 50px rgba(18, 32, 86, 0.25);
    overflow: hidden;
    animation: floatMain 4s ease-in-out infinite;
    border: 1px solid #D3D9FF;
}

.hero-main-img {
    display: block;
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
}

.hero-tag {
    position: absolute;
    bottom: 0.9rem;
    left: 7rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(18, 32, 86, 0.3);
    color: #122056;
    border: 1px solid #D1D5F5;
}

.hero-card-stack {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
}

.hero-mini {
    width: 300px;
    padding: 2rem;
    border-radius: 20px;
    background:
            linear-gradient(135deg, #FFFFFF 0, #EEEFFD 45%, #D9DEFF 100%);
        box-shadow: 0 24px 50px rgba(18, 32, 86, 0.25);
        overflow: hidden;
        animation: floatMain 7s ease-in-out infinite;
        border: 1px solid #D3D9FF;
}

.hero-mini-left {
    transform: translateY(4px) rotate(-4deg);
}

.hero-mini-right {
    transform: translateY(-4px) rotate(3deg);
}

.hero-mini-img {
    width: 100%;
    height: 95px;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 0.3rem;
}

.hero-mini-caption {
    font-size: 0.75rem;
    color: #122056;
}

@keyframes floatMain {

    0%,
    100% {
        transform: translateY(6px);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* FILTERS SECTION (FULL-WIDTH)
   ------------------------------ */

.filters-section {
    width: 100%;
    margin: 0 0 1.2rem;
    padding: 0;
}

.filters-inner {
    width: 100%;
    background: #FFFFFF;
    border-radius: 0;
    padding: 1.1rem 6vw 1.3rem;
    box-shadow: 0 18px 44px rgba(18, 32, 86, 0.12);
    border: 1px solid #E1E4FF;
}

.section-title {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    color: #122056;
}

.categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.category-chip {
    border-radius: 999px;
    border: 1px solid #D3D9FF;
    background: #FAFAFD;
    padding: 0.3rem 0.95rem;
    font-size: 0.8rem;
    cursor: pointer;
    color: #122056;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.1s ease,
        border-color 0.15s ease;
}

.category-chip.is-active {
    background: #5B65DC;
    color: #FFFFFF;
    border-color: #5B65DC;
    box-shadow: 0 10px 26px rgba(91, 101, 220, 0.4);
    transform: translateY(-1px);
}

.category-chip:hover:not(.is-active) {
    background: #EEEFFD;
    box-shadow: 0 6px 18px rgba(18, 32, 86, 0.16);
}

.filters-note {
    margin: 0;
    font-size: 0.8rem;
    color: #4B4F7A;
}

.filters-note a {
    color: #5B65DC;
    text-decoration: none;
}

/* PRODUCTS GRID (FULL-WIDTH)
   ------------------------------ */

.products-section {
    width: 100%;
    margin: 1.4rem 0 2.1rem;
    padding: 0 0 1.1rem;
}

.products-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    padding: 0 6vw;
}

/* کارت محصول */

.product-card {
    background:
        linear-gradient(135deg, #FFFFFF 0, #FAFAFD 60%, #EEEFFD 100%);
    border-radius: 20px;
    padding: 0.95rem 0.95rem 1rem;
    box-shadow: 0 20px 44px rgba(18, 32, 86, 0.18);
    border: 1px solid #E1E4FF;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: #122056;
}

/* تصویر محصول */

.product-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0.45rem;
    background: #FAFAFD;
    border: 1px solid #D7DCF7;
}

.product-thumb-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.product-card:hover .product-thumb-img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

/* متن کارت */

.product-tag {
    font-size: 0.75rem;
    color: #5B65DC;
    background: #EEEFFD;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    display: inline-block;
    margin-bottom: 0.15rem;
    border: 1px solid #D3D9FF;
}

.product-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #122056;
}

.product-text {
    margin: 0 0 0.4rem;
    font-size: 0.86rem;
    color: #4B4F7A;
}

.product-bullets {
    margin: 0 0 0.6rem;
    padding-right: 1.1rem;
    font-size: 0.8rem;
    color: #4B4F7A;
}

.product-bullets li {
    margin-bottom: 0.22rem;
}

/* لینک پایین کارت */

.product-link {
    margin-top: auto;
    font-size: 0.82rem;
    text-decoration: none;
    color: #5B65DC;
    font-weight: 600;
    display: inline-flex;
}

.product-link:hover {
    color: #3741AF;
}

/* REP SECTION (FULL-WIDTH)
   ------------------------------ */

.rep-section {
    width: 100%;
    margin: 0 0 2.4rem;
    padding: 0;
}

.rep-inner {
    width: 100%;
    background: #FFFFFF;
    border-radius: 0;
    padding: 1.5rem 6vw 1.9rem;
    box-shadow: 0 22px 52px rgba(18, 32, 86, 0.14);
    border: 1px solid #E1E4FF;
    color: #122056;
}

.rep-text {
    margin: 0.3rem 0 0.7rem;
    font-size: 0.9rem;
    color: #4B4F7A;
}

.rep-points {
    margin: 0 0 0.8rem;
    padding-right: 1.2rem;
    font-size: 0.84rem;
    color: #4B4F7A;
}

.rep-points li {
    margin-bottom: 0.3rem;
}

.btn-outline {
    border-radius: 999px;
    border: 1px solid #5B65DC;
    background: #FFFFFF;
    color: #122056;
    padding-inline: 1.4rem;
    box-shadow: 0 14px 34px rgba(18, 32, 86, 0.18);
}

.btn-outline:hover {
    background: #5B65DC;
    color: #FFFFFF;
}

/* FOOTER
   ------------------------------ */

.site-footer {
    border-top: 1px solid rgba(207, 214, 255, 0.6);
    padding: 1.1rem 5vw 1.6rem;
    text-align: center;
    font-size: 0.78rem;
    color: #E5E7FF;
    background: #122056;
}

.site-footer a {
    color: #FFD86A;
    text-decoration: none;
}

/* REVEAL
   ------------------------------ */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE
   ------------------------------ */
@media (max-width: 960px) {

    /* هدر: ستونی و خواناتر */
    .header-inner {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding-inline: 4vw;
    }

    .brand-logo-block {
        order: 1;
    }

    .rep-badge {
        order: 2;
        margin-right: 0;
        width: 100%;
        text-align: right;
        white-space: normal;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .nav-link {
        padding-inline: 0.8rem;
        font-size: 0.78rem;
    }

    /* هیرو: تک‌ستونه، عکس بالا، متن پایین یا برعکس تو سلیقه‌ات */
    .hero-section {
        margin: 1.6rem 0 1.8rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 1.8rem 5vw 2rem;
        gap: 1.6rem;
    }

    /* اگر می‌خوای عکس بالا باشه، این بمونه */
    .hero-visual {
        order: -1;
    }

    /* فیلترها و سکشن نمایندگی کمی جمع‌وجورتر */
    .filters-inner,
    .rep-inner {
        padding-inline: 5vw;
    }
}
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.5;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

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

    .hero-card-main {
        max-width: 100%;
    }

    .hero-card-stack {
        width: 100%;
        gap: 0.6rem;
    }

    .hero-mini {
        width: 50%;
    }

    .hero-mini-left,
    .hero-mini-right {
        transform: none;
        /* رو موبایل دیگه کج و معوج نباشن */
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding-inline: 4vw;
    }

    .filters-inner,
    .rep-inner {
        padding-inline: 4vw;
    }

    .rep-badge {
        font-size: 0.75rem;
    }

    .nav-link {
        font-size: 0.76rem;
        padding: 0.3rem 0.8rem;
    }
}