.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: #152eff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 26px rgba(7, 24, 120, 0.24);
}

body.has-fixed-header .page-shell {
  padding-top: var(--header-offset, 150px);
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  body.has-fixed-header .page-shell {
    padding-top: 10px;
  }
}

.header-notice {
  border-bottom: 1px solid rgba(191, 209, 229, 0.6);
  background: linear-gradient(90deg, rgba(15, 79, 183, 0.96), rgba(31, 120, 255, 0.92));
  color: #f5faff;
  font-size: 0.88rem;
}

.header-notice .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.header-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-label {
  font-size: 0.8rem;
  color: rgba(245, 250, 255, 0.86);
  font-weight: 700;
  white-space: nowrap;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-link {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.social-link i {
  font-size: 0.76rem;
}

.social-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.social-link.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-link.whatsapp {
  background: #1fa94c;
}

.social-link.tiktok {
  background: #0d0d0d;
}

.social-link.youtube {
  background: #e32626;
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-picture {
  display: inline-flex;
  align-items: center;
  padding: 2px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.brand-logo {
  width: 62px;
  height: auto;
  border-radius: 8px;
  box-shadow: none;
  flex: 0 0 auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--brand-800), var(--brand-600));
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.08rem;
  line-height: 1;
}

.brand-copy span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.header-search {
  display: flex;
  align-items: center;
}

.search-bar {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 22px rgba(9, 33, 125, 0.14);
}

.search-bar input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 14px 0 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  outline: 0;
  font-size: 0.94rem;
  font-weight: 500;
}

.search-bar::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235f6f8d' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  pointer-events: none;
}

.home-page .search-bar .primary-button {
  display: none;
}

.address-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
}

.address-bar input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  outline: 0;
}

.delivery-icon {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 0.82rem;
}

.header-actions,
.header-shortcuts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 10px;
  border-radius: 999px;
  color: #dfe8ff;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.quick-link:hover,
.quick-link.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.cart-link {
  gap: 8px;
  padding-right: 10px;
  background: #ffffff;
  border: 1px solid #d5e2ff;
  color: #193461;
  font-weight: 600;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d3df2, #0f5ed8);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
}

.header-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: 220px;
  padding: 2px 10px 2px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eef3ff;
}

.header-profile-link:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #ffffff;
  color: #12315f;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
}

.header-menu {
  display: none;
}

.home-page .header-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
}

.home-page .header-menu .quick-link {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #d7e4ff;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  color: #dfe8ff;
  font-weight: 700;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid rgba(191, 209, 229, 0.8);
  background: rgba(255, 255, 255, 0.72);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 24px;
  padding: 36px 0 26px;
}

.footer-brand,
.footer-col {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-col strong {
  font-size: 0.95rem;
}

.footer-col a,
.footer-col span,
.footer-brand p {
  color: var(--text-soft);
}

.footer-contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 0 0 24px;
}

.footer-contact-card,
.footer-contact-links {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid rgba(191, 209, 229, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.footer-contact-card strong {
  color: var(--text-main);
  font-size: 1rem;
}

.footer-contact-card span {
  color: var(--text-soft);
  line-height: 1.5;
}

.footer-contact-links {
  align-content: center;
}

.footer-contact-link,
.footer-contact-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
  background: #f3f7fc;
  border: 1px solid rgba(191, 209, 229, 0.74);
}

.footer-contact-link.is-whatsapp {
  color: #0f7b50;
  background: #ebfaf3;
  border-color: rgba(118, 214, 172, 0.78);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0 36px;
  border-top: 1px solid rgba(191, 209, 229, 0.7);
  color: var(--text-soft);
}

.footer-verse {
  width: 100%;
  text-align: center;
  font-weight: 700;
  color: var(--text-soft);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.dashboard-sidebar {
  position: sticky;
  top: 132px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.dashboard-nav {
  display: grid;
  gap: 10px;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--text-soft);
  font-weight: 700;
}

.dashboard-nav a:hover,
.dashboard-nav a.is-active {
  background: var(--brand-100);
  border-color: #c6daf7;
  color: var(--brand-800);
}

.dashboard-main {
  display: grid;
  gap: 24px;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 18, 67, 0.56);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 88vw);
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #ffffff;
  border-left: 1px solid #e4ebf4;
  box-shadow: -12px 0 28px rgba(8, 23, 95, 0.14);
  overflow: auto;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-drawer-profile {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e7edf6;
  background: #f8fafc;
}

.mobile-drawer-profile span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.mobile-drawer-links {
  display: grid;
  gap: 6px;
}

.mobile-drawer-links a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #e7edf6;
  color: var(--text);
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
}

.mobile-drawer-links a:hover {
  border-color: #c8dbff;
  background: #f7fbff;
}

.mobile-drawer-info {
  display: grid;
  gap: 6px;
  opacity: 0.72;
}

.mobile-drawer-info article {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  background: #fbfdff;
}

.mobile-drawer-info span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.mobile-drawer-info strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.25;
}

.mobile-drawer-logout {
  width: 100%;
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .mobile-drawer {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  display: grid;
  gap: 12px;
}

.metric-card strong {
  font-size: 0.92rem;
  color: var(--text-soft);
}

@media (max-width: 1120px) {
  .footer-main,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-profile-name {
    display: none;
  }
}

@media (max-width: 960px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "search search";
    row-gap: 10px;
  }

  .brand-logo {
    width: 112px;
    height: auto;
  }

  .brand {
    grid-area: brand;
  }

  .header-search {
    grid-area: search;
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .mobile-toggle {
    grid-area: toggle;
    display: inline-flex;
    justify-self: end;
  }

  .header-search .search-bar {
    padding: 4px;
    gap: 8px;
  }

  .header-search .search-bar input {
    height: 36px;
    padding: 0 12px;
    font-size: 0.94rem;
  }

  .header-search .search-bar .primary-button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .home-page .header-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions toggle"
      "search search";
    row-gap: 8px;
    align-items: center;
  }

  .home-page .brand {
    grid-area: brand;
  }

  .home-page .header-search {
    grid-area: search;
    width: 100%;
  }

  .home-page .header-actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    overflow: visible;
  }

  .home-page .header-actions .cart-link {
    min-height: 32px;
    padding: 0 8px;
  }

  .home-page .header-actions [data-header-profile] {
    min-height: 32px;
    max-width: 104px;
    padding: 1px 7px 1px 3px;
    gap: 5px;
    border-radius: 999px;
  }

  .home-page .header-actions [data-header-profile] .header-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.64rem;
  }

  .home-page .header-actions [data-header-profile] .header-profile-name {
    display: inline;
    max-width: 58px;
    font-size: 0.76rem;
  }

  .home-page .header-menu {
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 0 8px;
  }

  .home-page .header-menu::-webkit-scrollbar {
    display: none;
  }

  .home-page .header-menu .quick-link {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .home-page .header-search .search-bar {
    width: 100%;
    padding: 0;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.98);
  }

  .home-page .header-search .search-bar input {
    height: 40px;
    padding: 0 12px 0 40px;
    font-size: 0.94rem;
    color: #4a5f80;
  }

  .home-page .header-search .search-bar input::placeholder {
    color: #7086aa;
  }

  .footer-main,
  .footer-contact-strip,
  .footer-bottom,
  .metrics-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact-links {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-notice {
    display: block;
  }

  .header-notice .container {
    min-height: 30px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
  }

  .header-social {
    width: 100%;
    justify-content: center;
  }

  .social-label {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .header-main {
    padding: 10px 0;
  }

  .header-nav {
    padding-bottom: 14px;
  }

  .home-page .social-label {
    font-size: 0.74rem;
  }

  .home-page .header-actions .quick-link {
    font-size: 0.74rem;
  }

  .home-page .header-search .search-bar {
    padding: 0;
  }

  .home-page .header-search .search-bar input {
    min-height: 36px;
    font-size: 0.9rem;
    padding-left: 38px;
  }

  .home-page .header-actions .cart-link {
    min-height: 29px;
    padding: 0 5px 0 7px;
  }

  .home-page .header-actions [data-header-profile] {
    max-width: 90px;
    min-height: 29px;
    padding-right: 6px;
  }

  .home-page .header-actions [data-header-profile] .header-profile-name {
    max-width: 50px;
    font-size: 0.72rem;
  }

  .home-page .header-menu .quick-link {
    font-size: 0.74rem;
    padding: 0 8px;
  }

  .home-page .header-actions {
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-page .header-actions::-webkit-scrollbar {
    display: none;
  }

  .home-page .header-actions [data-header-profile] .header-profile-name {
    display: none;
  }

  .home-page .header-actions [data-header-profile] {
    max-width: fit-content;
    min-width: 34px;
    padding: 0 6px 0 4px;
  }

  .home-page .header-menu {
    display: grid;
    grid-auto-flow: column;
    justify-content: start;
    gap: 8px;
  }
}

/* Home: visual limpo e foco em busca */
.home-page .site-header {
  backdrop-filter: saturate(1.1) blur(8px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e3ebf5;
  box-shadow: 0 8px 20px rgba(18, 34, 66, 0.08);
}

.home-page .header-main {
  grid-template-columns: auto minmax(420px, 1fr) auto;
  padding: 5px 0;
}

.home-page .brand-logo {
  width: 64px;
  border-radius: 12px;
}

.home-page .brand-picture {
  background: transparent;
  border-color: transparent;
  padding: 0;
}

.home-page .header-actions {
  gap: 8px;
}

.home-page .delivery-icon {
  background: #f2f6fc;
  border-color: #e1eaf5;
  color: #3d5272;
}

.home-page .search-bar {
  border-radius: 999px;
  border: 1px solid #d7e3f2;
  box-shadow: 0 8px 18px rgba(22, 50, 102, 0.1);
}

.home-page .search-bar input {
  height: 50px;
  font-size: 0.96rem;
  color: #1f3355;
}

.home-page .search-bar input::placeholder {
  color: #7b8ea9;
}

.home-page .quick-link {
  color: #4a607f;
}

.home-page .quick-link:hover,
.home-page .quick-link.is-active {
  background: #edf3fc;
  color: #173d78;
}

.home-page .cart-link {
  background: #f6f9ff;
  border-color: #cfdcf0;
}

.home-page .header-profile-link {
  background: #f2f6fc;
  border-color: #e1eaf5;
  color: #2e486f;
}

.home-page .header-avatar {
  background: #ffffff;
  color: #1f4276;
}

.home-page .header-menu {
  padding: 0 0 8px;
  gap: 8px;
}

.home-page .header-menu .quick-link {
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #5f7597;
}

@media (max-width: 820px) {
  .home-page .site-header {
    background: rgba(255, 255, 255, 0.98);
  }

  .home-page .header-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions toggle"
      "search search search";
    row-gap: 7px;
    padding: 6px 0;
  }

  .home-page .header-actions {
    overflow: hidden;
  }

  .home-page .brand-logo {
    width: 56px;
  }

  .home-page .search-bar input {
    height: 44px;
    font-size: 0.88rem;
  }
}
