* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: black;
    background: #f9f8f8;
    padding-top: 60px;
}



/* -----------------------nav bar styling----------------------- */
.header{
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: solid 1px #e0e0e0;
    z-index: 1000;
}

.announcement-bar{
    width: 100%;
    color: #285bb5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 1rem;
    font-size: 1.2rem;

}.announcement-bar p{
    font-weight: 600;
    font-size: 1.3rem;
}

.search-bar{
    width: fit-content;
    /* background-color: #207cca; */
    border: 2px solid #285bb5;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    max-height: 2.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}
.search-input{
    outline: none;
    border: none;
    width: 5rem;
    
}

.search-bar i{
    color:#285bb5;
    font-size: 1rem;
}




.nav{
    /* width: 100%; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:  0.5rem 2rem;
    /* max-width: 1400px; */
    /* margin: 0 auto; */
    background-color: #285bb5;
    border-bottom-left-radius: 5px;  /* round bottom-left corner */
    border-bottom-right-radius: 5px
}
.logo-container{
    width: fit-content;
    display: flex;
    color: white;
    font-size: 1.2rem;
    flex-direction: row;
    gap: 0.3rem;
    align-items: center;
    font-weight: 600;
}
.logo{
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    width: 40px; 
    height: 40px; 
    border-radius: 20px; 
    border: 1px solid white; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-color: white;
}
.logo i{
    color: #002957;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a{
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    transition: color
     0.3s ease;
     position: relative;
}

.nav-links a:hover{
    color: #bc2525;
}


/* To know what this can do */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #bc2525;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions{
    display: flex;
    align-items: centerr;
    gap: 1rem;
}

.cart-btn{
    position:relative;
    background: #e9ecef;
    border: none ;
    padding: 0.5rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0..3 ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}
.cart-btn i{
    color: #002957;
}

.cart-btn:hover{
    background: white;
    border-color: #285bb5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12 px rgba(0,122, 255, 0.15);
}
.cart-count{
    background-color: #bc2525;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}


/* --------------Hero section---------------- */
#hero-section{
    width: 100%;
    min-height: 100vh;
}
/* -----------Horizontal Schroll Menu--------------- */
   div.scrollmenu {
    margin-top: 1rem;
           
            overflow: auto;
            white-space: nowrap;
        }

        div.scrollmenu a {
            display: inline-block;
            text-align: center;
            padding: 0.2rem 1rem;
            text-decoration: none;
            font-weight: 700;
        }

        div.scrollmenu a:hover {
            background-color: #285bb5;
            color: white;
            border-radius: 5px;
        }

        .first-product-btn {
            background-color: #285bb5;
            color: white;
            border-radius: 5px;
        }

        .scrollmenu a:not(:first-child) {
  color: #285bb5; /* example style */
}


/* ------------------Shop container------------------ */

.shop-product-title{
    /* width: 100%; */
    display: flex;
    text-align: center;
    justify-content: center;
    /* margin: 0rem 0 0rem 0; */
    font-size: 1rem;
    font-weight: 700;
    color: #002957;
}

.shop-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  padding: 1rem;
}

.product-box {
  /* width:100px; */
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: 0.3s;
  /* gap: 0.5rem; */
  padding-bottom: 0.5rem;

}
.product-title{
    font-size: 1rem;
    font-weight: 700;
}
.product-box img {
  max-width: 100%;
  border-radius: 6px; 
  min-height: fit-content;
}

.product-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.product-title{
    margin-left: 0.3rem;
}
.price{
    display: flex;
    justify-content: center;
    align-items: center;
    color:white;
    font-size: 1.3;
    font-weight: 700;
    width: 2.3rem;
    height: 1.5rem;
    border-radius: 0.2rem;
    /* background-color: #bc2525; */
    background-color: #002957;
    margin-top: auto;
    margin-left: 0.2rem;

}
.more-product{
    /* font-weight: 800; */
    display: flex;
    margin:1rem 0;
    align-items: center;
    background-color: transparent;
    justify-content: center;
}

.more-product button, .purchase-box button{
    padding: 0.5rem 1rem;
    border: 2px solid #285bb5;
    background-color: white;
    color: #285bb5;
    font-weight: 8        00;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 800;
} 
.more-product button:hover, .purchase-box button:hover{
    background-color: #285bb5;
    color: white;
}





/* Product-preview */
.product-preview{
    position: fixed;
    top: 0;
    left: 0;
    min-height: 100vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;

}
.product-preview .preview{
    display: none;
    padding: 0rem;
    text-align: center;
    background-color: #fff;
    position: relative;
    margin: 2rem;
    width:22rem ;
}

.product-preview .preview.active {
    display: inline-block;
   

}

.product-preview .preview.active img{
    width: 21rem;
    height: auto;

}



.product-preview .preview .fa-times{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0.2rem ;
    right: 0.2rem;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    background-color:#002957;
    width:2rem;
    height: 2rem;
    border-radius: 1rem;
    border: solid 1px white;
    transition: transform 0.3s ease;
}
.product-preview .preview .fa-times:hover{
    transform:rotate(90deg);
}


.purchase-box{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
    padding-right: 0.5rem;
}




/* ------------------Footer down side-------------- */


footer{
    width: 100%;
    height: auto;
    background-color: #285bb5;
   
}
footer .footer-1{
    width: 100%;
    background-color: #002957;
    min-height: auto;
    padding: 1rem 0;
    color: white;
    border-bottom-left-radius: 10px;  
    border-bottom-right-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
.container-infos{
    /* background-color: red; */
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* flex-direction: row; */

}
.product a, .support a{
    color: white;
}
li{
    list-style: none;
    font-weight: 200;
}
.how-to-buy button{
    background-color: #3575D3;
    padding: 0.5rem 0.6rem;
    margin: 0.9rem 0rem;
    color: white;
    font-size: 0.9rem;
    border-radius: 5px;
    border: solid 1px white;

}
.how-to-buy button:hover {
    background-color: #285bb5;
    box-shadow: 0 4px 8px rgba(255,255,255,0.9);
    cursor: pointer;
}

footer .footer-2{
    width: 100%;
    background-color: #285bb5;
    min-height: 10vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-2{
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem 0.5rem;
}

.left-side-footer{
    display: flex;
    justify-content: flex-start;
    width: 45%;
    gap: 0.1rem;
}
.right-side-footer{
    width: 45%;
    /* text-align: left; */
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
.social-media i{
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}
.social-media i:hover{
  color: #002957;   
  transform: scale(1.2); 
}
a{
    text-decoration: none;
}


@media screen and (max-width:924px){
.footer-2{
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.left-side-footer{
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.right-side-footer{
    width: 100%;
    justify-content: center;
    align-items: center;
}

.social-media i{
    font-size: 1.2rem;
    margin-bottom: 1.6rem;
    
}

.container-infos{
    width: 100%;
    font-size: 13px;
    padding: 0% 5px;
    text-align: start;
}

}

@media screen and  (max-width:500px) {
    /* .preview{
        margin: 0 1rem;
    } */
    .product-preview .preview.active img{
    /* margin-top: 0.8rem; */
    width: 19rem;
    /* height: auto; */

}
   
}

















/* Ensure at least 2 per row on very small screens */
@media screen and (max-width: 400px) {
  .shop-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cap at 6 per row on big desktops */
@media (min-width: 1200px) {
  .shop-container {
    grid-template-columns: repeat(6, 1fr);
  }
}


































































/* ----------------------------Responssiveness------------------ */
@media screen and (max-width: 935px) {
   
    .nav-links{
        display: none;
    }
      
}

@media screen and (max-width: 768px) {
    .nav {
        padding: 0.4rem 1rem;
    }
    .search-bar{
        width: 8rem;
    }
    
}

@media screen and (min-width:900px) {
    .search-bar{
        width: 12rem;
    }
    
}