﻿/* ====================== */
/* Reset و پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tahoma", sans-serif;
}

body {
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ====================== */
/* هدر */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00796b; /* رنگ سبز زیوند، می‌توانید تغییر دهید */
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #fff;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-right: 10px;
    border-radius: 8px;
}

.brand-name h1 {
    font-size: 1.5em;
    margin-bottom: 2px;
}

.brand-name p {
    font-size: 0.9em;
    margin: 0;
    color: #f0f0f0;
}

/* منو */
.nav-links ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    position: relative;
    margin: 0 10px;
}

    .nav-links li a {
        padding: 5px 10px;
        color: #fff;
        font-weight: bold;
    }

    .nav-links li:hover .dropdown-menu {
        display: block;
    }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    background: #004d40;
    min-width: 140px;
    border-radius: 5px;
    z-index: 1000;
}

    .dropdown-menu li a {
        display: block;
        padding: 8px 12px;
        color: #fff;
    }

        .dropdown-menu li a:hover {
            background: #00695c;
        }

/* سبد خرید */
.cart-summary a {
    background: #ffb74d;
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
}

/* منوی موبایل */
.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}

/* واکنش‌گرایی */
@media(max-width:768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #00796b;
        position: absolute;
        top: 80px;
        right: 0;
    }

        .nav-links.active {
            display: flex;
        }

    .menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        border: none;
    }
}


/* ====================== */
/* کانتینر */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* ====================== */
/* اسلایدر */
.slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    display: none;
}

    .slide.active {
        display: block;
    }

.slider-container .prev,
.slider-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.5em;
}

.slider-container .prev {
    left: 10px;
}

.slider-container .next {
    right: 10px;
}

/* ====================== */
/* گرید محصولات */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 20px;
}

.product {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

    .product img {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .product h4 {
        margin-bottom: 5px;
        font-size: 1em;
    }

    .product p {
        margin-bottom: 10px;
    }

    .product button {
        background: #ff9800;
        border: none;
        color: #fff;
        padding: 6px 10px;
        cursor: pointer;
        border-radius: 4px;
        font-weight: bold;
    }

/* ====================== */
/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

    .pagination button {
        background: #fff;
        border: 1px solid #ddd;
        padding: 5px 10px;
        margin: 0 3px;
        cursor: pointer;
    }

        .pagination button.active {
            background: #ff9800;
            color: #fff;
            border-color: #ff9800;
        }

/* ====================== */
/* فرم‌ها */
form input, form textarea, form button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    font-size: 1em;
}

form button {
    background: #ff9800;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

/* ====================== */
/* فوتر */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}

/* ====================== */
/* واکنش‌گرایی */
@media(max-width:768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 60px;
        right: 0;
    }

        .nav-links.active {
            display: flex;
        }

    .menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        border: none;
    }
}
