*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:tahoma;
}

body{
    background:#FFFDF7;
    direction:rtl;
}
header{
    background:#7FE0B2;
    padding:20px 50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:32px;
    font-weight:bold;
    color:#222;
}
nav a{
    color:#222;
    text-decoration:none;
    margin:0 15px;
    font-size:18px;
    transition:0.3s;
}

nav a:hover{
    color:white;
}
.hero{
    height:600px;
    background:url('../images/nabat.jpg');
    backgroundposition:center;-size:cover;
    background-
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
}
.hero h1{
    font-size:60px;
    margin-bottom:20px;
}

.hero p{
    font-size:24px;
    margin-bottom:30px;
}
.btn{
    background:#7FE0B2;
    color:#222;
    text-decoration:none;
    padding:15px 35px;
    border-radius:10px;
    font-weight:bold;
}

.btn:hover{
    background:#5fcfa0;
}
.features{
    display:flex;
    justify-content:center;
    gap:30px;
    padding:60px;
    flex-wrap:wrap;
}
.box{
    width:280px;
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 0 15px #ddd;
    text-align:center;
}

.box h3{
    margin-bottom:15px;
    color:#7FE0B2;
}
.about{
    padding:70px;
    text-align:center;
}

.about h2{
    color:#7FE0B2;
    margin-bottom:20px;
}

.about p{
    font-size:18px;
    line-height:2;
}
footer{
    background:#222;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:30px;
}
.page-box{
width:60%;
margin:50px auto;
background:white;
padding:30px;
border-radius:15px;
box-shadow:0 0 10px #ddd;
line-height:2;
font-size:18px;
text-align:center;
}
@media (max-width: 768px) {

header{
    flex-direction: column;
    text-align: center;
}

nav{
    margin-top: 10px;
}

nav a{
    display: inline-block;
    margin: 8px;
    font-size: 16px;
}

/* هرو صفحه اصلی */
.hero h1{
    font-size: 32px;
}

.hero p{
    font-size: 18px;
    padding: 0 10px;
}

.hero{
    height: auto;
    padding: 60px 20px;
}

/* باکس‌ها */
.features{
    flex-direction: column;
    align-items: center;
}

.box{
    width: 90%;
}

/* صفحات داخلی */
.page-box{
    width: 90%;
    padding: 20px;
}

/* فرم سفارش */
.form-box{
    width: 90%;
}

/* محصولات */
.products, .container{
    flex-direction: column;
    align-items: center;
}

.product-card{
    width: 90%;
}

}
.home-products{
    padding: 50px 20px;
    background: #fff;
}

.home-products h2{
    color: #7FE0B2;
    font-size: 30px;
}

.products{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
}

.product-card{
    width:80%;
    max-width:600px;
    background:white;
    border-radius:15px;
    box-shadow:0 0 10px #ddd;
    text-align:center;
    overflow:hidden;
    padding-bottom:15px;
}

.product-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card h3{
    margin: 10px 0;
}

.product-card p{
    color: #333;
}

.product-card .btn{
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #7FE0B2;
    color: #222;
    border-radius: 8px;
    text-decoration: none;
}
.search-box button{
    background: linear-gradient(135deg, #7FE0B2, #5fcfa0);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.search-box button:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #5fcfa0, #4dbf90);
}

.search-box button:active{
    transform: scale(0.98);
}
.search-box input{
    padding: 12px 15px;
    width: 300px;
    border: 2px solid #7FE0B2;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus{
    box-shadow: 0 0 10px rgba(127,224,178,0.6);
}