/* product02：product01 字段/价格/心形 + post02 窄屏三列表面卡片 */

.product02 {
  padding: var(--section-y) var(--page-pad);
  color: var(--color-text);
}

.product02__surface {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--section-y) var(--page-pad);
  background: var(--color-surface);
  border-radius: var(--radius);
}

.product02__inner {
  max-width: var(--content-max);
  margin-inline: auto;
}

.product02__head {
  max-width: var(--head-max);
  margin: 0 auto var(--space-6);
  text-align: center;
}

.product02__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.25;
}

.product02 [data-post-section-desc] {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  line-height: var(--lh-body);
}

.product02__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.product02__tab {
  padding: var(--space-2) var(--space-4);
  border: var(--line) solid var(--color-border);
  border-radius: var(--btn-radius);
  color: var(--color-text-muted);
  background: var(--color-bg);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.product02__tab:hover,
.product02__tab:focus-visible {
  color: var(--color-text);
  border-color: var(--color-text);
}

.product02__tab[aria-selected="true"],
.product02__tab[data-active] {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: transparent;
}

.product02 [data-post-panel]:not([data-active]) {
  display: none;
}

.product02__empty {
  padding: var(--space-6) 0;
  text-align: center;
  color: var(--color-text-muted);
}

.product02__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

.product02__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  border-radius: calc(var(--radius) * 2.5);
  transform: scale(1);
  transition: transform var(--t-fast) var(--ease);
}

.product02__card:hover,
.product02__card:focus-within {
  transform: scale(1.02);
}

.product02__media {
  margin: 0;
  height: 16.25rem;
  overflow: hidden;
  background: var(--color-border);
}

.product02__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product02__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: var(--space-5);
  padding: var(--space-5);
}

.product02__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1 1 auto;
}

.product02__headline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product02__price {
  font-weight: 600;
}

.product02__price:empty {
  display: none;
}

.product02__price--login {
  font-weight: 400;
  color: var(--color-text-muted);
}

.product02__price .price-old {
  margin-inline-start: 0.4em;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product02__price .price-tag {
  display: inline-block;
  margin-inline-start: 0.4em;
  padding: 0.1em 0.35em;
  font-size: 0.75em;
  font-weight: 500;
  color: var(--color-primary, #0f766e);
  border: 1px solid currentColor;
  border-radius: 2px;
  vertical-align: middle;
}

.product02__wish {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: var(--line) solid var(--color-border);
  border-radius: 50%;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.product02__wish svg {
  width: 1.125rem;
  height: 1.125rem;
}

.product02__wish:hover,
.product02__wish:focus-visible {
  color: var(--color-text);
  border-color: var(--color-text);
}

.product02__wish[aria-pressed="true"] {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.product02__wish[aria-pressed="true"] path {
  fill: currentColor;
  stroke: currentColor;
}

.product02__cta {
  margin-top: var(--space-6);
  text-align: center;
}

.product02__cta-link {
  display: inline-flex;
  align-items: center;
  padding: var(--btn-pad);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--btn-radius);
  font-weight: 500;
}

.product02__cta-link:hover,
.product02__cta-link:focus-visible {
  opacity: 0.88;
}

@media (min-width: 768px) {
  .product02__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product02__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
