:root {
  --card-gap: 20px;
  --card-max-width: 330px;
  --card-radius: 12px;
  --card-padding: 16px;
  --accent: #128e3e;
}

body {
  margin: 0;
  padding: 0px;
  color: #222;
  font-family: Arial, sans-serif;
}

.mhl-product-showcase-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px;
}

/* GRID principal */
.mhl-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
  align-items: stretch;
  grid-auto-rows: 1fr;
}

/* CARD */
.mhl-product-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.mhl-product-image-container {
  width: 100%;
  padding-top: 100%;
  background-color: #f2f2f2;
  border-radius: 8px;
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
}

.mhl-product-image-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mhl-product-tag {
  position: absolute;
  top: 0px;
   left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 700;
  background: #fff;
  color: #020202;
  white-space: nowrap;
}

/* TITULO */
.mhl-product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* DESCRIÇÃO */
.mhl-product-description {
  font-size: 0.92rem;
  color: #505452;
  margin-bottom: 12px;
  line-height: 1.4;
  flex-grow: 1;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PREÇO */
.mhl-product-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #222;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* VOUCHER */
.mhl-product-voucher {
  margin-bottom: 10px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.mhl-product-voucher p {
  margin: 6px 0;
  font-size: 0.87rem;
  color: #666;
}

.mhl-voucher-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8f8f8;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.12s;
}

.mhl-voucher-code:active {
  background: #ececec;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
}

/* BOTÃO */
.mhl-product-button {
  display: block;
  width: 100%;
  padding: 12px 10px;
  background: linear-gradient(135deg, #128e3e, #128e3e, #128e3e);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 10px;
  border: none;
  cursor: pointer;
}

.mhl-product-button:hover {
  filter: brightness(0.95);
}

/* Loading */
.mhl-loading-message {
  text-align: center;
  padding: 40px 0;
  color: #666;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .mhl-products-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 12px;
    align-items: stretch;
  }

  .mhl-product-card {
    flex: 0 0 70%;
    max-width: 340px;
    scroll-snap-align: start;
    height: auto;
  }
}

@media (max-width: 600px) {
  .mhl-product-card {
    flex: 0 0 85%;
  }
}
