@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'Inter' , sans-serif;
    color: var(--color-heading);
}
:root{
    --main-color :#ff8716;
    --p-color :#7b7b7b;
    --bg-color :#f3f3f3;
    --white-color :#fff;
    --color-heading :#121416;
    --border-color :#e5e5e5d5;
    --sale-color :#E51A1A;

}
body{
    padding-top: 180px;
}
span{
    color: var(--main-color);
}
p{
    color: var(--p-color);
}
h1,h2,h3,h4,h5,h6{
    color: var(--color-heading);
    font-family: "DM Sans" , sans-serif;
}
img{
    width: 100%;
}
input,select,button{
    border: none;
    outline: none;
}
.btns{
    display: flex;
    align-items: center;
    gap: 20px;
}
.btn{
    padding: 10px 18px;
    text-transform: capitalize;
    border-radius: 2px;
    cursor: pointer;
    background-color: var(--main-color);
    color: var(--white-color);
    display: flex;
    gap: 10px;
    align-items: center;
    transition: 0.3s;
}
.btn i{
    color: var(--white-color);
}
.btn:hover{
    scale: 1.1;
}
.container{
    width: 90%;
    margin: auto;
    max-width: 1350px;
}
@media (max-width: 1350px) {
    .container{
        width: 90%;
    }
}

/* start header */
header{
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 5px 8px 8px #d1d1d13b;
    z-index: 1000;
}
header .top-header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
header .top-header .logo{
    width: 180px;
}
header .top-header .search-box{
    width: 610px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    background-color: var(--bg-color);
}
header .top-header .search-box input{
    height: 55px;
    width: 400px;
    padding: 5px 15px 5px 10px;
    background-color: var(--bg-color);
    margin-right: 10px;
}
header .top-header .search-box .select-box{
    position: relative;
}
header .top-header .search-box .select-box::after{
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 1px;
    height: 50%;
    background-color: #b9b9b9;
}
header .top-header .search-box select{
   height: 55px;
    width: 200px;
    padding-left: 10px;
    margin-right: 10px;
    background-color: var(--bg-color);
    font-size: 17px;
    cursor: pointer;
    border-radius: 5px;
}
header .top-header .search-box select option{
    font-size: 15px;
}
header .top-header .search-box button {
    width: 60px;
    height: 55px;
    background-color: #ff8716;
    font-size: 18px;
    cursor: pointer;
    color: #fff; 
    border-radius: 5px;
  /* display: flex;
  justify-content: center; 
  align-items: center;     */
  /* border-radius: 8px; */

}
header .top-header .search-box button i{
    color: var(--white-color);
}
header .top-header .header-icons{
    display: flex;
    gap: 20px;
     color: #121416;
}
header .top-header .header-icons .icon{
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 30px;
    cursor: pointer;
     position: relative; 
    
}
header .top-header .header-icons .icon .count{
    position: absolute;
  top: -8px;     /* المسافة من فوق */
  right: -8px;   /* المسافة من اليمين */
  background: #ff8716;
  color: white;
  border-radius: 50%; /* دايرة */
  padding: 3px 6px;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #fff; /* بوردر حوالين الدايرة */
}
header .bottom-header{
    border-top: 1px solid var(--border-color);
}
header .bottom-header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

header .bottom-header nav{
    display: flex;
    align-items: center;
    gap: 50px;
    height: 60px;
}
header .bottom-header .category-nav{
    width: 220px;
    height: 100%;
    position: relative;
}
header .bottom-header .category-nav .category-btn{
    height: 60px;  /* نفس ارتفاع الهيدر */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--main-color);
    padding: 0 15px;
    cursor: pointer;
}
header .bottom-header .category-nav .category-btn p{
    color: var(--white-color);
    font-weight: 600;
    font-size: 15px;
}
header .bottom-header .category-nav .category-btn i{
    color: var(--white-color);
}



header .bottom-header .category-nav .category_nav_list{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white-color);
    border: 1px solid #999;
    display: flex; 
    /* كولوم علشان ييجوا تحت بعض بدل جنب بعض  */
    flex-direction: column; 
    z-index: 1000;
    clip-path: polygon(0 0 , 100% 0 , 100% 0 , 0 0);
    transition: 0.3s ease-in-out;
}
header .bottom-header .category-nav .category_nav_list.active{
     clip-path: polygon(0 0 , 100% 0 , 100% 100% , 0 100%);
}
header .bottom-header .category-nav:hover .category_nav_list{
    display: flex;
}
header .bottom-header .category-nav .category_nav_list a{
    padding:14px 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    
    
}
header .bottom-header .category-nav .category_nav_list a:last-child{
    border-bottom: 0;
}
header .bottom-header .category-nav .category_nav_list a:hover{
    background: #d0d0d0;
    color: var(--main-color);
}



header .bottom-header nav .nav-links{
    display: flex;
    gap: 35px;
    
}
header .bottom-header nav .nav-links li a{
     text-decoration: none;
    color: var(--color-heading);
     transition: .3s;
}
header .bottom-header nav .nav-links li:hover a,
header .bottom-header nav .nav-links li.active a{
    color: var(--main-color);
}








    /* .swiper {
      width: 100%;
      height: 100%;
    }

    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      } */

      /* .swiper-slide {
  width: auto;        
  flex-shrink: 0;    
  box-sizing: border-box;
}

.swiper-slide .card {
  width: 100%;        
  height: auto;       } */

    





    /* slide */

    .slider{
        position: relative;
    }
    .slider .container{
        display: flex;
        justify-content: space-between;
    }
    .slider .banner_2{
        width: 23%;
        height: 100%;
        object-fit: cover;
    }
    .slider .banner_2 a{
        width: 100%;
        height: 100%;
    }
    .slider .container .slide-swp{
        width: 75%;
        overflow: hidden;
        position: relative;
    }
    .swiper-wrapper{
        height: auto !important;
    }
    .slider .container .slide-swp .swiper-pagination span{
        background-color: #fff;
        opacity: 1;
    }
    .swiper-pagination-bullet-active{
        background-color: var(--main-color) !important;
        width: 34px !important;
        height: 8px !important;
        border-radius: 30px !important;
    }


    /* banners-4 */

    .banners-4{
        margin: 40px 0;
    }
    .banners-4 .container{
        display: flex;
        justify-content: space-between;
         flex-wrap: wrap; /* يخلي البوكسات تنزل تحت لو المساحة مش مكفية */
        gap: 15px; /* بدل ما تستخدمي space-between */
        
    }
    .banners-4 .container .box{
        width: 24%;
        background-image: url(../img/bg_banner3.jpg);
        background-size: cover;
        background-position: center;
        border-radius: 5px;
         flex: 1 1 calc(25% - 15px); /* 4 بوكسات في السطر مع مراعاة الـ gap */
         display: flex;
        align-items: center;
        gap: 15px;
        padding: 12px 10px ;
        position: relative;
        box-sizing: border-box;
    }
    .banners-4 .container .box .text{
        padding-right: 50px;
    }
    .banners-4 .container .box img{
        width: 100%;
        transition: 0.3s;
    }
    .banners-4 .container .box:hover img{
        scale: 1.05;
    }
    .banners-4 .container .box h5{
        font-size: 15px;
         font-weight: bold;
          white-space: nowrap; /* يمنع الكسر ويخليهم دايمًا في سطر واحد */
    }
    .banners-4 .container .box .sale{
        display: flex;
        align-items: center;
        gap: 5px;
        margin: 7px 0;
    }
    .banners-4 .container .box .sale span{
        font-size: 25px;
        font-weight: bold;
    }
    .banners-4 .container .box h6{
        font-size: 14px;
        font-weight: bold;
    }
    .banners-4 .container .box .link-btn{
        position: absolute;
        width: 100%;
        height: 100%;
        background: transparent;
    }
    
    /* start slide  */

    .slide{
        margin-bottom: 70px;
    }
    .top-slide{
        position: relative;
        margin-bottom: 20px;
        border-bottom: 3px solid var(--main-color);
    }
    .top-slide h2{
        position: relative;
        padding: 10px 40px ;
        text-transform: uppercase;
        background-color: var(--main-color);
        color: var(--white-color);
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
        width: max-content;
    }
    .top-slide h2::before{
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        top: 0;
        z-index: 9;
        border-left: 20px solid transparent;
        background: #fff;
        left: 0;
        border-bottom: 20px solid #e26e02;
    }
    .top-slide h2 i{
        color: var(--white-color);
    }
    .slide .container {
        position: relative;
    }
    .slide .container .mySwiper{
        padding: 10px 0;
    }
    .slide .container .mySwiper .btn-swip{
        position: absolute;
        top: 30px;
        right: 0;
        background-color: var(--bg-color);
        color: var(--color-heading);
        font-weight: bold;
        border-radius: 5px;
        height: 35px;
        width: 35px;
        border: 1px solid var(--border-color);
    }
     .slide .container .mySwiper .btn-swip::after{
        font-size: 12px;
     }
    .slide .container .mySwiper .btn-swip.swiper-button-prev{
        left: calc(100% - 80px);
    }

    /* product card style */

    .mySwiper{
        overflow: hidden;
    }

    .product{
        background-color: #fff;
        padding: 20px;
        box-shadow: 5px 5px 10px #49494928;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        position: relative;
    }
    .product .sale-present{
        position: absolute;
        top: 10px;
        right: 10px;z-index: 2;
        background-color: #ed0505;
        color: var(--white-color);
        padding: 4px 10px;
        font-size: 13px;
        border-radius: 3px;
    }
    .product .img-product{
        position: relative;
        height: 180px;
        padding: 0 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
    }
    .product:hover .img-product{
        scale: 1.1;
    }
    .product .name-product{
        margin-bottom: 10px;
        color: var(--color-heading);
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

    }
     .product .name-product a:hover{
        text-decoration: underline;
     }
     .stars{
        margin-bottom: 10px;
     }
     .stars i{
        color: var(--main-color);
        font-size: 14px;
     }
     .price{
        display: flex;
        align-items: center;
        gap: 12px;
     }
     .price p{
        color: var(--main-color);
        font-weight: bold;
        font-size: 18px;
     }
     .price .old-price{
        color: var(--p-color);
        text-decoration: line-through;
        font-size: 13px;
        font-weight: normal;
     }
     .product .icons{
        display: flex;
        gap: 10px;
        margin-top: 15px;
     }

     .product .icons  .icon-product{
       width: 40px;
       height: 40px;
       border: 1px solid var(--border-color);
       cursor: pointer;
       display: flex;
       align-items: center;
       justify-content: center; 
       transition: 0.3s;
     }
     .product .icons  .icon-product:hover{
        background-color: var(--main-color);
     }
     .product .icons  .icon-product i{
        font-size: 14px;
     }
     .product .icons  .icon-product:hover i{
        color: var(--white-color);
     }
     .product .icons .btn-add-cart{
        background-color: var(--main-color);
        display: flex;
        align-items: center;
        gap: 5px;
        color: var(--white-color);
        padding: 5px 10px;
        cursor: pointer;
        transform: 0.3s;
        border: 1px solid var(--main-color);
        border-radius: 3px;
     }
     .product .icons .btn-add-cart i{
        color: var(--white-color);
        pointer-events: none;
     }
     .product .icons .btn-add-cart.active{
        color: var(--color-heading);
        background-color: transparent;
        /* علشان لما ادوس ع الزرار مفيش اى اكشن يحصل ولا يضيف حاجه للكارت  */
        pointer-events: none;
     }
     .product .icons .btn-add-cart.active i{
        color: var(--main-color);
     }
      .product .icons .btn-add-cart:Hover{
        scale: 1.05;
        color: #f47600;
        color: var(--white-color);
      }


      /* banners   banners 3*/

      .banners{
        margin: 50px 0;

      }
      .banners .banner_boxs{
        display: flex;
        justify-content: space-between;
      }
      .banners .banner_boxs .box{
        width: 49%;
      }
     .banners .banner_boxs.banner_3_img .box{
        width: 32%;
     }


     /* start footer */

     footer{
        background-color: var(--color-heading);
     }
     footer .container{
        display: flex;
        justify-content: space-between;
        padding: 40px 0;
     }
     footer .container .big_row {
        width: 30%;
     }

     footer .container .big_row .logo_footer{
        width: 180px;
     }

     footer .container .big_row p{
        color: #b1b1b1;
        width: 90%;
        font-size: 14px;
        line-height: 1.5;
        margin: 15px 0;
     }
     footer .container .big_row .icons_footer{
        display: flex;
        gap: 10px;
     }
     footer .container .big_row .icons_footer a{
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--main-color);
        border-radius: 3px;
        position: relative;
        top: 0;
        transition: 0.3s;
     }
     footer .container .big_row .icons_footer a:hover{
        top: -5px;
     }
     footer .container .big_row .icons_footer a i{
        color: var(--white-color);
        font-size: 20px;
     }
     footer .container .row{
        width: 22%;
     }
     footer .container .row h4{
        color: var(--white-color);
        font-size: 18px;
        margin-bottom: 20px;
     }
     footer .container .row .links{
        display: flex;
        flex-direction: column;
        gap: 7px;
     }
     footer .container .row .links a{
        color: #b1b1b1;
        font-size: 14px;
        position: relative;
        left: 0;
        transition: 0.3s;
     }
     footer .container .row .links a i{
        color: var(--main-color);
        font-size: 14px;
        margin-right: 5px;
     }
     footer .container .row .links a:hover{
        left: 8px;
        color: var(--main-color);
     }

     footer .bottom_footer{
        background-color: #1d1f22;
     }
     footer .bottom_footer .container{
        align-items: center;
        padding: 5px 0;
     }
      footer .bottom_footer p{
        color: var(--white-color);
      }
       footer .bottom_footer .payment_img{
        width: 350px;
       }

       /* start cart */
      .cart{
        position: fixed;
        top: 0;
        right: -350px;
        bottom: 0;
        z-index: 1100;
        background-color: var(--white-color);
        border-left: 1px solid var(--border-color);
        width: 350px;
        padding: 30px;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        transition: 0.3s ease-in-out;
      }

      .cart.active{
        right: 0;
      }

      .cart .top_cart{
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .cart .top_cart .close_cart i{
        cursor: pointer;
        font-size: 35px;
      }
      .cart .top_cart h3{
        font-size: 18px;
      }
      .cart .top_cart h3 span{
        color: var(--color-heading);
      }
      .cart .items_in_cart{
        padding: 20px 0;
        border-block: 1px solid var(--border-color);
        /* block يعنى اعملى بوردر او مارجن من فوق و من تحت بس  */
        margin-block: 20px;
        height: 100%;
        overflow-y: auto;
      }
      .cart .items_in_cart .item_cart{
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: center;
        height: 125px;
        border-bottom: 1px solid var(--border-color);
      }
      .cart .items_in_cart .item_cart:last-child{
        border-bottom: 0;
        margin-bottom: 0;
      }
      .cart .items_in_cart .item_cart  img{
        width: 80px;
      }
      .cart .items_in_cart .item_cart h4{
        margin-bottom: 10px;
        font-weight: 500;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
       .cart .items_in_cart .item_cart .delete_item i{
        font-size: 22px;
        cursor: pointer;
        transition: 0.3s;
       }
        .cart .items_in_cart .item_cart .delete_item i:hover{
            color: #E51A1A;
        }
        .cart .items_in_cart .item_cart .quantity_control{
            display: flex;
            align-items: center;
            gap: 5px;
            margin-top: 5px;
        }
        .cart .items_in_cart .item_cart .quantity_control span{
            font-size: 18px;
            min-width: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .cart .items_in_cart .item_cart .quantity_control button{
            width: 27px;
            height: 27px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 20px;
            border-radius: 2px;
            border: 1px solid var(--border-color);
        }
        .cart .bottom_cart .total{
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
        }
        .cart .bottom_cart .price_cart_total{
            color: var(--main-color);
            font-size: 20px;
        }
        .cart .bottom_cart .button_cart{
            display: flex;
            gap: 20px;
        }
        .cart .bottom_cart .button_cart .btn_cart{
            text-transform: uppercase;
            border-radius: 5px;
            border: 2px solid var(--main-color);
            cursor: pointer;
            transition: 0.3s;
        }
        .cart .bottom_cart .button_cart .trans_bg{
            background: transparent;
            color: var(--color-heading);
        }

        .open_menu{
            display: none;
        }
        
        .close_menu{
            display: none;
        }



        /* start responseve */

        @media (max-width:1100px) {
            body{
                padding-top: 240px;
            }
            header .top-header .container{
                flex-wrap: wrap;
            }
             header .top-header .search-box{
                /* علشان اخلى ترتيبه ف العناصر 3 مش 2 و ينزل ل تحت  */
                order: 3;
                width: 80%;
                margin: 20px auto 0;
             }
              header .top-header .logo{
                width: 140px;
              }
               header .top-header .search-box select{
                width: 200px;
               }
               header .top-header .search-box input{
                width: calc(100% - 200px );
               }
               header .bottom-header .nav-links{
                position: fixed;
                top: 0;
                left: -400px;
                bottom: 0;
                background-color: #fff;
                width: 400px;
                flex-direction: column;
                align-items: center;
                padding-top: 100px;
                border-right: 1px solid #b5b5b596;
                transition: 0.3s ease-in-out;
               }
                header .bottom-header .nav-links.active{
                    left: 0;
                }
               header .bottom-header .nav-links li{
                font-size: 18px;
                height: auto;
               }
                .close_menu{
                 display: block;
                 position: absolute;
                 top: 30px;
                 right: 30px;
                 font-size: 30px;
                 cursor: pointer;

                }
                .open_menu{
                    display: block;
                    font-size: 25px;
                    cursor: pointer;
                }
                .open_menu i{
                    color: var(--main-color);
                    border: 1px solid var(--main-color);
                    height: 40px;
                    width: 40px;
                    align-items: center;
                    line-height: 40px;
                    border-radius: 3px;
                }
                header .bottom-header .category-nav{
                    width: auto;
                }
                header .bottom-header .category-nav .category-btn p{
                    font-size: 13px;
                    margin: 0 10px ;
                }
                header .bottom-header nav{
                    gap: 20px;
                }
                /* مراجعه من الاصلى  */
                .banners-4 .container{
                    flex-wrap: wrap;
                }
                .banners-4 .container .box{
                    width: 49%;
                    margin-bottom: 20px;
                    justify-content: space-around;
                }
                /* دول بس */

        }

        @media (max-width:1000px) {
            .slider .banner_2{
                display: none;
            }
            .slider .container .slide-swp{
                width: 100%;
            }
        }



        @media (max-width:500px) {
            header .bottom-header .category-nav{
                display: none;
            }
            header .top-header .search-box{
                width: 100%;
            }
             header .top-header .search-box select{
                width: 140px;
             }
              header .top-header .search-box input{
                width: calc(100% - 140px);
              }
               header .bottom-header .nav-links {
                width: 100%;
                left: -100%;
               }
               .cart{
                width: 100%;
                right: -100%;
               }
        }



        .slide-product .swiper-slide {
  width: auto;     /* يخلي الـ Swiper يتحكم */
  max-width: 100%; /* يمنع الكارت يكسر العرض */
}
