 
/* ============navbar============== */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}

::selection{
    background-color: orangered;
    color: #fff;
}

a{
    text-decoration: none;
}
p{
    color: gray;
}

nav {
    padding: 10px 0;

}
.border-bottom{
  border-bottom: 1px solid #ccc;
  margin-top: 0;
}
.header-content{
    display: flex;
    justify-content: space-between;
   
}
.header-content  .brand {
    font-size: 24px;
    color: #000;
    margin-left: 10px;
}


nav ul {
    display: flex;
    list-style: none;
}
nav  li a {
    display: block;
    color: #000;
    text-decoration: none;
}

nav  ul#user_info {
    display: none;
}
#links{
    margin-right: 20px;
}
#links li a{
    text-decoration: none;
    text-align: center;
}
#links li i{
    color: #000;
    font-size: 16px;
    cursor: pointer;
  
}
.header-content .brand{
    text-decoration: none;
    color: #000;
    font-size: 30px;

}

nav ul#user_info li i  {
    color: #000;
    font-size: 16px;
    cursor: pointer;
    margin-left: 5px;
}
 ul li span{
    font-size: 14px;
    color: #0000;
    text-align: center;
   
 }

nav ul#user_info li{
    margin: 0px 10px;
    position: relative;
}
nav ul#user_info li{
    position: relative;
}
nav ul#user_info li .badge {
    position: absolute;
    width: 17px;
    height: 17px;
    background-color: orangered;
    color:#fff;
     display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 10px;

}

#user_info #user{
    font-size: 10px;
    text-align: center;
    color: #000;
    height: 30px;
padding-top: 12px;

   

}
#user_info li span , #logout span{
    color: #000;
    font-size: 10px;
    text-align: center;

}

.shopping_cart {
  position: relative;
  list-style: none;
  cursor: pointer;
  text-align: center;
}


.shopping_cart .badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: orangered;
  color: #fff;
  border-radius: 50%;
  padding: 4px 7px;
  font-size: 12px;
}


.carts_products {
  position: absolute;
  top: 60px;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 15px;
  display: none;
  z-index: 999;
  animation: fadeDown 0.3s ease;
}

.cart_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.cart_item p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.cart_item .actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart_item button {
  width: 25px;
  height: 25px;
  border: none;
  border-radius: 6px;
  background: #f1f3f5;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.cart_item button:hover {
  background: #ff6a00;
  color: #fff;
}

/* animation */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* -========================End navbar=========================== */
/* ============================slides============================ */
.color-orangered{
color: orangered;
}
.bg-orangered{
  background-color: orangered !important;
}
.custom-slide{
  padding: 15% ;
    background:#eef1f5;
    border-radius:25px;
 
  }

  .custom-slide h1{
    font-weight:700;
  }

  .custom-slide img{
    margin-top: 40px;
    max-height:220px;
    transition:0.4s;
  }

  .custom-slide img:hover{
    transform:scale(1.05);
    
  }
  .carousel-indicators button{
    border-radius: 50% !important;
    width: 10px !important;
    height: 10px !important;
}
.carousel-indicators button.active{
    background-color: orangered !important;
}

/* =================End slides===================== */

/* =============search============= */

   .search{
   display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  margin-left: 5px;
  border-radius: 5px;
 }
 .search input[type="search"],
 .search select {
  width: 48%;
  padding: 7px ;
  border: 1px solid  #d5d4d4;
  border-radius: 6px;
  transition: 0.3s;
}
#search-input:focus{
  outline: none;
  border: 1px solid #cccc;
}

/* ==================End Search==================== */
/* ========================cards================= */

.products {
    display: flex;
    flex-wrap: wrap;
    width: 99% ;
    margin: 10px 0;  
}
 .card {
    position: relative;
    border: 1px solid #ccc;
  min-height: 320px;
    margin-bottom: 2% !important;
    margin-top: 2% !important;
 background: #fff;
 border-radius: 8px !important;
  padding: 10px;
  transition: transform 0.3s ease;
  width: 18%;
display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 2%;

   
}
.card:hover{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
     transform: translateY(-10px);
    border: 2px solid orangered;
}
.card_img{
  width: 73%;
  height: 55%;
    margin: 0px auto;
    cursor: pointer;
    transform: 0.4s;

}
 

.card .add_to_cart {

 position: absolute;
  left: 2px;
 bottom: 5px;
border: none;
background-color:#fff ;
    font-size: 26px;
    cursor: pointer;

}

.product_item_action i, .product_item_action button { 
    cursor: pointer;
 }

.card .fav {
    cursor: pointer;
    display: block;
    font-size: 26px;
    position: absolute;
    bottom: 7px;
    right: 7px;

}
.carts_products a {
  display: block;
  margin-top: 12px;
  text-align: center;
  padding: 6px;
  background: #ff6a00;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  
}

.carts_products a:hover {
  background: #e65c00;
}

.far{
    color: #000;
}
.fas{
    color: orangered;
}
.products .product_item_desc{
    text-align: center;
    padding: 10px;
}

.products .product_item_desc h4 {
  font-size: 15px;
  font-weight: bold;
  margin: 5px 0;
  color: #222;
}

.products .product_item_desc span {
  font-size: 13px;
  color: #777;
}

.products .product_item_desc p {
  font-size: 15px;
  font-weight: bold;
  margin-top: 6px;
  color: orangered;
}
.add_to_cart i{
   padding-left: 5px;
     position: absolute;
  bottom: 5px;
    left: 5px;   
}
.add_to_cart i.active-cart,
.add_to_cart i.in-cart {
  color: orangered;
  padding-left: 5px;
  position: absolute;
  bottom: 5px;
    left: 5px;
   
}


.btn-product{
    border: none;
    cursor: pointer;
   background-color: #fff;
    display: block;
    margin:5%  auto;
    border-radius: 5px;
   padding:15px 25px;
    transition: 0.2s;
    border:2px solid black;
    
}
.btn-product:hover {
   border:2px solid orangered;
   

}
.btn-product:hover a{
 color: orangered;
}


.btn-product a{
    text-decoration: none;
    color: #000;

}

/* ===============End cards================= */

/*================ icon arrow-up============= */
#arrow-up{
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: black;
    position: fixed;
    bottom: 20px;
    right: 20px;
}


/* ================buy-now=============== */

 .buy-now{
     background:#eef1f5;
     height: 300px; 
 }

  .buy-now .img-1{
    left: 0px;;
  }
   .buy-now .img-2{
   right: 0px;
  }

 .buy-now img{
    width: 300px;
    height: 300px;

 }
 .buy-now-content{
    width: 300px;
    padding-top: 60px;
   
 }

 .buy-now-content button{
    width: 100px;
    height: 40px;
 }
 .add_to_cart .in-cart{
    color: #ff6a00;
 }
 /* ==============discount=============== */

 .discount-content{
    width: 50%;
    margin:7% auto;
 }
  .discount-content h3{
    font-size: 34px;
  }
  .discount-content p{
    color: #8f8d8d;
  }
   .input-group  {
    margin-top: 30px;
   }
  .input-group  .form-control{
    height: 50px;

  }
    .input-group  .btn{
    height: 50px;
    width: 120px;
  }

  /* =======================footer==================*/

  .footer-content{
     margin: auto;
      margin:7% 3%;
  }

     .footer-content div p{
        color: #8f8d8d;
     }
   
    /* =========================================================
   RESPONSIVE DESIGN
========================================================= */

/* ================= TABLET ================= */

@media (max-width: 992px) {

    /* ---------- Navbar ---------- */

    .header-content {
        padding: 0 15px;
        align-items: center;
    }

    .header-content .brand {
        font-size: 25px;
    }

    nav ul#user_info li {
        margin: 0 7px;
    }

    /* ---------- Carousel ---------- */

    .custom-slide {
        padding: 8%;
    }

    .custom-slide h1 {
        font-size: 30px;
    }

    .custom-slide img {
        max-height: 200px;
    }

    /* ---------- Products ---------- */

    .card {
        width: 31%;
        margin-right: 2%;
    }

    /* ---------- Buy Now ---------- */

    .buy-now {
        height: 280px;
        overflow: hidden;
    }

    .buy-now img {
        width: 220px;
        height: 220px;
        object-fit: contain;
    }

    .buy-now-content {
        width: 300px;
        padding-top: 50px;
    }

    /* ---------- Footer ---------- */

    .footer-content {
        gap: 30px;
    }

    .footer-content .footer-sec1 {
        width: 45%;
    }

    .footer-content .footer-sec2,
    .footer-content .footer-sec3 {
        width: 25%;
    }

    .footer-content div h4 {
        margin-left: 0;
    }

    .footer-content div .contact-me p {
        margin-left: 0;
    }
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

    body {
        width: 100%;
        overflow-x: hidden;
    }

    /* ---------- Navbar ---------- */

    nav {
        padding: 10px 0;
    }

    .header-content {
        width: 100%;
        padding: 0 10px;
        flex-wrap: wrap;
    }

    .header-content .brand {
        font-size: 23px;
    }

    #links {
        margin-right: 0;
    }

    nav ul {
        align-items: center;
    }

    nav ul#links li {
        margin-left: 8px;
    }

    nav ul#user_info li {
        margin: 0 5px;
    }

    #user_info #user {
        font-size: 10px;
    }

    /* ---------- Cart Dropdown ---------- */

    .carts_products {
        position: fixed;
        top: 65px;
        right: 10px;
        width: 280px;
        max-width: calc(100vw - 20px);
    }


    /* ---------- Carousel ---------- */

    .custom-slide {
        padding: 35px 20px;
        border-radius: 18px;
    }

    .custom-slide .row {
        flex-direction: column;
        text-align: center;
    }

    .custom-slide .col-md-6 {
        width: 100%;
    }

    .custom-slide h1 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .custom-slide p {
        font-size: 14px;
    }

    .custom-slide img {
        max-width: 80%;
        max-height: 180px;
        margin: 25px auto 0 !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }


    /* ---------- Search ---------- */

    .search {
        flex-direction: column;
        gap: 10px;
        margin: 25px 10px 10px;
    }

    .search input[type="search"],
    .search select {
        width: 100%;
        height: 42px;
    }


    /* ---------- Products ---------- */

    .products {
        width: 100%;
        padding: 0 10px;
        display: flex;
        justify-content: space-between;
    }

    .card {
        width: 48%;
        margin-right: 0;
        margin-bottom: 15px !important;
        min-height: 300px;
    }

    .card_img {
        width: 75%;
        height: 170px;
        object-fit: contain;
    }

    .products .product_item_desc {
        padding: 5px;
    }

    .products .product_item_desc h4 {
        font-size: 14px;
    }

    .products .product_item_desc span {
        font-size: 12px;
    }

    .products .product_item_desc p {
        font-size: 14px;
    }


    /* ---------- See More ---------- */

    .btn-product {
        margin: 30px auto;
        padding: 12px 20px;
    }


    /* ---------- Buy Now ---------- */

    .buy-now {
        position: relative;
        height: 250px;
        overflow: hidden;
    }

    .buy-now img {
        width: 130px;
        height: 130px;
        object-fit: contain;
    }

    .buy-now .img-1 {
        left: -20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .buy-now .img-2 {
        right: -20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .buy-now-content {
        position: relative;
        z-index: 2;
        width: 65%;
        margin: auto;
        padding-top: 45px;
    }

    .buy-now-content h3 {
        font-size: 20px;
    }

    .buy-now-content p {
        font-size: 12px;
    }

    .buy-now-content button {
        width: 95px;
        height: 38px;
    }


    /* ---------- Discount ---------- */

    .discount-content {
        width: 90%;
        margin: 50px auto;
    }

    .discount-content h3 {
        font-size: 27px;
    }

    .discount-content p {
        font-size: 14px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .input-group .form-control,
    .input-group .btn {
        width: 100%;
        height: 45px;
    }


    /* ---------- Footer ---------- */

    .footer-content {
        flex-direction: column;
        align-items: flex-start !important;
        margin: 50px 20px;
        gap: 35px;
    }

    .footer-content .footer-sec1,
    .footer-content .footer-sec2,
    .footer-content .footer-sec3 {
        width: 100%;
        margin: 0;
    }

    .footer-content div h4 {
        margin-left: 0;
    }

    .footer-content div .contact-me p {
        margin-left: 0;
        margin-top: 0;
    }

    .footer-content .footer-sec3 {
        position: static;
    }

    .footer-content .footer-sec3 .contact-me {
        position: static;
    }

    .footer-content .footer-sec1 p {
        font-size: 13px;
        line-height: 1.7;
    }

    .copywrite p {
        font-size: 12px;
        padding: 0 10px;
    }
}


/* ================= SMALL MOBILE / iPhone ================= */

@media (max-width: 480px) {

    /* ---------- Navbar ---------- */

    .header-content {
        padding: 8px;
    }

    .header-content .brand {
        font-size: 21px;
    }

    #links li a,
    #user_info li a {
        font-size: 11px;
    }

    nav ul#links li,
    nav ul#user_info li {
        margin: 0 3px;
    }

    nav ul#user_info li i,
    #links li i {
        font-size: 14px;
    }

    #user_info #user {
        font-size: 9px;
    }

    #user_info li span,
    #logout span {
        font-size: 9px;
    }


    /* ---------- Carousel ---------- */

    .custom-slide {
        padding: 30px 15px;
    }

    .custom-slide h1 {
        font-size: 20px;
    }

    .custom-slide p {
        font-size: 12px;
    }

    .custom-slide .btn {
        font-size: 12px;
        padding: 7px 10px;
    }

    .custom-slide img {
        max-width: 75%;
        max-height: 140px;
        margin-top: 20px !important;
    }

    .carousel-indicators {
        bottom: 0;
    }

    .carousel-indicators button {
        width: 7px !important;
        height: 7px !important;
    }


    /* ---------- Products ---------- */

    .products {
        padding: 0 7px;
    }

    .card {
        width: 48%;
        min-height: 270px;
        padding: 7px;
    }

    .card_img {
        width: 80%;
        height: 140px;
    }

    .products .product_item_desc h4 {
        font-size: 13px;
    }

    .products .product_item_desc span {
        font-size: 11px;
    }

    .products .product_item_desc p {
        font-size: 13px;
    }

    .card .add_to_cart,
    .card .fav {
        font-size: 21px;
    }


    /* ---------- Buy Now ---------- */

    .buy-now {
        height: 220px;
    }

    .buy-now img {
        width: 95px;
        height: 95px;
    }

    .buy-now-content {
        width: 70%;
        padding-top: 40px;
    }

    .buy-now-content h3 {
        font-size: 17px;
    }

    .buy-now-content p {
        font-size: 10px;
        line-height: 1.4;
    }


    /* ---------- Footer ---------- */

    .footer-content {
        margin: 40px 15px;
    }

    .footer-content .footer-sec1 h3 {
        font-size: 22px;
    }

    .footer-content div h4 {
        font-size: 17px;
    }

    .copywrite p {
        font-size: 10px;
    }
}


/* ================= VERY SMALL PHONES ================= */

@media (max-width: 360px) {

    .header-content .brand {
        font-size: 18px;
    }

    nav ul#links li,
    nav ul#user_info li {
        margin: 0 2px;
    }

    #links li a,
    #user_info li a {
        font-size: 9px;
    }

    .custom-slide h1 {
        font-size: 18px;
    }

    .custom-slide img {
        max-height: 120px;
    }

    .card {
        min-height: 250px;
    }

    .card_img {
        height: 120px;
    }

    .products .product_item_desc h4 {
        font-size: 12px;
    }
}