/* Manto — header, barra de aviso, drawer e footer (wireframes V1). */

/* Esconde restos do header/footer do Natsy caso algum plugin ainda injete. */
.nova-header, .header-mobiles, .site-footer:not(.manto-footer) { display: none !important; }

.manto-only-desktop { display: none !important; }
@media (min-width: 1024px) { .manto-only-desktop { display: inline-flex !important; } }
html.manto-lock, html.manto-lock body { overflow: hidden; }

/* Barra de aviso */
.manto-announce {
  background: var(--manto-carbon);
  color: var(--manto-offwhite);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.manto-announce p { margin: 0; padding: 8px var(--gutter); }

/* Header */
.manto-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--manto-paper);
  border-bottom: 1px solid var(--border);
}
.admin-bar .manto-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .manto-header { top: 32px; } }

.manto-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}
.manto-header__burger { justify-self: start; }
.manto-header__logo { justify-self: center; }
.manto-header__nav { display: none; }
.manto-header__inner > * { grid-row: 1; }
.manto-header__actions { justify-self: end; display: flex; align-items: center; gap: 4px; }

@media (min-width: 1024px) {
  .manto-header__inner { height: 76px; grid-template-columns: 200px 1fr 200px; }
  .manto-header .manto-header__burger { display: none !important; }
  .manto-header__logo { justify-self: start; grid-column: 1; }
  .manto-header__nav { display: block; justify-self: center; grid-column: 2; }
  .manto-header__actions { grid-column: 3; }
}

.manto-logo, .manto-header__logo a { display: inline-flex; }
.manto-logo img, .manto-header__logo img { height: 44px; width: auto; display: block; }
@media (min-width: 1024px) { .manto-logo img, .manto-header__logo img { height: 52px; } }

.manto-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; white-space: nowrap; }
.manto-nav li { margin: 0; padding: 0; list-style: none; }
.manto-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur-base) var(--ease-out);
}
.manto-nav a:hover, .manto-nav .current-menu-item > a, .manto-nav a[aria-current] {
  color: var(--text);
  background-size: 100% 1px;
}

.manto-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none !important; border: 0 !important; padding: 0 !important;
  color: var(--text) !important; border-radius: var(--radius-sm) !important;
  cursor: pointer; position: relative;
  min-height: 0 !important; box-shadow: none !important;
}
.manto-iconbtn:hover { background: var(--manto-offwhite) !important; }
.manto-cart-count {
  position: absolute; top: 6px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--manto-carbon); color: var(--manto-offwhite);
  font: 600 11px/18px var(--font-body); text-align: center;
}

/* Busca (desktop) */
.manto-search {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter) 16px;
  display: flex; gap: 8px;
}
.manto-search[hidden] { display: none; }
.manto-search input[type=search] { flex: 1; }

/* Drawer (celular) */
.manto-drawer { position: fixed; inset: 0; z-index: 100; }
.manto-drawer[hidden] { display: none; }
.admin-bar .manto-drawer { top: 46px; }
@media (min-width: 783px) { .admin-bar .manto-drawer { top: 32px; } }
.manto-drawer__scrim {
  position: absolute; inset: 0; background: rgba(11, 11, 12, 0.4);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.manto-drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 1;
  width: min(86vw, 360px);
  background: var(--manto-paper);
  padding: 12px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 16px;
  transform: translateX(-100%);
  transition: transform var(--dur-base) var(--ease-out);
  overflow-y: auto;
}
.manto-drawer.is-open .manto-drawer__panel { transform: none; }
.manto-drawer.is-open .manto-drawer__scrim { opacity: 1; }
.manto-drawer__top { display: flex; justify-content: space-between; align-items: center; }
.manto-drawer__nav { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.manto-drawer__nav li { border-bottom: 1px solid var(--border); }
.manto-drawer__nav a {
  display: block; padding: 16px 0;
  font: 600 var(--fs-lg)/1.2 var(--font-display);
  color: var(--text); text-decoration: none;
}
.manto-drawer__account {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); text-decoration: none; font-size: var(--fs-sm);
}

/* Footer */
.manto-footer {
  background: var(--manto-carbon);
  color: var(--manto-offwhite);
  margin-top: var(--space-9);
}
.manto-footer a { color: var(--manto-offwhite); text-decoration: none; opacity: 0.72; transition: opacity var(--dur-fast) var(--ease-out); }
.manto-footer a:hover { opacity: 1; color: var(--manto-offwhite); }

.manto-footer__inner {
  max-width: var(--container); margin: 0 auto;
  padding: var(--space-8) var(--gutter) var(--space-6);
  display: grid; gap: 0;
}
.manto-footer__brand { padding-bottom: var(--space-5); }
.manto-footer__brand p { margin: 12px 0 0; font-size: var(--fs-sm); opacity: 0.72; }
.manto-footer__brand a { opacity: 1; }

.manto-footer__col { border-top: 1px solid rgba(246, 244, 239, 0.12); }
.manto-footer__col summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  font: 600 var(--fs-sm)/1 var(--font-display);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
}
.manto-footer__col summary::-webkit-details-marker { display: none; }
.manto-footer__col[open] summary .manto-icon { transform: rotate(180deg); }
.manto-footer__col summary .manto-icon { transition: transform var(--dur-base) var(--ease-out); }
.manto-footer__links { list-style: none; margin: 0; padding: 0 0 16px; display: grid; gap: 10px; font-size: var(--fs-sm); }

@media (min-width: 768px) {
  .manto-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); }
  .manto-footer__col { border-top: 0; }
  .manto-footer__col summary { pointer-events: none; padding: 0 0 16px; }
  .manto-footer__col summary .manto-icon { display: none; }
}

.manto-footer__bottom {
  max-width: var(--container); margin: 0 auto;
  padding: var(--space-5) var(--gutter);
  border-top: 1px solid rgba(246, 244, 239, 0.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); opacity: 0.72;
}
.manto-footer__bottom p { margin: 0; }
.manto-footer__pay { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.manto-footer__pay li { letter-spacing: 0.04em; }

@media (prefers-reduced-motion: reduce) {
  .manto-drawer__panel, .manto-drawer__scrim { transition: none; }
}
