Untitled

 avatar
unknown
css
2 years ago
1.1 kB
5
Indexable
.product {
  position: relative;
  overflow: hidden;
  max-width: 600px;
  border-radius: 0.5rem;
}
.product__image {
  position: relative;
  max-width: 100%;
}
picture,
img {
  position: relative;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}
.product__info {
  background-color: hsl(0, 0%, 100%);
  padding: 1.65rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product__category {
  letter-spacing: 0.4rem;
  font-size: 0.75rem;
  line-height: 1;
}
.product__title {
  color: var(--dark-blue);
  line-height: 1;
  font-family: var(--font-fraunces);
  font-size: 2rem;
}

.product__prices {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.price__current {
  font-size: 2rem;
  color: var(--dark-cyan);
  font-family: var(--font-fraunces);
  font-weight: 700;
}
.price__original {
  text-decoration: line-through;
}
@media screen and (min-width: 768px) {
  .product {
    display: flex;
  }
  .product__info {
    padding: 1.75rem 2rem;
    gap: 1.35rem;
  }
  .product__title {
    font-size: 2.25rem;
  }
  picture,
  .product__info {
    width: 100%;
  }
}
Editor is loading...