/* =====================================================================
   PILAR ONLINE • HEADER UNIVERSAL
   Arquivo: /loja/_css/header_loja.css
   Funciona em /, /loja/, /cliente/, /admin/ e demais subdiretórios.
   Estilos EXCLUSIVOS de .po-store-* para não alterar a página hospedeira.
   ===================================================================== */
.po-store-top-header,
.po-store-main-nav {
  --po-header-red: #C1272D;
  --po-header-orange: #F47016;
  --po-header-text: #1D2433;
  --po-header-container: 1480px;
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.po-store-top-header *, .po-store-top-header *::before, .po-store-top-header *::after,
.po-store-main-nav *, .po-store-main-nav *::before, .po-store-main-nav *::after {box-sizing:border-box;}
.po-store-top-header a, .po-store-main-nav a {text-decoration:none;}
.po-store-top-header button, .po-store-top-header input, .po-store-top-header select {font-family:inherit;}
.po-store-top-header .store-container, .po-store-main-nav .store-container {
  width: min(var(--po-header-container), calc(100% - 48px));
  margin-inline: auto;
  padding-inline: 0;
  max-width: none;
}
/* Topo vermelho — exatamente o mesmo em todas as páginas. */
.po-store-top-header {
  position:relative;
  z-index:50;
  width:100%;
  margin:0;
  padding:0;
  background:linear-gradient(110deg,#7E171C 0%,#C1272D 42%,#D72E33 100%);
  color:#fff;
  box-shadow:0 3px 12px rgba(94,12,18,.16);
}
.po-store-top-header .po-store-top-inner {
  display:grid;
  grid-template-columns: 295px minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  min-height:99px;
  padding-block:10px;
}
.po-store-top-header .po-store-platform-brand {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:295px;
  height:78px;
  max-width:100%;
  min-width:0;
  margin:0;
  overflow:hidden;
  line-height:0;
  text-decoration:none;
}
.po-store-top-header .po-store-platform-brand > img {
  display:block;
  width:100%;
  height:100%;
  min-width:100%;
  min-height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center;
  flex:none;
  filter:none!important;
  -webkit-filter:none!important;
  transform:none!important;
  image-rendering:auto;
}
.po-store-top-header .po-store-search {
  display:flex;
  align-items:stretch;
  width:100%;
  min-width:0;
  height:54px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  gap:0;
}
.po-store-top-header .po-store-search-wrap {
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  flex:1;
  min-width:0;
  height:100%;
  margin:0;
  overflow:hidden;
  background:#fff;
  border:0;
  border-radius:10px 0 0 10px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.po-store-top-header .po-store-search-wrap:focus-within {box-shadow: inset 0 0 0 2px #F5A75F;}
.po-store-top-header .po-store-search-icon {
  display:grid;
  place-items:center;
  width:44px;
  height:100%;
  color:#818898;
}
.po-store-top-header .po-store-search-icon svg {display:block;width:22px;height:22px;}
.po-store-top-header .po-store-search-wrap input[type="search"] {
  display:block;
  width:100%;
  min-width:0;
  height:100%;
  margin:0;
  padding:0 10px 0 0;
  border:0;
  border-radius:0;
  outline:0;
  background:transparent;
  color:#1D2433;
  font-size:14px;
  font-weight:400;
  box-shadow:none;
}
.po-store-top-header .po-store-search-wrap input::placeholder {color:#8E96A3;opacity:1;}
.po-store-top-header .po-store-search-wrap select {
  display:block;
  width:190px;
  max-width:100%;
  height:34px;
  min-height:0;
  margin:0;
  padding:0 28px 0 16px;
  border:0;
  border-left:1px solid #E6E8ED;
  border-radius:0;
  outline:0;
  background:#fff;
  color:#4F5868;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  box-shadow:none;
}
.po-store-top-header .po-store-search > button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  min-width:105px;
  height:54px;
  margin:0;
  padding:0 18px;
  border:0;
  border-radius:0 10px 10px 0;
  background:var(--po-header-orange);
  color:#fff;
  font-size:13px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease;
}
.po-store-top-header .po-store-search > button:hover {background:#D85D0A;}
.po-store-top-header .po-store-header-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:none;
  gap:clamp(12px,1.5vw,24px);
  min-width:0;
  margin:0;
  padding:0;
}
.po-store-top-header .po-store-header-action {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:60px;
  margin:0;
  padding:4px 0;
  border:0;
  color:#fff;
  background:transparent;
  text-align:center;
  text-decoration:none;
  transition:opacity .18s ease,transform .18s ease;
}
.po-store-top-header .po-store-header-action:hover {opacity:.86;transform:translateY(-1px);}
.po-store-top-header .po-store-header-action.active,
.po-store-top-header .po-store-header-action[aria-current="page"] {color:#fff;}
.po-store-top-header .po-store-header-action strong {
  display:block;
  font-size:11.5px;
  font-weight:500;
  line-height:1.25;
  color:inherit;
  white-space:nowrap;
}
.po-store-top-header .po-store-action-icon {
  position:relative;
  display:grid;
  place-items:center;
  flex:none;
  width:32px;
  height:32px;
  color:inherit;
}
.po-store-top-header .po-store-action-icon svg {display:block;width:28px;height:28px;stroke:currentColor;}
.po-store-top-header .po-store-action-icon small {
  position:absolute;
  top:-7px;
  right:-11px;
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border:2px solid #C1272D;
  border-radius:999px;
  background:var(--po-header-orange);
  color:#fff;
  font-size:10px;
  font-weight:700;
  line-height:1;
}
/* Menu horizontal branco */
.po-store-main-nav {
  position:relative;
  z-index:40;
  display:block;
  width:100%;
  margin:0;
  padding:0;
  overflow:visible;
  background:#fff;
  border-bottom:1px solid #E6E8ED;
  color:var(--po-header-text);
}
.po-store-main-nav .po-store-nav-inner {
  display:grid;
  grid-template-columns:minmax(200px,295px) minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  min-height:58px;
  margin-inline:auto;
  padding-block:0;
}
.po-store-main-nav .po-store-categories-menu {
  position:relative;
  display:block;
  min-width:0;
  margin:0;
  padding:0;
}
.po-store-main-nav .po-store-categories {
  display:flex;
  align-items:center;
  gap:11px;
  min-height:58px;
  width:100%;
  min-width:0;
  padding:0 5px;
  margin:0;
  border:0;
  background:transparent;
  color:var(--po-header-text);
  font-size:13px;
  font-weight:500;
  text-decoration:none;
  cursor:pointer;
  list-style:none;
}
.po-store-main-nav .po-store-categories::-webkit-details-marker {display:none;}
.po-store-main-nav .po-store-categories::marker {content:"";}
.po-store-main-nav .po-store-categories svg {display:block;flex:none;width:22px;height:22px;}
.po-store-main-nav .po-store-categories strong {font-size:13px;font-weight:600;white-space:nowrap;}
.po-store-main-nav .po-category-chevron {width:16px!important;height:16px!important;margin-left:auto;transition:transform .18s ease;}
.po-store-main-nav .po-store-categories-menu[open] .po-category-chevron {transform:rotate(180deg);}
.po-store-main-nav .po-store-categories:hover,
.po-store-main-nav .po-store-categories-menu[open] > .po-store-categories {color:#C1272D;}
.po-store-main-nav .po-store-categories-list {
  position:absolute;
  z-index:100;
  top:calc(100% - 1px);
  left:0;
  width:min(370px,calc(100vw - 24px));
  max-height:min(68vh,560px);
  overflow-y:auto;
  padding:9px;
  border:1px solid #E6E8ED;
  border-radius:0 0 13px 13px;
  background:#fff;
  box-shadow:0 18px 45px rgba(27,32,45,.15);
}
.po-store-main-nav .po-store-categories-list > a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:41px;
  padding:9px 12px;
  border-radius:7px;
  color:#37404D;
  font-size:12.5px;
  font-weight:500;
  text-decoration:none;
}
.po-store-main-nav .po-store-categories-list > a:hover {background:#FFF0EF;color:#C1272D;}
.po-store-main-nav .po-store-categories-list > a.po-store-categories-title {
  display:block;
  margin-bottom:5px;
  padding:11px 12px;
  border-bottom:1px solid #EDF0F4;
  border-radius:0;
  color:#C1272D;
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
}
.po-store-main-nav .po-category-list-arrow {color:#F47016;font-size:17px;}
.po-store-main-nav .po-category-empty {display:block;padding:12px;color:#7C8794;font-size:12px;}
.po-store-main-nav .po-store-identity {
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  min-height:58px;
  color:#1D2433;
  font-size:14px;
  text-decoration:none;
}
.po-store-main-nav .po-store-identity-logo {
  display:grid;
  place-items:center;
  flex:none;
  width:42px;
  height:42px;
  border:1px solid #F1DEDF;
  border-radius:10px;
  overflow:hidden;
  background:#FFF5F5;
  color:#C1272D;
}
.po-store-main-nav .po-store-identity-logo img {display:block;width:100%;height:100%;object-fit:contain;}
.po-store-main-nav .po-store-identity-logo b {font-size:19px;}
.po-store-main-nav .po-store-identity-copy {display:flex;flex-direction:column;min-width:0;}
.po-store-main-nav .po-store-identity-copy strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:600;
}
.po-store-main-nav .po-store-identity-copy small {font-size:11px;color:#818898;}
.po-store-main-nav .po-store-nav-links {
  display:flex;
  align-items:stretch;
  gap:3px;
  min-width:0;
  min-height:58px;
  margin:0;
  padding:0;
  overflow-x:auto;
  scrollbar-width:none;
}
.po-store-main-nav .po-store-nav-links::-webkit-scrollbar {display:none;}
.po-store-main-nav .po-store-nav-links a {
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  min-height:58px;
  padding:0 16px;
  border:0;
  background:transparent;
  color:#4A4F59;
  font-size:13px;
  font-weight:500;
  white-space:nowrap;
  text-decoration:none;
  transition:color .18s ease;
}
.po-store-main-nav .po-store-nav-links a:hover {color:#C1272D;}
.po-store-main-nav .po-store-nav-links a.active {color:#1D2433;font-weight:600;}
.po-store-main-nav .po-store-nav-links a.active::after {
  content:"";
  position:absolute;
  right:16px;
  bottom:0;
  left:16px;
  height:3px;
  border-radius:9px 9px 0 0;
  background:#F47016;
}
.po-store-main-nav .po-store-marketplace-link {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
  color:#4A4F59;
  font-size:12px;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
}
.po-store-main-nav .po-store-marketplace-link:hover {color:#C1272D;}
.po-store-top-header a:focus-visible,
.po-store-main-nav a:focus-visible,
.po-store-main-nav summary:focus-visible,
.po-store-top-header button:focus-visible {outline:3px solid #F47016;outline-offset:3px;}
@media (max-width:1250px) and (min-width:1101px) {
  .po-store-top-header .po-store-top-inner {grid-template-columns:270px minmax(0,1fr) auto;gap:16px;}
  .po-store-top-header .po-store-platform-brand {width:270px;height:72px;}
  .po-store-main-nav .po-store-nav-inner {grid-template-columns:270px minmax(0,1fr) auto;gap:12px;}
  .po-store-top-header .po-store-header-actions {gap:13px;}
}
@media (max-width:1100px) {
  .po-store-top-header .store-container,
  .po-store-main-nav .store-container {width:calc(100% - 32px);}
  .po-store-top-header .po-store-top-inner {
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px 16px;
    min-height:0;
    padding-block:12px;
  }
  .po-store-top-header .po-store-platform-brand {grid-column:1;grid-row:1;width:248px;height:68px;}
  .po-store-top-header .po-store-header-actions {grid-column:2;grid-row:1;}
  .po-store-top-header .po-store-search {grid-column:1 / -1;grid-row:2;width:100%;}
  .po-store-main-nav .po-store-nav-inner {grid-template-columns:minmax(190px,auto) minmax(0,1fr);gap:10px;}
  .po-store-main-nav .po-store-marketplace-link {display:none;}
}
@media (max-width:760px) {
  .po-store-top-header .store-container,
  .po-store-main-nav .store-container {width:calc(100% - 24px);}
  .po-store-top-header .po-store-top-inner {gap:10px 12px;}
  .po-store-top-header .po-store-header-actions {gap:11px;}
  .po-store-top-header .po-store-header-action {min-width:27px;}
  .po-store-top-header .po-store-header-action strong {display:none;}
  .po-store-top-header .po-store-action-icon {width:28px;height:28px;}
  .po-store-top-header .po-store-action-icon svg {width:25px;height:25px;}
  .po-store-top-header .po-store-search {height:48px;}
  .po-store-top-header .po-store-search-wrap {grid-template-columns:38px minmax(0,1fr);}
  .po-store-top-header .po-store-search-icon {width:38px;}
  .po-store-top-header .po-store-search-wrap select {display:none;}
  .po-store-top-header .po-store-search-wrap input[type="search"] {font-size:13px;}
  .po-store-top-header .po-store-search > button {height:48px;min-width:84px;padding:0 12px;font-size:12px;}
  .po-store-main-nav .po-store-nav-inner {grid-template-columns:minmax(135px,auto) minmax(0,1fr);gap:5px;min-height:51px;}
  .po-store-main-nav .po-store-categories {min-height:51px;gap:6px;}
  .po-store-main-nav .po-store-categories strong {font-size:11px;}
  .po-store-main-nav .po-store-categories svg {width:18px;height:18px;}
  .po-store-main-nav .po-category-chevron {width:13px!important;height:13px!important;}
  .po-store-main-nav .po-store-nav-links {min-height:51px;}
  .po-store-main-nav .po-store-nav-links a {min-height:51px;padding-inline:11px;font-size:12px;}
  .po-store-main-nav .po-store-identity {max-width:185px;}
  .po-store-main-nav .po-store-identity-copy strong {max-width:110px;}
}
@media (max-width:560px) {
  .po-store-top-header .po-store-platform-brand {width:196px;height:58px;}
  .po-store-top-header .po-store-header-actions {gap:7px;}
  .po-store-main-nav .po-store-categories strong {font-size:10px;}
  .po-store-main-nav .po-store-nav-inner {grid-template-columns:minmax(128px,auto) minmax(0,1fr);}
}
@media (max-width:390px) {
  .po-store-top-header .po-store-platform-brand {width:160px;height:52px;}
  .po-store-top-header .po-store-header-action {min-width:24px;}
  .po-store-top-header .po-store-action-icon svg {width:23px;height:23px;}
  .po-store-top-header .po-store-search > button {min-width:70px;padding:0 9px;}
  .po-store-main-nav .po-store-categories strong {display:none;}
  .po-store-main-nav .po-store-nav-inner {grid-template-columns:56px minmax(0,1fr);}
}
@media (prefers-reduced-motion:reduce) {
  .po-store-top-header .po-store-header-action,
  .po-store-main-nav .po-store-nav-links a {transition:none;}
}
