/* J8.2 - preview visual: sem commit antes da aprovação */
.product-card { position: relative; }
.product-card > .pulso-favorite-form, .product-card > .pulso-favorite-login { position: absolute; top: 12px; right: 12px; z-index: 2; }
.pulso-favorite-form { display: inline-flex; }
.pulso-favorite-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .5rem .75rem; border: 1px solid var(--color-border, #ddd); border-radius: 999px; background: var(--color-surface, #fff); color: var(--color-text, #222); cursor: pointer; font: inherit; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.pulso-favorite-button span[aria-hidden] { font-size: 1.35rem; line-height: 1; }
.pulso-favorite-button.is-selected { color: #b52f50; border-color: #b52f50; }
.pulso-favorite-button:hover, .pulso-favorite-button:focus-visible { outline-offset: 3px; border-color: var(--color-primary, #222); }
.product-card .pulso-favorite-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pulso-favorites-page { padding-block: clamp(2rem,5vw,5rem); }
.pulso-favorites-page h1 { margin: 0 0 1rem; }
.pulso-favorites-empty { padding: 2rem; border: 1px solid var(--color-border,#ddd); border-radius: 1rem; }

/* J8.2 UX: acesso amigável, sem JSON visível ao comprador */
.pulso-account-gateway { min-height: 52vh; padding: clamp(3rem, 7vw, 6rem) 1.25rem; display: grid; place-items: center; }
.pulso-account-card { width: min(100%, 470px); padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid #dddcd1; border-radius: 20px; background: #fffefa; box-shadow: 0 12px 38px rgba(26, 45, 36, .05); color: #1d3028; }
.pulso-account-symbol { font-size: 2.5rem; line-height: 1; margin-bottom: .75rem; }
.pulso-account-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .15em; color: #365c4b; }
.pulso-account-card h1 { font-size: clamp(1.65rem, 4vw, 2.15rem); line-height: 1.18; margin: .75rem 0 1rem; }
.pulso-account-card > p:not(.pulso-account-eyebrow) { line-height: 1.6; }
.pulso-account-actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.pulso-account-primary, .pulso-account-secondary { display: flex; justify-content: center; align-items: center; text-align: center; min-height: 46px; padding: .7rem 1rem; border-radius: 999px; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.pulso-account-primary { background: #204839; color: white; border: 1px solid #204839; }
.pulso-account-secondary { background: transparent; color: #204839; border: 1px solid #204839; }
.pulso-account-tertiary { display: block; text-align: center; color: #204839; padding: .65rem; text-decoration: underline; }
.pulso-account-footnote, .pulso-account-help { font-size: .875rem; color: #5d6c62; text-align: center; }
.pulso-account-login-form { display: grid; gap: .75rem; margin-top: 1.25rem; }
.pulso-account-login-form label { font-weight: 600; }
.pulso-account-login-form input { width: 100%; min-height: 46px; padding: .7rem .9rem; border: 1px solid #aeb9b0; border-radius: 10px; background: #fff; font: inherit; }
.pulso-account-login-form button { width: 100%; margin-top: .4rem; }
.pulso-account-card a:focus-visible, .pulso-account-card button:focus-visible, .pulso-account-card input:focus-visible { outline: 3px solid #8ab4a0; outline-offset: 3px; }

/* J8.2: grade de favoritos independente da grade do catálogo. */
.pulso-favorites-page .catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.5rem);
  align-items: start;
}
.pulso-favorites-page .catalog-product-grid > .product-card { min-width: 0; width: 100%; }
.pulso-favorite-form.is-pending .pulso-favorite-button { opacity: .65; cursor: wait; }
.pulso-favorite-feedback { position: fixed; inset: auto 1rem 1rem auto; z-index: 1000; max-width: min(360px, calc(100vw - 2rem)); padding: .8rem 1rem; border-radius: .75rem; color: #fff; background: #204839; box-shadow: 0 8px 30px #0002; }
@media (max-width: 950px) { .pulso-favorites-page .catalog-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .pulso-favorites-page .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; } }
