/* General Styles */
html{
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    background-color: #faeada;
    height: 100%; 
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

header {
    background-color: #D34F73;
    color: white;
    padding: 15px 0;
    text-align: center;
    padding-bottom: 40px;
    

}

span img{
    width: 40px;
    height: 40px;
}
h1 a{
    text-decoration: none;
    color: #5B3758;
    
}

.main{
  position: relative;
  text-align: center;
  color: rgb(126, 82, 100);

  margin-top: 60px; /* Adjust this value to match the height of your navigation bar */
}
.main span{
    color: purple; 
}


.imgr{
    background-image: url('/images/cover.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: calc(60vh - 60px);
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

}

img{
    margin-top: 35px;
    height: 40vh;
    width: 100%;
    
    }

.message {
    font-size: 30px;
    font-weight: 700;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    color: white;
  }
  

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.nav-bar ul{
    margin-top: 30px;
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-bar ul button{
    text-decoration: none;
    background-color: #5B3758;
    border-radius: 5px;
    color:white;
    font-weight: 600;
    border: none;


}

.nav-bar ul li a{
    text-decoration: none;
    color: white;
    
}
.nav-bar ul li button:hover{
    color: #5B3758;
    background-color: white;
}
.nav-bar ul li a:hover{
 background-color: white;
 color: #5B3758;
}

h1 {
    margin: 0;
}

.cart button {
    background-color: #5B3758;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}
.cart button:hover {
    background-color: white;
    color: #5B3758;
}

.content{
    width: 80%;
    margin-left: 100px;
    line-height: 1.7;
 
}

div .tagline{
    font-size: 20px;
    font-weight: 600;
    width: 50%;
    height: 50%;
    color: #5B3758;
    top: 10%;
    left: 45%;
    transform: translate(8%, 20%);
    margin: auto;
    padding: auto;

      
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.category {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    text-align: center;
    padding: 20px;
}

.category img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.category h3 {
    font-size: 18px;
    margin: 10px 25px;
    height: 10px;
    padding-bottom: 20px;

}

.category a{
    list-style: none;
    text-decoration: none;
    color: black;
}






.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.product {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    text-align: center;
    padding: 20px;
}

.product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.product h3 {
    font-size: 18px;
    margin: 10px 0;
    height: 10px;
}

.product .price {
    margin-top: 45px;
    font-size: 16px;
    color: #28a745;
    font-weight: bold;
}

.product button {
    background-color: #28a745;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
}

.product button:hover {
    background-color: #218838;
}

/* Cart Modal Styles */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.cart-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
}

#cartItems {
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
}

#checkoutButton {
    background-color: #007bff;
    color: white;
}

#closeCartButton {
    background-color: #dc3545;
    color: white;
}


.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.cart-item button:hover {
    background-color: #c82333;
}



/* Image Transition */
/*
.image-container {
    position: relative;
    width: 500px; /* Set to your image width 
    height: 300px; /* Set to your image height 
  }
  
  .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .image.show {
    opacity: 1;
  }

*/
footer {
    background-color: #D34F73;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: auto;
  }
  
  footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  footer .social-links {
    margin-top: 10px;
  }
  
  footer .social-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
  }
  
  footer .social-links a:hover {
    text-decoration: underline;
  }
  

/* About us Page */

.tagline{
 color: #5B3758;
 top: 10%;
 left: 15%;
    transform: translate(5%, 20%);
  
}

.about_data{
    width: 80%;
    margin-left: 100px;
    line-height: 1.7;
    
}


/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .product {
        width: 45%; /* 2 products per row */
    }
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .nav-bar ul {
        flex-direction: column;
        align-items: center;
    }

    .product {
        width: 100%; /* 1 product per row */
    }

    .product-list {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .product h3 {
        font-size: 1em;
    }

    .product .price {
        font-size: 0.9em;
    }

    .cart button {
        width: 100%;
        padding: 15px;
    }
}




