body { background: #f3f6f5; font-family: "DM Sans", Arial, sans-serif; color: #12201a; margin: 0; }
.admin { width: min(1180px, calc(100% - 32px)); margin: 28px auto 70px; }
.login, .painel { background: #fff; border: 1px solid #e4ebe7; border-radius: 20px; padding: clamp(18px, 3vw, 34px); box-shadow: 0 16px 40px rgba(7,38,28,.08); }
.login input, .painel input, .painel textarea, .painel select {
  box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #d7e3dc; border-radius: 10px; margin: 6px 0 14px; background: #fff; color: inherit; font: inherit;
}
.painel input:focus, .painel textarea:focus, .painel select:focus { outline: 3px solid rgba(11, 100, 73, .14); border-color: #0b6449; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.painel > h2 { margin-top: 30px; padding-bottom: 10px; border-bottom: 1px solid #e7eeea; }
.prod-card { border: 1px solid #d7e3dc; border-radius: 14px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.prod-card[hidden] { display: none; }
.prod-card[open] { border-color: #a8c8b7; box-shadow: 0 8px 24px rgba(7,38,28,.07); }
.prod-summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(120px, auto) 22px; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.prod-summary::-webkit-details-marker { display: none; }
.prod-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #edf5f0; color: #0b6449; font-size: 12px; font-weight: 800; }
.prod-summary-name { overflow: hidden; font-size: 14px; font-weight: 800; text-overflow: ellipsis; }
.prod-summary-name small, .prod-summary-meta small { display: block; margin-top: 4px; color: #68766f; font-size: 11px; font-weight: 600; }
.prod-summary-meta { text-align: right; font-size: 13px; font-weight: 800; white-space: nowrap; }
.prod-chevron { color: #607168; transition: transform .18s ease; }
.prod-card[open] .prod-chevron { transform: rotate(180deg); }
.prod-card-content { display: grid; grid-template-columns: minmax(200px, .75fr) minmax(0, 2fr); gap: 22px; padding: 4px 18px 20px; border-top: 1px solid #edf1ef; }
.prod-fields { min-width: 0; padding-top: 14px; }
.prod-fields label, .products-tools label { display: block; font-size: 12px; font-weight: 800; line-height: 1.5; }
.prod-fields textarea { resize: vertical; }
.prod-card img { width: 110px; height: 90px; object-fit: cover; border-radius: 10px; background: #eef4f0; }
.prod-gallery-admin { min-width: 0; padding-top: 14px; }
.prod-gallery-count { margin: 2px 0 8px; color: #56328f; font-size: 12px; font-weight: 800; }
.prod-gallery-preview { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; }
.prod-gallery-item { position: relative; flex: 0 0 86px; width: 86px; }
.prod-gallery-item img { width: 86px; height: 78px; object-fit: contain; border: 1px solid #e8e3f0; background: #faf9fc; }
.prod-no-photo { align-self: center; color: #68766f; font-size: 12px; line-height: 1.5; }
.prod-cover-label, .prod-remove-photo { display: block; margin-top: 4px; color: #56328f; font-size: 10px; font-weight: 700; text-align: center; }
.prod-remove-photo { width: 100%; border: 0; background: transparent; color: #a43a4a; cursor: pointer; }
.prod-remove-photo:hover { text-decoration: underline; }
.prod-gallery-admin label { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; }
.prod-gallery-admin input[type="file"] { padding: 8px; font-size: 11px; }
.products-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 20px 0 12px; }
.products-heading h2 { margin: 0; }
.products-count { margin-top: 4px; color: #675d78; font-size: 13px; font-weight: 700; }
.products-heading .btn { flex: 0 0 auto; }
.products-tools { display: grid; grid-template-columns: minmax(240px, .7fr) 1fr; align-items: center; gap: 16px; margin: 16px 0; padding: 14px 16px; border: 1px solid #e3ebe6; border-radius: 12px; background: #f8faf9; }
.products-tools input { margin-bottom: 0; }
.products-help { margin: 0; color: #68766f; font-size: 12px; line-height: 1.55; }
.prod-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 10px; padding-top: 12px; border-top: 1px solid #edf1ef; }
.prod-featured { display: flex !important; align-items: center; gap: 8px; }
.prod-featured input { width: 18px !important; min-height: 18px !important; margin: 0 !important; accent-color: #0b6449; }
.btn-remove { background: #fff1f0; color: #9b3028; }
.save-bar { position: sticky; bottom: 12px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; padding: 12px 14px; border: 1px solid #dce7e1; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 8px 26px rgba(7,38,28,.12); }
.save-bar span { color: #53645b; font-size: 12px; }
.btn { border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.btn-verde { background: #0b3d2e; color: #fff; }
.btn-ouro { background: #e8b923; }
.btn-ghost { background: #eef4f0; }
.preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; background: #eef4f0; }
h1, h2 { margin: 0 0 12px; }
.topo { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.aviso { background: #fff7dc; padding: 12px; border-radius: 12px; margin-bottom: 16px; }
.pix-admin-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; margin: 12px 0 18px; padding: 18px; border: 1px solid #e4e9f0; border-radius: 16px; background: #f8faff; }
.pix-admin-preview h3 { margin: 0 0 6px; color: #08264f; font-size: 16px; }
.pix-admin-preview p { max-width: 560px; margin: 0 0 12px; color: #637286; font-size: 12px; line-height: 1.55; }
.pix-admin-preview .btn { border: 1px solid #dce3ed; color: #08264f; }
.pix-preview-status { margin: 10px 0 0 !important; font-weight: 700; }
.pix-preview-image { display: grid; width: 190px; height: 190px; place-items: center; border: 1px solid #e2e7ee; border-radius: 12px; background: #fff; }
.pix-preview-image[hidden] { display: none; }
.pix-preview-image img { width: 176px; height: 176px; image-rendering: pixelated; }
.gateway-admin-preview { border-color: #f0dfac; background: #fffdf6; }
.gateway-admin-preview h3 { color: #604b17; }
.gateway-admin-preview .btn { border-color: #ead9a5; color: #604b17; }
.gateway-security-note { border: 1px solid #f0dfac; color: #604b17; }
.gateway-security-note p { margin: 6px 0 0; font-size: 12px; line-height: 1.55; }
.gateway-secret-input { display: flex; align-items: center; gap: 8px; }
.gateway-secret-input input { min-width: 0; flex: 1; }
.gateway-secret-input .btn { flex: 0 0 auto; margin: 6px 0 14px; padding: 9px 11px; font-size: 12px; }
.payment-method-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 22px; }
.payment-method-option { display: flex; align-items: flex-start; gap: 10px; padding: 15px; border: 1px solid #dfe5ed; border-radius: 14px; background: #fff; cursor: pointer; }
.payment-method-option:has(input:checked) { border-color: #0756a8; background: #f2f7ff; box-shadow: 0 0 0 2px rgba(7, 86, 168, .08); }
.payment-method-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #0756a8; }
.payment-method-option span { display: grid; gap: 5px; }
.payment-method-option strong { color: #08264f; font-size: 14px; }
.payment-method-option small { color: #637286; font-size: 11px; line-height: 1.5; }
[hidden] { display: none !important; }
@media (max-width: 720px) {
  .admin { width: min(100% - 20px, 600px); margin-top: 10px; }
  .grid2 { grid-template-columns: 1fr; }
  .prod-summary { grid-template-columns: 34px minmax(0, 1fr) auto 18px; gap: 8px; padding: 12px 10px; }
  .prod-summary-meta { font-size: 11px; }
  .prod-summary-name { font-size: 12px; }
  .prod-card-content { grid-template-columns: 1fr; gap: 8px; padding: 4px 12px 14px; }
  .products-tools { grid-template-columns: 1fr; gap: 4px; }
  .save-bar { align-items: stretch; flex-direction: column; }
  .save-bar .btn { width: 100%; }
  .products-heading { align-items: flex-start; flex-direction: column; }
  .pix-admin-preview { grid-template-columns: minmax(0, 1fr); }
  .pix-preview-image { justify-self: center; }
  .payment-method-options { grid-template-columns: minmax(0, 1fr); }
}
