.menu {
  background-color: 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;
}

.workshops {
  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;
}

.workshops-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);
  }
}

.workshops-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;
}

.workshops-card:hover {
  box-shadow: 0rem 0.7rem 1.2rem rgba(0, 0, 0, 0.2);
}

.workshops-card .image {
  aspect-ratio: 5/3;
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

.workshops-card .image .tags {
  display: flex;
  gap: 0.6rem;
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 1;
}

.workshops-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);
}

.workshops-card .image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}

.workshops-card:hover .image img {
  transform: scale(1.021);
}

.workshops-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;
}

.workshops-card:hover .image button {
  opacity: 1;
}

.workshops-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;
}

.workshops-card h3 {
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.workshops-card:hover h3 {
  color: var(--primary);
}

.workshops-card p {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.4rem;
  opacity: 0.7;
}

.workshops-card .details {
  margin-top: 2rem;
  margin-bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font: var(--f-text-s);
}

.workshops-card .details .icon {
  margin-right: 0.4rem;
  color: var(--primary);
}

.workshops-card .spots .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.workshops-card .spots p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
}

.workshops-card .spots .percent {
  width: 100%;
  height: 0.5rem;
  margin-top: 0.4rem;
  background-color: color-mix(in oklab, var(--primary) 20%, transparent);
}

.workshops-card .spots .amount {
  height: 100%;
  background-color: var(--primary);
}

.workshops-card .col {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}

.workshops-card .price {
  display: inline;
  font-size: 2.4rem;
  font-weight: 700;
}
.workshops-card .price span {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.7;
}

/*
=============================================================
== DIALOG WORKSHOP ==========================================
=============================================================
*/

.dialog-workshop .box {
  width: 100%;
  max-height: 100vh;
  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-workshop img {
  width: 100%;
}

.dialog-workshop h3 {
  margin-bottom: 0.6rem;
}

.dialog-workshop .h3-text {
  margin-bottom: 2rem;
  font-size: 1.4rem;
  opacity: 0.7;
}

.dialog-workshop .col {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dialog-workshop label {
  padding: 1rem;
  border: 0.1rem solid color-mix(in oklab, var(--dark) 20%, transparent);
  cursor: pointer;
}

.dialog-workshop label input {
  display: none;
}

.dialog-workshop 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-workshop .size,
.dialog-workshop .ingre {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.4rem;
}

.dialog-workshop .size span,
.dialog-workshop .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-workshop .box {
    max-width: 64rem;
    max-height: 80vh;
  }

  .dialog-workshop img {
    width: 20rem;
  }

  .dialog-workshop .box {
    grid-template-columns: auto auto;
  }
}
