html,
body {
    background: #ffffff;
    font-family: 'IRANYekanXFaNum', sans-serif;
}

* {
    box-sizing: border-box;
}

/* ---------- Global ---------- */

.txt-i {
    color: #767676;
    font-size: 12px;
    font-weight: 300;
    line-height: 20px;
}

.txt-i-ii {
    color: #A0A0A0;
    font-size: 12px;
    font-weight: 300;
    line-height: 20px;
}

.txt-ii {
    color: #767676;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}


.txt-ii-ii {
    color: #342E2E;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.txt-ii-iii {
    color: #A0A0A0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.txt-ii-iv {
    color: #D3D3D3;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
}

.txt-ii-v {
    color: #585858;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

.txt-iii {
    color: #342E2E;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.txt-iv {
    color: #342E2E;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}



.txt-uline-i {
    padding-bottom: 4px;
    border-bottom: 1px black solid;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: inline-flex;
}

.profile-i {
    width: 40px;
    height: 40px;
    left: 40px;
    top: 40px;
    position: absolute;
    transform: rotate(180deg);
    transform-origin: top left;
}

/* ---- button ---- */
.btn-i {
    height: 40px;
    padding: 8px 16px;
    background: #5CB800;
    border-radius: 100px;
    color: white;
    font-size: 16px;
    border: 0;
}

.btn-i:hover {
    color: white;
    background-color: #4C9800;
}

.btn-i .icon {
    display: none;
}

.btn-i:hover .icon {
    display: inline-block;
}

.btn-ii{
    background: #5CB800;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
}

.btn-ii:hover{
    background: #4C9800;
}

.btn-ii .icon{
    width: 22px;
}

/* ---- margin ---- */

.my-1 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.my-2 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.my-5 {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

/* ---------- Navbar ---------- */

.navbar-dp {
    width: 100%;
    height: 100%;
    padding: 16px 48px;
    border-bottom: 1px #EAEAEA solid;
    justify-content: space-between;
    gap: 8px;
    display: flex;
}

.navbar-dp .navbar-logo {
    width: 100px;
    height: 48px;
}

.navbar-dp .navbar-flex {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    display: inline-flex;
}


.navbar-dp .navbar-profile {
    background: #E1E1E1;
    border-radius: 100px;
    gap: 6px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.navbar-dp .navbar-profile.with-login {
    padding: 4px 6px 4px 16px;
}

.navbar-dp .navbar-profile .profile-container {
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    display: inline-flex;
}

.navbar-dp .navbar-profile .profile-name {
    align-self: stretch;
    justify-content: space-between;
    align-items: center;
    display: inline-flex;
}


.navbar-dp .navbar-profile .profile {
    width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 100px;
    border: 1px #A0A0A0 solid;
}


.navbar-dp .text-link {
    color: #767676;
    font-size: 16px;
    font-weight: 400;
}

.navbar-dp .text-link.active {
    color: #674DB5;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.navbar-dp .navigation-bar {
    padding: 6px;
    background: #F1F1F1;
    overflow: hidden;
    border-radius: 100px;
    backdrop-filter: blur(16px);
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    display: flex;
}


.navbar-dp .navigation-bar .btn-link {
    height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 12px;
    padding-right: 8px;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    display: flex;
}

.navbar-dp .navigation-bar .btn-link:hover {
    background: #E1E1E1;
}

.navbar-dp .navigation-bar .btn-link.active {
    position: relative;
    background: #DCD0FB;
    overflow: hidden;
}

.navbar-dp .navigation-bar .ellipse {
    width: 6px;
    height: 6px;
    left: 70px;
    top: 15px;
    position: absolute;
    background: #8B66F2;
    border-radius: 50%;
}


.navbar-mb {
    width: 100%;
    height: 100%;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: white;
    border-bottom: 1px #EAEAEA solid;
    justify-content: space-between;
    align-items: center;
    display: inline-flex;
}


.navbar-mb .navbar-logo {
    width: 67px;
    height: 32px;
}


.navbar-mb .linear-icon {
    width: 24px;
    height: 24px;
}

.navbar-mb .circle-liner {
    width: 40px;
    height: 40px;
    background: #F1F1F1;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    display: flex;
}

.navbar-mb .circle-liner:hover {
    background: #DCD0FB;
}

/* ---------- Footer desktop ---------- */

.footer-dp {
    width: 100%;
    padding: 24px 44px 16px 44px;
    border-top: 1px #D3D3D3 solid;
}

.footer-dp .footer-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}


.footer-dp .ellipse {
    width: 6px;
    height: 6px;
    background: #DCD0FB;
    border-radius: 9999px;
}


.footer-dp .license {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: flex;
}

.footer-dp .license .group {
    width: 96px;
    height: 96px;
    padding: 8px;
    border-radius: 12px;
    outline: 1px #E1E1E1 solid;
    outline-offset: -1px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
}

.footer-dp .license .license-img {
    width: 73.53px;
    height: 80px;
}

.footer-dp .footer-links {
    padding-top: 4px;
    padding-bottom: 4px;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    display: inline-flex;
}

.footer-dp .footer-info {
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    display: inline-flex;
}

.footer-dp .footer-text {
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    display: inline-flex;
}

/* ---------- Footer menu mobile ---------- */

.footer-menu-mb {
    margin-top: 7rem;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    display: inline-flex;
}


.footer-menu-mb .f-text {
    text-align: center;
}

.footer-menu-mb .footer-links {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    display: flex;
}


.footer-menu-mb .license {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: inline-flex;
}


.footer-menu-mb .license .group {
    width: 96px;
    height: 96px;
    padding: 8px;
    border-radius: 12px;
    outline: 1px #E1E1E1 solid;
    outline-offset: -1px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
}


.footer-menu-mb .license .license-img {
    width: 73.53px;
    height: 80px;
}


/* ---------- Grid Home ---------- */

.grid-home {
    display: grid;
    gap: 15px;
    grid-auto-flow: row;
}

@media (min-width: 0px) {
    .grid-home {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto;
        grid-template-areas:
            "Ar3"
            "Ar1"
            "Ar2"
            "Ar4";
    }
}

@media (min-width: 960px) {
    .grid-home {
        grid-template-columns: repeat(9, 1fr);
        grid-template-rows: repeat(4, 140px);
        grid-template-areas:
            "Ar1 Ar1 Ar1 Ar2 Ar2 Ar2 Ar3 Ar3 Ar3"
            "Ar1 Ar1 Ar1 Ar2 Ar2 Ar2 Ar3 Ar3 Ar3"
            "Ar4 Ar4 Ar4 Ar4 Ar4 Ar4 Ar3 Ar3 Ar3"
            "Ar4 Ar4 Ar4 Ar4 Ar4 Ar4 Ar3 Ar3 Ar3";
    }
}

@media (min-width: 1200px) {
    .grid-home {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(4, 170px);
        grid-template-areas:
            "Ar1 Ar1 Ar2 Ar2 Ar2 Ar3 Ar3 Ar3"
            "Ar1 Ar1 Ar2 Ar2 Ar2 Ar3 Ar3 Ar3"
            "Ar4 Ar4 Ar4 Ar4 Ar4 Ar3 Ar3 Ar3"
            "Ar4 Ar4 Ar4 Ar4 Ar4 Ar3 Ar3 Ar3";
    }
}

/* ----- Grid Area Boxes ----- */

.grid-home .area {
    background-color: #EAEAEA;
    border-radius: 24px;
    overflow-y: hidden;
}

.grid-home .Ar1 {
    grid-area: Ar1;
    min-height: 240px;
    background-image: url(../img/bg/bg-1.svg);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 100%;
}

.grid-home .Ar2 {
    grid-area: Ar2;
    min-height: 240px;
    background-image: url(../img/bg/bg-2.svg);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 65%;
}

.grid-home .Ar3 {
    grid-area: Ar3;
    background-image: url(../img/bg/bg-3.svg);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 56%;
    min-height: 100%;
    max-height: 100%;
}

.grid-home .Ar4 {
    grid-area: Ar4;
    background-image: url(../img/bg/bg-4.svg);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    min-height: 100%;
    max-height: 100%;
}

@media (min-width: 0px) {
    .grid-home .area {
        padding: 30px;
    }
}

@media (min-width: 960px) {
    .grid-home .area {
        padding: 20px;
    }
}

@media (min-width: 1200px) {
    .grid-home .area {
        padding: 30px;
    }
}

/* ----- General Card Elements ----- */

.Ar3 .icon-3d {
    width: 400px;
}

.Ar4 .icon-3d {
    animation: floatUpDown 2s ease-in-out infinite;
  }
  
  @keyframes floatUpDown {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px); /* میره بالا */
    }
    100% {
      transform: translateY(0); /* برمی‌گرده پایین */
    }
  }
  

@media (min-width: 0px) {

    .grid-home .g-card .icon-3d {
        width: 230px;
    }

    .Ar4 .icon-3d {
        width: 400px;
    }
}

@media (min-width: 960px) {
    .grid-home .g-card .icon-3d {
        width: 140px;
    }

    .Ar4 .icon-3d {
        width: 350px;
    }
}

@media (min-width: 1200px) {
    .grid-home .g-card .icon-3d {
        width: 180px;
    }
}


/* ----- Layout Components ----- */

.grid-home .gi-info {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 24px;
}

.grid-home .gi-info .gi-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

/* ----- Button Visibility ----- */

.grid-home .btn-i.click-dekstop {
    display: inline-block;
}

.grid-home .btn-ii.click-dekstop {
    display: none;
}

@media (min-width: 0px) {
    .grid-home .gi-info {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .grid-home .gi-info .gi-text {
        width: 200px;
    }

    .grid-home .btn-i.click-dekstop {
        display: none;
    }

    .grid-home .btn-ii.click-dekstop {
        display: flex;
    }
}

@media (min-width: 960px) {
    .grid-home .gi-info {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
    }

    .grid-home .gi-info .gi-text {
        width: 350px;
    }

    .grid-home .btn-i.click-dekstop {
        display: inline-block;
    }

    .grid-home .btn-ii.click-dekstop {
        display: none;
    }
}

/* ----- Special Card Layouts ----- */

.Ar3 .g-card-shop {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.Ar4 .g-card-stock {
    display: flex;
    justify-content: space-between;
    height: 100%;
}

@media (min-width: 0px) {
    .Ar4 .g-card-stock {
        flex-direction: column;
        gap: 4rem;
    }

    .Ar3 .g-card-shop {
        gap: 4rem;
    }
}

@media (min-width: 960px) {
    .Ar4 .g-card-stock {
        flex-direction: row-reverse;
        align-items: center;
        gap: 0;
    }

    .Ar3 .g-card-shop {
        gap: 0;
    }
}

/* ---------- Mobile Footer Nav ---------- */

.mobile-footer-nav {
    width: 100%;
    padding: 8px 8px 4px;
    background: white;
    border-top: 1px solid #E1E1E1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: fixed;
    z-index: 100;
    bottom: 0;
}

.mobile-footer-nav .footer-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
    position: relative;
    overflow: hidden;
    gap: 4px;
}

.mobile-footer-nav .profile-btn .profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.mobile-footer-nav .profile-img {
    width: 28px;
    height: 28px;
}

.mobile-footer-nav .footer-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.mobile-footer-nav .footer-label span {
    font-size: 12px;
    font-weight: 300;
    line-height: 20px;
    color: #767676;
    text-align: center;
}

.mobile-footer-nav .footer-btn.active .footer-label span {
    font-weight: 400;
    color: #7C5DD9;
}

.mobile-footer-nav .footer-indicator {
    width: 8px;
    height: 8px;
    background: #8B66F2;
    border-radius: 9999px;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    margin: 4px auto;
}

/* ---------- Media ---------- */

@media (min-width: 0px) {}

@media (min-width: 480px) {}

@media (min-width: 640px) {}

@media (min-width: 960px) {}

@media (min-width: 1200px) {}

@media (min-width: 1600px) {}