/* Atas platform — extends site tokens */
.atas-wrap { width: min(1120px, calc(100% - 4.5rem)); margin: 0 auto; }
.atas-hero {
  background: var(--navy);
  color: var(--white);
  padding: 6.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.atas-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
}
.atas-hero .lede { color: color-mix(in srgb, var(--white) 82%, var(--gold)); max-width: 52ch; margin: 0; }

.atas-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  padding: 1.25rem 0 0;
}
.atas-toolbar label { display: grid; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; }
.atas-toolbar input,
.atas-toolbar select {
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  background: color-mix(in srgb, var(--navy) 88%, black);
  color: var(--white);
  font-size: 1rem;
}

.atas-section { padding: 2.5rem 0 4rem; }
.atas-list { border-top: 1px solid var(--line); }
.atas-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.atas-row h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}
.atas-row h2 a { color: inherit; text-decoration: none; }
@media (hover: hover) {
  .atas-row h2 a:hover { color: var(--gold); }
}
.atas-meta { font-size: 0.92rem; color: var(--muted); margin: 0; }
.atas-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--gold);
  margin-right: 0.35rem;
}

.atas-detail-head { margin-bottom: 2rem; }
.atas-products {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

/* Tabela horizontal de produtos na single da ata */
.ata-prod-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.ata-prod-table thead tr {
  border-bottom: 2px solid var(--line);
}
.ata-prod-table th {
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  padding: 0.6rem 0.85rem;
  white-space: nowrap;
  font-size: 0.85rem;
}
.ata-prod-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink);
}
.ata-prod-table tbody tr:last-child td { border-bottom: 0; }
.ata-prod-table tbody tr:hover td { background: color-mix(in srgb, var(--gold) 4%, transparent); }
.ata-prod-nome a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.ata-prod-nome a:hover { color: var(--gold); text-decoration: underline; }
.ata-prod-actions { text-align: right; white-space: nowrap; }
.atas-product {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.atas-product img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  background: var(--navy-deep);
}
.atas-product h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}
.atas-product p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.atas-product-body { display: grid; gap: 0.4rem; min-width: 0; }
.atas-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.55rem;
  align-items: center;
}
.atas-product-actions .btn { min-height: 44px; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid transparent;
  text-decoration: none;
  font: 600 0.95rem/1 var(--sans);
  background: #25d366;
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover { background: #1ebe5a; color: #fff; }
}
.atas-product-body .btn-gold { margin-top: 0; }
.atas-interest {
  position: relative;
  display: grid;
  gap: 0.9rem;
  margin-top: 0.95rem;
  padding: 1.25rem 1.15rem 1.2rem;
  background: color-mix(in srgb, var(--paper) 55%, var(--white));
  border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  border-top: 1px solid var(--gold);
}
.atas-interest[hidden] { display: none; }
.atas-interest-lead { margin: 0; color: var(--ink); font-size: 0.95rem; }
.atas-interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.atas-interest label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--navy) 72%, var(--paper));
}
.atas-interest input,
.atas-interest textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.75rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--navy) 16%, transparent);
  background: var(--white);
  color: var(--ink);
  caret-color: var(--gold);
  min-height: 2.9rem;
  border-radius: 0;
  transition: border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.atas-interest input:focus,
.atas-interest textarea:focus {
  border-color: var(--gold);
}
.atas-interest textarea { min-height: 5.5rem; resize: vertical; }
.atas-interest .check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.4;
}
.atas-interest .check input {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--navy) 32%, transparent);
  background: var(--white);
  cursor: pointer;
}
.atas-interest .check input:checked {
  border-color: var(--gold);
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23041D3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.2 2.8 2.8 6.2-6.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem;
}
.atas-interest-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.atas-interest .btn-ghost {
  color: var(--navy);
  border-color: color-mix(in srgb, var(--navy) 35%, transparent);
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .atas-interest .btn-ghost:hover {
    background: color-mix(in srgb, var(--navy) 8%, var(--paper));
    color: var(--navy);
  }
}
.atas-interest a { color: var(--gold); }
.atas-interest button:disabled { opacity: 0.6; cursor: wait; }
.atas-interest-msg { min-height: 1.2em; margin: 0; color: var(--navy); font-size: 0.92rem; }
.atas-interest-ok {
  margin: 0.55rem 0 0;
  padding: 0.75rem 0.9rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.95rem;
}
.atas-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.atas-empty { color: var(--muted); padding: 2rem 0; }
.atas-result-count { margin: 0.85rem 0 0; color: color-mix(in srgb, var(--white) 78%, var(--gold)); }

.atas-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1.25rem;
}
.atas-catalog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 100%;
}
.atas-catalog-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-deep);
}
.atas-catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.atas-catalog-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--navy-deep), color-mix(in srgb, var(--navy) 70%, var(--gold)));
}
.atas-catalog-body {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1rem 1.1rem;
  align-content: start;
}
.atas-catalog-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.2;
}
.atas-catalog-body h2 a { color: inherit; text-decoration: none; }
@media (hover: hover) {
  .atas-catalog-body h2 a:hover { color: var(--gold); }
}
.atas-catalog-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.atas-catalog-price {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}
.atas-catalog-ata { font-size: 0.88rem; }
.btn-sm {
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  justify-self: start;
  margin-top: 0.25rem;
}
.atas-product.is-highlight {
  background: color-mix(in srgb, var(--gold) 12%, var(--paper));
  scroll-margin-top: 6rem;
}
.client-interests { margin: 1.75rem 0 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.client-interest {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
}
.client-interest h3 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin: 0; }
.client-interest p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.atas-form { max-width: 40rem; display: grid; gap: 1rem; padding: 1.65rem 1.5rem 1.75rem; background: var(--white); border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent); border-top: 1px solid var(--gold); }
.atas-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--navy) 72%, var(--paper));
}
.atas-form input,
.atas-form select,
.atas-form textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.75rem 0.85rem;
  min-height: 2.9rem;
  border: 1px solid color-mix(in srgb, var(--navy) 16%, transparent);
  background: color-mix(in srgb, var(--paper) 52%, var(--white));
  color: var(--ink);
  caret-color: var(--gold);
  border-radius: 0;
}
.atas-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7902D' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.6rem;
}
.atas-form input:focus,
.atas-form select:focus,
.atas-form textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}
.atas-form textarea { min-height: 5.5rem; resize: vertical; }

.prod-block {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  display: grid;
  gap: 0.65rem;
}
.prod-block .row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.prod-preview { width: 4rem; height: 4rem; object-fit: cover; background: var(--paper); }

.atas-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.atas-actions .btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.atas-actions .btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 0;
}

.status-rascunho { color: var(--muted); }
.status-pendente { color: #9a6b00; }
.status-publicada { color: #1f6b3a; }
.status-arquivada { color: var(--muted); }

.client-main .atas-row { border-bottom: 1px solid var(--line); padding: 1.25rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.client-main .atas-row h2 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 0 0 0.35rem; }
.client-main .atas-row h2 a { color: inherit; text-decoration: none; }
.client-main .atas-meta { font-size: 0.9rem; color: var(--muted); margin: 0; }
.client-main .atas-badge { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.4rem; border: 1px solid var(--line); color: var(--gold); margin-right: 0.35rem; }
.client-main .btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0.45rem 1rem; font-weight: 600; }
.client-main .ghost { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; }
.client-main .btn-sm { min-height: 36px; padding: 0.35rem 0.75rem; font-size: 0.9rem; }
.client-main .note { font-size: 0.92rem; color: var(--muted); }
.client-main #form-ata label { display: grid; gap: 0.3rem; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.65rem; }
.client-main #form-ata input, .client-main #form-ata select, .client-main #form-ata textarea { font: inherit; padding: 0.6rem 0.7rem; border: 1px solid color-mix(in srgb, var(--navy) 22%, transparent); min-height: 44px; }
.client-main #form-ata textarea { min-height: 5rem; resize: vertical; }
.client-main .btn-navy { background: var(--navy); color: var(--white); border: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1.25rem; font-weight: 600; cursor: pointer; }
.client-main .atas-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.client-main #form-prod label { display: grid; gap: 0.3rem; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.65rem; }
.client-main #form-prod input, .client-main #form-prod select, .client-main #form-prod textarea { font: inherit; padding: 0.6rem 0.7rem; border: 1px solid color-mix(in srgb, var(--navy) 22%, transparent); min-height: 44px; }
.client-main #form-prod textarea { min-height: 5rem; resize: vertical; }
.client-main .atas-products { margin: 0.5rem 0 0; }

@media (max-width: 767px) {
  .atas-wrap { width: min(100% - 2rem, 1120px); }
  .atas-hero { padding-top: 5.5rem; }
  .atas-row { grid-template-columns: 1fr; }
  .atas-product { grid-template-columns: 1fr; }
  .atas-product img { width: 100%; height: 10rem; }
  .atas-interest-grid { grid-template-columns: 1fr; }
  .atas-interest-actions .btn { width: 100%; }
  .atas-product-actions .btn,
  .atas-product-actions .btn-wa { width: 100%; }
}

/* ── single product page ──────────────────────────────────── */
.prod-single-wrap { width: min(960px, calc(100% - 4rem)); margin: 0 auto; padding: calc(var(--header-h) + 2.5rem) 0 6rem; }
.prod-single-layout {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 3rem;
  align-items: start;
}
.prod-single-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--navy-deep);
  position: sticky;
  top: 6rem;
}
.prod-single-media img { width: 100%; height: 100%; object-fit: cover; }
.prod-single-media-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--navy-deep), color-mix(in srgb, var(--navy) 65%, var(--gold)));
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--gold) 65%, transparent);
  font-size: 3rem;
}
.prod-single-body { display: grid; gap: 1.35rem; }
.prod-single-breadcrumb { font-size: 0.88rem; color: var(--muted); }
.prod-single-breadcrumb a { color: var(--gold); text-decoration: none; }
.prod-single-breadcrumb a:hover { text-decoration: underline; }
.prod-single-brand {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.prod-single-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0;
  line-height: 1.15;
}
.prod-single-price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.prod-single-desc { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 0; }
.prod-single-specs {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}
.prod-single-spec {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.prod-single-spec:last-child { border-bottom: 0; }
.prod-single-spec dt { font-weight: 700; color: var(--navy); }
.prod-single-spec dd { margin: 0; color: var(--ink); }
.prod-single-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.prod-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  background: color-mix(in srgb, var(--gold) 12%, var(--paper));
  border: 1px solid var(--gold);
  color: var(--navy);
  font: 600 0.9rem/1 var(--sans);
  text-decoration: none;
  transition: background 0.18s;
}
.prod-download-btn:hover { background: color-mix(in srgb, var(--gold) 25%, var(--paper)); }
.prod-single-ata {
  background: color-mix(in srgb, var(--paper) 60%, var(--white));
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.45rem;
}
.prod-single-ata h3 { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; margin: 0; }
.prod-single-ata p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.atas-adesao-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background: color-mix(in srgb, #1f6b3a 12%, var(--paper));
  border: 1px solid #1f6b3a;
  color: #1f6b3a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.atas-adesao-false {
  background: color-mix(in srgb, var(--muted) 10%, var(--paper));
  border-color: var(--line);
  color: var(--muted);
}
.atas-catalog-adesao {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f6b3a;
}

@media (max-width: 640px) {
  .prod-single-layout { grid-template-columns: 1fr; }
  .prod-single-media { position: static; aspect-ratio: 4 / 3; }
  .prod-single-spec { grid-template-columns: 1fr; gap: 0.1rem; }
  .prod-single-spec dt::after { content: ":"; }
}



/* Interesse: ata / carrinho / produto */
.atas-interest-toolbar {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  border-top: 2px solid var(--gold);
  background: color-mix(in srgb, var(--paper) 55%, var(--white));
}
.atas-interest-toolbar-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--navy);
}
.atas-interest-toolbar-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.atas-interest-panel { margin: 0 0 1.25rem; }
.atas-cart-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--navy) 22%, transparent);
  background: var(--white);
  opacity: 0.72;
}
.atas-cart-bar.is-active { opacity: 1; border-style: solid; border-color: var(--gold); }
.atas-cart-bar p { margin: 0; color: var(--navy); }
.atas-cart-summary { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--navy); }
.atas-cart-summary li { margin: 0.25rem 0; }
.ata-prod-check { width: 4.5rem; text-align: center; vertical-align: middle; }
.ata-prod-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--gold); }
.atas-check-all { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; }
@media (max-width: 720px) {
  .atas-cart-bar { align-items: stretch; }
  .atas-cart-bar .btn { width: 100%; }
}
