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

body {
  align-items: center;
  height: 100vh;
  width: 100%;
}

/* Full-screen containers with background images */
.container {
  height: 100vh; /* Full viewport height */
  width: auto; /* Full viewport width */
  background-size: cover; /* Ensure background covers full area */
  background-position: center; /* Center the background image */
  background-color: white;
  align-items: center;
  color: white;
  font-size: 2rem;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.wrapper {
  width: auto;
  height: 41rem;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  box-shadow: 0px 0px 50px 2px #071c78;
  overflow: hidden;
  border-radius: 25px;
  background-image: url(background.jpg);
}

.row {
  display: flex;
  justify-content: space-between;
}

.wrapper-buttons {
  display: flex;
  justify-content: space-between;
  margin: 10px 25px;
  padding-top: 12px;
}

.cart-button,
.location-button {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  font-size: medium;
  margin-right: auto;
  align-items: center;
  background-color: #11b4ff;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 10px;
}

.cart-button:hover,
.location-button:hover {
  background-color: #004869;
}

.search-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 10px 5px;
  position: relative;
}

.search-bar input {
  width: 0px;
  height: 35px;
  padding: 10px;
  background-color: transparent;
  border-right: none;
  border-radius: 20px 20px 20px 20px;
  outline: none;
  transition: width 0.5s ease, opacity 0.5s ease;
  visibility: hidden;
  opacity: 0;
}

.search-bar input.visible {
  width: 200px;
  opacity: 1;
  visibility: visible;
}

.search-bar button {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  font-size: medium;
  padding-top: 12px;
  background-color: #11b4ff;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 20px;
}

.search-bar button:hover {
  background-color: #004869;
}

.hidden {
  display: none;
}

.product-suggestions {
  position: absolute;
  background-color: transparent;
  color: #000000;
  font-size: small;
  text-align: left;
  width: 200px; /* Match the input width */
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  right: 80px;
  top: 10%;
}

.product-suggestions.visible {
  display: block;
}

.product-suggestions div {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.product-suggestions div:last-child {
  border-bottom: none;
}

.product-suggestions div:hover {
  background-color: #c9c9fd;
}

.cart-section {
  position: absolute;
  left: 100px;
  top: 75px;
  width: 70rem;
  height: auto;
  background-color: whitesmoke;
  opacity: 0.9;
  border: 1px solid #ccc;
  color: black;
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 10;
}

.cart-section.visible {
  display: block;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.cart-item img {
  width: 50px;
  margin-right: 10px;
}

.cart-item h4 {
  margin: 0;
  flex-grow: 1;
  text-align: centre;
}

.cart-item p {
  margin-right: 5px;
  text-align: right;
}

#buy-now-button {
  padding: 10px 15px;
  background-color: #1f06ff;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 50%;
}

#buy-now-button:hover {
  background-color: #03002c;
}

#total-price {
  font-size: 1.5rem;
  margin-top: 20px;
  text-align: right;
}

.remove-from-cart {
  width: 40px;
  height: 40px;
  padding: 5px 10px;
  font-size: small;
  background-color: transparent;
  border-radius: 50%;
}

.remove-from-cart i {
  margin-top: 6px;
  color: #000000;
  font-size: medium;
}

.remove-from-cart:hover {
  background-color: #bc1010; /* Background color on hover */
}

.remove-from-cart:hover i {
  color: white;
}

.logo {
  padding-top: 90px;
  height: 170px;
  width: auto;
}

@font-face {
  font-family: myFirstFont;
  src: url(SUSE-VariableFont_wght.ttf);
}

@font-face {
  font-family: ProductFont;
  src: url(Poppins-Bold.ttf);
}

@font-face {
  font-family: NumberFont;
  src: url(Antheroma-Bold.ttf);
}

@font-face {
  font-family: ListFont;
  src: url(Roboto-Bold.ttf);
}

h1 {
  font-family: myFirstFont;
  src: url(SUSE-VariableFont_wght.ttf);
  font-weight: bold;
  font-size: 48px;
  color: #041c86;
  display: flex;
  justify-content: center;
  align-items: center;
}

h3 {
  font-family: ProductFont;
}

p {
  font-family: NumberFont;
  font-weight: bolder;
}

li {
  font-family: ListFont;
  margin-bottom: 4px;
}

.slogan {
  display: list-item;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  width: auto;
  padding-left: 10%;
  padding-right: 10%;
  text-align: center;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-size: 1000px 100px;
}

.wave.wave1 {
  background-image: url(wave2.svg);
  animation: animate 30s linear infinite;
  z-index: 4;
  opacity: 0.9;
  animation-delay: 0ms;
  bottom: 0px;
}

.wave.wave2 {
  background-image: url(wave4.svg);
  animation: animate2 15s linear infinite;
  z-index: 3;
  opacity: 1;
  animation-delay: -5s;
  bottom: 0px;
}

.wave.wave3 {
  background-image: url(wave1.svg);
  animation: animate 30s linear infinite;
  z-index: 2;
  opacity: 1;
  animation-delay: -2s;
  bottom: 15px;
}

.wave.wave4 {
  background-image: url(wave3.svg);
  animation: animate 5s linear infinite;
  z-index: 1;
  opacity: 1;
  animation-delay: -5s;
  bottom: 20px;
}

@keyframes animate {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 1000px;
  }
}

@keyframes animate2 {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: -1000px;
  }
}

@keyframes animate3 {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: -1000px;
  }
}

@keyframes animate4 {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 1000px;
  }
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 45px;
}

button {
  font-family: myFirstFont;
  src: url(SUSE-VariableFont_wght.ttf);
  font-weight: bold;
  padding: 10px 10px;
  background-color: #302d3b;
  color: beige;
  font-size: 30px;
  border-radius: 12%;
}

.products {
  padding: 20px;
  margin-top: 50px;
  text-align: center;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 7rem;
  margin-top: 50px;
}

.product-card {
  position: relative;
  background-color: rgb(161, 175, 255);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgb(31, 18, 207);
  transition: transform 0.2s, left 0.5s ease, right 0.5s ease;
  width: 13rem;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  z-index: 1;
  display: inline-block;
  vertical-align: top;
}

.product-card:hover {
  background-color: #b1c6ff;
  transform: scale(1.05);
}

.product-card img {
  width: 70%;
  height: auto;
  border-radius: 10px;
}

.product-card h3 {
  font-size: 20px;
  margin: 10px 0;
}

.product-card p {
  font-size: 18px;
  color: #000000;
}

/*Hide product details*/
.product-details {
  display: none;
  text-align: centre;
  align-items: center;
  width: 18rem;
  padding: 20px;
  border-radius: 10px;
  font-size: 18px;
  overflow-y: auto;
  vertical-align: top;
}

.product-card.expanded {
  position: fixed;
  top: 30%;
  left: 25rem;
  transform: translateY(-50%);
  z-index: 1000;
  width: 13rem;
}

.add-to-cart {
  width: 40px;
  height: 40px;
  padding: 7px 5px;
  background-color: rgb(26, 57, 194);
  color: #ffffff;
  border-radius: 50%;
  font-size: large;
}
.product-details p {
  padding-bottom: 15px;
}

.product-card.expanded .product-details {
  display: block;
  position: fixed;
  top: 0;
  right: 0px;
  left: 15rem;
  height: auto;
  padding: 2rem;
  box-sizing: border-box;
  z-index: 999;
  background-color: rgb(188, 191, 223);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 1;
  overflow-y: auto;
}

.blurred {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.banner {
  display: flex;
  justify-content: center;
  opacity: 1;
}

.body.expanded {
  overflow: hidden;
}

#scrollToTopBtn {
  position: fixed;
  z-index: 4;
  bottom: 2rem;
  right: 1.7rem;
  width: 60px;
  height: 60px;
  background-color: #004c75;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  transition: background-color 0.3s;
}

#scrollToTopBtn:hover {
  background-color: #05071b;
}

.float-buttons {
  position: fixed;
  z-index: 4;
  bottom: 6rem;
  right: 1.7rem;
  flex-direction: column;
  padding-bottom: 5px;
}

.whatsapp-button {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 28px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.floating-button:hover {
  transform: scale(1.1);
}

.call-button {
  width: 60px;
  height: 60px;
  background-color: #37b4f1;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 28px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.about {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 10px;
  margin-bottom: 35px;
}

.about i {
  font-size: x-large;
  color: white;
}

footer {
  text-align: centre;
  color: #ffffff;
  background-color: #041c86;
  padding: 2rem;
}
footer p {
  display: flex;
  justify-content: center;
}

footer h6 {
  display: none;
  opacity: 0;
  visibility: hidden;
}

/*Responsive for smaller phones*/
@media (max-width: 375px) {
  .container {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    height: 100vh;
  }
  .search-bar input.visible {
    width: 110px;
  }

  .product-suggestions {
    right: 30px;
  }

  .cart-section {
    left: 1px;
    width: calc(100%-2px);
    max-width: 23rem;
  }
  .cart-section h3 {
    font-size: x-large;
  }
  .cart-section h4 {
    font-size: medium;
  }
  .cart-section p {
    font-size: large;
  }
  .cart-section img {
    width: 10%;
  }
  #total-price {
    font-size: small;
  }

  .logo {
    padding-top: 80px;
  }

  .logo img {
    width: 80%;
  }
  .slogan {
    padding-top: 70px;
    padding-bottom: 0;
  }

  .slogan h1 {
    font-size: x-large;
    padding-top: 0px;
    margin-top: 0px;
  }

  .product-grid {
    gap: 1rem;
  }
  .product-card {
    width: 40vw;
  }
  .product-card h3 {
    font-size: small;
  }
  .product-card img {
    width: 60%;
  }
  .banner img {
    width: 100%;
  }

  .product-card.expanded {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 20rem;
    max-height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
  }
  .product-card.expanded h3,
  p {
    font-size: large;
  }
  .product-card.expanded img {
    width: 30%;
  }

  .product-card.expanded .product-details {
    position: relative;
    height: auto;
    box-sizing: border-box;
    top: 100%;
    left: -17px;
    gap: 10rem;
    margin: 1rem;
    background-color: rgb(161, 175, 255);
  }
  .product-details p {
    font-size: medium;
  }
}

/*Responsive Code for Medium phones*/
@media (min-width: 376px) and (max-width: 414px) {
  .container {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    height: 80vh;
  }
  .search-bar input.visible {
    width: 130px;
  }

  .product-suggestions {
    right: 20px;
  }
  .cart-section {
    left: 1px;
    width: calc(100%-2px);
    max-width: 23rem;
  }
  .cart-section h3 {
    font-size: x-large;
  }
  .cart-section h4 {
    font-size: medium;
  }
  .cart-section p {
    font-size: large;
  }
  .cart-section img {
    width: 10%;
  }
  #total-price {
    font-size: small;
  }

  .logo img {
    width: 80%;
  }

  .slogan h1 {
    font-size: x-large;
  }

  .product-grid {
    gap: 1rem;
  }
  .product-card {
    width: 40vw;
  }
  .product-card h3 {
    font-size: small;
  }
  .product-card img {
    width: 70%;
  }
  .banner img {
    width: 100%;
  }
  .product-card.expanded img {
    width: 40%;
  }

  .product-card.expanded {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 20rem;
    max-height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
  }
  .product-card.expanded h3,
  p {
    font-size: large;
  }

  .product-card.expanded .product-details {
    position: relative;
    height: auto;
    box-sizing: border-box;
    top: 100%;
    left: -17px;
    gap: 10rem;
    margin: 1rem;
    background-color: rgb(161, 175, 255);
  }
  .product-details p {
    font-size: medium;
  }
}

/*Responsive Code for Larger phones*/

@media (min-width: 415px) and (max-width: 600px) {
  .container {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    height: 80vh;
  }
  .search-bar input.visible {
    width: 135px;
  }

  .product-suggestions {
    right: 30px;
  }

  .cart-section {
    left: 1px;
    width: calc(100%-2px);
    max-width: 25rem;
  }
  .cart-section h3 {
    font-size: x-large;
  }
  .cart-section h4 {
    font-size: medium;
  }
  .cart-section p {
    font-size: large;
  }
  .cart-section img {
    width: 10%;
  }
  #total-price {
    font-size: small;
  }

  .logo img {
    width: 80%;
  }

  .slogan h1 {
    font-size: x-large;
  }

  .product-grid {
    gap: 1rem;
  }
  .product-card {
    width: 40vw;
  }
  .product-card h3 {
    font-size: small;
  }
  .product-card img {
    width: 70%;
  }
  .banner img {
    width: 100%;
  }
  .product-card.expanded img {
    width: 40%;
  }

  .product-card.expanded {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 20rem;
    max-height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
  }
  .product-card.expanded h3,
  p {
    font-size: large;
  }

  .product-card.expanded .product-details {
    position: relative;
    height: auto;
    box-sizing: border-box;
    top: 100%;
    left: -17px;
    gap: 10rem;
    margin: 1rem;
    background-color: rgb(161, 175, 255);
    box-shadow: 0px 0px 30px 2px #071c78;
  }
  .product-details p {
    font-size: medium;
  }
}

/*Responsive for 1920 displays*/
@media (min-width: 1440px) and (max-width: 4000px) {
  .wrapper {
    height: 46rem;
  }

  .container {
    height: 100vh;
  }

  .slogan {
    padding-bottom: 3rem;
    font-size: larger;
  }
  .banner img {
    height: auto;
    width: 680px;
  }

  .product-card.expanded {
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
  }

  .product-details {
    top: 50%;
    right: 50%;
    transform: translate(-0%, -10%);
  }
}

@media(min-width: 1366px) and (max-height: 768px) {
  .banner img {
    height: auto;
    width: 680px;
  }
}
