/*==================overall===============*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body{
    background-color: #f9f0ff;
}


/*==========================navbar=========================*/
nav{
    display: flex;
    background-color: rgb(228, 246, 252);
    padding: -1.2em;
}
nav ul{
    display: flex;
    /*padding: 2em;*/
    padding-top: 1.2em;
}
nav ul li{
    list-style: none;
    margin-left: 12em;
}
nav ul li a{
    text-decoration: none;
    color: black;
    font-size: -2em;
}
.logo{
    margin-left: 2em;
}
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
.carticon{
    padding-top: 1.2em;
    float: right;
    margin-left: 6em;
}
.carticon::after{
    content: attr(data-count);
    position: relative;
    background-color: rgb(98, 98, 200);
    color: white;
    top: -15px;
    padding: 1px 2px;
    border-radius: 20px;
    right: 15px;
}

.menu-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
  padding: 0.5em;
}




/*========================section 1(hero section)===================*/
.introduction{
    display: flex;
    justify-content: center;
  
}
.content{
    display: inline-block;
    padding: 1.2em;
}
.intro-content{
    display: inline-block;
    padding-left: 2em;
}
.content h1{
    font-size: 3em; 
    color: rgb(89, 194, 236); 
}
.intro-content p{
    padding-top: 1.2em;
    padding-bottom: 1.2em;
    font-size: 1em;
}
.intro-content button{
    margin-left: 0.7em;
    margin: 0.2em;
    background: linear-gradient(to right, #c471f5, #fa71cd);
    border-radius: 8px;
    padding: 15px 30px;
    border: none;
 
    color: white;
}
.intro-content button:hover{
    background-color: rgb(158, 94, 218);
    cursor: pointer;
}
.content-intro{
    display: flex;
    padding-left: 2em;
}
.intro{
    padding-top: 1.2em;
    padding-right: 1.2em;
}
.intro h3{
    color: rgb(61, 218, 85);
    margin-bottom: 0.2em;
}
.slider-container {
  position: relative;
  width: 500px;
  height: 500px;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.05);
  transition: opacity 1s ease, transform 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.circle-bg {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c472f5, #dd99ff);
  position: absolute;
  z-index: 0;
}

.bike-img {
  max-width: 100%;
  max-height: 100%;
  z-index: 1;
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 14px;
  height: 14px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background-color: #a14ef3;
}


/*============================section 2(products section)=====================*/
.products{
    text-align: center;
   
}
.products h2{
    text-align: center;
    margin: 2em;
}
.intro-products{
    display: inline-block;
}
.content-products{
    display: flex;
    justify-content: center;
}
.products-content{
    display: inline-block;
    margin: 1.2em;
    box-shadow: 1px 1px 5px rgb(214, 213, 213);
    border-radius: 20px;
    text-align: center;
    padding: 4em;
    background-color: white;
    
}
.products-content data,del{
    color: rgb(61, 218, 85);
}
.products-content button{
    background: linear-gradient(to right, #c471f5, #fa71cd);
    border-radius: 8px;
    padding: 15px 30px;
    color: white;
    border: none;
    margin: 0 auto;
    display: block;
}
.products-content button:hover{
      background-color: rgb(158, 94, 218);
      cursor: pointer;
}




/*================================section 3(About section)==========================*/
.About{
    text-align: center;
    padding: 1.2em;
}
.intro-about h2{
   font-size: 2em;
   margin: 0.2em;
}
.intro-about p{
    font-size: 1em;
    margin-bottom: 2em;
}
.about-content{
    display: flex;
    justify-content: center;
    gap: 4em;
}
.content-about{
    text-align: center;
    gap: 2em;
}




/*=============================section 4(description section)==================*/
   .product-section {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 60px 20px;
      position: relative;
    }

    .product-section::before {
      content: "TRENDING";
      position: absolute;
      top: 30px;
      left: 50px;
      font-size: 10rem;
      color: rgba(0, 0, 0, 0.05);
      font-weight: 900;
      z-index: 0;
    }

    .product-container {
      display: flex;
      align-items: center;
      max-width: 1200px;
      gap: 60px;
      z-index: 1;
    }

    .product-image img {
      max-width: 600px;
      width: 100%;
    }

    .product-details {
      max-width: 500px;
    }

    .product-title {
      font-size: 2rem;
      font-weight: 800;
      color: #222;
      margin-bottom: 15px;
    }

    .product-description {
      color: #777;
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 25px;
    }

    .product-price {
      font-size: 1.5rem;
      font-weight: bold;
      color: #000;
      margin-bottom: 30px;
    }

    .add-to-cart-btn {
      padding: 15px 30px;
      background: linear-gradient(to right, #c471f5, #fa71cd);
      color: white;
      font-size: 1rem;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s ease;
    }

    .add-to-cart-btn:hover {
      opacity: 0.9;
    }


    /*==========================================================sect==================================*/
    .blog-section {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background-color: #a855f7;
  margin: 10px auto 0;
  border-radius: 2px;
}

.blog-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.blog-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 330px;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-card img {
  width: 100%;
  height: auto;
  display: block;
}

.tag {
  display: block;
  color: #a855f7;
  text-align: left;
  font-weight: bold;
  margin: 12px 16px 0;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  margin: 8px 16px;
  color: #222;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  color: #777;
  font-size: 0.95rem;
}
.blog-meta img{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 8px;
}




/*========================section 5(Testimonials section)=====================*/
.Testimonials{
    text-align: center;
    padding: 1.2em;
}
.Testimonials h2{
    margin-bottom: 2em;
    font-size: 2em;
} 
.testimonial-content{
    display: flex;
    justify-content: center;
    gap: 4em;
}

.content-testimonial h4{
    color: rgb(61, 218, 85);
}
.content-testimonial img{
    border-radius: 100px;
}




/*==================================cart section========================*/
.cart-container{
  max-width: 800px;
  margin-top: 80px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.cart-item { 
      display: flex;
      justify-content: space-between; 
      margin: 10px 0;
      padding: 10px;
      border-bottom: 1px solid #ccc; 
}
.cart-item-details {
        flex: 1;
        min-width: 150px;
}
.cart-item button{
    background: linear-gradient(to right, #c471f5, #fa71cd);
    border: none;
    padding: 0.25em 1em;
    border-radius: 10px;
    color: white;
}
.cart-item img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      margin-right: 15px; 
}
.cart-total{
      font-size: 20px;
      margin-top: 20px;
      text-align: right;
      font-weight: bold;
}
.submitBtn{
      padding: 1em 8em; 
      background: linear-gradient(to right, #c471f5, #fa71cd);
      color: #fff;
      border: none;
      cursor: pointer;
      margin-top: 20px;
      border-radius: 10px;
      margin: auto;
      display: block;
    
}


.cart-container h1{
  margin-bottom: 20px;
  text-align: center;
  color: rgb(89, 194, 236);
  
}
.cartItems{
    display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

/*===========================================payment section=======================================*/

#paymentPage{
  background: white;
  padding: 2.5rem;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin-top: 100px;
  width: 100%;
}

#paymentPage h2{
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.payment-content label{
  font-size: 1.2rem;
  font-weight: 500;
}
.payment-content input{
  padding: 10px;
  display: block;
  width: 80%;
  margin: 10px 0;
  
}
.payBtn{
    text-align: center;
    padding: 0.8rem;
    font-size: 1.4rem;
    font-weight: 500;
    background-color: #00c79c;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
    margin: auto;
    display: block;
    margin-bottom: 1rem;
    gap: 10px;
}
.payBtn:hover {
    background-color: #009e7c;
    transform: translateY(-2px);
}
.divider{
  text-align: center;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1.5rem 0;
  position: relative;
}
.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}
  
.divider::before {
    left: 0;
}
  
.divider::after {
    right: 0;
}
.courtesy-content{
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}
.paystackBtn{
    background-color: rgb(79, 171, 247);
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.safaricomBtn{
    background-color: #9ef1b2;
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#proceedDeliveryBtn{
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    border: none;
    width: 50%;
    margin: auto;
    display: block;
    margin-bottom: 1rem;
    gap: 10px;
    color: white;
}
#deliverySection{
  margin: auto;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(7, 7, 7, 0.05);
  padding: 1.5rem;
  background: white;
  margin-top: 50px;
}
#deliverySection h2{
  text-align: center;

  font-size: 2rem;
}
#deliveryForm label{
   font-size: 1.2rem;
   font-weight: 500;
  
}
#deliveryForm input{
  padding: 5px;
  display: block;
  width: 80%;
  margin: 10px 0;
}
#deliveryForm button{
      text-align: center;
    padding: 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: linear-gradient(to right, #c471f5, #fa71cd);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
    margin: auto;
    display: block;
    margin-bottom: 1rem;
    gap: 10px;
}
/*============================ORDER FORM=========================*/
#orderForm{
  display: none;
  text-align: center;
    max-width: 800px;
  margin-top: 80px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  
}
#orderForm h3{
  font-size: 3em;
  color: rgb(89, 194, 236);
}
#orderForm input{
  padding: 0.2em 5em;
}
#orderForm input, #orderForm textarea {
      width: 100%;
      margin-top: 10px;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
}
#orderForm button {
    padding: 1em 2em;
    background: linear-gradient(to right, #c471f5, #fa71cd);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    margin-top: 40px;
}
#orderForm button:hover {
     background-color: rgb(39, 229, 39);
    color: white;
    cursor: pointer;
}
#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #28a745;
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
#toast.show {
  visibility: visible;
  opacity: 1;
}

/*==============================section 6(footer section)==========================*/
.footer{
    text-align: center;
    background-color: rgb(228, 246, 252);
}
.footer-content{
    display: flex;
    padding: 2em 4em;
    justify-content: center;
    gap: 14em;
}

.content-footer h4{
    margin: 1.2em;
    font-size: 1.2em;
}
.content-footer p{
    color: rgb(61, 218, 85);

}
.content-footer ul li{
    list-style: none;
}
.content-footer ul li a{
    text-decoration: none;
    color: rgb(61, 218, 85);
}

/* =================== RESPONSIVE DESIGN =================== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  nav ul li {
    margin-left: 4em;
  }
  .about-content,
  .testimonial-content,
  .content-products {
    flex-direction: column;
    gap: 2em;
  }
  .slider-container {
    width: 400px;
    height: 400px;
  }
  .product-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .product-section::before{
    font-size: 4rem;
  }
  .product-image img {
    max-width: 80%;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  nav {
    gap: 3em;
    align-items: center;
  }
  nav ul {
    flex-direction: column;
    padding-top: 0.5em;
    display: none;
  }
  
  nav ul li {
    margin: 0.5em 0;
  }
 .menu {
        display: none;
        flex-direction: column;
        background-color: rgb(228, 246, 252);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 150px;
        border-radius: 5px;
        padding: 1.2em;
        overflow: hidden;
    }

    .menu li {
        margin: 0;
        border-bottom: 1px solid #555;
    }

    .menu-icon {
        display: block;
    }

    .menu.show {
        display: flex;
    }
  .carticon {
    margin-left: 0;
  }
  .introduction {
    flex-direction: column;
    text-align: center;
  }
  .content-intro {
    flex-direction: column;
    padding-left: 2;
    text-align: center;
  }
  .slider-container {
    width: 300px;
    height: 300px;
    padding-left: 4em;
  }
  .dots{
    padding-left: 4em;
  }
  .circle-bg{
    width: 150px;
    height: 150px;
  }
  .about-content {
    flex-direction: column;
    gap: 2em;
  }
  .content-products {
    flex-direction: column;
  }
  .products-content {
    width: 90%;
    padding: 2em;
  }
  .product-section {
    flex-direction: column;
    padding: 30px 10px;
  }
  .product-section::before{
    font-size: 3rem;
  }
  .product-image img {
    max-width: 100%;
  }
  .blog-cards {
    flex-direction: column;
    align-items: center;
  }
  .testimonial-content {
    flex-direction: column;
  }
  .footer-content {
    flex-direction: column;
    gap: 2em;
  }
  #paymentPage,
  #deliveryForm,
  .cart-container,
  #orderForm {
    width: 90%;
    margin-top: 40px;
  }
  .payBtn,
  #proceedDeliveryBtn,
  #deliveryForm button {
    width: 100%;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .content h1 {
    font-size: 2em;
  }
  .product-title {
    font-size: 1.5rem;
  }
  .product-price {
    font-size: 1.2rem;
  }
  .product-section::before{
    font-size: 2rem;
  }
  .products-content button,
  .intro-content button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .slider-container {
    width: 250px;
    height: 250px;
  }
  .cart-item img {
    width: 70px;
    height: 70px;
  }
  .cart-item {
    flex-direction: column;
    align-items: center;
  }
}


/*==========================================popup style==============================*/
/* Overlay background */
#customAlert {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Alert box */
#customAlert .alert-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 300px;
  animation: fadeIn 0.3s ease-in-out;
}

#customAlert .alert-box h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

#customAlert .alert-box button {
  margin-top: 15px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #007BFF;
  color: #fff;
  cursor: pointer;
}

#customAlert .alert-box button:hover {
  background: #0056b3;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}