/* GaraGeem 3.2 — banner original da loja, busca flutuante e scanner ao vivo. */
:root{--gg-card-radius:15px;--gg-control-radius:9px;--gg-space:24px}
.gg-main-logo{display:block;width:clamp(142px,11vw,184px);height:auto;max-height:43px;object-fit:contain}
.gg-shop-name{display:block;max-width:135px;color:#7e8390;font-size:9px;font-weight:600;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.public-brand{display:flex!important;gap:12px!important;align-items:center!important;letter-spacing:normal!important}
.gg-footer-logo{display:block;width:153px;height:auto}
.gg-footer-shop{display:block;max-width:230px;font-size:9px;color:#858a96;font-weight:500}
.gg-admin-logo{width:153px;height:auto;display:block;object-fit:contain;margin-top:2px}
.brand-side{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-bottom:23px}
.gg-admin-brand-tagline{font-size:7px!important;letter-spacing:1px!important;color:#9599a3!important;margin:0 0 0 1px!important}
/* A arte enviada já contém headline e CTA. O link acessível é posicionado sobre o botão da imagem. */
.gg-new-home-hero{width:100%;position:relative;background:#780019;isolation:isolate}
.gg-banner-desktop{position:relative;width:100%;max-height:425px;overflow:hidden}
.gg-banner-desktop img{display:block;width:100%;height:auto;object-fit:cover}
.gg-banner-cta{position:absolute;left:8.5%;top:59%;width:13.7%;height:19%;z-index:1;border-radius:8px;outline-offset:3px}
.gg-banner-cta:focus-visible{outline:3px solid #fff}
.gg-banner-mobile{display:none}
.gg-search-wrapper{max-width:1260px;margin:-42px auto 0;position:relative;z-index:5;padding-bottom:8px}
.gg-mode-tabs{display:flex;align-items:end;gap:10px;margin-left:0;width:max-content;max-width:100%}
.gg-mode-tab{height:60px;border:1px solid #eef0f2;border-bottom:0;background:#f8f8f9;border-radius:21px 21px 0 0;padding:0 27px;display:inline-flex;align-items:center;gap:13px;font:600 14px 'Poppins',sans-serif;color:#5f6872;cursor:pointer;transition:background .16s,color .16s;white-space:nowrap}
.gg-mode-tab .ui-icon{color:var(--red)}
.gg-mode-tab:hover{background:#fff5f7}
.gg-mode-tab.is-active{background:#fff;color:#222733;border-color:#e2e5e9;position:relative;z-index:2}
.gg-main-search{padding:31px 27px 28px;background:#fff;border:1px solid #e0e5e9;border-radius:0 19px 19px 19px;box-shadow:0 15px 36px rgba(20,27,41,.105);display:flex;align-items:center;gap:18px;min-height:138px}
.gg-search-toggles{display:flex;align-items:center;background:#f1f3f5;border-radius:999px;padding:5px;gap:1px;flex:0 0 auto}
.gg-filter-pill{background:transparent;border:0;padding:12px 17px;border-radius:999px;font-size:12px;font-weight:600;color:#63727d;cursor:pointer;white-space:nowrap;min-width:57px}
.gg-filter-pill.is-active{background:#fff;box-shadow:0 2px 7px rgba(14,19,28,.09);color:#262b33}
.gg-mode-fields{flex:1;min-width:0}
.gg-search-field{height:57px;display:flex;align-items:center;gap:11px;padding:0 17px;border:1px solid #ced7de;border-radius:9px;background:#fff;color:#78828b}
.gg-search-field:focus-within{outline:2px solid #f3123c21;border-color:var(--red)}
.gg-search-field .ui-icon{flex-shrink:0}
.gg-search-field input,.gg-search-field select{font-family:'Poppins',sans-serif;flex:1;width:100%;min-width:0;border:0;outline:0;font-size:13px;color:#354351;background:transparent;min-height:49px}
.gg-search-field input::placeholder{color:#6f808a}
.gg-mode-field[hidden]{display:none!important}
.gg-submit-search{min-width:211px;padding:0 18px;height:57px;display:flex;align-items:center;justify-content:center;gap:12px;background:var(--red);border:1px solid var(--red);color:#fff;border-radius:9px;font-size:13px;font-weight:650;white-space:nowrap;cursor:pointer}
.gg-submit-search:hover{background:var(--red-dark)}
.gg-search-note{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;color:#888e99;margin:16px 0 0}
.gg-search-note svg{color:#158b62}
.gg-search-wrapper + .categories-section{padding-top:58px}
/* Scanner de placa estilo leitor de código de barras, com confirmação por OCR e estoque */
.gg-live-scan-launch{display:flex!important;gap:13px;align-items:center;justify-content:center;cursor:pointer;width:100%;border:1px solid #eec3cc!important;border-radius:12px!important;padding:20px 18px!important;font-size:14px!important;font-weight:700!important;color:var(--red)!important;background:#fff2f5!important;min-height:67px;box-sizing:border-box}
.gg-live-scan-launch span{flex:1;text-align:left}
.gg-live-scan-launch:hover{background:#ffe7ed!important}
.gg-photo-fallback{display:flex;align-items:center;justify-content:center;gap:9px;position:relative;cursor:pointer;color:#7c8390;font-size:11px;font-weight:600;padding:15px 5px}
.gg-photo-fallback input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.gg-photo-fallback:hover{color:var(--red)}
.gg-scanner-overlay[hidden]{display:none!important}
.gg-scanner-overlay{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;background:#0b1016;color:#fff;overscroll-behavior:contain}
.gg-camera-open{overflow:hidden}
.gg-scanner-head{display:flex;align-items:center;justify-content:space-between;padding:18px max(20px,env(safe-area-inset-right)) 17px max(20px,env(safe-area-inset-left));background:#131922}
.gg-scanner-head strong{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:700;color:#fff}
.gg-scanner-head button{width:39px;height:39px;background:#ffffff26;border:0;border-radius:50%;color:#fff;display:grid;place-items:center;cursor:pointer}
.gg-video-wrap{position:relative;flex:1;min-height:180px;overflow:hidden;background:#030509}
.gg-video-wrap video{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0}
.gg-scan-mask{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(90deg,#0007 0%,transparent 20%,transparent 80%,#0007 100%);pointer-events:none}
.gg-scan-target{position:relative;width:min(82vw,580px);height:clamp(130px,26vh,230px);background:#fff1;border:1px solid #ffffff95;border-radius:15px;box-shadow:0 0 0 999px #0006;overflow:hidden}
.gg-scan-target span{position:absolute;width:42px;height:42px;border-color:#fff;border-style:solid;border-width:0}
.gg-scan-target span:nth-child(1){left:0;top:0;border-left-width:4px;border-top-width:4px;border-radius:12px 0 0 0}
.gg-scan-target span:nth-child(2){right:0;top:0;border-right-width:4px;border-top-width:4px;border-radius:0 12px 0 0}
.gg-scan-target span:nth-child(3){left:0;bottom:0;border-left-width:4px;border-bottom-width:4px;border-radius:0 0 0 12px}
.gg-scan-target span:nth-child(4){right:0;bottom:0;border-right-width:4px;border-bottom-width:4px;border-radius:0 0 12px 0}
.gg-scan-beam{position:absolute;left:5%;right:5%;top:50%;height:3px;background:#f3123c;box-shadow:0 0 8px #f3123c,0 0 25px #ff003c;animation:gg-scan-vertical 2.2s ease-in-out infinite alternate}
@keyframes gg-scan-vertical{from{transform:translateY(-62px)}to{transform:translateY(62px)}}
.gg-scanner-foot{display:flex;align-items:center;flex-direction:column;gap:9px;background:#131922;padding:26px 24px max(32px,env(safe-area-inset-bottom));text-align:center}
#gg-scanner-status{font-size:14px;font-weight:700;color:#fff}
#gg-scanner-hint{font-size:11px;color:#a5aebb;max-width:450px;line-height:1.5}
#gg-scan-manual{margin-top:11px;background:transparent;color:#fff;border-color:#56606e;min-height:47px}
@media (max-width:1080px){.gg-main-search{gap:12px;padding:24px 19px}.gg-search-toggles{padding:4px}.gg-filter-pill{padding:11px 10px}.gg-submit-search{min-width:178px}.gg-mode-tab{padding:0 17px;font-size:12px}}
@media (max-width:740px){
 .gg-main-logo{width:132px}.gg-shop-name{display:none}.gg-banner-desktop{display:none}.gg-banner-mobile{display:flex;position:relative;min-height:318px;align-items:center;background:#92051e url('/static/garageem-banner.png') 82% center/auto 320px no-repeat;overflow:hidden}
 .gg-banner-mobile:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#35000bdc 0%,#72001be0 46%,#6900205c 100%)}
 .gg-banner-mobile-content{z-index:1;position:relative;padding:24px 22px 72px;color:#fff;max-width:350px}
 .gg-banner-mobile-content>span{font-size:10px;font-weight:700;color:#ffb0bd;letter-spacing:.07em}
 .gg-banner-mobile-content h1{font-size:clamp(27px,8vw,35px);line-height:1.22;color:#fff;font-weight:700;margin:15px 0 25px;letter-spacing:-.04em}
 .gg-mobile-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:14px 16px;border:1px solid #ff5077;background:var(--red);font-size:11px;font-weight:700;color:#fff;border-radius:8px}
 .gg-search-wrapper{margin-top:-35px;padding:0 13px 8px}.gg-mode-tabs{width:100%;gap:4px;justify-content:stretch}
 .gg-mode-tab{flex:1;min-width:0;height:54px;padding:0 7px;gap:5px;justify-content:center;font-size:10px;border-radius:12px 12px 0 0;white-space:normal;text-align:center;line-height:1.3}
 .gg-mode-tab .ui-icon{width:16px;height:16px;flex-shrink:0}
 .gg-main-search{border-radius:0 0 15px 15px;padding:18px 16px 16px;flex-direction:column;align-items:stretch;gap:13px;min-height:0}
 .gg-search-toggles{align-self:flex-start}.gg-filter-pill{font-size:11px;padding:10px 17px}
 .gg-search-field{height:53px}.gg-search-field input,.gg-search-field select{font-size:12px}
 .gg-submit-search{width:100%;height:52px;font-size:12px}.gg-search-note{font-size:9px;text-align:center;line-height:1.6;padding:0 9px}
 .gg-search-wrapper + .categories-section{padding-top:38px}
 .gg-scan-target{width:86vw;height:150px}.gg-scanner-head{padding-top:max(16px,env(safe-area-inset-top))}
}
@media(prefers-reduced-motion:reduce){.gg-scan-beam{animation:none}}
