/* ÉpicoMenu v14 · Painel conectado de catálogo e identidade visual */
.ep14-brand-edit{border-bottom:1px solid #e5e9ef;padding-bottom:20px}
.ep14-brand-cover{height:210px;border-radius:14px;overflow:hidden;position:relative;background:#292322}
.ep14-brand-cover>img{width:100%;height:100%;object-fit:cover;display:block}
.ep14-upload-button{position:absolute;right:18px;top:17px;display:inline-flex;align-items:center;gap:8px;padding:10px 15px;border-radius:10px;background:#fff;color:#202c3d;box-shadow:0 3px 13px #0002;font-size:13px;font-weight:800;cursor:pointer}
.ep14-brand-row{display:flex;align-items:flex-end;gap:18px;margin-top:-48px;position:relative;padding:0 24px}
.ep14-brand-logo{height:102px;width:102px;border:5px solid #fff;border-radius:17px;overflow:hidden;display:grid;place-items:center;background:#e30617;color:white;font-size:32px;font-weight:950;flex:none;box-shadow:0 5px 18px #0002}
.ep14-brand-logo img{width:100%;height:100%;object-fit:cover}
.ep14-brand-row>div:last-child{padding-top:52px;min-width:0}
.ep14-brand-row b{display:block;color:#263246;font-size:15px}
.ep14-brand-row p{color:#7e8b9b;font-size:12px;margin:7px 0 11px;line-height:1.55}
.ep14-brand-buttons{display:flex;gap:9px;flex-wrap:wrap}
.ep14-file-button{cursor:pointer}
.ep14-brand-buttons .btn{min-height:38px}
.ep14-catalog-tip{display:flex;gap:12px;align-items:center;color:#206049;background:#e8f7ee;border:1px solid #cde7d8;padding:13px 17px;border-radius:11px;font-size:12px;line-height:1.5;margin:0 0 16px}
.ep14-tabs{display:flex;border-bottom:1px solid #e4e8ee;gap:8px;overflow-x:auto;margin:0 0 18px}
.ep14-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;padding:14px 21px;white-space:nowrap;cursor:pointer;font-size:13px;font-weight:800;color:#6f7a8d}
.ep14-tabs button.active{color:#bc1e25;border-bottom-color:#bc1e25}
.ep14-product-layout{display:grid;grid-template-columns:258px minmax(0,1fr);gap:18px;align-items:start}
.ep14-categories{padding:15px}
.ep14-categories-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;text-transform:uppercase;font-size:12px;color:#394a61}
.ep14-categories-head button{background:#fff;border:1px solid #dbe1e9;width:31px;height:31px;border-radius:7px;color:#be292c;cursor:pointer}
.ep14-new-category{background:#b52228;color:#fff;border:0;border-radius:9px;display:flex;justify-content:center;align-items:center;gap:8px;width:100%;padding:10px;font-size:12px;font-weight:850;cursor:pointer;margin-bottom:12px}
.ep14-category-list{display:grid;gap:4px}
.ep14-category-list>button,.ep14-category-row{display:flex;align-items:center;gap:5px;padding:0 8px;border-radius:8px;border-left:3px solid transparent;color:#3c4859;background:white}
.ep14-category-list>button{min-height:40px;border-top:0;border-right:0;border-bottom:0;text-align:left;font-weight:750;cursor:pointer;justify-content:space-between;width:100%}
.ep14-category-list small{font-size:10px;color:#8793a4}
.ep14-category-row.selected,.ep14-category-list>button.selected{border-left-color:#e0262b;background:#fff0ef;color:#a71920}
.ep14-category-row>button:first-child{min-height:40px;border:0;background:transparent;flex:1;text-align:left;font-weight:650;cursor:pointer;color:inherit;font-size:12px}
.ep14-category-pencil{border:0;background:transparent;color:#516173;cursor:pointer}
.ep14-category-row>button:first-child small{display:block}
.ep14-catalog-main{min-width:0}
.ep14-catalog-controls{display:flex;justify-content:space-between;gap:9px;margin:0 0 15px;align-items:center}
.ep14-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dbe2ec;border-radius:11px;padding:0 12px;min-height:44px;flex:1;max-width:470px;color:#78879a}
.ep14-search input{min-width:0;border:0;outline:none;background:transparent;padding:10px 0;flex:1;color:#293348;font-size:13px}
.ep14-catalog-controls .btn{white-space:nowrap}
.ep14-filters{padding:15px;margin-bottom:12px;background:white;border:1px solid #e2e7ee;border-radius:10px;color:#4d5b6d;font-size:12px}
.ep14-filters select{margin-left:8px;padding:6px;border:1px solid #d9dfe7;border-radius:7px}
.ep14-table-wrap{background:white;border:1px solid #dfe5ed;border-radius:13px;overflow-x:auto;box-shadow:0 2px 8px #192c3a08}
.ep14-table{border-collapse:collapse;width:100%;min-width:650px;text-align:left}
.ep14-table th{font-size:11px;font-weight:850;color:#5d6a7e;background:#f5f7fa;text-transform:uppercase;padding:14px 13px;white-space:nowrap}
.ep14-table td{font-size:12px;border-top:1px solid #edf0f4;color:#364258;padding:11px 13px}
.ep14-table td b{color:#203049}
.ep14-product-cell{display:flex;align-items:center;gap:13px;min-width:190px}
.ep14-product-cell img{width:58px;height:51px;border-radius:8px;object-fit:cover;flex:none}
.ep14-product-cell small{display:block;max-width:245px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:#8c97a4;font-size:11px;margin-top:4px}
.ep14-state{display:inline-flex;padding:5px 11px;border-radius:999px;background:#f1f2f5;color:#687588;font-weight:700;font-size:11px}
.ep14-state.is-active{background:#e5f7ec;color:#158245}
.ep14-edit-btn{display:inline-flex;align-items:center;gap:5px;border:1px solid #dde4ee;background:#fff;border-radius:7px;padding:7px 9px;font-size:12px;color:#ad202a;font-weight:750;cursor:pointer}
.ep14-list-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}
.ep14-list-top p{font-size:13px;color:#7b889b}
.ep14-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.ep14-group-card{background:#fff;border:1px solid #dfe5ed;border-radius:13px;padding:17px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.ep14-group-card h3{font-size:15px;color:#273447;margin:0 0 7px}
.ep14-group-card p{font-size:12px;color:#6b7788;line-height:1.5;margin:5px 0}
.ep14-group-card small{color:#a01f2a;font-size:11px}
.ep14-overlay{position:fixed;inset:0;z-index:110;background:rgba(13,22,38,.6);display:flex;align-items:center;justify-content:center;padding:20px}
.ep14-modal{display:flex;flex-direction:column;max-height:min(90dvh,900px);width:min(780px,100%);background:#fff;border-radius:17px;overflow:hidden;box-shadow:0 24px 100px #0e152044}
.ep14-modal>header{display:flex;align-items:center;justify-content:space-between;padding:19px 24px;gap:12px;border-bottom:1px solid #e6eaf1;flex:none}
.ep14-modal>header h2{font-size:21px;margin:0;color:#213148}
.ep14-modal>header button{border:0;background:#f3f5f7;cursor:pointer;border-radius:50%;width:36px;height:36px;color:#516275}
.ep14-edit-form{padding:23px 26px 0;overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:18px}
.ep14-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ep14-mini-note{color:#7f8c9c;font-size:12px;margin:0 0 10px;line-height:1.6}
.ep14-savebar{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:0;background:#fff;border-top:1px solid #edf0f4;padding:17px 0 20px;margin-top:auto}
.ep14-product-editor{display:grid;grid-template-columns:175px minmax(0,1fr);gap:20px}
.ep14-product-photo{display:flex;flex-direction:column;gap:10px}
.ep14-product-photo img{width:100%;height:173px;object-fit:cover;border-radius:12px}
.ep14-product-photo p{font-size:11px;color:#8994a4;line-height:1.5}
.ep14-product-photo .btn{cursor:pointer;display:inline-flex;justify-content:center}
.ep14-product-fields{display:grid;gap:18px}
.ep14-modal .ep12-field textarea{max-width:100%;min-height:92px}
:root[data-theme='dark'] .ep14-modal,:root[data-theme='dark'] .ep14-categories,:root[data-theme='dark'] .ep14-table-wrap,:root[data-theme='dark'] .ep14-group-card,:root[data-theme='dark'] .ep14-savebar{background:#1b2938;color:#eff3f7;border-color:#3a4b5e}
:root[data-theme='dark'] .ep14-modal h2,:root[data-theme='dark'] .ep14-product-cell b,:root[data-theme='dark'] .ep14-brand-row b,:root[data-theme='dark'] .ep14-group-card h3{color:#f4f6fa}
:root[data-theme='dark'] .ep14-table th{background:#27394a;color:#eee}
:root[data-theme='dark'] .ep14-table td{color:#e1e8f2;border-color:#3e4b5e}
:root[data-theme='dark'] .ep14-search,:root[data-theme='dark'] .ep14-category-row,:root[data-theme='dark'] .ep14-category-list>button{background:#202e3e;color:#f3f7fb;border-color:#3a495c}
:root[data-theme='dark'] .ep14-search input{color:#fff}
@media(max-width:1050px){.ep14-product-layout{grid-template-columns:210px minmax(0,1fr)}.ep14-group-grid{grid-template-columns:1fr}}
@media(max-width:790px){.ep14-product-layout{grid-template-columns:1fr}.ep14-categories{padding:12px}.ep14-category-list{display:flex;overflow-x:auto;gap:6px}.ep14-category-row{flex:none;white-space:nowrap;border:1px solid #dbe2ea}.ep14-category-list>button{width:auto;flex:none;border:1px solid #dbe2ea;white-space:nowrap}.ep14-catalog-controls{flex-wrap:wrap}.ep14-search{max-width:none;width:100%;flex-basis:100%}.ep14-brand-cover{height:150px}.ep14-modal-grid{grid-template-columns:1fr}.ep14-product-editor{grid-template-columns:1fr}.ep14-product-photo{flex-direction:row;align-items:center}.ep14-product-photo img{width:92px;height:92px}.ep14-brand-row{padding:0 10px}.ep14-brand-logo{width:82px;height:82px}.ep14-brand-row>div:last-child{padding-top:44px}.ep14-brand-buttons{margin-bottom:0}.ep14-edit-form{padding:18px 18px 0}}
@media(max-width:500px){.ep14-brand-row{display:block}.ep14-brand-row>div:last-child{padding-top:8px}.ep14-upload-button{right:9px;top:9px;padding:7px 9px}.ep14-savebar .btn{flex:1}.ep14-list-top{flex-wrap:wrap}.ep14-product-photo{flex-wrap:wrap}.ep14-modal{max-height:91dvh}.ep14-overlay{padding:8px}.ep14-group-card{flex-direction:column}}
