/* layout.css */

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
.page {
  padding: var(--space-4);
}

.products-grid {
  display: grid;
  gap: var(--space-4);
}

/* mobile default */
.products-grid {
  grid-template-columns: repeat(var(--grid-mobile,2),1fr);
}

@media (min-width:768px) {
  .products-grid {
    grid-template-columns: repeat(var(--grid-tablet,3),1fr);
  }
}

@media (min-width:1024px) {
  .products-grid {
    grid-template-columns: repeat(var(--grid-desktop,4),1fr);
  }
}


/* app container */
#root {
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-background);
  position: relative;
  overflow-x: hidden;
}

/* MOBILE CONTAINER */
@media (max-width: 767px) {
  #root {
    max-width: 420px;
  }
}

/* DESKTOP FULL WIDTH */
@media (min-width: 768px) {
  #root {
    max-width: 100%;
  }
}


/* page scroll area */
#app {
  padding-bottom: 90px; /* space for bottom nav */
}



.logo {
  font-weight: 700;
  font-size: 18px;
}

/* bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 380px;

  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);

  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.nav-item {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item.active {
  color: var(--color-primary);
}











/* ===== PAGE CONTAINER ===== */

.page {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* DESKTOP LAYOUT */
@media (min-width: 1024px) {
  .page {
    max-width: 1280px;   /* professional width */
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none !important;
  }

  #app {
    padding-bottom: 0; /* remove mobile bottom spacing */
  }
  .products-grid {
    gap: 24px;
  }
}



