.elf-products {
  width: 100%;
}

.elf-products__heading {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 500;
}

.elf-products__grid {
  display: grid;
  gap: 1.25rem;
}

.elf-products__grid--1 { grid-template-columns: 1fr; }
.elf-products__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.elf-products__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.elf-products__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .elf-products__grid--3,
  .elf-products__grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .elf-products__grid--2,
  .elf-products__grid--3,
  .elf-products__grid--4 {
    grid-template-columns: 1fr;
  }
}

.elf-product-card {
  background: #fafafa;
  border: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.elf-product-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #eee;
  overflow: hidden;
}

.elf-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.elf-product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #999;
  font-size: 0.875rem;
}

.elf-product-card__body {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.elf-product-card__code {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

.elf-product-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
}

.elf-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.elf-product-card__short {
  margin: 0;
  color: #555;
  font-size: 0.925rem;
  line-height: 1.45;
  flex: 1;
}

.elf-product-card__link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 0.85rem;
  width: fit-content;
}

.elf-product-card__link:hover {
  background: #111;
  color: #fff;
}

.elf-products__empty {
  color: #666;
  padding: 1rem 0;
}

/* Single product */
.elf-single {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.elf-single__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .elf-single__grid {
    grid-template-columns: 1fr;
  }
}

.elf-single__gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.elf-single__code {
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.elf-single__title {
  margin: 0.35rem 0 1rem;
  font-size: 2rem;
  font-weight: 500;
}

.elf-single__specs {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.elf-single__specs th,
.elf-single__specs td {
  border-bottom: 1px solid #eee;
  text-align: left;
  padding: 0.55rem 0.25rem;
  font-size: 0.95rem;
}

.elf-single__specs th {
  color: #777;
  font-weight: 500;
  width: 40%;
}
