/* General Styles */
@font-face {
    font-family: 'Vazirmatn';
    src: url('Fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
         url('Fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* برای هاید کردن اسکرول بار */
html {
    scrollbar-width: none; /* برای فایرفاکس */
}

::-webkit-scrollbar {
    display: none;
}

body {
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    font-variant-numeric: contextual;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #ff4d4d;
    color: #fff;
    padding: 0.2rem 0;
    text-align: center;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10rem;
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.signbutton {
    background-color: transparent;
    border: none;
    align-items: center;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    margin-left: auto;
    transition: none;
}


/* Index Page Styles */
#index {
    padding: 5px;
    margin-bottom: 20px;
    text-align: center;
    flex: 1;
}

#index h1 {
    color: #ff4d4d;
    text-align: center;
    font-size: xx-large;
}

#index p {
    text-align: center;
    margin: 10px;
}

.featured-products {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.product {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.product img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.product h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product button {
    font-family: 'Vazirmatn';
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.product button:hover {
    background-color: #e63939;
}

/* Products Page Styles */
#products {
    padding: 20px;
    text-align: center;
}

#products h1 {
    color: #ff4d4d;
    text-align: center;
    font-size: xx-large;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* About Page Styles */
#about {
    padding: 2rem;
    text-align: center;
    background: white;
    max-width: 1200px;
    margin: 2rem auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#about h1 {
    color: #ff4d4d;
    margin-bottom: 1rem;
    font-size: xx-large;
}

#about p {
    margin-bottom: 1.5rem;
    justify-content: center;
    text-align: center;
}

/* Contact Page Styles */
.contact {
    padding: 2rem;
    text-align: center;
    background: white;
    max-width: 800px;
    max-height: 800px;
    margin: 2rem auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Donate Page Styles */
.donate {
    padding: 2rem;
    text-align: center;
    background: white;
    max-width: 800px;
    max-height: 500px;
    margin: 2rem auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.donate h2 {
    color: rgb(255, 0, 0);
}

/* Feedback Page Styles */
.feedback {
    padding: 2rem;
    text-align: center;
    background: white;
    max-width: 800px;
    max-height: 500px;
    margin: 2rem auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.feedback h1 {
    color: #ff4d4d;
}

/* Sign Page Styles */
.sign {
    max-width: 400px;
    margin: 20px auto;
    padding: 2rem;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
}

.sign h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: xx-large;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    text-align: center;
    width: 90%;
    padding: 0.5rem 1rem;
    font-family: 'Vazirmatn';
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.sign .button2 {
    text-align: center;
    font-family: 'Vazirmatn';
    width: 98%;
    padding: 0.5rem 1rem;
    background-color: #ff4d4d;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.sign .button2:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.sign button:hover {
    background-color: #ff4d4d;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 1rem;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

.nav-links {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-grow: 1;
}

.signbutton:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.footer {
    background-color: #ff4d4d;
    padding: 8px;
    text-align: center;
    color: #fff;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.designer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.designer-link {
    background: #cd3434;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.designer-link span {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    background: #cd3434;
    border-radius: 5px;
    transition: max-width 0.5s ease-in-out, padding 0.3s ease-in-out;
}

.designer-link:hover span {
    max-width: 200px;
    padding: 1px 1px;
}

.copyright {
    display: flex;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: large;
    }
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        font-size: 16px;
    }

    #index h1 {
        color: #ff4d4d;
        text-align: center;
        font-size: 27px;
    }
    header nav {
        padding: 0 1rem;
        display: flex;
    }

    .product {
        font-size: small;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #ff4d4d;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .signbutton {
        margin-left: 10;
        width: 20%;
        text-align: center;
    }

    .footer {
        background-color: #ff4d4d;
        padding: 20px;
        text-align: center;
        color: #fff;
        margin-top: auto;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }

    .designer-link {
        padding: 5px 10px;
    }

    .designer {
        font-size: 0.8rem;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .hamburger {
        display: flex;
    }
}