:root {
    --font-sans: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
    --color-bg: #111827;
    --color-card-bg: #1f2937;
    --color-text: #f3f4f6;
    --color-primary: #3b82f6;
    --color-accent: #2563eb;
    --color-muted: #9ca3af;
    --color-border: #374151;
    --radius: 10px;
    --transition: 0.25s ease;

    --color-button-border: rgb(0, 65, 217);
    --color-description-text: rgb(17, 17, 22);

    --brand-color: #3e4095;
    --brand-color-sec: #f56600;

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Vazirmatn", serif;
}



html {
    color-scheme: light;
}

body {

    font-size: 1.125rem;
    margin: 0;
    line-height: 1.8rem;

}




main {
    width: min(160ch, 100%);
    margin-inline: auto;
    margin-block: 20px;
    padding: 8px;
    min-height: 100svh;
}


h1,
h2,
h3,
h4,
h5,
h6 {

    text-wrap: balance;
    text-wrap: pretty;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;

}

p {

    text-wrap: pretty;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;

}

img {
    max-width: 100%;
    display: block;

}



.line {
    border-bottom: solid 1px rgba(180, 180, 180, 0.2);
    margin-block: 10px;
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    color: deepskyblue;
    text-decoration: underline;
}

select {
    color: lightgray;

}

label {
    color: white;
}

hr {

    border: 1px dashed rgb(240, 240, 240);
    margin-block: 20px;
}





.nav {
    box-shadow: 0px 0px 4px lightgray;

}

.navinner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    width: min(140ch, 100%);
    margin-inline: auto;

}

.nav-items a {
    color: #333333;
    font-size: 1rem;
}

.seprator {
    border: 1px solid rgb(204, 204, 204);
    height: 100%;
}

.nav-profile {
    border-right: 2px solid #808080;
    padding-right: 1rem;
}

.nav-profile span {
    color: #808080;
    font-size: 1.8rem;
}



.nav-cart span {
    color: #808080;
    font-size: 1.8rem;
}

nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}





.footer {}

.footer>* {
    padding: 12px;
}

.footer .footertop {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}


.footer .footertop {
    border-top: 1px solid lightgray;
    background: linear-gradient(135deg, #f0f0f0, #f7f7f7);
}


.footer .footertop .footertopcol {
    color: rgb(100, 100, 100);
    flex-basis: 33%;
    padding: 1rem;
    line-height: 2rem;
    font-size: 1rem;

}


.footer .footertop .footertopcol a {
    color: rgb(100, 100, 100);
}

.footer .copyright {
    color: gray;
    text-align: center;
}

ul {
    padding: 20px 40px;
}

.appscont>* {
    margin-bottom: 1rem;
}

.logo>* {
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9em;
    color: white;

    padding-top: 1rem;
}

.footerlogocont {
    width: 80px;
}

.social-media-icons {
    display: flex;
    gap: 1rem;
}

.social-media-icons>* {
    max-width: 30px;
}

.footercoverimgcont {
    display: flex;
    justify-content: center;
}

/* Spinner CSS */
.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

.footertopcol .footer-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 2 columns */
    gap: 10px;
    /* space between items */
}

.footertopcol .footer-grid li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footertopcol .footer-grid li img {
    inline-size: 80px;
    height: auto;
    display: block;
}

/* HAMBURGER BTN */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: gray;
    border: 1px solid gray;
}

.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: white;
    color: white;
    display: none;
    flex-direction: column;
    z-index: 9999;
    padding: 1rem;
}

.fullscreen-menu.show {
    display: flex;
}


.close-menu {
    background: none;
    border: none;
    color: rgb(0, 65, 217);

    font-size: 3rem;

    cursor: pointer;


}

.ham-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgb(205, 205, 211);
    padding-bottom: 1rem;
}




.fullscreen-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 1.5rem;
    border-left: 3px solid transparent;
    padding-left: 12px;

}

.fullscreen-links a {
    padding: 12px 0px 13px 15px;
    font-size: 15px;
    color: rgb(17, 17, 22);
    border-bottom: 1px solid rgb(205, 205, 211);

}

.fullscreen-links a:hover {
    color: #3b82f6;
}


/* RESPONSIVE (Mobile + Tablet) */
@media only screen and (max-width: 1280px) {

    nav.nav-left,
    nav.nav-right .nav-items {
        display: none;
    }

    .hamburger {
        display: flex;
        justify-content: center;
        align-items: center;
        height: fit-content;
        padding: 0.4rem;
        border-radius: 0.4rem;

    }



    .nav-profile {
        margin-right: auto;

    }
}


/* Responsive: switch to 1 column on small screens */
@media (max-width: 500px) {
    .footertopcol .footer-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


@media only screen and (max-width: 768px) {
    nav {
        font-size: 1rem;
    }


    .footer .footertop {
        flex-direction: column;
    }


    .logo {
        width: 50px;
    }

    .nav-profile {
        display: none;
    }

    .nav-cart span {
        font-size: 2rem;
    }

    .navinner {
        flex: 1;
    }
}