@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');
:root{--ink:#182f29;--green:#245a43;--cream:#f7f8f2;--line:#e1e6dd}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:15px 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button,a{cursor:pointer}button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:10px;padding:11px 16px}button:hover{filter:brightness(.96)}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit;text-decoration:none}.primary{background:var(--green);color:white;border-color:var(--green)}header{display:flex;align-items:center;justify-content:space-between;padding:24px 5%;background:white;border-bottom:1px solid var(--line);gap:20px}.brand{font:bold 40px 'Manrope',sans-serif;letter-spacing:-3px}.brand span{color:#d3e593;font-size:19px;margin-left:3px}nav{display:flex;gap:22px;align-items:center}nav button{border:0;padding:8px;background:transparent}header>div{display:flex;gap:10px}main{max-width:1320px;margin:auto;padding:36px 5%;min-height:75vh}.hero{background:#e7eddc;border-radius:24px;padding:48px;display:grid;grid-template-columns:1.3fr 1fr;overflow:hidden;align-items:center}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:2px;font-weight:800;color:#52715b}h1{font:800 clamp(32px,4vw,54px)/1.12 'Manrope',sans-serif;letter-spacing:-2px;margin:17px 0}h2{font:800 26px 'Manrope',sans-serif;letter-spacing:-.8px}p{color:#6c7a70;line-height:1.7}.hero p{max-width:370px}.hero-art{display:flex;justify-content:center;align-items:center;gap:12px;transform:rotate(-8deg)}.hero-art span{display:grid;place-items:center;width:110px;height:150px;background:#f8f5e9;border-radius:60px 60px 20px 20px;font-size:65px;box-shadow:10px 20px 25px #506e3820}.hero-art span:nth-child(2){background:#c1d496;height:210px}.benefits{display:flex;justify-content:space-around;padding:24px 0;border-bottom:1px solid var(--line);font-size:13px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:28px 0 20px;gap:15px}input,select,textarea{padding:12px;border:1px solid var(--line);border-radius:9px;background:white;width:100%;color:var(--ink)}#search{max-width:300px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:25px}.filters .selected{background:var(--ink);color:white}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:white;border:1px solid var(--line);border-radius:17px;padding:12px}.product-art{height:170px;background:#eff0e8;border-radius:12px;display:grid;place-items:center;font-size:80px}.card:nth-child(3n+2) .product-art{background:#f5eee2}.card:nth-child(3n) .product-art{background:#e7edf0}.card-body{padding:16px 8px 7px}.card h3{margin:10px 0 4px;font-size:17px}.card p{font-size:13px;margin:0}.tag{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#6d7b68}.price-row{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.price-row b{font-size:21px}.stock{font-size:11px;color:#6d7b68;display:block;margin-top:5px}footer{padding:30px 5%;display:flex;gap:20px;border-top:1px solid var(--line);font-size:12px;color:#758276}footer span{margin-left:auto}dialog{border:0;border-radius:20px;width:min(540px,94vw);max-height:90vh;padding:28px;color:var(--ink)}dialog::backdrop{background:#14261c88;backdrop-filter:blur(3px)}.close{float:right}.form{display:grid;gap:14px}.form label{display:grid;gap:7px;font-size:13px}.muted{color:#788378;font-size:13px}.cart-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 0;border-bottom:1px solid var(--line)}.cart-line button{padding:4px 10px}.summary{padding:20px 0;display:flex;justify-content:space-between;font-size:22px}.order{background:white;padding:22px;border:1px solid var(--line);border-radius:14px;margin-bottom:15px}.order-head{display:flex;justify-content:space-between;gap:12px}.badge{display:inline-block;background:#e5eed9;padding:6px 10px;border-radius:20px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:24px 0}.stats>div{background:white;border:1px solid var(--line);border-radius:14px;padding:22px}.stats b{display:block;font-size:30px;margin-top:9px}.admin-tabs{display:flex;gap:10px;margin:25px 0}table{width:100%;border-collapse:collapse;background:white}td,th{text-align:left;padding:15px;border-bottom:1px solid var(--line)}.table-wrap{overflow:auto}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:15px 24px;border-radius:12px;display:none;z-index:20}.empty{padding:50px;text-align:center;color:#788378}@media(max-width:700px){header{padding:15px 5%;flex-wrap:wrap}nav{order:3;width:100%;justify-content:space-between;gap:5px;font-size:12px}nav button{font-size:12px}main{padding-top:20px}.hero{padding:25px;grid-template-columns:1fr}.hero-art{display:none}.hero h1{max-width:290px}.benefits{gap:12px;font-size:10px}.grid{grid-template-columns:repeat(2,1fr);gap:10px}.product-art{height:125px;font-size:58px}.card-body{padding:10px 2px}.card h3{font-size:14px}.price-row{gap:4px}.price-row b{font-size:17px}.price-row button{padding:8px 10px}.section-head{align-items:start;flex-direction:column}.stats{gap:7px}.stats>div{padding:12px}.stats b{font-size:22px}footer{flex-wrap:wrap}footer span{margin:0}}

/* Cabeçalho e rodapé seguem a mesma margem do conteúdo central. */
header,footer{padding-left:max(5%,calc((100% - 1320px)/2 + 5%));padding-right:max(5%,calc((100% - 1320px)/2 + 5%))}
/* Fundo em degradê verde compartilhado pela loja e pelo painel. */
body{background:linear-gradient(135deg,#f3f8ed 0%,#dcebd5 48%,#a9c9ac 100%);background-attachment:fixed}
/* Identidade visual da Super Casa da Hortifruti */
:root{--green:#064526;--ink:#123d28}header{padding-top:12px;padding-bottom:12px}.brand{display:flex;flex-shrink:0;letter-spacing:normal}.brand img{display:block;width:104px;height:104px;object-fit:contain;border-radius:8px}.footer-logo{width:64px;height:64px;object-fit:contain;border-radius:6px}footer{align-items:center}.hero{background:#e7efdf}.hero .eyebrow{color:#064526}button:focus-visible,a:focus-visible{outline:3px solid #be3e44;outline-offset:3px}@media(max-width:700px){.brand img{width:80px;height:80px}header{gap:12px}}

.address-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;border:1px solid var(--line);border-radius:12px;padding:16px;min-width:0}.address-fields legend{padding:0 6px;font-weight:700}.address-fields label:nth-of-type(2){grid-column:1/-1}.form .save-address{display:flex;align-items:center;gap:10px}.save-address input{width:auto}@media(max-width:450px){.address-fields{grid-template-columns:1fr}}

.product-art{overflow:hidden}.product-art img{width:100%;height:100%;object-fit:contain;padding:12px;display:block}.photo-preview{height:190px;background:#f2f5ee;border:1px dashed #b5c7b4;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#6c7a70}.photo-preview img{width:100%;height:100%;object-fit:contain;padding:10px}.admin-product{display:flex;align-items:center;gap:12px}.product-thumb{width:48px;height:48px;object-fit:contain;background:#f2f5ee;border-radius:7px;padding:3px}

.order-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.order-actions:empty{display:none}.danger{color:#a12525;border-color:#deb5b5;background:#fff8f6}

.badge.inactive{background:#f7dddd;color:#922727}.admin-tabs{flex-wrap:wrap}#customerSearch{max-width:320px}

#adminOrderSearch,#adminProductSearch{max-width:320px}.order[hidden],tr[hidden]{display:none}

.order-date-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.order-date-filters label{display:grid;gap:6px;font-size:13px}.order-date-filters input{max-width:200px}.order-date-filters .muted{padding-bottom:10px}

.dash-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.dash-heading h1{font-size:clamp(28px,3vw,42px);letter-spacing:-1.5px;margin:15px 0}.dash-heading h1 span{color:#7da85e}.dash-heading p{margin:0}.dash-live{white-space:nowrap;font-size:11px;background:#ffffffa6;padding:10px 14px;border-radius:25px;color:#326947}.dash-nav{border-bottom:1px solid #b4ccad;padding-bottom:20px}.dash-period{display:flex;justify-content:space-between;align-items:center;margin:30px 0 22px;gap:15px}.dash-period h2{margin:0 0 8px;font-size:23px}.dash-period label{display:grid;gap:5px;font-size:11px}.dash-period select{min-width:190px}.dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.dash-kpi{background:#fff;border:1px solid #dde7d8;border-radius:16px;padding:21px;box-shadow:0 4px 16px #214b2a04}.kpi-label{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:12px;color:#617566}.kpi-label span{font-size:19px;background:#edf4e8;padding:5px 9px;border-radius:9px;color:#3b7047}.dash-kpi strong{display:block;font-family:Manrope,sans-serif;font-size:clamp(22px,2.1vw,30px);margin:16px 0 10px;letter-spacing:-1px;overflow-wrap:anywhere}.dash-kpi small{font-size:10px;line-height:1.5;color:#748575;display:block}.dash-kpi.featured{background:linear-gradient(125deg,#063e28,#24653e);border-color:#164c31;color:#fff}.featured .kpi-label,.featured small{color:#c9dfc7}.featured .kpi-label span{background:#ffffff17;color:#e0eccb}.dash-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:22px}.dash-panel{background:#fff;border:1px solid #dce6d8;border-radius:18px;padding:25px;min-width:0}.dash-panel h3{margin:0;font-size:17px;letter-spacing:-.4px}.dash-panel p{font-size:12px;margin:7px 0 18px}.dash-panel-head{display:flex;justify-content:space-between;align-items:start;gap:10px}.sales-chart{width:100%;height:auto;min-height:180px;display:block}.donut{width:145px;height:145px;border-radius:50%;margin:22px auto;display:grid;place-items:center}.donut>div{border-radius:50%;background:white;width:109px;height:109px;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut strong{font-size:30px}.donut small{color:#81907d;font-size:11px}.dash-legend>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin:10px 0}.dash-legend i{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px}.orders-bars{height:135px;display:flex;align-items:end;gap:4px;border-bottom:1px solid #e1e9df;margin-top:30px}.bar-slot{height:100%;flex:1;display:flex;align-items:end}.bar-slot>div{width:100%;background:#6c9c70;border-radius:4px 4px 0 0;transition:height .3s}.bar-slot:hover>div{background:#225b39}.chart-axis{display:flex;justify-content:space-between;font-size:10px;color:#7e8b7d;margin-top:12px}.payment-row{margin:24px 0}.payment-row>div:first-child{display:flex;justify-content:space-between;font-size:12px;gap:10px}.dash-track{height:7px;background:#edf2e8;border-radius:8px;overflow:hidden;margin-top:10px}.dash-track span{display:block;height:100%;background:#669268;border-radius:8px}.top-product{display:flex;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid #eef1ea}.top-product:last-child{border:0}.rank{font-size:12px;background:#f0f5ec;border-radius:9px;padding:10px;color:#7e9478}.top-product>div{flex:1;font-size:13px}.top-product small{display:block;font-size:11px;color:#7f8c7c;margin-top:5px}.top-product strong{font-size:13px}.health-row{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid #edf1e8;font-size:12px}.stock-alert{background:#f7f3e8;padding:15px;border-radius:12px;margin-top:18px;color:#786033;font-size:12px}.stock-alert p{margin-bottom:8px}.stock-alert small{display:block;line-height:1.8}.dash-footnote{font-size:11px;max-width:900px;margin:22px 0;color:#597257}.dash-empty{text-align:center;padding:20px;color:#7c8a78}@media(max-width:1000px){.dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-heading{align-items:start;flex-direction:column}.dash-layout{grid-template-columns:1fr}}@media(max-width:500px){.dash-kpis{gap:9px}.dash-kpi{padding:15px}.dash-kpi strong{font-size:23px}.dash-panel{padding:18px}.dash-period{align-items:start;flex-direction:column}.dash-live{white-space:normal}.dash-nav button{font-size:12px;padding:10px}.dash-heading h1{letter-spacing:-1px}}

/* Cabeçalho sempre visível durante a rolagem. */
body>header{position:sticky;top:0;z-index:10;background:#fff;box-shadow:0 3px 14px #123d2810}
html{scroll-padding-top:150px}@media(max-width:700px){html{scroll-padding-top:190px}}

.hero{grid-template-columns:1fr}

/* Destaque dos textos indicados na loja. */
body>header nav button,body>header nav a,.hero .eyebrow,.hero p,.benefits>span,#catalog>.section-head .eyebrow{font-weight:700;font-style:normal}
.hero p{color:#365b41}

/* Formatação comum à loja, pedidos e todas as abas administrativas. */
body>header nav button,body>header nav a,.admin-tabs button,.filters button,body>footer{font-weight:700;font-style:normal}
body>footer span{font-weight:700;font-style:normal}

/* Destaque consistente para observações e textos de apoio de cada aba. */
main p,main .muted,main .eyebrow,main .stock,.dash-kpi small,.dash-live,.dash-period label,.top-product small,.stock-alert small{font-weight:700;font-style:normal}
.dash-footnote{font-weight:700;font-style:normal;color:#365b41}

.product-unit{font-size:11px;font-weight:600;white-space:nowrap}

/* Fotos e informações alinhadas em toda a vitrine. */
#products{align-items:stretch}
#products .card{display:flex;flex-direction:column;min-width:0;padding:12px;box-shadow:0 5px 18px #123d2808}
#products .product-art{height:250px;flex:0 0 250px;width:100%;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #edf0e9;border-radius:12px;overflow:hidden}
#products .product-art img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;padding:6px}
#products .card-body{display:flex;flex-direction:column;flex:1;padding:16px 8px 7px}
#products .tag{min-height:15px}
#products .card h3{line-height:1.4;min-height:2.8em;overflow-wrap:anywhere}
#products .card-body>p{min-height:3.4em}
#products .price-row{margin-top:auto;padding-top:18px;gap:8px}
#products .stock{min-height:2.8em;line-height:1.4;margin-top:10px}
.product-thumb{width:64px;height:64px;flex:0 0 64px;background:white;padding:2px}
.photo-preview{height:250px;background:white}
@media(max-width:700px){#products .product-art{height:180px;flex-basis:180px}#products .card{padding:8px}#products .card-body{padding:12px 3px 4px}#products .card h3{font-size:14px}#products .price-row{flex-wrap:wrap}#products .stock{font-size:10px}}
@media(max-width:380px){#products .product-art{height:150px;flex-basis:150px}}

.photo-credits{display:inline-block;margin-left:8px;text-decoration:underline;font-size:11px}

.image-note{display:block;font-size:10px;line-height:1.5;color:#657761;margin:8px 0}

/* Faixa de marca ocupa a largura disponível no celular, sem distorcer a logo. */
.brand-title{display:none}
@media(max-width:700px){
    body>header{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px 5%}
    body>header .brand{width:100%;min-width:0;display:flex;align-items:center;gap:16px;padding:12px 18px;background:var(--green);border-radius:12px;color:#fff}
    body>header .brand img{width:76px;height:76px;flex:0 0 76px;border-radius:6px}
    body>header .brand-title{display:block;margin:0;font:800 clamp(19px,5.5vw,28px)/1.18 'Manrope',sans-serif;letter-spacing:-.6px;color:#fff}
    body>header .brand-title span{display:block;margin:0;font:inherit;letter-spacing:inherit;color:#d9e8cb}
    body>header>div{width:100%;display:flex;gap:10px}
    body>header #account{flex:1;min-width:0;overflow-wrap:anywhere}
    body>header #cartButton{flex:0 0 auto;white-space:nowrap}
    body>header nav{order:3;width:100%;min-width:0;display:flex;justify-content:space-between;gap:8px}
    body>header nav button,body>header nav a{min-width:0;flex:1;text-align:center;font-size:12px}
    main{width:100%;padding-left:5%;padding-right:5%}
    html{scroll-padding-top:270px}
}
@media(max-width:360px){
    body>header .brand{gap:10px;padding:10px 12px}
    body>header .brand img{width:64px;height:64px;flex-basis:64px}
    body>header .brand-title{font-size:19px}
    body>header #account,body>header #cartButton{padding:10px}
}
