/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  overflow: hidden;
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-profile{
  margin-right: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.user-profile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 #user_login{
  border: 1px dashed gray;
  margin-right: 10px;
  padding: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

#user_login a img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.dialog-bar {
   display: none;
    background-color: #0f2d2c;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content; /* Adjust the width as needed */
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 5px 5px;
    transition: top 0.3s ease; /* Smooth transition effect */
    align-items: center;
    justify-content: center;
}
.dialog-bar.show {
  top: 0; /* Show the dialog bar */
}
#fa-close{
  margin-left: 20px;
}
/* Add these styles to your existing CSS or a separate CSS file */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.dialog {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px 30px;
  text-align: center;
}
.user-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.user-detail-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

.user-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.user-details h3,
.user-details p {
  margin: 7px 0; /* Adjust the margin between text elements */
}



.close-btn {
  padding: 10px 20px;
  background-color: #0f2d2c;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}
#close-btn{
  background-color: transparent;
  position: absolute;
  top: 0;
  right: 0px;
}
#close-btn-2{
  background-color: transparent;
  color: #0f2d2c;
  box-shadow: 1px 1px 1px #0e0a16;
  margin-left: 10px;
}
#close-btn-3{
  box-shadow: 2px 2px 1px #0e0a16;
}
.header-title{
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-title img{
  border-radius: 100%;
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.header-title h1 {
  background-image: linear-gradient(to right, #1a1325, #0f2d2c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgb(255, 255, 255);
  letter-spacing: 2px;
  animation: gradientAnimation 1s ease-in-out infinite;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Category Styles */
.categories {
  padding: 5px;
  border-bottom: 2px solid #0f2d2c;
  height: 30px;
}
.categories form{
  display: flex;
  justify-content: space-between;
}
.categories ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.categories ul li {
  display: inline;
}

.categories ul li input {
  background-color: transparent;
  border: none;
  text-decoration: none;
  padding: 8px;
  color: #333;
  font-size: 16px;
}

.categories ul li input:hover {
  background-color: #ddd;
}
/* Custom styles for the login button */
/* Custom styles for the login button */
/* ...Previous CSS code... */

/* Custom styles for the login button */
.notify-btn {
  position: relative; /* Add relative positioning to the button */
  display: inline-block;
  text-decoration: none;
  padding: 5px;
  color: #333;
  background-color: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.notify-btn:hover {
  background-color: #ffffff;
  border-radius: 2px;
}

.notify-btn:focus {
  outline: none;
}

.notify-btn:active {
  background-color: #bbb;
}

/* Counter styles */
.cart-counter,
.orders-counter,
.message {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
}

/* Dialog Message */
.show-notify {
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
  border-radius: 10px;
  position: absolute;
  right: 12px;
  top: 18%;
  z-index: 9999;
  display: none;
  flex-direction: column;
}
.show-notify a{
  text-decoration: none;
}
.message-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc; /* Add a border line at the bottom */
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 5px;
}

.message-info:hover {
  background-color: #f0f0f0; /* Background color on hover */
}

.message-content {
  flex-grow: 1;
}

.message-content h3 {
  font-size: 18px;
  margin: 0;
}

.message-content p {
  font-size: 14px;
  margin: 0;
  color: #555;
}

i.fas.fa-bell {
  font-size: 24px;
  color: #0e0a16;
  transition: color 0.3s ease;
}

.message-info:hover i.fas.fa-bell {
  color: #080f1d;
}




/* Side Page */

.side-content {
  min-width: 20%;
  max-width: 20%;
  height: 100vh;
  border-right: 1px solid gray;
  padding: 10px; /* Added padding */
  display: flex;
  flex-direction: column;
}

.checklist {
  margin-bottom: 20px;
}

.checklist h3 {
  margin-bottom: 10px;
}

.checklist ul {
  list-style-type: none;
}

.checklist li {
  margin-bottom: 5px;
}


.checklist input[type="checkbox"] {
  margin-right: 5px;
}

.search-form {

  margin-bottom: 20px; /* Added margin bottom */
  display: flex;
}

.search-form input {
 
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.search-form button {
  padding: 5px 15px;
  background-color: #0f2d2c;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 10px;
  cursor: pointer;
}
#filter{
  padding: 10px 15px;
  background-color: #0f2d2c;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;

}
.wrapper {
  display: flex; 
  height: 100%;
  overflow: hidden;
}

/* Content Styles */
.content {
  width: 80%;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow-y: auto; /* Allow content to scroll */
  margin-bottom: 50px;
}

.product {
  width: 20%;
  height: 300px;
  margin: 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  position: relative;
  box-sizing: border-box;
}

.content::-webkit-scrollbar {
  width: 8px;
}

.content::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

.content::-webkit-scrollbar-thumb {
  background-color: #0f2d2c;
  border-radius: 4px;
}

.content::-webkit-scrollbar-thumb:hover {
  background-color: #0e0a16;
}

.product img {
  max-width: 100%;
  height: 60%;
  object-fit: contain;
}

/* Hover Animation */
.product .description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.product:hover .description {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.product .description-content {
  text-align: center;
  padding: 20px;
}

.product .description h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product .description p {
  font-size: 14px;
  margin-bottom: 10px;
}

.product .description .buttons {
  margin-top: 20px;
}

.product .description .btn {
  margin: 0 5px;
  padding: 10px 20px;
  background-color: #fff;
  color: #333;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.product .description .btn a {
  text-decoration: none;
  color: #0f2d2c;
}

.product .description .btn:hover {
  background-color: #ddd;
}
/* Updated cart dialog styles */
.cart-dialog {
  background-color: #ffffff;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  position: absolute;
  right: 40px;
  top: 18%;
  z-index: 9999;
  display: none;
  max-width: 300px;
  overflow: auto;

}

/* Cart item container */
.cart-info {
  cursor: pointer;
  padding: 10px;
  border-bottom: 1px solid #ddd;

}
.cart-item:hover{
  background-color: #ddd;
  border-radius: 2px;
}
.cart-info a{
  text-decoration: none;
  color: black;
}
/* Cart item layout in a row */
.cart-item {
  display: flex;
  align-items: center;
}

/* Cart item image */
.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 10px;
}

/* Cart item details */
.item-details {
  flex-grow: 1; /* Grow to fill remaining space */
  margin: 0 7px;
}

/* Cart item name */
.item-details h3 {
  margin: 0;
}

/* Cart item price */
.item-details p {
  margin: 0;
}

/* Cart item button */
.cart-item button {
  margin-left: 5px;
  background-color: #e20000;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
}

/* Cart item button on hover */
.cart-item button:hover {
  background-color: #b90101;
}
/* Adjust the position of contact icons */
.contact-icons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Style contact icons */
.contact-icons a {
  display: inline-block;
  margin: 0 10px;
  font-size: 24px;
  color: #16233b;
}

/* Adjust icon colors on hover */
.contact-icons a:hover {
  color: #007bff;
}

/* Modal styles */
/* Updated modal styles */
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  max-width: 300px;
  margin: auto;
}

.modal h2 {
  margin-top: 0;
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="number"],
.modal input[type="password"],
.modal input[type="file"],
.modal textarea {
  width: calc(100% - 40px);
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 10px;
}

.modal button {
  width: 48%;
  padding: 8px 16px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #16233b;
  color: white;
}

#cancelEdit{
  background-color: transparent;
  color: #0f2d2c;
  box-shadow: 1px 1px 1px #0e0a16;
}
#saveChanges{
  box-shadow: 1px 1px 1px blue;
}

/* Centering the modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
.menu-icon{
  display: none;
}
.Mobile-categories{
  display: none;
}
.Mobile-categories form{
  display: flex;
  flex-direction: column;
}
.Mobile-categories ul{
  
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  .product {
    width: calc(50% - 20px); /* Adjusted width for two products per row */
    height: 280px;
  }
  .content {
    padding: 0;
    width: 100%;
  }

  .header-title h1 {
    font-size: 24px;
  }
  .wrapper {
    display: flex;
    flex-direction: column;
  }
  .side-content {
    width: 100%; /* Set the width to 100% */
    max-width: none !important; /* Remove any max-width constraints */
    height: fit-content;
    border: none;  
    
  }
  .search-form {
    display: flex;
    padding: 0;
    margin: 0;
  }
  .search-form input {
    width: 100%;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  .search-form button {
    background-color: #0f2d2c;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 10px;
    cursor: pointer;
    margin-right: 20px;
  }
  .checklist,
  .contact-icons {
    display: none;
  }
  .menu-icon {
    display: block;
  }
  .categories {
    height: fit-content;
  }
  #category-list {
    display: none;
  }
  .Mobile-categories {

    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .header-title {
    margin-left: 5px;
  }
  .header-title img {
    display: none;
  }
  #user_login{
    border: 1px dashed gray;
    margin-right: 10px;
    padding: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
  }
  .show-notify {
    right: 10px;
    top: 14%;
  }
  .cart-dialog {
    right: 40px;
    top: 14%;
   
  }
  
}




