/* ==================== APP SHELL LAYOUT ==================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-main {
  flex: 1;
  min-width: 0;
  margin-left: 280px;
  padding: 48px;
}

.app-main .market-page,
.app-main .publish-page,
.app-main .account-page,
.app-main .dashboard-page,
.app-main .collection-page,
.app-main .designs-page {
  padding: 0;
  margin: 0;
}

/* ==================== SIDEBAR LAYOUT ==================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  padding: 28px 20px;
  overflow-y: auto;
}



/* ── Logo ── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  margin-bottom: 32px;
  text-decoration: none;
}

.sidebar-logo img {
  height: 44px;
  width: auto;
}

/* ── Cart badge ── */
.sidebar-cart-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ── Nav items ── */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-section-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 12px;
  margin-top: 24px;
  margin-bottom: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.sidebar-link:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text);
}

.sidebar-link.active {
  background: var(--dark-grey);
  color: white;
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.sidebar-link.active svg { opacity: 1; color: white; }

/* ── Upload button ── */
.sidebar-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--bg);
  background: var(--text);
  text-decoration: none;
  transition: opacity 0.12s;
  margin-top: 12px;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.sidebar-upload:hover { opacity: 0.82; }

.sidebar-upload svg { flex-shrink: 0; opacity: 0.8; }

/* ── Bottom: account ── */
.sidebar-bottom {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  font-family: var(--font);
  text-align: left;
}

.sidebar-account:hover { background: rgba(0,0,0,0.05); }

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  font-size: var(--fs-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-account-info {
  overflow: hidden;
}

.sidebar-account-name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-account-sub {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
