:root{
--bg:#f6f8f7;--surface:#ffffff;--surface2:#f3f7f4;--text:#102019;--muted:#66736c;--border:#e2e9e4;
--primary:#3f973f;--primary2:#68b84b;--success:#15803d;--danger:#dc2626;--sidebar:#071725;--gold:#c48b22;--navy:#071725;
--shadow:0 16px 40px rgba(7,23,37,.08);--radius:20px
}
:root[data-theme="dark"]{--bg:#08110d;--surface:#0f1b16;--surface2:#13241c;--text:#f3f7f4;--muted:#9eaaa3;--border:#24362d;--sidebar:#030d14;--shadow:0 16px 40px rgba(0,0,0,.28)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.container{width:min(1180px,calc(100% - 32px));margin:0 auto}.topbar{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;align-items:center;padding:14px max(18px,calc((100% - 1180px)/2));background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid var(--border)}.brand{display:flex;gap:11px;align-items:center}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--primary),#8b5cf6);color:white;font-weight:900;font-size:20px;box-shadow:0 8px 18px rgba(79,70,229,.28)}.brand span:last-child{display:flex;flex-direction:column}.brand small,.top-actions small{color:var(--muted)}.top-actions{display:flex;gap:18px;align-items:center;font-weight:650}.cart-link span{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:var(--primary);color:#fff;font-size:12px}.icon-btn{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:12px;width:40px;height:40px;cursor:pointer}.hero{margin:34px 0;display:grid;grid-template-columns:1.4fr .8fr;gap:24px;padding:44px;border-radius:30px;background:radial-gradient(circle at top left,rgba(99,102,241,.28),transparent 40%),linear-gradient(135deg,#111827,#312e81);color:white;box-shadow:var(--shadow)}.hero h1{font-size:clamp(34px,5vw,62px);line-height:1.03;max-width:760px;margin:8px 0 16px}.hero p{color:#dbeafe;max-width:720px;font-size:18px}.hero-card{align-self:end;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);border-radius:22px;padding:22px;display:flex;flex-direction:column;gap:8px;backdrop-filter:blur(10px)}.hero-card strong{font-size:23px}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.16em;color:#8b82ff}.hero .eyebrow{color:#c4b5fd}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.store-filter,.filter-bar{display:flex;gap:12px;padding:14px;align-items:end}.store-filter input{flex:1}.store-filter select{min-width:220px}input,select,textarea{width:100%;border:1px solid var(--border);background:var(--surface2);color:var(--text);border-radius:12px;padding:11px 13px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(79,70,229,.12)}textarea{min-height:100px;resize:vertical}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:750}.check{flex-direction:row;align-items:center}.check input{width:auto}.btn{border:0;border-radius:12px;padding:10px 15px;font-weight:800;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:6px}.btn.primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:white}.btn.ghost{background:var(--surface2);border:1px solid var(--border);color:var(--text)}.btn.full{width:100%}.btn:disabled{opacity:.45;cursor:not-allowed}.section-heading,.page-intro,.card-head{display:flex;justify-content:space-between;align-items:center;gap:18px}.section-heading{margin:32px 0 16px}.section-heading h2,.page-intro h1{margin:4px 0}.section-heading>span,.page-intro p,.muted{color:var(--muted)}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding-bottom:36px}.product-card{background:var(--surface);border:1px solid var(--border);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}.product-image{height:230px;background:linear-gradient(135deg,#eef2ff,#ede9fe);position:relative}.product-image img{width:100%;height:100%;object-fit:cover}.placeholder{width:100%;height:100%;display:grid;place-items:center;font-size:90px;font-weight:900;color:#6d5dfc}.type-badge{position:absolute;top:14px;right:14px;background:rgba(17,24,39,.85);color:white;border-radius:999px;padding:6px 10px;font-size:12px}.product-body{padding:18px}.product-body small,.product-body p{color:var(--muted)}.product-body h3{margin:5px 0}.price-row{display:flex;justify-content:space-between;align-items:center;margin:16px 0}.price-row strong{font-size:23px}.price-row span{font-size:12px;color:var(--muted)}.footer{display:flex;justify-content:space-between;width:min(1180px,calc(100% - 32px));margin:25px auto;padding:24px 0;color:var(--muted);border-top:1px solid var(--border)}.alert{padding:13px 16px;border-radius:14px;margin:16px 0;font-weight:650}.alert.success{background:rgba(16,185,129,.12);color:var(--success);border:1px solid rgba(16,185,129,.24)}.alert.danger{background:rgba(239,68,68,.12);color:var(--danger);border:1px solid rgba(239,68,68,.24)}.empty{grid-column:1/-1;padding:34px;text-align:center;color:var(--muted)}.table-card{padding:0;overflow:hidden}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{padding:14px 16px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);background:var(--surface2)}td small{display:block;color:var(--muted);margin-top:3px}.qty{width:80px}.cart-summary{padding:18px;display:flex;align-items:center;justify-content:flex-end;gap:18px}.cart-summary>div{display:flex;flex-direction:column;min-width:140px}.checkout-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:22px;padding-bottom:32px}.form-card,.order-review{padding:24px}.form-card h2{margin-top:0}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}.span-2{grid-column:span 2}.payment-options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.payment-options label{border:1px solid var(--border);padding:12px;border-radius:12px;flex-direction:row;align-items:center}.payment-options input{width:auto}.review-line{display:flex;justify-content:space-between;gap:16px;padding:10px 0}.review-line.total{font-size:20px}.success-page{max-width:680px;margin:70px auto;padding:44px;text-align:center}.success-icon{width:72px;height:72px;margin:0 auto 20px;border-radius:999px;display:grid;place-items:center;background:rgba(16,185,129,.14);color:var(--success);font-size:36px}.login-shell{min-height:70vh;display:grid;place-items:center}.login-card{width:min(460px,100%);padding:30px;display:flex;flex-direction:column;gap:15px}.login-card h1{margin:0}.login-card p{margin:0;color:var(--muted)}

.admin-body{overflow-x:hidden}.admin-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:var(--sidebar);color:#dbe3ef;padding:20px 14px;display:flex;flex-direction:column}.admin-brand{color:white;padding:0 8px 22px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav a{padding:11px 12px;border-radius:12px;color:#cbd5e1}.sidebar nav a:hover{background:rgba(255,255,255,.08);color:white}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding:16px 10px 0;display:flex;justify-content:space-between;gap:8px}.sidebar-footer a{color:#a5b4fc}.admin-main{min-width:0}.admin-topbar{height:72px;background:color-mix(in srgb,var(--surface) 92%,transparent);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}.admin-topbar>div{display:flex;flex-direction:column}.admin-topbar small{color:var(--muted)}#sidebarToggle{display:none}.admin-content{padding:26px}.page-intro{margin-bottom:22px}.page-intro p{margin:4px 0}.kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}.kpi-grid.four{grid-template-columns:repeat(4,1fr)}.kpi{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column}.kpi span,.kpi small{color:var(--muted)}.kpi strong{font-size:28px;margin:7px 0}.dashboard-grid{display:grid;grid-template-columns:1.5fr .7fr;gap:20px}.card-head{padding:18px 20px;border-bottom:1px solid var(--border)}.card-head h2{margin:0;font-size:18px}.card-head a,.card-head>span{color:var(--primary);font-weight:800}.rank-list{padding:10px 18px}.rank-list>div{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.rank-list p{margin:0;flex:1}.rank-list small{display:block;color:var(--muted)}.rank{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:var(--surface2);font-weight:900}.two-col{display:grid;grid-template-columns:minmax(360px,.75fr) minmax(0,1.35fr);gap:20px}.wide-form{grid-template-columns:minmax(390px,.9fr) minmax(0,1.2fr)}.split-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.split-preview span{background:var(--surface2);padding:12px;border-radius:12px}.filter-bar{margin-bottom:18px}.filter-bar label{min-width:170px}.status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900;background:var(--surface2)}.status.paid,.status.completed,.status.released{background:rgba(16,185,129,.12);color:var(--success)}.status.pending,.status.processing{background:rgba(245,158,11,.14);color:#b45309}.status.cancelled,.status.refunded{background:rgba(239,68,68,.12);color:var(--danger)}.status.shipped{background:rgba(59,130,246,.13);color:#2563eb}dialog{border:1px solid var(--border);border-radius:18px;background:var(--surface);color:var(--text);padding:0;box-shadow:0 30px 80px rgba(0,0,0,.35)}dialog::backdrop{background:rgba(0,0,0,.45);backdrop-filter:blur(3px)}.dialog-form{padding:22px;min-width:340px;display:flex;flex-direction:column;gap:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.inline-form{display:flex;gap:7px}.inline-form select{min-width:110px}.partner-balances{padding:10px 20px}.partner-balances>div{display:grid;grid-template-columns:1fr auto auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}.partner-balances p{margin:0}.partner-balances small{display:block;color:var(--muted)}.empty-mini{color:var(--muted);padding:20px!important}

@media(max-width:980px){
.product-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr}.admin-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-280px;z-index:60;width:260px;transition:.25s}.sidebar-open .sidebar{left:0}.sidebar-open:after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:50}.sidebar-open .sidebar{z-index:61}#sidebarToggle{display:block}.kpi-grid,.kpi-grid.four{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.two-col,.wide-form{grid-template-columns:1fr}.checkout-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
.container{width:min(100% - 20px,1180px)}.topbar{padding:10px}.brand small{display:none}.top-actions>a:not(.cart-link){display:none}.top-actions{gap:8px}.hero{margin:18px 0;padding:26px 20px;border-radius:22px}.hero h1{font-size:38px}.store-filter,.filter-bar{flex-direction:column;align-items:stretch}.store-filter select{min-width:0}.product-grid{grid-template-columns:1fr}.product-image{height:210px}.footer{width:calc(100% - 20px);flex-direction:column}.field-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.payment-options{grid-template-columns:1fr 1fr}.cart-summary{align-items:stretch;flex-direction:column}.admin-content{padding:16px}.admin-topbar{padding:0 14px}.kpi-grid,.kpi-grid.four{grid-template-columns:1fr}.page-intro{align-items:flex-start}.partner-balances>div{grid-template-columns:1fr}.split-preview{grid-template-columns:1fr}
}

/* Refugio Store v0.2.0 - pagamentos Mercado Pago */
.alert.warning{background:rgba(245,158,11,.13);border-color:rgba(245,158,11,.25);color:#92400e}.payment-options-rich{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-choice{display:flex!important;align-items:center!important;gap:11px!important;cursor:pointer;min-height:72px}.payment-choice input{flex:0 0 auto}.payment-choice>span:last-child{display:flex;flex-direction:column}.payment-choice small{color:var(--muted);margin-top:3px}.payment-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:rgba(79,70,229,.11);color:var(--primary);font-weight:900;font-size:18px}.payment-security{display:block;margin-top:13px;line-height:1.5}.checkout-trust{display:flex;flex-direction:column;gap:9px;margin-top:24px;padding-top:18px;border-top:1px solid var(--border);color:var(--muted);font-size:13px}.payment-page{max-width:850px;margin:36px auto 60px}.payment-status-card,.card-payment-card{padding:30px}.payment-status-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.status.big{font-size:13px;padding:8px 12px}.status.rejected{background:rgba(239,68,68,.12);color:var(--danger)}.payment-method-box{display:flex;justify-content:space-between;align-items:center;gap:24px;background:var(--surface2);border-radius:18px;padding:22px;margin:22px 0}.payment-method-label{font-size:11px;font-weight:900;letter-spacing:.12em;color:var(--primary)}.pix-qr{width:220px;height:220px;object-fit:contain;background:#fff;border-radius:18px;padding:10px;border:1px solid var(--border)}.copy-box{display:flex;gap:10px;align-items:stretch;margin:16px 0}.copy-box textarea,.copy-box input{flex:1;min-height:50px}.copy-box textarea{height:92px;resize:none}.payment-sync{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--border);margin-top:24px;padding-top:20px}.payment-sync small{color:var(--muted);max-width:420px}.payment-actions{display:flex;gap:10px;margin-top:22px}.payment-confirmed{text-align:center;padding:24px}.mp-card-form{margin-top:22px}.mp-secure-field{height:46px;border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:12px}.mp-progress{width:100%;height:5px;margin:12px 0}.payment-config-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:20px}.toggle-row{display:flex!important;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid var(--border)}.toggle-row>span{display:flex;flex-direction:column}.toggle-row small{color:var(--muted);margin-top:3px}.toggle-row input{width:22px;height:22px}.gateway-health{padding:24px}.health-line{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--border)}.health-line .ok{color:var(--success)}.health-line .bad{color:var(--danger)}.gateway-instructions{margin-top:22px;padding:16px;background:var(--surface2);border-radius:14px;overflow-wrap:anywhere}.gateway-instructions code{font-size:12px}.gateway-order-note{padding:10px 12px;background:var(--surface2);border-radius:10px;font-size:12px;color:var(--muted)}
@media(max-width:680px){.payment-options-rich,.payment-config-grid{grid-template-columns:1fr}.payment-status-top,.payment-method-box,.payment-sync{flex-direction:column;align-items:stretch}.pix-qr{width:min(100%,260px);height:auto;align-self:center}.copy-box{flex-direction:column}.payment-status-card,.card-payment-card{padding:20px}}

/* v0.2.1 — upload de fotos de produtos */
.field-help{font-weight:500;color:var(--muted);margin-top:-2px}.product-upload-preview{display:flex;align-items:center;gap:14px;padding:12px;border:1px dashed var(--border);border-radius:14px;background:var(--surface2)}.product-upload-preview[hidden]{display:none}.product-upload-preview img{width:88px;height:88px;object-fit:cover;border-radius:12px;border:1px solid var(--border);background:var(--surface)}.product-upload-preview>div{display:flex;flex-direction:column;gap:4px}.product-upload-preview small{color:var(--muted);font-weight:500}.product-row{display:flex;align-items:center;gap:10px}.product-row-thumb{width:46px;height:46px;flex:0 0 46px;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#eef2ff,#ede9fe);color:var(--primary);font-weight:900}.product-row-thumb img{width:100%;height:100%;object-fit:cover}

/* Refugio Store v0.2.2 — relatório de vendas */
.report-filters{flex-wrap:wrap}.report-filters label{min-width:160px}.report-filters label:nth-child(3),.report-filters label:nth-child(4){min-width:220px}.report-section{margin-bottom:22px}.report-section .card-head>div{display:flex;flex-direction:column}.report-section .card-head small{color:var(--muted);font-weight:500;margin-top:3px}.report-church-value{color:var(--success)}.sales-detail-table{min-width:1180px}
@media(max-width:760px){.report-filters label,.report-filters label:nth-child(3),.report-filters label:nth-child(4){min-width:0;width:100%}.page-intro{flex-direction:column}.page-intro>.btn{width:100%}}

/* =========================================================
   Refugio Store v0.3.0 — Loja moderna aprovada
   ========================================================= */
.container{width:min(1320px,calc(100% - 40px))}
.storefront-body{background:#fff;color:var(--text)}
:root[data-theme="dark"] .storefront-body{background:var(--bg)}
.store-notice{background:#2f8d3b;color:#efffec;text-align:center;font-size:12px;font-weight:750;padding:7px 16px;letter-spacing:.01em}
.store-header{position:sticky;top:0;z-index:70;background:#071725;color:white;box-shadow:0 8px 30px rgba(7,23,37,.18)}
.store-header-main{min-height:82px;display:grid;grid-template-columns:auto minmax(320px,1fr) auto;gap:28px;align-items:center}
.store-brand{display:inline-flex;align-items:center;gap:11px;min-width:max-content}
.store-brand-mark{width:42px;height:42px;border:2px solid #68b84b;border-radius:13px 13px 18px 18px;display:grid;place-items:center;color:#68b84b;font-size:24px;font-weight:900;transform:rotate(0deg);box-shadow:inset 0 0 0 4px rgba(104,184,75,.05)}
.store-brand-copy{display:flex;flex-direction:column;line-height:.95;letter-spacing:.13em}.store-brand-copy strong{font-size:20px;color:#fff}.store-brand-copy small{font-weight:900;color:#72ca55;font-size:10px;margin-top:6px;letter-spacing:.32em}
.store-search{display:grid;grid-template-columns:minmax(180px,1fr) 105px 48px;height:46px;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.15)}
.store-search input,.store-search select{border:0!important;border-radius:0!important;background:#fff!important;color:#1f2937!important;box-shadow:none!important;padding:0 14px}.store-search select{border-left:1px solid #e5e7eb!important;font-size:12px}.store-search button{border:0;background:#429c3e;color:#fff;font-size:22px;cursor:pointer}
.store-account{display:flex;align-items:center;gap:18px}.store-account>a{display:flex;align-items:center;gap:9px;color:white}.store-account>a>span:last-of-type{display:flex;flex-direction:column;line-height:1.15}.store-account small{font-size:10px;color:#d2d9df}.store-account strong{font-size:12px;margin-top:3px}.action-icon{font-size:24px}.store-cart{position:relative}.store-cart>b{position:absolute;left:17px;top:-7px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;background:#60b849;border-radius:999px;font-size:11px}.header-theme{background:#0d2537;border-color:#294355;color:white}
.store-nav-wrap{border-top:1px solid rgba(255,255,255,.08);background:#081a29}.store-nav{height:48px;display:flex;align-items:center;gap:27px;font-size:13px;font-weight:720;white-space:nowrap;overflow:auto;scrollbar-width:none}.store-nav::-webkit-scrollbar{display:none}.store-nav a{color:#e6ebee;transition:.2s}.store-nav a:hover{color:#71c854}.store-nav .all-categories{align-self:stretch;display:flex;align-items:center;background:#123047;padding:0 18px;border-left:3px solid #62b849;color:white;margin-right:6px}
.mobile-menu-btn{display:none;border:0;background:transparent;color:white;font-size:23px;padding:8px}
.store-main{min-height:60vh}.top-alert{margin-top:16px}
.store-hero{margin-top:0;min-height:410px;display:grid;grid-template-columns:minmax(0,.46fr) minmax(0,.54fr);background:linear-gradient(110deg,#071725 0%,#0a2530 53%,#143b2d 100%);color:white;overflow:hidden;position:relative;border-radius:0 0 28px 28px;box-shadow:0 16px 45px rgba(7,23,37,.14)}
.store-hero:after{content:"";position:absolute;inset:auto 0 0 0;height:1px;background:linear-gradient(90deg,transparent,#68b84b,transparent)}
.hero-copy{padding:54px 22px 50px 34px;position:relative;z-index:2}.hero-kicker{font-size:11px;letter-spacing:.14em;color:#8bd76e;font-weight:900}.hero-copy h1{font-size:clamp(42px,5vw,70px);line-height:.98;letter-spacing:-.04em;margin:13px 0 18px;max-width:650px}.hero-copy h1 em{display:block;color:#69bb4f;font-style:normal}.hero-copy>p{color:#d5e0df;font-size:17px;max-width:580px;margin:0 0 24px}.hero-actions{display:flex;gap:12px;margin-bottom:30px}.btn.store-primary{background:linear-gradient(135deg,#3c963b,#66b948);color:white;border:0;box-shadow:0 8px 18px rgba(63,151,63,.2)}.btn.store-primary:hover{filter:brightness(1.05);transform:translateY(-1px)}.btn.store-secondary{background:rgba(255,255,255,.03);color:white;border:1px solid rgba(255,255,255,.25)}.hero-trust{display:flex;flex-wrap:wrap;gap:20px;color:#e8f0ef;font-size:12px}.hero-trust span{display:flex;align-items:center;gap:7px}.hero-trust b{font-size:18px;color:#8ed973}
.hero-visual{min-height:410px;background-image:linear-gradient(90deg,#0a2530 0%,rgba(7,23,37,.28) 22%,rgba(7,23,37,.06) 58%,rgba(7,23,37,.18) 100%),url('../images/hero-refugio-store.jpg');background-size:cover;background-position:center;position:relative}.hero-purpose-card{position:absolute;right:24px;bottom:22px;width:min(310px,calc(100% - 40px));padding:16px 18px;border:1px solid rgba(255,255,255,.24);background:rgba(3,18,18,.58);backdrop-filter:blur(10px);border-radius:16px;display:flex;flex-direction:column}.hero-purpose-card span{font-size:10px;color:#8cdb71;letter-spacing:.18em;font-weight:900}.hero-purpose-card strong{font-size:16px;margin-top:4px}
.category-panel{position:relative;z-index:3;margin-top:-26px;background:rgba(255,255,255,.98);border:1px solid #e5ece7;border-radius:18px;padding:10px;box-shadow:0 18px 45px rgba(7,23,37,.12);display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px}.category-chip{min-height:92px;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;padding:10px 7px;transition:.2s;border:1px solid transparent}.category-chip:hover,.category-chip.active{background:#f2f8f1;border-color:#d4ead1;transform:translateY(-2px)}.category-chip>span{font-size:25px;color:#3f973f}.category-chip strong{font-size:12px}.category-chip small{font-size:10px;color:#7b8981}.category-all{background:#f8faf8}
.store-section{padding-top:42px}.store-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}.store-section-head h2{font-size:27px;margin:3px 0 0;letter-spacing:-.02em}.eyebrow{color:#3f973f}.section-filter-pills{display:flex;gap:7px;background:#f4f7f5;padding:5px;border-radius:11px}.section-filter-pills a{font-size:12px;padding:7px 11px;border-radius:8px;color:#607068}.section-filter-pills a.active{background:white;color:#2f7f38;box-shadow:0 2px 9px rgba(7,23,37,.08);font-weight:800}.catalog-result-note{font-size:13px;color:#66736c;background:#f4f8f5;border:1px solid #e0ece2;padding:10px 13px;border-radius:11px;margin-bottom:14px}.catalog-result-note a{color:#31873a;font-weight:800}
.modern-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.modern-product-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.modern-product-card{background:#fff;border:1px solid #e5ebe7;border-radius:15px;overflow:hidden;box-shadow:0 8px 26px rgba(7,23,37,.06);transition:.22s}.modern-product-card:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(7,23,37,.11);border-color:#d2e5d5}.modern-product-image{height:245px;background:#f5f7f6;display:block;position:relative;overflow:hidden}.modern-product-image img{width:100%;height:100%;object-fit:cover;transition:.3s}.modern-product-card:hover .modern-product-image img{transform:scale(1.025)}.product-fallback{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:2px;background:radial-gradient(circle at 50% 30%,#f7fbf5,#e9f2ea);color:#3c8b40}.product-fallback>span{font-size:78px;font-weight:900}.product-fallback small{text-transform:uppercase;letter-spacing:.18em;font-size:9px;font-weight:900;color:#7a9a7d}.product-fallback.detail>span{font-size:130px}.product-flag,.product-owner{position:absolute;top:12px;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;box-shadow:0 4px 12px rgba(0,0,0,.08)}.product-flag{left:11px;background:#43a447;color:white}.product-owner{right:11px;background:#071725;color:white}.product-owner.church{background:#b47a15}.modern-product-body{padding:14px}.product-category{color:#77907e;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.modern-product-body h3{font-size:15px;line-height:1.25;margin:5px 0 6px;min-height:38px}.product-seller{font-size:11px;color:#7a8580;margin:0 0 11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-price{display:flex;align-items:end;justify-content:space-between;gap:8px}.product-price strong{font-size:20px}.product-price small{font-size:9px;color:#839087}.church-impact{margin:11px 0;padding:7px 8px;border-radius:9px;background:#eef8ed;color:#337f38;font-size:10px;font-weight:800}.product-actions{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:12px}.product-actions form{margin:0}.product-actions .btn{padding:9px 10px;font-size:11px}.product-details{background:#f2f5f3;border:1px solid #e2e8e4;color:#33473c}.modern-empty{grid-column:1/-1;padding:30px}
.purpose-strip{margin-top:42px;border:1px solid #e3eae5;border-radius:18px;display:grid;grid-template-columns:repeat(4,1fr);background:#fbfcfb;overflow:hidden}.purpose-strip article{display:flex;gap:12px;padding:21px;border-right:1px solid #e8ede9}.purpose-strip article:last-child{border:0}.purpose-strip article>span{font-size:25px;color:#3f973f}.purpose-strip article>div{display:flex;flex-direction:column}.purpose-strip strong{font-size:13px}.purpose-strip small{font-size:11px;color:#728078;margin-top:3px}
.partners-showcase{padding:44px 0 56px}.text-link{font-size:12px;color:#2e8638;font-weight:800}.partner-chip-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.partner-store-card{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #e2e9e4;border-radius:14px;background:#fff}.partner-store-card>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eaf6e8;color:#3b8d40;font-weight:900;font-size:20px}.partner-store-card>div{display:flex;flex-direction:column;min-width:0}.partner-store-card strong{font-size:13px}.partner-store-card small{font-size:10px;color:#748079;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-footer{background:#071725;color:#eef4f1;padding:38px 0 22px}.store-footer-grid{display:grid;grid-template-columns:1.15fr repeat(3,1fr);gap:28px}.footer-brand{margin-bottom:12px}.store-footer p,.store-footer span{color:#adbbc0;font-size:12px}.store-footer-grid>div:not(:first-child){display:flex;flex-direction:column;gap:7px}.store-footer-grid strong{font-size:13px}.store-footer-bottom{display:flex;justify-content:space-between;gap:15px;margin-top:30px;padding-top:16px;border-top:1px solid rgba(255,255,255,.1)}.mobile-bottom-nav{display:none}

/* Detalhe do produto */
.product-breadcrumb{display:flex;align-items:center;gap:8px;padding-top:20px;color:#718078;font-size:12px;overflow:auto;white-space:nowrap}.product-breadcrumb strong{color:#263b30}.product-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.8fr);gap:40px;padding-top:22px;padding-bottom:35px}.product-detail-media{position:relative;min-height:590px;background:#f5f7f6;border:1px solid #e4ebe6;border-radius:20px;overflow:hidden;display:grid;place-items:center}.product-detail-media img{width:100%;height:100%;object-fit:contain;background:#fff}.product-detail-copy{padding:16px 0}.detail-owner{display:inline-flex;border-radius:999px;padding:5px 9px;background:#e9f6e8;color:#2e7d36;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.detail-owner.church{background:#fff4df;color:#9a6611}.product-detail h1{font-size:38px;line-height:1.08;margin:12px 0 7px;letter-spacing:-.03em}.detail-seller{color:#6e7c74;margin:0 0 12px}.detail-rating{font-size:13px;color:#c58617}.detail-rating span{color:#78857e;margin-left:8px}.detail-price{font-size:34px;font-weight:900;margin:19px 0 6px}.detail-stock{color:#2b8636;font-weight:800;font-size:13px}.detail-stock.low{color:#b26f10}.impact-card{display:flex;gap:13px;background:#f1f8ef;border:1px solid #dcebd9;border-radius:14px;padding:14px;margin:18px 0}.impact-card>span{font-size:27px;color:#40953e}.impact-card strong{font-size:13px}.impact-card p{font-size:12px;color:#64736a;margin:3px 0 0}.detail-buy{margin-top:17px}.detail-buy .btn{font-size:15px;padding:14px}.buy-now{margin-top:8px;background:#f5f7f5;border:1px solid #e2e8e4;color:#496055;cursor:default}.detail-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:15px}.detail-trust span{font-size:10px;text-align:center;padding:10px;border:1px solid #e6ebe8;border-radius:10px;color:#65736b}.product-description{padding:25px;margin-bottom:10px}.product-description h2{margin:3px 0 12px}.product-description>p{color:#617067}.product-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:20px}.product-meta>span{display:flex;flex-direction:column;padding:12px;background:#f5f8f6;border-radius:11px}.product-meta small{color:#7b8881;font-size:10px}.product-meta strong{font-size:13px;margin-top:3px}.related-products{padding-bottom:50px}.product-not-found{padding:50px 0}

/* Carrinho/checkout integrados ao novo visual */
.storefront-body .card{border-color:#e1e9e3;box-shadow:0 12px 34px rgba(7,23,37,.07)}.storefront-body .btn.primary{background:linear-gradient(135deg,#3f973f,#68b84b)}.storefront-body input:focus,.storefront-body select:focus,.storefront-body textarea:focus{border-color:#4ba349;box-shadow:0 0 0 3px rgba(63,151,63,.12)}.storefront-body .table-card,.storefront-body .checkout-grid,.storefront-body .payment-page{margin-top:22px}.storefront-body .section-heading{width:min(1320px,calc(100% - 40px));margin:30px auto 15px}.storefront-body>.store-main>.card,.storefront-body>.store-main>form.card{width:min(1320px,calc(100% - 40px));margin-left:auto;margin-right:auto}.storefront-body .cart-summary{border-top:1px solid #e5ebe7}.storefront-body .payment-icon{background:#edf7eb;color:#3d913d}

/* Painel administrativo com a mesma identidade */
.admin-body{background:#f4f7f5}.sidebar{background:linear-gradient(180deg,#071725,#071d20)}.admin-brand .brand-mark{background:linear-gradient(135deg,#3c8f3c,#6fbd4f);box-shadow:0 8px 18px rgba(63,151,63,.25)}.sidebar nav a{border:1px solid transparent}.sidebar nav a:hover{background:rgba(92,184,76,.10);border-color:rgba(92,184,76,.14)}.sidebar nav a.active{background:linear-gradient(90deg,rgba(68,157,63,.26),rgba(68,157,63,.08));color:#a8ed91;border-left:3px solid #62bb4b}.admin-topbar{background:rgba(255,255,255,.92)}.kpi{position:relative;overflow:hidden}.kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#4a9e45}.kpi strong{color:#123022}.card-head a,.card-head>span{color:#3b8e3c}.rank{background:#edf6eb;color:#387f38}.status.paid,.status.completed,.status.released{background:#eaf7e8;color:#2f8537}.admin-content .btn.primary{background:linear-gradient(135deg,#3d923c,#68b84b)}

:root[data-theme="dark"] .storefront-body{color:var(--text)}
:root[data-theme="dark"] .category-panel,:root[data-theme="dark"] .modern-product-card,:root[data-theme="dark"] .partner-store-card,:root[data-theme="dark"] .product-description{background:var(--surface);border-color:var(--border)}
:root[data-theme="dark"] .category-chip:hover,:root[data-theme="dark"] .category-chip.active,:root[data-theme="dark"] .section-filter-pills,:root[data-theme="dark"] .product-meta>span,:root[data-theme="dark"] .buy-now{background:var(--surface2)}
:root[data-theme="dark"] .modern-product-image,:root[data-theme="dark"] .product-detail-media{background:#13241c;border-color:var(--border)}
:root[data-theme="dark"] .purpose-strip{background:var(--surface);border-color:var(--border)}
:root[data-theme="dark"] .purpose-strip article{border-color:var(--border)}
:root[data-theme="dark"] .storefront-body .card{border-color:var(--border)}

@media(max-width:1100px){
.store-header-main{grid-template-columns:auto 1fr auto;gap:16px}.store-account>a>span:last-of-type{display:none}.store-account{gap:10px}.store-search{grid-template-columns:1fr 90px 44px}.modern-product-grid,.modern-product-grid.compact{grid-template-columns:repeat(3,1fr)}.partner-chip-grid{grid-template-columns:repeat(2,1fr)}.purpose-strip{grid-template-columns:repeat(2,1fr)}.purpose-strip article:nth-child(2){border-right:0}.purpose-strip article:nth-child(-n+2){border-bottom:1px solid #e8ede9}
}
@media(max-width:820px){
.container{width:min(100% - 22px,1320px)}.store-notice{font-size:10px}.store-header-main{min-height:64px;grid-template-columns:auto auto 1fr auto}.mobile-menu-btn{display:block}.store-brand-mark{width:35px;height:35px}.store-brand-copy strong{font-size:16px}.store-brand-copy small{font-size:8px}.store-search{grid-column:1/-1;grid-row:2;margin-bottom:10px;height:41px;grid-template-columns:1fr 42px}.store-search select{display:none}.store-account>a:first-child,.header-theme{display:none}.store-account{margin-left:auto}.store-account .store-cart>span:last-of-type{display:none}.store-nav-wrap{display:none}.store-nav-wrap.open{display:block}.store-nav{height:auto;flex-direction:column;align-items:stretch;padding:10px 12px 15px;gap:3px}.store-nav a{padding:10px 12px;border-radius:8px}.store-nav .all-categories{padding:10px 12px;margin:0;border-left:0}.store-hero{width:100%;grid-template-columns:1fr;min-height:auto;border-radius:0}.hero-copy{padding:35px 20px 28px}.hero-copy h1{font-size:44px;max-width:520px}.hero-visual{min-height:250px;background-position:center 35%}.hero-purpose-card{right:14px;bottom:14px}.category-panel{margin-top:-18px;grid-template-columns:repeat(4,1fr);overflow-x:auto;display:flex;padding:8px}.category-chip{min-width:112px}.modern-product-grid,.modern-product-grid.compact{grid-template-columns:repeat(2,1fr)}.purpose-strip{grid-template-columns:1fr 1fr}.product-detail{grid-template-columns:1fr;gap:18px}.product-detail-media{min-height:430px}.product-detail-copy{padding:0}.store-footer-grid{grid-template-columns:1fr 1fr}.mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:80;bottom:0;left:0;right:0;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-top:1px solid #dde6df;padding:6px max(8px,env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(7,23,37,.09)}.mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:1px;color:#51645a;position:relative}.mobile-bottom-nav span{font-size:18px}.mobile-bottom-nav small{font-size:9px}.mobile-bottom-nav b{position:absolute;top:-2px;left:calc(50% + 4px);background:#4ba548;color:#fff;font-size:9px;min-width:16px;height:16px;display:grid;place-items:center;border-radius:999px}.store-footer{padding-bottom:76px}
}
@media(max-width:560px){
.store-header-main{grid-template-columns:auto auto 1fr auto}.store-account{gap:0}.store-brand-copy strong{font-size:14px}.store-brand-copy small{letter-spacing:.2em}.hero-copy h1{font-size:38px}.hero-copy>p{font-size:14px}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn{text-align:center}.hero-trust{gap:10px;font-size:10px}.hero-visual{min-height:210px}.hero-purpose-card{display:none}.category-panel{border-radius:13px}.store-section{padding-top:32px}.store-section-head{align-items:flex-start;flex-direction:column}.section-filter-pills{width:100%;overflow:auto}.modern-product-grid,.modern-product-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.modern-product-image{height:175px}.modern-product-body{padding:10px}.modern-product-body h3{font-size:12px;min-height:31px}.product-price{align-items:flex-start;flex-direction:column;gap:1px}.product-price strong{font-size:17px}.church-impact{font-size:9px}.product-actions{grid-template-columns:1fr}.product-actions .btn{width:100%}.purpose-strip{grid-template-columns:1fr}.purpose-strip article{border-right:0!important;border-bottom:1px solid #e8ede9!important}.purpose-strip article:last-child{border-bottom:0!important}.partner-chip-grid{grid-template-columns:1fr}.store-footer-grid{grid-template-columns:1fr}.store-footer-bottom{flex-direction:column}.product-detail-media{min-height:340px}.product-detail h1{font-size:30px}.detail-trust{grid-template-columns:1fr}.product-meta{grid-template-columns:1fr}.storefront-body .section-heading{width:calc(100% - 22px)}.storefront-body>.store-main>.card,.storefront-body>.store-main>form.card{width:calc(100% - 22px)}
}
.storefront-body .checkout-grid{width:min(1320px,calc(100% - 40px));margin-left:auto;margin-right:auto}.store-main>.alert{width:min(1320px,calc(100% - 40px));margin-left:auto;margin-right:auto}.admin-top-actions{display:flex!important;flex-direction:row!important;align-items:center;gap:8px}.detail-buy{display:grid;grid-template-columns:1fr;gap:8px}.detail-buy .buy-now{margin-top:0;background:#fff;border:1px solid #cfdcd2;color:#2d4937}.detail-buy .buy-now:hover{background:#f3f8f3}
@media(max-width:560px){.storefront-body .checkout-grid,.store-main>.alert{width:calc(100% - 22px)}}

/* v0.3.1 — ações seguras de exclusão */
.btn.danger{background:rgba(220,38,38,.09);border:1px solid rgba(220,38,38,.24);color:#b91c1c}
.btn.danger:hover{background:rgba(220,38,38,.16)}
.btn.danger:disabled{opacity:.42;cursor:not-allowed}
.row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.inline-delete-form{display:inline-flex;margin:0}
.payout-actions{min-width:280px}
.payout-actions .inline-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.payout-actions .inline-form select{width:auto;min-width:120px}
:root[data-theme="dark"] .btn.danger{background:rgba(239,68,68,.13);border-color:rgba(239,68,68,.28);color:#fca5a5}


/* v0.3.2 — impressão do Relatório de Vendas */
.report-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.print-report-header{display:none}
@media(max-width:760px){.report-actions{width:100%}.report-actions .btn{flex:1;min-width:180px}}
@media print{
  @page{size:A4 landscape;margin:9mm}
  html,:root,:root[data-theme="dark"]{background:#fff!important;color:#111!important;color-scheme:light!important}
  body.admin-body{background:#fff!important;color:#111!important;font-family:Arial,Helvetica,sans-serif!important;font-size:8.4pt!important;overflow:visible!important}
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;box-shadow:none!important;text-shadow:none!important}
  .sidebar,.admin-topbar,.no-print,.alert,.admin-content>.page-intro{display:none!important}
  .admin-shell{display:block!important;min-height:auto!important}.admin-main{display:block!important}.admin-content{padding:0!important;margin:0!important;width:100%!important;max-width:none!important}
  .print-report-header{display:flex!important;justify-content:space-between;align-items:flex-end;gap:18px;padding:0 0 8mm;border-bottom:2px solid #3f973f;margin:0 0 6mm}
  .print-report-brand{display:flex;align-items:center;gap:10px}.print-report-mark{width:34px;height:34px;border:2px solid #3f973f;border-radius:10px;display:grid;place-items:center;color:#3f973f;font-size:18px;font-weight:900}.print-report-brand>div:last-child{display:flex;flex-direction:column}.print-report-brand strong{font-size:15pt;letter-spacing:.06em;color:#071725}.print-report-brand small{font-size:8pt;color:#4a5b52}
  .print-report-meta{display:flex;flex-direction:column;align-items:flex-end;text-align:right;max-width:58%}.print-report-meta strong{font-size:9pt;color:#071725}.print-report-meta span,.print-report-meta small{font-size:7.5pt;color:#4a5b52;margin-top:2px}
  .kpi-grid.four{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:4mm!important;margin:0 0 6mm!important}
  .kpi{background:#fff!important;border:1px solid #cfd8d1!important;border-radius:3mm!important;padding:4mm!important;break-inside:avoid;page-break-inside:avoid}.kpi:before{width:1.2mm!important;background:#3f973f!important}.kpi span,.kpi small{color:#445249!important}.kpi strong{font-size:13pt!important;color:#102019!important}
  .report-section{background:#fff!important;border:1px solid #cfd8d1!important;border-radius:2.5mm!important;margin:0 0 6mm!important;overflow:visible!important;break-inside:auto!important}.report-section .card-head{padding:3mm 4mm!important;border-bottom:1px solid #dce3de!important}.report-section .card-head h2{font-size:11pt!important;margin:0!important;color:#102019!important}.report-section .card-head small,.report-section .card-head>span{font-size:7pt!important;color:#536158!important}
  .table-wrap{overflow:visible!important}.report-section table,.sales-detail-table{width:100%!important;min-width:0!important;table-layout:auto!important;border-collapse:collapse!important}.report-section thead{display:table-header-group!important}.report-section tfoot{display:table-footer-group!important}.report-section tr{break-inside:avoid!important;page-break-inside:avoid!important}.report-section th{background:#edf4ee!important;color:#23352a!important;font-size:6.6pt!important;letter-spacing:.02em!important;padding:2.1mm 1.6mm!important;border-bottom:1px solid #bfcac2!important}.report-section td{font-size:7pt!important;padding:2mm 1.6mm!important;border-bottom:1px solid #e2e7e3!important;color:#111!important}.report-section td small{font-size:6.2pt!important;color:#59675f!important;margin-top:1px!important}.report-section td strong{font-size:7.2pt!important}.report-church-value{color:#176b2c!important}
  .sales-detail-table th:nth-child(2),.sales-detail-table td:nth-child(2){max-width:28mm}.sales-detail-table th:nth-child(3),.sales-detail-table td:nth-child(3){max-width:38mm}.sales-detail-table th:nth-child(4),.sales-detail-table td:nth-child(4){max-width:30mm}
  a{text-decoration:none!important;color:inherit!important}
}


/* v0.3.4 — exclusão funcional de itens do carrinho */
.cart-remove-btn{white-space:nowrap}
.cart-summary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-right:auto}
.cart-total-box{display:flex;flex-direction:column;min-width:140px}
@media(max-width:560px){.cart-summary-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.cart-summary-actions .btn{width:100%}.cart-total-box{width:100%;padding:8px 0}}
