*{
    margin: 0;
    box-sizing:border-box ;
}
body{
    background-color: #F1F2F4
}

.navbar{
    display: flex;
    flex: 1;
    background-color: white;
    padding: 8px 5%;
    align-items: center;
    gap: 30px;
    justify-content: space-around   ;
}

.searchbar{
    background-color: #F0F5FF;
    flex: 1;
    display: flex;
    border-radius: 10px;
    align-items: center;
    padding: 15px 15px;
}

.searchbar>input[type="search"]{
    border: 0;
    outline: 0;
    font-size: 16px;
    font-family: sans-serif;
    font-weight: 200;
    background-color: transparent;
}
/* navbar links */
.links{
    flex: 1;
    display: flex;
}

.links>a{
    padding: 10px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(79, 79, 79);
}
.active:hover{
    background-color: #2A55E5;
    border-radius: 10px;
    color: white;
}
.categories{
    background-color: white;
    margin: 5px 10px;
    padding: 10px 10px ;
    display: flex;
    justify-content: center;
}

.cat-card{
    width: 10%;
    height: auto;
    text-align: center;
}
.cat-card>h4{
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-wrap: nowrap;
}

.act:hover{
    color:#2A55E5;
}

.banner{
    flex: 1;
}

.banner>img{
    margin: 5px 10px;
    margin-right: 3px;
    width: 99%;
}


.swiper {
    width: 99%;
    height: 99%;
  }

  .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-button-next,
.swiper-button-prev{
    background-color: white;
    border-radius: 8px;
    margin: -20px;
    margin-left: 0;
    margin-right: 0;
    padding: 10px;
    height: 80px;
    top: 95px;
    justify-content: center;
    align-items: center;
}
.bestElectronic-container{
    height: 380px;
    display: flex;
    margin: 10px;
    justify-content: space-between;
}
.left-part{
    background-color: white;
    width: 79%;
}
.right-part{
    background-color: white;
    width: 20%;
    padding: .3em;
}
.right-part>img{
        height: 100%;
        width: 100%;
}
.leftPart-top{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: normal;
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    height: 20%;
    border-bottom: 1px solid #ccc;
}
.ViewAll_Btn{
    background-color: #2A55E5;
    color: white;
    border: none;
    border-radius: 50%;
    padding:  10px; 
    padding-left: 20px;
    padding-right: 20px;
    cursor: pointer;
    align-items: center;
}
.leftpart-cart-container{
    display: flex;
    height: 80%;
    justify-content: space-between;
}
.cart-product {
    width: 170px;
    margin: 25px;
    margin-top: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    text-align: center;
    border: 1px solid #dddddd;    
}
.cart-product img{
    width: 130px;
    min-height: 10px;
    height: 190px;
    margin-bottom: 20px;
    padding-top: 5px;
}
.cart-product:hover img{
    transform: scale(1.048);
}
.cart-product-name{
    margin:0;
    font-size: 14px;
    font-weight: normal;
    color: #7d7d7d;
    
}
.cart-product-price{
    margin:0;
    font-size: 14px;
    font-weight: normal;
}
.main-lower{
    background-color: #F5F5F5;
}
.lower-body{
    font-family: Arial, Helvetica, sans-serif;
    margin: 20px;
    margin-top: 100px;
    color: #5e5e5e;
    
}
.lowerbody-content{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #818181;
    font-size: 13px;
    margin: 5px 0px; 
    display: flex;
}


/* footer */
#footerHead {
    /* background-color: #f8f8f8; */
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

#footerBody {
    display: flex;
    justify-content: space-evenly;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #212121;
    color: white;
}

#footerBody .list_cards {
    width: 15%;
    color: white;
}

#footerBody h4 {
    margin: 20px;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #555;
}

#footerBody p {
    font-size: 12px;
    color: #ffffff;
    margin: 5px 20px;
    cursor: pointer;
}

#footerBody p:hover {
    color: #00aaff;
}
#socail-logo>i {
    margin-left: 20px;
    gap: 2px;
}
/* Middle Footer Section */
#footerMid {
    padding: 20px;
    background-color: #212121;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: white;
    font-size: 12px;
}
#logo-tag{
    color: goldenrod;
    
}
/* Footer Base Styles (Desktop) */
#footerHead {
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

#footerBody {
    display: flex;
    justify-content: space-evenly;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #212121;
    color: white;
}

#footerBody .list_cards {
    width: 15%;
    color: white;
}

#footerBody h4 {
    margin: 20px;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #555;
}

#footerBody p {
    font-size: 12px;
    color: #ffffff;
    margin: 5px 20px;
    cursor: pointer;
}

#footerBody p:hover {
    color: #00aaff;
}

#socail-logo > i {
    margin-left: 20px;
    gap: 2px;
}

/* Middle Footer Section */
#footerMid {
    padding: 20px;
    background-color: #212121;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: white;
    font-size: 12px;
}

#logo-tag {
    color: goldenrod;
}

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
    #footerBody {
        flex-direction: column; /* Stack sections vertically */
        align-items: center;
    }

    #footerBody .list_cards {
        width: 90%; /* Full width for mobile */
        text-align: center; /* Center content */
        margin-bottom: 15px;
    }

    #footerMid {
        flex-direction: column; /* Stack items */
        align-items: center;
    }

    #footerMid > * {
        margin-bottom: 10px; /* Add spacing between items */
    }
}

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
    .categories {
        flex-wrap: wrap;
    }

    .cat-card {
        width: 45%; /* 2 items per row */
        margin: 5px 0;
    }

    .bestElectronic-container {
        flex-direction: column; /* Stack sections vertically */
    }

    .left-part,
    .right-part {
        width: 100%; /* Full width for both parts */
        margin-bottom: 10px;
    }

    .leftpart-cart-container {
        flex-wrap: wrap; /* Wrap product cards */
        justify-content: center; /* Center items */
    }

    .cart-product {
        width: 45%; /* Adjust card width for smaller screens */
        margin: 10px;
    }

    #footerBody {
        flex-wrap: wrap; /* Wrap footer items */
        justify-content: center;
    }

    #footerBody .list_cards {
        width: 90%; /* Full width for mobile screens */
        margin-bottom: 20px;
    }
}