/* HoraWeb 28 — catálogo espaçoso + debug administrativo, aditivo sobre V27.
   Padrões visuais preservados. CSS carregado por último. */
:root{--hw-catalog-sidebar:308px;--hw-catalog-gap:28px;--hw-catalog-card-min:250px}
/* Filtros: largura útil real, sem a coluna de 205/230px que comprimía campos. */
html body .hw-catalog-page .hw-catalog-shell{
 display:grid!important;
 grid-template-columns:minmax(288px,var(--hw-catalog-sidebar)) minmax(0,1fr)!important;
 align-items:start!important;
 gap:var(--hw-catalog-gap)!important;
 padding-block:0 24px!important;
 max-width:var(--hw-site-width,1480px)!important;
}
html body .hw-catalog-page .hw-catalog-shell > .hw-filter-sidebar{
 position:static!important; top:auto!important;
 display:flex!important;flex-direction:column!important;
 gap:16px!important;min-width:0!important;width:100%!important;
}
html body .hw-catalog-page .hw-catalog-shell > .hw-catalog-content{min-width:0!important;overflow:visible!important}
html body .hw-catalog-page .hw-filter-form,
html body .hw-catalog-page .hw-side-categories{
 min-width:0!important; width:100%!important;
 padding:20px!important; border-radius:13px!important;
 border:1px solid var(--ln)!important;box-shadow:0 7px 22px -18px rgba(13,27,42,.24)!important;
}
html body .hw-catalog-page .hw-filter-form{display:block!important}
html body .hw-catalog-page .hw-filter-head{display:flex!important;gap:9px!important;min-width:0!important;align-items:center!important;flex-wrap:wrap!important;margin:0 0 14px!important;padding:0 0 13px!important}
html body .hw-catalog-page .hw-filter-head b{min-width:90px!important;font-size:17px!important;font-weight:750!important;line-height:1.3!important}
html body .hw-catalog-page .hw-filter-head>a{font-size:13px!important;line-height:1.3!important;margin-left:auto!important;white-space:nowrap}
html body .hw-catalog-page .hw-filter-form>label{display:block!important;margin:13px 0 6px!important;font-size:14px!important;font-weight:650!important;line-height:1.35!important;color:var(--tx)!important}
html body .hw-catalog-page .hw-filter-form :is(select.f,input.f){display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:43px!important;font-size:15px!important;line-height:1.35!important;padding:10px 12px!important;border-radius:9px!important;border:1px solid var(--ln)!important;background:var(--sf)!important;color:var(--tx)!important;text-overflow:ellipsis}
html body .hw-catalog-page .hw-filter-form :is(select.f,input.f):focus-visible{outline:2px solid #59952d!important;outline-offset:1px}
html body .hw-catalog-page .hw-price-inputs{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important}
html body .hw-catalog-page .hw-price-inputs .f{min-width:0!important;width:100%!important;max-width:none!important;flex:none!important}
html body .hw-catalog-page .hw-price-inputs>span{font-size:14px!important;line-height:1.35!important;color:var(--mu)!important}
html body .hw-catalog-page .hw-filter-submit{font-size:15px!important;min-height:46px!important;width:100%!important;padding:11px 13px!important;margin:18px 0 0!important;border-radius:10px!important;line-height:1.3!important}
html body .hw-catalog-page .hw-side-categories>b{display:block!important;font-size:16px!important;font-weight:750!important;margin:0 0 10px!important;line-height:1.3!important}
html body .hw-catalog-page .hw-side-categories>a{display:flex!important;align-items:start!important;justify-content:space-between!important;gap:12px!important;padding:11px 0!important;font-size:14px!important;line-height:1.4!important;overflow-wrap:anywhere!important;text-decoration:none!important}
html body .hw-catalog-page .hw-side-categories>a>span{min-width:0!important;flex:1!important}
html body .hw-catalog-page .hw-side-categories>a>small{font-size:13px!important;flex:none!important;margin-left:4px!important;font-weight:650!important}
/* Catálogo ajusta a quantidade de cards à largura disponível, sem cards espremidos. */
html body .hw-catalog-page .hw-catalog-shell .grid.hw-catalog-grid{
 display:grid!important;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--hw-catalog-card-min)),1fr))!important;
 gap:18px!important;align-items:stretch!important;margin-bottom:21px!important;
}
html body .hw-catalog-page .hw-catalog-content .sec{min-width:0!important;padding-block:0!important}
html body .hw-catalog-page .hw-catalog-content .sh{display:flex!important;gap:12px!important;flex-wrap:wrap!important;align-items:center!important;margin:0 0 16px!important}
html body .hw-catalog-page .hw-catalog-content .sh h2{font-size:clamp(21px,2vw,26px)!important;line-height:1.25!important}
html body .hw-catalog-page .hw-catalog-content .sh span{font-size:14px!important}
/* Cards: compacto e alinhado, preservando V27 no restante da loja. */
html body .hw-catalog-page .hw-product-card{min-width:0!important;height:100%!important;max-width:100%!important}
html body .hw-catalog-page .hw-product-card .th{aspect-ratio:590/300!important;min-height:0!important}
html body .hw-catalog-page .hw-product-card .cb{min-width:0!important;gap:5px!important;padding:14px 15px 15px!important;display:flex!important;flex-direction:column!important}
html body .hw-catalog-page .hw-product-card .cb>a>h3{font-size:clamp(14px,1.1vw,16px)!important;line-height:1.35!important;font-weight:700!important;margin:0!important;min-height:2.7em!important;max-height:2.7em!important;overflow:hidden!important;overflow-wrap:anywhere!important}
html body .hw-catalog-page .hw-product-card .by{font-size:13px!important;line-height:1.35!important;margin:0!important;min-height:0!important}
html body .hw-catalog-page .hw-product-card .hw-card-metrics{margin:5px 0 1px!important;gap:4px 8px!important;min-height:0!important;line-height:1.35!important;overflow-wrap:anywhere!important}
html body .hw-catalog-page .hw-product-card .hw-card-metrics small{font-size:12px!important;line-height:1.35!important}
html body .hw-catalog-page .hw-product-card .hw-card-summary{font-size:13px!important;line-height:1.4!important;margin:4px 0 0!important;min-height:0!important}
html body .hw-catalog-page .hw-product-card .pr{font-size:20px!important;font-weight:600!important;line-height:1.22!important;margin-top:auto!important;padding:9px 0 5px!important;letter-spacing:-.015em!important;white-space:normal!important}
html body .hw-catalog-page .hw-product-card .hw-card-actions{margin-top:4px!important;gap:7px!important}
html body .hw-catalog-page .hw-product-card .hw-card-actions>.btn{font-size:14px!important;line-height:1.25!important;min-height:42px!important;padding:9px 11px!important;white-space:normal!important;text-align:center!important}
@media(max-width:1199px){:root{--hw-catalog-sidebar:292px;--hw-catalog-gap:22px;--hw-catalog-card-min:235px}}
@media(max-width:900px){:root{--hw-catalog-sidebar:282px;--hw-catalog-gap:18px;--hw-catalog-card-min:235px}}
@media(max-width:850px){
 html body .hw-catalog-page .hw-catalog-shell{display:flex!important;flex-direction:column!important;gap:22px!important}
 html body .hw-catalog-page .hw-catalog-shell>.hw-filter-sidebar,
 html body .hw-catalog-page .hw-catalog-shell>.hw-catalog-content{width:100%!important;min-width:0!important}
 html body .hw-catalog-page .hw-filter-form{padding:18px!important}
 html body .hw-catalog-page .hw-side-categories{display:none!important}
 html body .hw-catalog-page .hw-catalog-shell .grid.hw-catalog-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important;gap:15px!important}
}
@media(max-width:560px){
 html body .hw-catalog-page .hw-filter-form{padding:16px!important}
 html body .hw-catalog-page .hw-catalog-shell .grid.hw-catalog-grid{grid-template-columns:1fr!important;gap:15px!important}
 html body .hw-catalog-page .hw-catalog-content .sh{align-items:flex-start!important}
}
/* V28 Debug: ocupa espaço natural no documento. Nunca cobre cards ou checkout. */
html body:has(>.hw-admin-debug){padding-bottom:0!important}
html body:has(>.hw-admin-debug[open]){padding-bottom:0!important}
html body>.hw-admin-debug{box-sizing:border-box!important;display:block!important;position:relative!important;z-index:1!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;width:min(100% - 36px,1380px)!important;max-width:1380px!important;max-height:none!important;margin:24px auto!important;border:1px solid #3b5969!important;border-radius:13px!important;overflow:hidden!important;background:#102733!important;box-shadow:0 10px 26px -18px rgba(1,10,17,.3)!important;color:#e9f5fa!important;font:14px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace!important}
html body>.hw-admin-debug>summary{min-height:54px!important;padding:13px 18px!important;font-size:15px!important;flex-wrap:wrap!important}
html body>.hw-admin-debug .hw-debug-body{box-sizing:border-box!important;max-height:none!important;overflow:visible!important;padding:18px!important}
html body>.hw-admin-debug .hw-debug-actions{display:flex;flex-wrap:wrap;gap:9px!important;margin-bottom:16px!important}
html body>.hw-admin-debug .hw-debug-actions>a{display:inline-flex;align-items:center;min-height:37px;padding:7px 11px!important;border-radius:8px;background:#163e4b;color:#d3f1a2!important;font-size:13px!important;text-decoration:none!important;line-height:1.3!important;border:1px solid #38606b}
html body>.hw-admin-debug .hw-debug-actions>a:hover{background:#285560!important;color:white!important}
html body>.hw-admin-debug .hw-debug-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:0 0 15px}
html body>.hw-admin-debug .hw-debug-kpis>div{min-width:0;border:1px solid #375462;background:#16333e;border-radius:9px;padding:11px}
html body>.hw-admin-debug .hw-debug-kpis small{font-size:12px;line-height:1.3;color:#b5cad3;display:block}
html body>.hw-admin-debug .hw-debug-kpis strong{font-size:17px;line-height:1.4;display:block;overflow-wrap:anywhere;color:#e4f4cc;font-variant-numeric:tabular-nums}
html body>.hw-admin-debug .hw-debug-accordion{display:grid;gap:9px}
html body>.hw-admin-debug .hw-debug-panel{border:1px solid #3b5969;border-radius:9px;background:#0b202b;min-width:0;overflow:hidden}
html body>.hw-admin-debug .hw-debug-panel>summary{font-family:inherit;font-size:14px;font-weight:700;color:#f2fafc;cursor:pointer;padding:11px 14px;line-height:1.4;list-style:none;display:flex;justify-content:space-between;gap:10px}
html body>.hw-admin-debug .hw-debug-panel>summary::-webkit-details-marker{display:none}
html body>.hw-admin-debug .hw-debug-panel>summary::after{content:'+';font-size:20px;line-height:1;opacity:.75}
html body>.hw-admin-debug .hw-debug-panel[open]>summary::after{content:'−'}
html body>.hw-admin-debug .hw-debug-panel>summary:hover{background:#163542}
html body>.hw-admin-debug .hw-debug-panel pre{font-size:13px!important;line-height:1.55!important;max-height:520px!important;overflow:auto!important;white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:anywhere!important;margin:0 12px 12px!important;padding:13px!important;color:#d8eefa!important;background:#071923!important;border:1px solid #2e4b58!important;border-radius:7px!important}
html body>.hw-admin-debug .hw-debug-note{font-size:12px;color:#bdd0da;line-height:1.5;margin:0 0 12px}
html body .hw-product-page .hw-admin-edit-product{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid #aacb80;border-radius:8px;background:#eff7e8;color:#245d15;font-size:14px;font-weight:700;margin:0 0 10px;text-decoration:none}
html body .hw-product-page .hw-admin-edit-product:hover{background:#dff0cc;color:#16470b}
@media(max-width:560px){html body>.hw-admin-debug{width:calc(100% - 24px)!important;margin:16px auto!important}html body>.hw-admin-debug .hw-debug-body{padding:12px!important}html body>.hw-admin-debug .hw-debug-panel pre{font-size:12px!important;margin:0 8px 8px!important}html body>.hw-admin-debug>summary{padding:12px!important}}
