@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Fira Sans", sans-serif;
}
body {
  cursor: url("./imgs/carrot.png"), auto;
  background-image: url(/imgs/hp_img.jpg);
}
/* !Header */
.logo {
  position: absolute;
  left: 20px;
  width: 100px;
  cursor: pointer;
}

.index-page li,
a,
button {
  font-weight: 600;
  font-size: 16px;
  color: bisque;
  text-decoration: none;
}
header {
  background-color: #002423;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-shadow: 2px 2px 10px black;
}
header:hover {
  box-shadow: 2px 2px 25px black;
  transition: 0.5s;
}
.navlinks li {
  display: inline-block;
  margin: 30px;
  align-items: center;
}
.navlinks li a:hover {
  color: tomato;
  text-shadow: 1px 1px 5px black;
}

button {
  padding: 12px;
  background-color: firebrick;
  border-radius: 50px;
  outline: none;
  cursor: pointer;
  transition: all 0.3s, ease 0.3s;
  border: none;
  z-index: 999;
}
button:hover {
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
}
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: blur(10px);
  box-shadow: -3px 0 10px black;
  display: none;
  justify-content: flex-start;
  list-style: none;
  flex-direction: column;
  transition: transform 0.3s ease;
  transform: translateX(100%);
}
.sidebar li {
  width: 100%;
  margin: 25px;
  text-shadow: 1px 1px 2px black;
}
.sidebar img {
  position: absolute;
  bottom: 20px;
  width: 100%;
  height: 120px;
}

.user-icon:hover {
  content: url("/imgs/profile-user-2.png");
}

.index-page h2 {
  color: firebrick;
  font-size: 2em;
  font-weight: 1000;
  margin: 20%;
  text-align: center;
}
@media screen and (max-width: 480px) {
  .navlinks button {
    display: none;
  }
}
@media only screen and (max-width: 830px) {
  .navlinks .items {
    display: none;
  }
}

/* !Container */
.container {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/*! Search bar */
.input-box {
  position: relative;
  height: 76px;
  max-width: 900px;
  width: 100%;
  background: #fff;
  margin: 0 20px;
  border-radius: 80px !important;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.input-box .button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.input-box input {
  height: 100%;
  width: 100%;
  outline: none;
  font-size: 18px;
  font-weight: 400;
  border: none;
  padding: 0 155px 0 65px;
  background-color: transparent;
}
.input-box .button {
  min-width: 110px;
  width: 20%;
  right: 20px;
  font-size: 18px;
  font-weight: 800;
  color: bisque;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  background-color: firebrick;
  cursor: pointer;
}
.input-box .button.clicked {
  transform: translateY(-50%) scale(0.98);
}

/* Responsive */
@media screen and (max-width: 500px) {
  .input-box {
    height: 66px;
    margin: 0 8px;
  }
  .input-box i {
    left: 12px;
    font-size: 25px;
  }
  .input-box input {
    padding: 0 112px 0 50px;
  }
  .input-box .button {
    right: 12px;
    font-size: 14px;
    padding: 8px 18px;
  }
}

.search-bar {
  margin: 50px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 10px;
  min-width: 70%;
}

.input-box {
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  border-radius: 5px;
  background-color: #f5f5f5;
}

.input-box input {
  width: 100%;
  flex: 1;
  padding: 5px;
  border: none;
  background: transparent;
}

.input-box button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
}

/*! Producd card */
#product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#product-container h3 {
  margin-bottom: 70vh;
  color: firebrick;
  font-weight: 500;
}

#product-container h3 span {
  font-weight: 900;
}

/* todo:Sharqawycs */
.product-card {
  min-width: 280px;
  width: calc(33% - 20px); /* 25% of the container width minus the gap */
  margin: 10px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.15s ease-in allow-discrete;
}
.product-card:hover {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.product-img-container {
  position: relative;
  overflow: hidden;
  padding: 12px 12px 5px;
}

.product-img {
  width: 100%;
  height: 200px;
  background-color: bisque; /* For testing, SharQawyCS */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
}

.product-info {
  padding: 10px;
}

.product-title {
  margin: 15px 0;
  font-size: 20px;
  font-weight: 700;
  text-align: start;
  color: #634b4f;
}

.product-description {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: firebrick;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Media query for small screens */
@media screen and (max-width: 768px) {
  #product-container {
    justify-content: center;
  }
  .product-card {
    width: calc(50% - 20px);
  }
}

/* Media query for extra small screens */
@media screen and (max-width: 480px) {
  .product-card {
    width: calc(100% - 20px);
  }
  .chat-container {
    max-width: 350px;
  }
}

/* Extra small devices  */
@media only screen and (max-width: 600px) {
  .container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Small devices */
@media only screen and (min-width: 600px) {
  .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Medium devices  */
@media only screen and (min-width: 768px) {
  .container {
    width: 750px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Large devices */
@media only screen and (min-width: 992px) {
  .container {
    width: 970px;
    padding-left: 25px;
    padding-right: 25px;
  }
}

/* Extra large devices  */
@media only screen and (min-width: 1200px) {
  .container {
    width: 1170px;
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* !Footer */
/* خلوا بالكم الfooter متقسم تلت حتات */
.footer {
  background-color: #002423;
  width: 100%;
  text-align: left;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 16px;
  padding: 50px;
  margin-top: 50px;
}

.footer .footer-left,
.footer .footer-center,
.footer .footer-right {
  display: inline-block;
  vertical-align: top;
}

/* footer left*/
.footer .footer-left {
  width: 33%;
  padding-right: 15px;
}

.footer .about {
  line-height: 20px;
  color: #ffffff;
  font-size: 13px;
  font-weight: normal;
  margin: 0;
}

.footer .about span {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* footer center*/
.footer .footer-center {
  width: 30%;
}

.footer .footer-center i {
  background-color: #33383b;
  color: #ffffff;
  font-size: 25px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-align: center;
  line-height: 42px;
  margin: 10px 15px;
  vertical-align: middle;
}

.footer .footer-center i.fa-envelope {
  font-size: 17px;
  line-height: 38px;
}

.footer .footer-center p {
  display: inline-block;
  color: #ffffff;
  vertical-align: middle;
  margin: 0;
}

.footer .footer-center p span {
  display: block;
  font-weight: normal;
  font-size: 14px;
  line-height: 2;
}

.footer .footer-center p a {
  color: firebrick;
  text-decoration: none;
}

/* footer right*/
.footer .footer-right {
  width: 35%;
  text-align: center;
}

.footer h2 {
  color: #ffffff;
  font-size: 36px;
  font-weight: normal;
  margin: 0;
}

.footer h2 span {
  color: firebrick;
  color: firebrick;
}

.footer .menu {
  color: #ffffff;
  margin: 20px 0 12px;
  padding: 0;
  text-align: center;
}

.footer .menu a {
  display: inline-block;
  line-height: 1.8;
  text-decoration: none;
  color: inherit;
}

.footer .menu a:hover {
  color: firebrick;
}

.footer .name {
  color: firebrick;
  font-size: 14px;
  text-align: center;
  font-weight: normal;
  margin: 0;
}

@media (max-width: 767px) {
  .footer {
    font-size: 14px;
  }
  .footer .footer-left,
  .footer .footer-center,
  .footer .footer-right {
    display: block;
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
  }
  .footer .footer-center i {
    margin-left: 0;
  }
}
/* !Footer */

/* !Recipe pop-up */
.recipe-pop-up {
  display: none;
  border: firebrick dashed 4px;
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 0%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  background-color: white;
  padding: 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 1);
  overflow-y: auto;
  border-radius: 20px;
  transition: all 0.3s ease;
}
/* !Recipe pop-up */

/*! LOADER */
.loader-container {
  width: 100%;
  margin: auto;
  margin-bottom: 100vh;
}
.loader {
  margin: auto;
  /* display: none; */
  width: 40px;
  aspect-ratio: 1;
  color: firebrick;
  position: relative;
  background: conic-gradient(from 134deg at top, currentColor 92deg, #0000 0)
      top,
    conic-gradient(from -46deg at bottom, currentColor 92deg, #0000 0) bottom;
  background-size: 100% 50%;
  background-repeat: no-repeat;
}
.loader:before {
  content: "";
  position: absolute;
  inset: 0;
  --g: currentColor 14.5px, #0000 0 calc(100% - 14.5px), currentColor 0;
  background: linear-gradient(45deg, var(--g)),
    linear-gradient(-45deg, var(--g));
  animation: l7 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}
@keyframes l7 {
  33% {
    inset: -10px;
    transform: rotate(0deg);
  }
  66% {
    inset: -10px;
    transform: rotate(90deg);
  }
  100% {
    inset: 0;
    transform: rotate(90deg);
  }
}

/* !Chatbot */
.chat-bot-container {
  background-color: #f5f5f5;
  padding: 15px;
  z-index: 1001;
  border: 3px dashed firebrick;
  border-radius: 20px;
  display: none;
  position: fixed;
  bottom: 50px;
  left: 70px;
  width: 400px;
  height: 500px;
  overflow: hidden;
}

.header {
  background-color: #002423;
  color: white;
  padding: 10px;
  display: flex;
  margin: -15px;
  align-items: center;
}

.header-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ccc;
  margin-right: 10px;
  flex-shrink: 0;
}

.header-icon {
  font-size: 24px;
  margin-right: 10px;
}

.active-icon {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.chat-title {
  font-size: 18px;
  font-weight: bold;
  color: bisque;
}

.chat-container {
  max-width: 400px;
  max-height: 350px;
  margin: 20px auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow: scroll;
}

.message {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 10px;
  max-width: 70%;
  display: flex;
  align-items: center;
}

.outgoing {
  background-color: #dcf8c6;
  align-self: flex-end;
  justify-content: flex-end;
}

.incoming {
  background-color: #e4e4e4;
  justify-content: flex-start;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.message-content {
  word-wrap: break-word;
}

.message-time {
  font-size: 12px;
  color: #666;
  margin-left: auto;
}

.message-input {
  display: flex;
  align-items: center;
  margin-top: 20px;
  position: absolute;
  bottom: 10px;
  width: 94%;
}

.message-input input[type="text"] {
  flex: 1;
  padding: 13px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
}

.message-input button {
  background-color: #002423;
  color: white;
  border: none;
  padding: 10px 0px !important;
  margin-left: 5px;
  border-radius: 50%;
  cursor: pointer;
}

.message-input button:hover {
  background-color: #089792;
}

.show-bot-btn {
  position: fixed;
  bottom: 10px;
  left: 10px;
}
@media screen and (max-width: 480px) {
  .chat-bot-container {
    max-width: 270px;
  }
  .chat-container {
    padding: 0;
  }
}
/* !Chatbot */
