
:root{--orange:#ec661c;--charcoal:#3d3d3c;--ink:#292929;--muted:#777;--line:#e8e6e4;--paper:#fff;--soft:#f6f5f4;--sidebar:258px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;font-weight:500}button,input,select,textarea{font:inherit}button{font-weight:650}.category-btn{font-weight:600}.heading-row h1{font-weight:850}.product-title{font-weight:800}.product-meta{font-weight:600}.brand-name{font-weight:900}.field label{font-weight:800}.admin-tab{font-weight:650}button{cursor:pointer}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 30px;position:sticky;top:0;background:rgba(255,255,255,.97);z-index:20}.brand{display:flex;align-items:center;gap:12px;min-width:230px}.brand-mark{width:38px;height:38px;background:var(--orange);color:white;border-radius:7px;display:grid;place-items:center;font-weight:900;font-size:19px}.brand-name{font-size:17px;font-weight:800;letter-spacing:.04em;color:var(--charcoal)}.brand-sub{font-size:10px;letter-spacing:.18em;color:#888;margin-top:3px}.search-wrap{flex:1;max-width:700px;position:relative}.search-wrap input{width:100%;border:1px solid #dedbd8;border-radius:7px;background:#faf9f8;padding:12px 15px 12px 42px;outline:none}.search-wrap input:focus{border-color:var(--orange);background:#fff}.search-icon{position:absolute;left:14px;top:11px;color:#777;font-size:18px}.top-count{font-size:12px;color:#777;white-space:nowrap}.layout{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:calc(100vh - 76px)}.sidebar{border-right:1px solid var(--line);padding:26px 16px 30px 24px;background:#fcfbfa}.side-title{font-size:10px;font-weight:800;color:#999;letter-spacing:.16em;text-transform:uppercase;padding:0 12px;margin-bottom:14px}.category-list{display:flex;flex-direction:column;gap:4px}.category-btn{display:flex;align-items:center;gap:10px;text-align:left;width:100%;border:0;background:transparent;padding:11px 12px;border-radius:6px;color:#595958;font-size:13px;line-height:1.25;transition:.15s}.category-btn:hover{background:#f1eeeb;color:var(--charcoal)}.category-btn.active{background:#fff0e7;color:#bf4a0b;font-weight:700;box-shadow:inset 3px 0 var(--orange)}.cat-icon{width:17px;flex:0 0 17px;text-align:center;font-size:14px}.cat-count{margin-left:auto;font-size:10px;color:#aaa}.sidebar-foot{border-top:1px solid var(--line);margin:24px 10px 0;padding-top:16px;color:#aaa;font-size:11px;line-height:1.6}.main{padding:30px clamp(20px,3.4vw,52px) 55px;min-width:0}.breadcrumbs{font-size:11px;color:#aaa;margin-bottom:14px}.breadcrumbs span{color:var(--orange)}.heading-row{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:24px}.heading-row h1{font-size:clamp(23px,2.3vw,32px);letter-spacing:-.035em;margin:0;color:var(--charcoal);font-weight:750}.heading-row p{font-size:13px;color:#8a8987;margin:9px 0 0}.sort-row{display:flex;align-items:center;gap:10px;color:#999;font-size:12px;white-space:nowrap}.sort-row select{border:1px solid var(--line);border-radius:5px;padding:9px;background:white;color:#555}.gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px 14px}.product-card{min-width:0;cursor:pointer;animation:fade .18s ease}.photo-frame{aspect-ratio:1;background:#f4f2f0;overflow:hidden;position:relative;border-radius:3px}.photo-frame img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.product-card:hover .photo-frame img{transform:scale(1.035)}.photo-frame:after{content:'VER IMAGEM';position:absolute;left:10px;bottom:10px;background:rgba(61,61,60,.84);color:#fff;font-size:9px;letter-spacing:.12em;padding:7px 9px;border-radius:2px;opacity:0;transition:opacity .2s}.product-card:hover .photo-frame:after{opacity:1}.product-info{padding:11px 2px 0}.product-title{font-size:13px;line-height:1.4;font-weight:700;color:#454544;overflow-wrap:anywhere}.product-meta{display:flex;justify-content:space-between;gap:8px;margin-top:6px;font-size:10px;color:#a09e9b}.product-code{color:var(--orange);font-weight:700}.empty-state{border:1px dashed #dedbd8;border-radius:8px;padding:65px 20px;text-align:center;background:#fcfbfa;color:#888}.empty-icon{width:54px;height:54px;margin:0 auto 16px;background:#fff0e7;border-radius:50%;display:grid;place-items:center;color:var(--orange);font-size:24px}.empty-state h2{color:var(--charcoal);font-size:18px;margin:0 0 8px}.empty-state p{font-size:13px;max-width:420px;margin:0 auto;line-height:1.6}.footer{border-top:1px solid var(--line);padding-top:22px;margin-top:45px;display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#aaa;letter-spacing:.04em}.lightbox{position:fixed;inset:0;z-index:100;background:rgba(22,22,22,.94);display:none;align-items:center;justify-content:center;padding:60px 72px}.lightbox.open{display:flex}.lightbox-image-wrap{height:100%;width:100%;display:flex;align-items:center;justify-content:center;min-height:0}.lightbox img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 8px 50px #0004}.lb-close,.lb-prev,.lb-next{position:absolute;border:0;background:rgba(255,255,255,.12);color:white;width:44px;height:44px;border-radius:50%;font-size:26px;display:grid;place-items:center}.lb-close{top:20px;right:22px}.lb-prev{left:20px;top:50%;transform:translateY(-50%)}.lb-next{right:20px;top:50%;transform:translateY(-50%)}.lb-caption{position:absolute;bottom:18px;left:15px;right:15px;text-align:center;color:#ddd;font-size:12px}.admin-indicator{display:none;background:#fff0e7;color:#b74a10;border:1px solid #ffd3b9;border-radius:5px;padding:8px 10px;font-size:11px;font-weight:700}.admin-on .admin-indicator{display:block}.admin-panel{display:none;position:fixed;inset:0;z-index:150;background:rgba(20,20,20,.58);align-items:center;justify-content:center;padding:18px}.admin-panel.open{display:flex}.admin-window{background:white;border-radius:10px;width:min(960px,100%);max-height:92vh;overflow:auto;box-shadow:0 24px 80px #0004}.admin-head{position:sticky;top:0;background:white;border-bottom:1px solid var(--line);padding:18px 22px;display:flex;align-items:center;justify-content:space-between;z-index:2}.admin-head h2{margin:0;font-size:19px;color:var(--charcoal)}.admin-head p{margin:5px 0 0;color:#888;font-size:12px}.close-admin{border:0;background:#f3f1ef;border-radius:5px;padding:8px 12px;color:#555}.admin-tabs{display:flex;gap:7px;padding:18px 22px 0;border-bottom:1px solid var(--line)}.admin-tab{border:0;background:transparent;padding:10px 12px;color:#777;border-bottom:2px solid transparent;font-size:13px}.admin-tab.active{color:var(--orange);border-color:var(--orange);font-weight:700}.admin-content{padding:22px}.admin-section{display:none}.admin-section.active{display:block}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.field label{font-size:12px;font-weight:700;color:#555}.field input,.field select,.field textarea{width:100%;border:1px solid #ddd8d4;border-radius:5px;padding:11px;background:#fff;outline:none}.field input:focus,.field select:focus{border-color:var(--orange)}.field small{font-size:11px;color:#999;line-height:1.4}.admin-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:6px}.btn{border:0;border-radius:5px;padding:11px 15px;font-size:12px;font-weight:700}.btn-primary{background:var(--orange);color:white}.btn-secondary{background:#f0eeec;color:#555}.btn-danger{background:#fff0ed;color:#b73521}.btn:disabled{opacity:.45;cursor:not-allowed}.category-manage-list{display:flex;flex-direction:column;gap:8px}.category-manage-item{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:6px}.category-manage-item input{flex:1;min-width:0;border:1px solid #ddd;padding:8px;border-radius:4px}.category-manage-item .small-btn{border:0;border-radius:4px;padding:8px 9px;background:#f2f0ee;color:#555;font-size:11px}.category-manage-item .small-btn.delete{background:#fff0ed;color:#b73521}.drop-zone{border:1.5px dashed #e5a27c;background:#fffaf7;border-radius:8px;padding:24px;text-align:center;color:#8b7a70}.drop-zone strong{display:block;color:var(--charcoal);margin-bottom:7px}.drop-zone p{font-size:12px;margin:0 0 13px}.selected-files{font-size:12px;color:#777;margin:10px 0}.admin-notice{background:#f6f5f4;padding:12px;border-radius:5px;color:#777;font-size:12px;line-height:1.5;margin-bottom:15px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:200;background:var(--charcoal);color:white;border-radius:6px;padding:12px 18px;font-size:13px;box-shadow:0 5px 20px #0002;display:none}.toast.show{display:block;animation:fade .2s}.admin-help{display:none;position:fixed;right:12px;bottom:12px;z-index:40;color:#aaa;font-size:10px}.admin-on .admin-help{display:block}@keyframes fade{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1400px){.gallery{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1200px){.gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.topbar{padding:0 20px}.brand{min-width:200px}}
@media(max-width:850px){:root{--sidebar:220px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.main{padding:24px 20px 40px}.top-count{display:none}.brand{min-width:auto}.brand-sub{display:none}.heading-row{align-items:flex-start;flex-direction:column}.sort-row{align-self:flex-end}.topbar{gap:15px}}
@media(max-width:600px){.topbar{height:auto;min-height:68px;flex-wrap:wrap;padding:12px 15px;gap:10px}.brand{width:100%}.brand-mark{width:32px;height:32px}.search-wrap{max-width:none;flex-basis:100%;order:2}.layout{display:block;min-height:calc(100vh - 120px)}.sidebar{padding:13px 12px;border-right:0;border-bottom:1px solid var(--line);overflow:auto}.side-title{margin:0 0 9px;padding:0 5px}.category-list{flex-direction:row;gap:7px;width:max-content}.category-btn{width:auto;max-width:220px;white-space:nowrap;padding:9px 11px;border:1px solid var(--line);background:white;font-size:11px}.category-btn.active{border-color:#ffc5a4;box-shadow:none}.cat-count{display:none}.sidebar-foot{display:none}.main{padding:23px 14px 32px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}.photo-frame{aspect-ratio:1}.product-title{font-size:12px}.footer{margin-top:30px;flex-direction:column}.lightbox{padding:48px 12px}.lb-prev{left:8px}.lb-next{right:8px}.lb-close{top:9px;right:9px}.admin-grid{grid-template-columns:1fr}.admin-content{padding:16px}.admin-head{padding:15px 16px}.admin-tabs{padding:12px 12px 0;overflow:auto}.admin-tab{white-space:nowrap}.category-manage-item{flex-wrap:wrap}.category-manage-item input{flex-basis:100%;order:2}}

/* Atualizações: logo BigOneSports, menu hambúrguer e edição individual */
.brand-mark{display:block;width:48px;height:48px;object-fit:contain;background:transparent;border-radius:0;flex:0 0 48px}
.mobile-category-toggle{display:none}
.manage-photo-entry{display:flex;flex-direction:column;gap:10px;flex:1;min-width:0}
.manage-photo-fields{display:none;grid-template-columns:1fr 1fr;gap:10px;padding:12px;background:#faf8f6;border:1px solid var(--line);border-radius:6px}
.manage-photo-fields.open{display:grid}
.manage-photo-fields label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#555}
.manage-photo-fields input,.manage-photo-fields select{width:100%;min-width:0;padding:8px;border:1px solid #ddd8d4;border-radius:4px;background:#fff;font-size:12px}
.manage-photo-fields .edit-image-field{grid-column:1/-1}
.manage-photo-buttons{display:flex;gap:6px;flex-wrap:wrap}
.category-manage-item .small-btn.edit{background:#fff0e7;color:#b74a10}
@media(max-width:600px){
 .topbar{gap:10px}.brand{width:auto;flex:1}.brand-mark{width:42px;height:42px;flex-basis:42px}
 .sidebar{padding:10px 12px;overflow:visible}
 .mobile-category-toggle{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--line);background:#fff;border-radius:7px;padding:11px 13px;font-size:13px;font-weight:800;color:var(--charcoal);text-align:left}
 .hamburger-icon{width:18px;display:flex;flex-direction:column;gap:4px}.hamburger-icon i{display:block;height:2px;width:18px;background:var(--orange);border-radius:2px}
 .mobile-toggle-chevron{margin-left:auto;font-size:17px;transition:transform .2s}
 .sidebar.mobile-open .mobile-toggle-chevron{transform:rotate(180deg)}
 .sidebar .side-title{display:none}
 .category-list{display:none;flex-direction:column;width:100%;gap:4px;margin-top:9px}
 .sidebar.mobile-open .category-list{display:flex}
 .category-btn{width:100%;max-width:none;white-space:normal;padding:11px 12px;font-size:12px;border:0;background:transparent}
 .category-btn.active{background:#fff0e7;border-color:#ffc5a4;box-shadow:inset 3px 0 var(--orange)}
 .cat-count{display:block}
 .manage-photo-fields{grid-template-columns:1fr}
 .manage-photo-fields .edit-image-field{grid-column:auto}
}


@media(min-width:1401px){.gallery{grid-template-columns:repeat(6,minmax(0,1fr))}}
.brand-mark{object-fit:contain;background:transparent;width:48px;height:48px}

/* Identidade BigOneSports: logo destacado e centralizado no mobile */
.topbar{min-height:118px;height:auto;padding-top:12px;padding-bottom:12px}
.brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:180px;flex:0 0 190px}
.brand .brand-mark{display:block;width:104px;height:78px;flex:none;object-fit:contain;background:transparent;border:0}
.brand .brand-name{font-size:15px;font-weight:900;letter-spacing:.16em;line-height:1.25;color:#3d3d3c;text-align:center}
@media(max-width:850px){.brand{min-width:155px;flex-basis:155px}}
@media(max-width:600px){
 .topbar{min-height:0;height:auto;display:flex;flex-direction:column;align-items:stretch;padding:14px 15px 12px;gap:12px}
 .topbar .brand{width:100%;min-width:0;flex:none;margin:0 auto;align-self:center;align-items:center;justify-content:center;gap:3px}
 .topbar .brand .brand-mark{width:116px;height:88px;flex:none}
 .topbar .brand .brand-name{font-size:15px}
 .topbar .search-wrap{order:2;flex:none;width:100%;max-width:none}
}

/* Atualização vitrine pública */
.topbar .brand{gap:0;flex-basis:220px;min-width:220px}
.topbar .brand .brand-mark{width:155px;height:105px}
.topbar .brand .brand-name{margin-top:-9px;font-size:16px;line-height:1.05}
.product-card{position:relative}
.product-whatsapp{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:35px;height:35px;border:0;border-radius:50%;background:#ec661c;color:white;box-shadow:0 2px 8px #0003;text-decoration:none;z-index:2;transition:transform .2s}
.product-whatsapp:hover{transform:scale(1.1)}
.product-whatsapp svg{width:21px;height:21px;stroke:currentColor;fill:none}
.category-section{margin-bottom:34px}
.category-section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;border-bottom:1px solid var(--line);padding-bottom:12px}
.category-section-header h2{font-size:19px;color:var(--charcoal);margin:0;font-weight:800}
.category-section-header span{font-size:12px;color:#999}
.view-all-card{border:1px solid #f2d0bd;background:#fff6f0;min-height:0;aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#ba4b0f;border-radius:4px;padding:12px;text-align:center;cursor:pointer;font-size:13px;font-weight:800}
.view-all-card:hover{background:#ffebdf}
.view-all-card .view-all-arrow{font-size:32px;line-height:1}
.lb-whatsapp{position:absolute;bottom:52px;left:50%;transform:translateX(-50%);background:#25d366;color:#fff;border-radius:25px;padding:10px 17px;text-decoration:none;font-size:13px;font-weight:800;white-space:nowrap}
.lb-caption{bottom:18px}
@media(max-width:850px){.topbar .brand{min-width:160px;flex-basis:160px}.topbar .brand .brand-mark{width:130px;height:92px}}
@media(max-width:600px){.topbar .brand{width:100%;min-width:0;flex:none}.topbar .brand .brand-mark{width:150px;height:102px}.topbar .brand .brand-name{margin-top:-8px}.category-section-header h2{font-size:16px}.view-all-card{font-size:12px}.lb-whatsapp{bottom:53px}}

/* Correção: a vitrine agrupada ocupa toda a largura, sem herdar grid de cartões. */
#gallery.gallery-sections{display:block;width:100%;min-width:0}
#gallery.gallery-sections .category-section{display:block;width:100%;min-width:0}
#gallery.gallery-sections .category-section>.gallery{display:grid;width:100%}
#gallery.gallery-sections .product-card{display:block;min-width:0}

.smart-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:14px 0 22px}.smart-filters label{font-size:12px;font-weight:800;color:#3d3d3c;display:flex;flex-direction:column;gap:5px;flex:1 1 150px;min-width:120px}.smart-filters select{width:100%;padding:11px 12px;border:1px solid #ddd;border-radius:7px;background:#fff;color:#3d3d3c;font-size:13px;font-weight:600}.smart-clear{padding:11px 14px;border:1px solid #ec661c;color:#ec661c;background:white;border-radius:7px;font-weight:800;cursor:pointer}@media(max-width:650px){.smart-filters{gap:8px}.smart-filters label{flex-basis:calc(50% - 8px)}}

/* Galeria: time, modelo e ano em linhas independentes, centralizados. */
.gallery .product-info{text-align:center;padding:11px 3px 0}
.gallery .product-title-three-lines{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;line-height:1.35;min-height:calc(3 * 1.35em + 4px);overflow-wrap:anywhere}
.gallery .product-title-line{display:block;width:100%;text-align:center}
.gallery .product-title-line-team{font-weight:800;color:#3d3d3c}
.gallery .product-title-line-model{font-weight:600;color:#5d5b59}
.gallery .product-title-line-year{font-weight:700;color:#ec661c}
.gallery .product-meta{justify-content:center;align-items:center;flex-wrap:wrap;gap:4px 10px;text-align:center}

/* Botão Limpar filtros: compacto e cores invertidas */
.smart-filters .smart-clear{padding:7px 11px;background:#ec661c;color:#fff;border:1px solid #ec661c;font-size:12px;line-height:1.2;flex:0 0 auto;align-self:end;min-height:32px;transition:background .2s,color .2s}
.smart-filters .smart-clear:hover,.smart-filters .smart-clear:focus-visible{background:#fff;color:#ec661c}

/* Preço inicial das categorias: somente nos títulos da galeria */
.category-price-label{color:#ec661c!important;font-size:inherit;font-weight:inherit;white-space:nowrap;margin-left:9px}
@media(max-width:600px){.category-price-label{display:inline-block;margin-left:5px}}

/* Navegação do catálogo: tipografia ampliada e sidebar fixa no desktop. */
@media (min-width: 601px) {
  .layout > .sidebar { position:sticky; top:76px; align-self:start; height:calc(100vh - 76px); overflow-y:auto; overscroll-behavior:contain; }
  .sidebar .category-btn { font-size:13px; line-height:1.25; }
}
@media (max-width: 600px) {
  .sidebar .mobile-category-toggle {font-size:17px;}
  .sidebar .category-list .category-btn {font-size:16px;line-height:1.4;}
  .category-section-header h2 .category-price-label,
  #pageTitle .category-price-label {display:block;margin:5px 0 0;font-size:inherit;font-weight:inherit;white-space:normal;}
}

/* Hífen visível somente no desktop; no mobile o preço começa em A partir de. */
@media(max-width:600px){.category-price-label .category-price-hyphen{display:none!important}}

/* Restaurar fonte compacta original no menu desktop, mantendo sidebar fixa. */
@media(min-width:601px) and (max-width:850px){.sidebar .category-btn{font-size:11px;line-height:1.25}}

/* Preço individual opcional, abaixo das informações de cada produto */
.product-unit-price{margin-top:7px;color:#ec661c;font-size:15px;line-height:1.35;font-weight:800;white-space:nowrap}
@media(max-width:600px){.product-unit-price{font-size:14px}}

.product-sale-price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.product-original-price{text-decoration:line-through;color:#888;font-size:.85em}.product-discount-price{color:#ec661c;font-weight:800}
