
@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap");


* {
     margin: 0%;
    padding: 0%;

}
html { direction: rtl; 
scroll-behavior: smooth;}



body{
    background:#fff9f9;
    margin:0;
    padding:0;
    direction:rtl;
    font-family:"Vazirmatn",sans-serif;
    overflow-x:hidden;
}


header {
        padding: 10px 20px 0;
        border-bottom: 1px solid #ddd;
       display: flex;
       flex-direction: column;
        justify-content: center;
        box-shadow: 0px 0px 6px 0px #4B5563;
    }
a{
    color: inherit;
    text-decoration: none;
}

.logo{
    width: 200px;
    flex-shrink:0;
}

.logo img{
    width:100%;
    height:auto;
    display:block;
    border-radius:50%;
}

img{
    max-width:100%;
    height:auto;
}

.search-box {
        width: 40%;
        position: relative;
    }

.search-box input {
        width: 100%;
        padding: 10px 50px 10px 10px;
        font-size: 14px;
        border-radius: 15px;
        border: none;
        outline: none;
        box-sizing: border-box;
        background-color: #f0f0f1;
        font-family: 'Vazir';
        cursor: pointer;
    }

.search-box i {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
    }

.top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 5px;
    }
.menu-header{
        display: flex;
        align-items: center;
        white-space: nowrap;
        gap: 8px;
        justify-content: space-between;
        margin-top: 15px;
    }

.categories h2{
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: rgb(7, 7, 83);
 }

 .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap: 20px;
 }

 .category-card{
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 20px;
    transition: 0.3s;
    cursor: pointer;
  
 }
.category-card:hover {
    transform: translateY(-5px);
}
.category-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color:  rgb(7, 7, 83);
}
/* product */
.product-row{
    display: flex;
    gap: 30px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 30px;
    border-radius: 20px;
    background-color: white;
    margin-bottom: 50px;
}
.products h2{
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: rgb(7, 7, 83);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 25px;
}
.product-card{
    min-width: 300px;
    display: inline-block;
    vertical-align: top;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0px 10px  rgb(24, 24, 121);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    padding: 10px;
    flex: 0 0 250px ;
    scroll-snap-align: start;
}
.product-card:hover{
    transform: translateY(-5px);
}
.product-card img{
    width: 100%;
    height: 250px;
    object-fit: contain;

}
.product-info{
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3{
    font-size: 1rem;
    margin-top: 20px;
}
 .price{
    margin-top: -10px;
    color: rgb(7, 7, 83);

 }
 .buy-btn{
    margin-top: 20px;
    padding: 10px;
    background:  rgb(28, 28, 100);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 15px;
    font-weight: bold;

 }
  .buy-btn:hover{
    background:  rgb(13, 13, 92);
  }

  /* brands*/
  .brands h2{
    text-align: center;
    margin-bottom: 20px;
    color:  rgb(7, 7, 83);
    font-size: 2rem;

  }
  .brand-row{
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .brand-card {
      min-width: 100px;
      height: 100px;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #fff;
      border-radius: 20px;
      padding: 10px;
      box-shadow: 0 2px 8px rgba(38, 14, 112, 0.05);
      cursor: pointer;
      transition: 0.3s;
  }

  .brand-card:hover {
      transform: scale(1.05);
  }

  .brand-card img {
      width: 100%;
      height: 100%;
      object-fit: contain;
  }
  .product-card h6{
    color: rgb(148, 15, 15);
  }

 

.footer{
    background:#2d6a73;
    color:#fff;
    margin-top:70px;
    padding:60px 0 20px;
}

.footer-container{
    width:90%;
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
}

.footer-box h3{
    margin-bottom:20px;
    color: #0f2427;
    font-size:22px;
}

.footer-logo{
    width:150px;
    margin-bottom:20px;
}

.footer-box p{
    line-height:2;
    color:#ddd;
    font-size:15px;
}

.footer-box ul{
    list-style:none;
    padding:0;
}

.footer-box ul li{
    margin-bottom:12px;
}

.footer-box ul li a{
    color:#ddd;
    text-decoration:none;
    transition:.3s;
}

.footer-box ul li a:hover{
    color: #000000;
    padding-right:8px;
}

.footer-social{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:40px;
}

.footer-social a{
    width:50px;
    height:50px;
    background:#fff;
    color:#0b2948;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:22px;
    transition:.3s;
}

.footer-social a:hover{
    background: #18393e;
    color:#fff;
    transform:translateY(-5px);
}

.newsletter{
    width:90%;
    max-width:600px;
    margin:40px auto;
    text-align:center;
}

.newsletter h3{
    margin-bottom:20px;
    color: #193c42;
}

.newsletter input{
    width:70%;
    padding:15px;
    border:none;
    border-radius:30px;
    outline:none;
    font-family:inherit;
}

.newsletter button{
    padding:15px 30px;
    border:none;
    border-radius:30px;
    background: #132c30;
    color:#fff;
    cursor:pointer;
    margin-right:10px;
    transition:.3s;
}

.newsletter button:hover{
    background: #1f4950;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.2);
    margin-top:40px;
    padding-top:20px;
    text-align:center;
    color:#ddd;
    font-size:14px;
}

.footer-bottom p{
    margin:0;
}

/* ریسپانسیو */

@media(max-width:992px){

.footer-container{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.footer{
    text-align:center;
}

.footer-container{
    grid-template-columns:1fr;
    gap:35px;
}

.footer-logo{
    margin:auto;
    display:block;
    margin-bottom:20px;
}

.newsletter input{
    width:100%;
    margin-bottom:15px;
}

.newsletter button{
    width:100%;
    margin:0;
}

.footer-social{
    flex-wrap:wrap;
}

}

@media (max-width:768px){

    .top-bar{
        flex-direction:column;
        gap:15px;
    }

    .search-box{
        width:90%;
    }

    .hero-slider{
        height:250px;
    }

    .block-features__list{
        grid-template-columns:1fr;
    }

    .footer-info-box{
        flex-direction:column;
        text-align:center;
    }
}