.view-container {
  display: flex;
  flex-grow: 1;
  flex-wrap: wrap;
  width: 90%;
  padding: 12px;
}

.item-container {
  width: 100%;
  flex: 0 25%;
  padding: 12px;
}

.item-container.home {
  flex: 0 20%;
}

.item-frame {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-item);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.item-image-product {
  width: 80%;
}

.text-name {
  font-weight: 500;
  color: var(--text-color-primary);
  font-size: clamp(12px, 2vw, 16px);
  line-height: 1rem;
}

.text-category {
  font-weight: 300;
  font-size: clamp(12px, 2vw, 16px);
  text-transform: uppercase;
  color: var(--text-color-third);
}

.text-price {
  font-weight: 500;
  color: var(--text-color-third);
  font-size: clamp(12px, 2vw, 16px);
}

.icon {
  position: absolute;
  transition: transform 0.2s ease-in-out;
  border-radius: 50%;
}

.icon.plus {
  bottom: 8px;
  right: 8px;
}

.icon:hover {
  background-color: rgb(207, 207, 204);
}

/* Hero section */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex: 0 50%;
}

.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-grow: 1;
  min-height: 100vh;
  border: 1px solid var(--text-color-third);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero a {
  width: fit-content;
  padding: 1rem;
  border: double 3px var(--text-color-third);
  color: var(--text-color-primary);
  background-color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  font-size: clamp(12px, 2vw, 1.2em);
}

.hero a:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.hero.left {
  background-image: url("../images/hero/cafe.jpg");
  flex: 1;
}

.hero.right {
  background-image: url("../images/hero/food.jpg");
  flex: 1;
}

/* product page */
.view-container.product {
  justify-content: center;
}

.item-container.product {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  padding: 2rem 0;
}

.image-frame {
  flex: 1;
}

.item-detail {
  flex: 1;
}

.image-frame,
.item-detail {
  padding: 2rem 0;
}

.text-name-product {
  font-size: clamp(12px, 2vw, 2em);
  font-weight: 600;
  line-height: 1.1;
  padding: 1em 0;
}

.text-description {
  font-weight: 300;
  font-size: clamp(12px, 2vw, 1.5em);
}

.item-image-product.product {
  width: 90%;
}

.label-container {
  display: flex;
  gap: 12px;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.label {
  border: solid 1px var(--bg-item);
  border-radius: 24px;
  padding: 4px 12px;
  background-color: #ade8f4;
  font-size: clamp(12px, 2vw, 1.3em);
}

/* buttons */
.back-button {
  font-size: clamp(12px, 2vw, 1.5em);
}

/* badges */
.badge-container {
  position: absolute;
  transition: transform 0.2s ease-in-out;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  text-transform: uppercase;
  color: var(--text-color-primary);
  border: solid 1px var(--bg-item);
  border-radius: 24px;
  padding: 4px 12px;
  background-color: #ffffff;
  font-size: clamp(12px, 2vw, 1em);
}

.badge.new {
  background-color: var(--bg-badge);
}

/* accordion */
details {
  border-radius: 5px;
  border-bottom: 2px solid var(--bg-item);
  margin-bottom: 10px;
  padding: 1rem 0;
  cursor: pointer;
  font-size: clamp(12px, 2vw, 1.3em);
  list-style: none;
}

details p {
  font-weight: 300;
  padding: 8px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}

@media (max-width: 768px) {
  .item-container {
    flex: 0 33%;
  }

  .item-container.home {
    flex: 0 33%;
  }

  .badge-container {
    gap: 2px;
  }

  .badge {
    font-size: clamp(8px, 2vw, 1em);
  }

  .hero.left {
    display: none;
  }
}

@media (max-width: 450px) {
  .view-container.product {
    width: 80%;
  }

  .item-container {
    flex: 0 50%;
  }

  .item-container.home {
    flex: 0 50%;
  }

  .item-container.product {
    flex-direction: column;
    padding: 2rem 0;
  }

  .image-frame,
  .item-detail {
    padding: 0;
  }

  details {
    padding: 12px 0;
  }

  .item-image-product.product {
    width: 100%;
    align-items: center;
  }

  .hero.left {
    display: none;
  }

  .badge-container {
    display: none;
  }
}
