:root {
  --topbar-bg: #ffffff;
  --topbar-color: #000000;
}

body {
  margin: 0;
  padding-top: 56px;
  background: #f8f9fa;
  font-family: system-ui;
}

main {
  display: block;
  width: 100%;
}

/* Barra superior */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--topbar-bg);
  color: var(--topbar-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;

  justify-content: center;
  /*padding: 0 20px;
  font-weight: 600;
  text-align: center;*/
}

.top-bar::after {
  content: "";
  position: absolute;
  right: calc((100% - 1400px) / 2);
  height: 100%;
  width: 0;
}

/* Grid */
.design-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: auto;
  /*padding:20px;*/
  /*grid-auto-rows: minmax(150px, auto);*/
}

.design-area {
  grid-column: span var(--cols);
  grid-row: span var(--rows);
  background: white;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  min-height: 150px;
}

.design-area.auto {
  min-height: auto;
}

.design-area img {
  width: 100%;
  height: auto;
  display: block;
}

@media(max-width:768px) {

  .top-bar {
    justify-content: space-between;
    /* espalha esquerda e direita */
    padding: 0 12px;
  }

  /* remove lógica do container centralizado no mobile */
  .search-expand {
    position: absolute;
    right: 0px !important;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
  }

  /* garante que não sobra “respiro” interno */
  .search-expand,
  .whatsapp-icon,
  .search-icon {
    margin: 0;
  }
  

  .categoria-item {
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 100% !important;
  }

  .design-grid {
    grid-template-columns: 1fr;
  }

  .design-area {
    grid-column: 1/-1 !important;
    min-height: 150px;

  }

  .menu-categorias-mobile-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
    text-decoration: none;
  }
}

/* Splash sempre visível no início */
#splash-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Loading */
#splash-loading {
  margin-bottom: 16px;
}

#conta-slug-a {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  height: 56px;
}

/*#conta-slug-a {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}
*/
.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #ddd;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#splash-logo {
  max-width: 220px;
}

.search-expand {
  position: absolute;
  right: calc((100% - 1400px) / 2);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  /*gap: 10px;*/
}

.whatsapp-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/*.search-expand {
  height: 56px;
  display: flex;
  align-items: center;
}*/

.search-expand input {
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .25s ease;
  padding: 0;
  border: none;
  outline: none;
  border-radius: 999px;
  background: #ffffff;
}

.search-expand.ativo input {
  width: 240px;
  opacity: 1;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  transition: all .25s ease;
}

.search-expand input:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(203, 213, 225, 0.35);
  outline: none;
}

.search-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;

  position: relative;
  top: 0;
  /* garante zero deslocamento vertical */
}