/*
Theme Name: HomeTwinLab Child
Theme URI: https://hometwinlab.io
Description: Child theme for HomeTwinLab based on Astra.
Author: Tim Downing
Template: astra
Version: 1.0.0
Text Domain: hometwinlab-child
*/

/* HomeTwinLab product cards */
.htlab-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 32px auto;
}

.htlab-product-card {
  position: relative;
  background: #fff;
  border: 1px solid #d8dee3;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.htlab-product-card--featured {
  border: 2px solid #0f766e;
  transform: scale(1.04);
}

.htlab-product-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #0f766e;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.htlab-product-kicker {
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.htlab-product-card h2 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.htlab-product-card p {
  font-size: 17px;
  line-height: 1.5;
  color: #475569;
}

.htlab-product-card ul {
  margin: 20px 0;
  padding-left: 20px;
}

.htlab-product-card li {
  margin: 8px 0;
}

.htlab-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 13px 20px;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.htlab-product-button:hover {
  background: #115e59;
  color: #fff;
}

@media (max-width: 1000px) {
  .htlab-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .htlab-product-card--featured {
    transform: none;
  }
}

@media (max-width: 700px) {
  .htlab-products {
    grid-template-columns: 1fr;
  }
}

/* Product page width + equal card heights */
body .entry-content .htlab-products {
  width: min(1200px, calc(100vw - 48px));
  max-width: 1200px;
}

.htlab-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.htlab-product-card .htlab-product-button {
  margin-top: auto;
}

@media (max-width: 700px) {
  body .entry-content .htlab-products {
    width: min(100%, calc(100vw - 28px));
  }
}
