.menu {
  background-color: var(--dark);
  /* background-color: color-mix(in oklab, var(--dark) 60%, transparent); */
  /* backdrop-filter: blur(8px); */
  /* border-bottom: 0.1rem solid var(--dark); */
}

.header {
  width: 100%;
  height: 24rem;
  height: 24rem;
  margin-top: 6.4rem;
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 0;
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.header .section-head {
  max-width: 80rem;
  margin-bottom: 0;
  z-index: 1;
  text-align: center;
}

.header h1 {
  margin-bottom: 1.6rem;
}

.header h1 span {
  display: block;
}

.shop {
  padding-bottom: 2rem;
  background-color: color-mix(in oklab, var(--primary) 5%, transparent);
}

.search {
  display: flex;
  align-items: center;
  position: relative;
}

.search svg {
  position: absolute;
  left: 1rem;
}

.search input {
  padding-left: 3.2rem;
}

.shop-cards {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.4rem;

  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 1023px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (min-width: 1280px) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shop-card {
  width: 100%;
  background-color: var(--white);
  overflow: hidden;
  box-shadow: 0rem 0.4rem 0.4rem rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease-in-out;
}

.shop-card:hover {
  box-shadow: 0rem 0.7rem 1.2rem rgba(0, 0, 0, 0.2);
}

.shop-card .image {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

.shop-card .image .tags {
  display: flex;
  gap: 0.6rem;
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 1;
}

.shop-card .image .tag {
  margin-bottom: 2rem;
  padding: 0.4rem 1rem;
  background-color: color-mix(in oklab, var(--white) 80%, transparent);
  display: inline-block;
  color: var(--dark);
}

.shop-card .image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}

.shop-card:hover .image img {
  transform: scale(1.021);
}

.shop-card .image button {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary);
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 1;
  color: var(--light);
  opacity: 0;
  transition: opacity 0.2s;
}

.shop-card:hover .image button {
  opacity: 1;
}

.shop-card .box {
  padding: 3rem 2rem;
}

.rating {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.rating svg {
  fill: var(--yellow);
  stroke: var(--yellow);
}

.rating span {
  font-size: 1.2rem;
  opacity: 0.8;
}

.shop-card h3 {
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.shop-card:hover h3 {
  color: var(--primary);
}

.shop-card p {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.4rem;
  opacity: 0.7;
}

.shop-card .col {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}

.shop-card .price {
  font-size: 2rem;
  font-weight: 700;
}

/*
=============================================================
== DIALOG PRODUCT ===========================================
=============================================================
*/

.dialog-product {
  display: inital;
}

.dialog-product .box {
  width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 3rem;
  background-color: var(--white);
  display: grid;
  grid-template-columns: auto;
  gap: 2rem;
  overflow: auto;
  box-shadow: 0rem 0.2rem 0.5rem -0.1rem rgba(0, 0, 0, 0.2);
}

.dialog-product img {
  width: 100%;
}

.dialog-product h3 {
  margin-bottom: 0.6rem;
}

.dialog-product .h3-text {
  margin-bottom: 2rem;
  font-size: 1.4rem;
  opacity: 0.7;
}

.dialog-product .col {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dialog-product label {
  padding: 1rem;
  border: 0.1rem solid color-mix(in oklab, var(--dark) 20%, transparent);
  cursor: pointer;
}

.dialog-product label input {
  display: none;
}

.dialog-product label:has(input:checked) {
  border: 0.1rem solid var(--primary);
  outline: 0.3rem solid color-mix(in oklab, var(--primary) 50%, transparent);
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
}

.dialog-product .size,
.dialog-product .ingre {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.4rem;
}

.dialog-product .size span,
.dialog-product .ingre span {
  font-size: 1.2rem;
}

.quantity {
  display: flex;
  gap: 2rem;
}

.quantity .row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
}

.total {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  display: flex;
  flex-direction: column;
}

.price span {
  font-size: 2.4rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .dialog-product .box {
    max-width: 64rem;
    max-height: 80vh;
  }

  .dialog-product img {
    width: 20rem;
  }

  .dialog-product .box {
    grid-template-columns: auto auto;
  }
}
