@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Space+Grotesk:wght@300..700&display=swap');


@font-face {
  font-family: 'Neue Hass';
  src: url('/static/myapp/fonts/NeueHaasDisplayBlack.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* Apply Nordique Pro font to all heading tags (h1, h2, h3, etc.) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Neue Hass', sans-serif;
}

/* Apply Space Grotesk font to all paragraph and anchor tags */
p, a, button, li, ul {
  font-family: 'Inter', sans-serif;
}

body { 
  margin: 0;
  padding: 0px;
  background-color: white;
}

header {
  position:relative;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 1px hsla(0, 0%, 98% / 0.1);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.container {
  margin: auto;
  width: 100%;
}

img {
  width: 100%;
}

.hamburger-menu {
  position: relative;
  font-size: 1.8rem;
  padding: 0 20px;
  cursor: pointer;
}

li {
  list-style: none;
  
}

#cart-icon {
  position: relative;
  font-size: 1.8rem;
  padding: 0 20px;
  cursor: pointer;
}

#cart-icon[data-quantity="0"]::after {
  contain: '';
}

#cart-icon[data-quantity]::after {
  content: attr(data-quantity);
  position: absolute;
  top: 0;
  right: -12;
  width: 20px;
  height: 20px;
  background: #02ac70;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart {
  position: fixed;
  min-height: 100vh;
  top: 0;
  right: -100%;
  width: 360px;
  padding: 20px;
  background-color: rgb(241 245 249);
  border-radius: 4px;
  box-shadow: -2px 0 4px hsl(0, 4%, 15% / 10%);
  transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.cart.active {
  right: 0;
  transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#close-cart {
  cursor: pointer;
}


.cart-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.total {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  border-top: 1px solid black;
}

.total-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1rem;
}

.total-price {
  font-size: 1.075rem;
  margin: 1rem 0 0 0.7rem;
  padding-left: 2px;
}

.checkout-btn {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto 0 auto;
  width: 50%;
  text-align: center;
  cursor: pointer;
}


.cart-item-box {
  display: grid;
  grid-template-columns: 32% 48% 20%;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0 2px;
}

.cart-remove {
  color: #c53030;
  font-size: 24px;
  cursor: pointer
}

.header-photo {
  height: 40vh;
}

.shop-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, auto));
}

.product-box {
  position: relative;
}

.product-img {
  width: 100%;
  height: auto;
  align-content: center;
  border-radius: 4px;
  margin-top: 0.5rem;

}

.sc-container, .cancel-container {
  height: 100vh;
}

.product-box:hover {
  background-color: rgb(241 245 249);
}

.add-cart {
  position: absolute;
  right: 15px;
  bottom: 20px;
  color: white;
  padding: 10px;
  border-radius: 4px;
}

#googleMap{
    width: 80%;
    height: 400px;
    margin: 10px auto;

}

#output{
    text-align: center;
    font-size: 2em;
    margin: 20px auto;
}

.dropdown:hover > .dropdown-content {
	display: block;
}


@media (max-width: 1080px) {
  .nav {
    padding: 14px 0;
  }

  .container {
    margin: 0 auto;
    width: 90%;
  }

  .shop {
    margin-top: 2rem !important;
  }

}

@media (max-width: 400px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    padding: 14px 0;
    align-items: center;
  }

  .cart {
    width: 320px;
  }
}

@media (max-width: 360px) {
  .nav {
    padding: 14px 0;
  }

  .shop {
    margin-top: 1rem !important;
  }

  .cart {
    width: 280px;
  }
}

#autocompleteDropdown {
  position: absolute;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  max-height: 150px;
  overflow-y: auto;
}

#autocompleteDropdown div {
  padding: 5px;
  cursor: pointer;
}