: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;
}

/* 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){
  .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;
}

.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;
}