/* ============================================================
   BLOCO: commerce-v030
   FUNCAO: catalogo, contratacao e retorno de pagamento
   ============================================================ */
.commerce-body { min-height: 100vh; background: radial-gradient(circle at 80% 0, rgba(10,42,94,.55), transparent 34%), var(--color-bg); }
.commerce-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(212,168,67,.20); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
.commerce-nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.commerce-brand { display: flex; align-items: center; gap: .75rem; font-weight: 800; }
.commerce-brand img { width: 88px; height: 58px; object-fit: contain; }
.commerce-nav__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.commerce-back { min-height: 44px; display: inline-flex; align-items: center; padding: .65rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text); }
.commerce-hero { padding: 4.5rem 0 2.5rem; text-align: center; }
.commerce-kicker { color: var(--color-accent-lg); text-transform: uppercase; letter-spacing: .12em; font-size: var(--text-xs); font-weight: 800; }
.commerce-hero h1 { max-width: 760px; margin: .8rem auto 1rem; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.055em; }
.commerce-hero p { max-width: 700px; margin: 0 auto; color: var(--color-text-muted); font-size: var(--text-lg); }
.commerce-notice { display: flex; gap: .75rem; max-width: 820px; margin: 1.8rem auto 0; padding: 1rem 1.2rem; border: 1px solid rgba(212,168,67,.28); border-radius: var(--radius-md); background: rgba(212,168,67,.07); color: var(--color-text-muted); text-align: left; }
.commerce-access { display: grid; gap: 1rem; max-width: 920px; margin: 0 auto 1.5rem; padding: 1.15rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-2); }
.commerce-access--active { border-color: var(--color-accent); }
.commerce-access h2 { margin: 0 0 .35rem; font-size: var(--text-lg); }
.commerce-access p { margin: 0; color: var(--color-text-muted); }
.commerce-access strong { display: block; margin-bottom: .3rem; color: var(--color-text); font-size: var(--text-lg); }
.commerce-access span { display: block; color: var(--color-text-muted); }
.commerce-access--active > a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-weight: 800; }
.commerce-access__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.commerce-access__actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-weight: 800; }
.commerce-access__actions a:first-child { color: var(--color-surface-text); border-color: transparent; background: var(--gradient-cta); }
.commerce-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 0 2rem; }
.commerce-filter { min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text-muted); background: var(--color-bg-2); cursor: pointer; font: inherit; font-weight: 700; }
.commerce-filter[aria-pressed="true"] { color: var(--color-surface-text); background: var(--gradient-gold); border-color: transparent; }
.service-catalog { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-bottom: 5rem; }
.service-product { display: flex; flex-direction: column; padding: 1.3rem; scroll-margin-top: 100px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--gradient-card); box-shadow: var(--shadow-sm); transition: transform var(--motion-standard) var(--motion-ease), border-color var(--motion-fast) ease; }
.service-product:hover { transform: translateY(-3px); border-color: rgba(212,168,67,.65); }
.service-product:target { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.service-product__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.service-product__authority { color: var(--color-menu-cyan); font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.service-product[data-authority="SINARM"] .service-product__authority { color: var(--color-menu-violet); }
.service-product[data-audience="PJ"] .service-product__authority { color: var(--color-menu-amber); }
.service-product__category { font-size: .7rem; color: var(--color-text-muted); }
.service-product h2 { margin: 0 0 .65rem; font-size: 1.15rem; line-height: 1.25; }
.service-product p { flex: 1; margin: 0 0 1.2rem; color: var(--color-text-muted); font-size: var(--text-sm); }
.service-product__details { margin: 0 0 1rem; color: var(--color-text-muted); font-size: var(--text-sm); }
.service-product__details summary { min-height: 44px; display: flex; align-items: center; color: var(--color-text); cursor: pointer; font-weight: 800; }
.service-product__details p { margin: .5rem 0 0; }
.service-product__price { display: block; margin-bottom: .9rem; color: var(--color-accent-lg); font-size: 1.05rem; font-weight: 800; }
.service-product__price-note { display: block; margin: -.55rem 0 .9rem; color: var(--color-text-muted); font-size: var(--text-xs); }
.service-product__price-lock { margin: auto 0 1rem; padding: .85rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-3); color: var(--color-text-muted); font-size: var(--text-sm); }
.service-product__button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; padding: .7rem 1rem; border: 0; border-radius: var(--radius-md); background: var(--gradient-cta); color: var(--color-surface-text); font: inherit; font-weight: 800; text-align: center; cursor: pointer; }
.service-product__button--quote { color: var(--color-text); border: 1px solid var(--color-border); background: var(--color-bg-3); }
.service-product__button--value { color: var(--color-accent-lg); border: 1px solid var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, var(--color-bg-3)); }
.service-product[hidden] { display: none; }
.checkout-dialog { width: min(620px, calc(100% - 1.5rem)); max-height: calc(100vh - 1.5rem); padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); color: var(--color-text); background: var(--color-bg-2); box-shadow: var(--shadow-lg); }
.checkout-dialog::backdrop { background: rgba(10,42,94,.82); backdrop-filter: blur(6px); }
.checkout-dialog__header { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem; border-bottom: 1px solid var(--color-border); }
.checkout-dialog__header h2 { margin: .25rem 0 0; font-size: 1.35rem; }
.checkout-dialog__close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-text); background: transparent; cursor: pointer; font-size: 1.4rem; }
.checkout-form { display: grid; gap: 1rem; padding: 1.4rem; overflow-y: auto; }
.checkout-field { display: grid; gap: .4rem; }
.checkout-field label { font-size: var(--text-sm); font-weight: 700; }
.checkout-field input, .checkout-field textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); background: var(--color-bg); font: inherit; }
.checkout-field textarea { min-height: 90px; resize: vertical; }
.checkout-consent { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; color: var(--color-text-muted); font-size: var(--text-sm); }
.checkout-consent input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--color-accent); }
.checkout-submit { min-height: 52px; border: 0; border-radius: var(--radius-md); background: var(--gradient-cta); color: var(--color-surface-text); font: inherit; font-weight: 900; cursor: pointer; }
.checkout-submit:disabled { opacity: .55; cursor: wait; }
.checkout-status { min-height: 1.5rem; color: var(--color-menu-rose); font-size: var(--text-sm); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.return-card { max-width: 680px; margin: 8vh auto; padding: 2rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-2); text-align: center; }
.return-card__icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; color: var(--color-surface-text); background: var(--gradient-gold); font-size: 1.8rem; font-weight: 900; }
.return-card h1 { margin-bottom: .8rem; }
.return-card p { color: var(--color-text-muted); }
.return-card .btn { margin-top: 1.5rem; }
@media (min-width: 700px) { .commerce-access { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .service-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-product { padding: 1.5rem; } }
@media (min-width: 1040px) { .service-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* ---------- carrinho ---------- */
.cart-trigger { position: relative; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text); background: var(--color-bg-2); cursor: pointer; font: inherit; font-weight: 700; }
.cart-badge { position: absolute; top: -6px; right: -6px; z-index: 1; min-width: 20px; height: 20px; display: none; align-items: center; justify-content: center; padding: 0 5px; border-radius: 50%; background: var(--color-accent); color: var(--color-surface-text); font-size: .7rem; font-weight: 800; line-height: 1; }
.cart-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10,42,94,.65); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.cart-overlay--open { opacity: 1; pointer-events: auto; }
.cart-panel { position: fixed; top: 0; right: 0; z-index: 100; width: min(400px, 92vw); height: 100dvh; display: flex; flex-direction: column; border-left: 1px solid var(--color-border); background: var(--color-bg-2); box-shadow: -8px 0 30px rgba(0,0,0,.25); transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); }
.cart-panel--open { transform: translateX(0); }
.cart-panel[aria-hidden="true"] { visibility: hidden; }
.cart-panel[aria-hidden="false"] { visibility: visible; }
.cart-panel__header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--color-border); }
.cart-panel__header h2 { margin: 0; font-size: 1.15rem; }
.cart-panel__close { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-text); background: transparent; cursor: pointer; font-size: 1.2rem; }
.cart-panel__body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.cart-empty { color: var(--color-text-muted); text-align: center; padding: 2rem 0; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid rgba(212,168,67,.12); }
.cart-item__info { display: grid; gap: .2rem; min-width: 0; }
.cart-item__nome { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__preco { color: var(--color-accent-lg); font-weight: 800; font-size: .85rem; }
.cart-item__remove { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-text-muted); background: transparent; cursor: pointer; font-size: 1rem; transition: color .2s, border-color .2s; }
.cart-item__remove:hover { color: #ef4444; border-color: #ef4444; }
.cart-panel__footer { padding: 1rem 1.4rem 1.4rem; border-top: 1px solid var(--color-border); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-total-row span:last-child { color: var(--color-accent-lg); font-size: 1.2rem; font-weight: 900; }
.cart-send { width: 100%; min-height: 52px; border: 0; border-radius: var(--radius-md); background: var(--gradient-cta); color: var(--color-surface-text); font: inherit; font-weight: 900; cursor: pointer; }
.cart-send:disabled { opacity: .55; cursor: wait; }
.cart-send-note { display: block; margin-top: .6rem; color: var(--color-text-muted); font-size: var(--text-xs); text-align: center; }
.service-product__button--added { background: var(--color-bg-3) !important; color: var(--color-accent-lg) !important; border: 1px solid var(--color-accent) !important; }
@media (min-width: 700px) { .commerce-access { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .service-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-product { padding: 1.5rem; } }
@media (min-width: 1040px) { .service-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* /BLOCO: commerce-v031 */
