.healeex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.healeex-card {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.healeex-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.healeex-card-body {
  padding: 18px;
}

.healeex-card-kicker {
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.62;
  text-transform: uppercase;
}

.healeex-card-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.healeex-card-meta {
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.72;
}

.healeex-card-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  text-decoration: none;
}

.healeex-empty {
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.025);
}

.healeex-error {
  opacity: 0.82;
}

/* ========================================
   Commerce / HX-35
======================================== */
.healeex-products-grid {
  align-items: stretch;
}

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

.healeex-product-card .healeex-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.healeex-product-image {
  aspect-ratio: 1 / 1;
  background: #fff;
  object-fit: contain;
}

.healeex-product-price {
  margin: 4px 0 12px;
  font-size: 1.08rem;
  font-weight: 700;
}

.healeex-product-description {
  margin: 0 0 18px;
}

.healeex-product-actions {
  margin-top: auto;
  padding-top: 4px;
}

.healeex-buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.healeex-buy-button:hover,
.healeex-buy-button:focus {
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-1px);
}

.healeex-product-detail {
  max-width: 760px;
}

.healeex-product-detail .healeex-product-card {
  height: auto;
}

/* HX-41 · Identity */
.healeex-identity-login,
.healeex-identity-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    text-decoration: none;
}

.healeex-identity-session {
    display: inline-block;
}

/* HX-42 · Unified profile */
.healeex-profile {
  max-width: 720px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: #fff;
}

.healeex-profile__title {
  margin: 0 0 20px;
}

.healeex-profile__form {
  display: grid;
  gap: 16px;
}

.healeex-profile__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.healeex-profile__field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.healeex-profile__field input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.healeex-profile__field input[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.healeex-profile__submit {
  justify-self: start;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.healeex-profile__identity {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.healeex-profile__notice,
.healeex-profile-error,
.healeex-profile-auth-required,
.healeex-profile-login {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

.healeex-profile__notice--success {
  border-color: rgba(0, 100, 0, 0.3);
}

.healeex-profile__notice--error,
.healeex-profile-error {
  border-color: rgba(160, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .healeex-profile__row {
    grid-template-columns: 1fr;
  }
}
