:root { --admin-accent: #ed1018; --admin-accent-hover: #c80e17; --admin-selected: #ed1018; --admin-paper: #fffaf6; }
body { background: #fff9f3; }
.shell { max-width: 1440px; padding: 0 24px 48px; }
.topbar { min-height: 80px; }
.topbar > .brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--admin-selected); color: white; font: 700 17px Georgia, serif; }
.brand > span:last-child { font-size: 21px; line-height: 1.05; }
.brand small { display: block; font: 12px/1.5 system-ui, sans-serif; color: var(--muted); }
#admin-email { font-size: 12px; color: var(--muted); }
.store-link { text-decoration: none; }
.welcome { border-bottom: 1px solid var(--line); padding: 10px 0 18px; margin: 15px 0 24px; }
.welcome h1 { font: 700 clamp(25px, 4vw, 34px)/1.15 system-ui, sans-serif; margin: 0 0 6px; }
.welcome p:last-child { margin: 0; }
.admin-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-main { min-width: 0; }
.sidebar { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 6px; min-height: calc(100vh - 130px); padding: 12px 18px 18px 0; border-right: 1px solid var(--line); }
.sidebar button, .sidebar-group summary { width: 100%; padding: 11px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--chocolate); font: 650 14px/1.3 system-ui, sans-serif; text-align: left; cursor: pointer; }
.sidebar button:hover, .sidebar-group summary:hover { background: #f8ede8; }
.sidebar button.active { background: #f9e9e7; color: #8c3e4d; }
.sidebar button span { float: right; background: white; border-radius: 99px; padding: 0 7px; }
.sidebar-group summary { list-style: none; }
.sidebar-group summary::-webkit-details-marker { display: none; }
.sidebar-group summary::after { content: '⌄'; float: right; }
.sidebar-group[open] summary::after { content: '⌃'; }
.sidebar-group > div { display: grid; padding-left: 9px; }
.sidebar-group button { font-size: 13px; }
.sidebar-account { display: grid; gap: 6px; margin-top: auto; padding: 15px 8px 0; border-top: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.sidebar-account button { padding: 3px 0; color: #a74354; }
.admin-main > .panel, .admin-main #content-form > .panel { border: 0; box-shadow: none; background: transparent; padding: 20px 0; }
.admin-main .panel-heading { align-items: center; }
.admin-main .panel-heading h2 { font: 700 23px/1.2 system-ui, sans-serif; margin-bottom: 5px; }
.admin-main .panel-heading .help { margin: 0; max-width: 650px; }
.add-product-button { min-width: 150px; }
.config-section[hidden], #orders-section[hidden], #content-form[hidden] { display: none !important; }

/* Os filtros usam a mesma forma, cor e peso do botão Salvar. */
.filter-toolbar, .product-filter-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.filter-toolbar { margin: 18px 0; border-bottom: 1px solid var(--line); }
.filter-chip { flex: 0 0 auto; min-height: 42px; padding: 10px 15px; border: 0; border-radius: 10px; background: var(--admin-accent); color: #fff; font: 750 13px/1.2 system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s; }
.filter-chip:hover { background: var(--admin-accent-hover); transform: translateY(-1px); }
.filter-chip.active { background: var(--admin-selected); box-shadow: 0 4px 12px #a954632a, inset 0 0 0 2px #ffffff70; }
.filter-chip:focus-visible { outline: 3px solid #d8a4ad; outline-offset: 3px; }
.filter-chip.small-chip { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 5px; border-radius: 99px; background: #ffffff33; color: white; font-size: 10px; }
.filter-chip.active .filter-count { background: #fff; color: #8c3e4d; }
.filter-toolbar::-webkit-scrollbar, .product-filter-row::-webkit-scrollbar { height: 5px; }
.filter-toolbar::-webkit-scrollbar-thumb, .product-filter-row::-webkit-scrollbar-thumb { background: #dec6be; border-radius: 99px; }

.product-manager { display: grid; grid-template-columns: minmax(225px, 255px) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.product-list-panel, .product-editor { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 28px #512e280b; }
.list-title { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; }
.list-title > span { padding: 3px 8px; border-radius: 99px; background: #f8ede8; color: var(--muted); font-size: 11px; white-space: nowrap; }
.product-filter-row { gap: 6px; padding-top: 12px; padding-bottom: 3px; }
.product-filter-row .filter-chip { min-height: 35px; padding: 8px 11px; font-size: 11px; }
.compact-filters { padding-top: 6px; padding-bottom: 9px; }
.product-list { max-height: 500px; overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 10px; }
.product-list-item { display: grid; gap: 3px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 13px/1.35 system-ui, sans-serif; text-align: left; cursor: pointer; }
.product-list-item:hover, .product-list-item.selected { background: #fff0e9; }
.product-list-item.selected { box-shadow: inset 3px 0 var(--admin-selected); }
.availability { justify-self: start; padding: 4px 9px; border-radius: 99px; background: #e7f4eb; color: #276c4c; font-size: 11px; font-weight: 700; }
.availability.paused { background: #f1edeb; color: #806e68; }
.product-list-hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 13px; border-bottom: 1px solid var(--line); }
.editor-heading h3 { margin: 0; font: 700 25px Georgia, serif; }
.product-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.product-fields .wide { grid-column: 1 / -1; }
.upload { display: inline-flex; padding: 10px 12px; border: 1px dashed #caa49e; border-radius: 10px; background: var(--admin-paper); text-decoration: none; }
.editor-actions { padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--line); }
.empty-products, .empty-editor, .empty-orders { padding: 28px 12px; color: var(--muted); text-align: center; }
.empty-editor strong, .empty-orders strong { display: block; color: var(--chocolate); }

.orders-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 10px 28px #512e280b; }
.orders-table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: 13px; }
.orders-table th, .orders-table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid #f1e8e2; vertical-align: middle; }
.orders-table th { background: var(--admin-paper); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.orders-table tbody tr:last-child td { border-bottom: 0; }
.orders-table td { position: relative; }
.orders-table td small { display: block; color: var(--muted); font-size: 11px; }
.payment-chip, .fulfillment-chip { display: inline-block; padding: 5px 9px; border-radius: 99px; background: #f7eee8; color: var(--chocolate); font-size: 11px; font-weight: 700; white-space: nowrap; }
.payment-chip.paid, .state-delivered { background: #e5f4e8; color: #276c4c; }
.state-preparing { background: #fff0de; color: #92601e; }
.state-ready { background: #e7f1ec; color: #317457; }
.state-out_for_delivery { background: #e9f1fb; color: #3c6596; }
.state-canceled { background: #f6e8e8; color: #9f4b4b; }
.details-button { display: inline-flex; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--admin-paper); color: var(--admin-accent); font-weight: 750; cursor: pointer; list-style: none; }
.details-button::-webkit-details-marker { display: none; }
.order-expanded[hidden] { display: none; }
.order-expanded > td { background: #fffaf6; }
.order-detail-drawer { width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.drawer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.order-items, .order-events { padding-left: 18px; }
.order-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f1e8e2; }
.order-update { display: grid; grid-template-columns: 175px 1fr auto; gap: 10px; align-items: end; padding-top: 14px; border-top: 1px solid var(--line); }
.order-update label { margin: 0; }
.order-update small { grid-column: 1 / -1; }

@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } .sidebar { position: static; min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar > button { flex: 0 0 auto; width: auto; } .sidebar-account { display: none; } .sidebar-group { flex: 0 0 auto; } .sidebar-group[open] { flex-basis: 100%; } .sidebar-group > div { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px 0; } .sidebar-group > div button { width: auto; } .product-manager { grid-template-columns: 230px minmax(0, 1fr); } }
@media (max-width: 650px) { .shell { padding: 0 12px 32px; } .topbar { min-height: 68px; } #admin-email, .store-link { display: none; } .product-manager { grid-template-columns: 1fr; } .product-list { max-height: 260px; } .product-fields { grid-template-columns: 1fr; } .product-fields .wide { grid-column: auto; } .filter-chip { min-height: 40px; padding: 9px 12px; font-size: 12px; } .drawer-columns, .order-update { grid-template-columns: 1fr; } .order-update small { grid-column: auto; } }

.brand-logo{display:block;flex:0 0 auto;width:48px;height:48px;object-fit:contain;border-radius:50%}
