/* ========================
    Reset & Base
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Roboto', sans-serif;
    font-size: 16px;
    color: #333333;
    background-color: #f9f9f9;
}

/* ========================
    Typography
========================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazir', 'Poppins', sans-serif;
    color: #333333;
    margin-bottom: 10px;
}

p, span, li {
    font-family: 'Vazir', 'Roboto', sans-serif;
    line-height: 1.6;
}

/* ========================
    Header
========================= */
header {
    background-color: #6FCF97;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    flex-wrap: wrap;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo img {
    height: 50px;
}

header nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}

header nav a:hover {
    color: #F2994A;
}

/* ========================
    Footer
========================= */
footer {
    background-color: #333333;
    color: white;
    padding: 20px 30px;
    text-align: center;
}

footer a {
    color: #6FCF97;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    color: #F2994A;
}

/* ========================
    Buttons
========================= */
button {
    background-color: #F2994A;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

button:hover {
    background-color: #6FCF97;
}

/* ========================
    Main & Content
========================= */
main {
    padding: 30px;
}

.home-content {
    margin-top: 20px;
}

.products {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 200px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* ========================
    Responsive (ریسپانسیو)
========================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    header nav a {
        margin: 5px 0;
    }

    .products {
        flex-direction: column;
    }
}

.form-container {
    max-width: 400px;
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(145deg, #F2994A, #6FCF97);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: white;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
}

.form-container label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.form-container input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    margin-bottom: 10px;
    font-size: 16px;
}

.form-container input:focus {
    outline: 2px solid #F2994A;
}

.form-container button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background-color: white;
    color: #6FCF97;
    font-weight: bold;
    transition: 0.3s;
}

.form-container button:hover {
    background-color: #F2994A;
    color: white;
}

.form-container p {
    text-align: center;
    margin-top: 15px;
}

.form-container a {
    color: white;
    font-weight: bold;
}

.error {
    background: rgba(255,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 10px;
}

.success {
    background: rgba(0,255,0,0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 10px;
}


@media (max-width: 500px) {
    .form-container {
        padding: 20px;
    }
    .form-container h2 {
        font-size: 24px;
    }
    .form-container button {
        font-size: 16px;
    }
}

/* ===== Slider ===== */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 40px;
}

.slides {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 20px;
    border-radius: 14px;
    max-width: 60%;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #6FCF97;
    border: none;
    color: white;
    font-size: 32px;
    padding: 6px 16px;
    cursor: pointer;
    border-radius: 50%;
}

.prev { left: 15px; }
.next { right: 15px; }

.prev:hover, .next:hover {
    background: #F2994A;
}

/* محصولات */
.products-section {
    margin-top: 20px;
    padding: 0 10px;
}

.category-title {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #6FCF97;
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    flex: 1 1 220px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.product-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #333;
}

.product-card p {
    font-size: 14px;
    color: #666;
}

.product-card .price {
    color: #F2994A;
    font-weight: bold;
    margin: 10px 0;
}

.product-card button {
    background-color: #6FCF97;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.product-card button:hover {
    background-color: #F2994A;
}

/* ریسپانسیو محصولات */
@media (max-width: 768px) {
    .products {
        flex-direction: column;
        align-items: center;
    }
}
